1 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
More wxPython 2.5 changes. This time taken from a patch from |
4 |
|
Daniel Calvelo Aros. |
5 |
|
|
6 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
7 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
8 |
|
item. |
9 |
|
|
10 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
11 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
12 |
|
item. |
13 |
|
|
14 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
15 |
|
size of a spacer as a single item. |
16 |
|
|
17 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
18 |
|
size of a spacer as a single item. |
19 |
|
|
20 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
21 |
|
|
22 |
|
Compatibility with wxPython 2.5. The changes should make it work |
23 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
24 |
|
are still problems with 2.5, though. |
25 |
|
|
26 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
27 |
|
of a spacer as a single item. |
28 |
|
|
29 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
30 |
|
from wxControl |
31 |
|
|
32 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
33 |
|
2.5, add an implementation of the GetFirstChild method that does |
34 |
|
not require the second parameter. |
35 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
36 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
37 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
38 |
|
pass the second parameter to GetFirstChild |
39 |
|
|
40 |
|
2005-02-08 Nina H�ffmeyer <[email protected]> |
41 |
|
|
42 |
|
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
43 |
|
|
44 |
|
* Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an |
45 |
|
additional menu but appears as a possibility in the menu Map. |
46 |
|
|
47 |
|
2005-02-07 Jonathan Coles <[email protected]> |
48 |
|
* libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR |
49 |
|
and PYTHON_ERRF since they were no longer necessary. |
50 |
|
|
51 |
|
2005-02-07 Bernhard Reiter <[email protected]> |
52 |
|
* Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows): |
53 |
|
Enable translation for message string. |
54 |
|
|
55 |
|
2005-02-06 Martin Schulze <[email protected]> |
56 |
|
|
57 |
|
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
58 |
|
the arguments of the contstructor to fit the global scheme |
59 |
|
|
60 |
|
2005-01-31 Nina H�ffmeyer <[email protected]> |
61 |
|
|
62 |
|
* Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides |
63 |
|
some dialogs needed to start ogr. |
64 |
|
|
65 |
|
* Extensions/ogr/__init__.py: Changed comments to avoid encoding |
66 |
|
warnings. |
67 |
|
|
68 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid |
69 |
|
encoding warnings. |
70 |
|
|
71 |
|
2005-01-28 Jonathan Coles <[email protected]> |
72 |
|
|
73 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |
74 |
|
mask is packed into a bit array. It's now slightly faster. |
75 |
|
|
76 |
|
2005-01-28 Jonathan Coles <[email protected]> |
77 |
|
|
78 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask |
79 |
|
default to true. |
80 |
|
|
81 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove |
82 |
|
code that loads the state of the layer's use_mask flag. Its |
83 |
|
usefulness is still being debated. |
84 |
|
|
85 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Remove |
86 |
|
code that saves the state of the layer's use_mask flag. Its |
87 |
|
usefulness is still being debated. |
88 |
|
|
89 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
90 |
|
options to ProjectRasterFile based on the state of layer.UseMask(). |
91 |
|
Catch more exceptions from ProjectRasterFile so that Thuban doesn't |
92 |
|
quit is there is a problem projecting. |
93 |
|
(BaseRenderer.draw_raster_data): Change the documentation to |
94 |
|
describe the new format (XBM) that the mask data will be in. |
95 |
|
|
96 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask |
97 |
|
data is in XBM format when format='RAW' which means it doesn't |
98 |
|
need to be converted to a wxImage before being used as a mask |
99 |
|
for a wxBitmap. Assume that if format != 'RAW' that the image |
100 |
|
data and mask data are in the same format. |
101 |
|
|
102 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled |
103 |
|
and a mask is requested, convert the alpha band to a bit array in |
104 |
|
XBM format. if an alpha channel is requested, simply return the |
105 |
|
data in the alpha band. Provide better error handling by returning |
106 |
|
python error messages (also fixes RT #2947). |
107 |
|
(ProjectRasterFile): Support multiple mask options, rather than simply |
108 |
|
a flag indicating that a mask should or should not be used. Provide |
109 |
|
better error handling by returning python error messages. |
110 |
|
|
111 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
112 |
|
Add mask data to test. |
113 |
|
|
114 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test that a layer |
115 |
|
should use the mask by default. |
116 |
|
(TestLayerModificaton.test_raster_layer): Test that a layer should use |
117 |
|
the mask by default. |
118 |
|
|
119 |
|
* test/test_load.py (TestRasterLayer.test): Remove testing for |
120 |
|
use_mask flag in file. |
121 |
|
|
122 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing |
123 |
|
for use_mask in file. |
124 |
|
|
125 |
|
* test/test_load_1_0_1.py: Removed. Shouldn't have been checked in. |
126 |
|
|
127 |
|
2005-01-26 Jonathan Coles <[email protected]> |
128 |
|
|
129 |
|
Add a new dialog box for raster layers. The dialog box allows |
130 |
|
the user to toggle a mask that is generated by ProjectRasterFile |
131 |
|
and is used to only draw the real parts of the projected image. |
132 |
|
|
133 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
134 |
|
Instruct the warping code to generate a mask if the raster layer |
135 |
|
requests one. |
136 |
|
(BaseRenderer.draw_raster_data): Removed obsolete optional mask argument. |
137 |
|
|
138 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed |
139 |
|
obsolete optional mask argument. |
140 |
|
|
141 |
|
* Thuban/UI/classifier.py (Classifier): Change the parent class |
142 |
|
to LayerProperties and rework the code to support layout calls |
143 |
|
from the parent. |
144 |
|
(Classifier.dialog_layout): New. Layout the dialog box. |
145 |
|
(Classifier.map_layers_removed): Removed. Moved to parent class. |
146 |
|
(Classifier.map_replaced): Removed. Moved to parent class. |
147 |
|
(Classifier._OnTry): Renamed to OnTry to support parent class. |
148 |
|
(Classifier.OnClose): Removed. Supplied in parent class. |
149 |
|
(Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn. |
150 |
|
(Classifier._OnOK): Renamed to OnOK to support parent class. |
151 |
|
(Classifier._OnRevert): Renamed to OnRevert to support parent class. |
152 |
|
|
153 |
|
* Thuban/UI/layerproperties.py: New. Base class for layer properties |
154 |
|
dialog boxes. |
155 |
|
|
156 |
|
* Thuban/UI/rasterlayerproperties.py: New. Class for displaying |
157 |
|
raster layer properties. |
158 |
|
|
159 |
|
* libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code |
160 |
|
with the non-simple version supplied with gdal. This allows added |
161 |
|
features such as creating an alpha band. |
162 |
|
(GetImageData): Generate a mask array from the alpha band that is |
163 |
|
generated by gdal if the user has selected it. Try to support images |
164 |
|
that have more than three bands, such as images with RGB plus an |
165 |
|
alpha band. |
166 |
|
(ProjectRasterFile): Convert python argument for mask and tell |
167 |
|
gdal to enable or disable an alpha band. |
168 |
|
|
169 |
|
* Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string |
170 |
|
describing what kind of layer the class is. Defaults to "Unknown", |
171 |
|
but should be overridden by subclasses. |
172 |
|
(Layer.Type): New. Override base class method. |
173 |
|
(RasterLayer.__init__): Create a flag for using a mask. Record extra |
174 |
|
data from gdal for display in the properties dialog. |
175 |
|
(RasterLayer.Type): New. Override base class method. |
176 |
|
(RasterLayer.UseMask): New. Returns True if the mask should be used. |
177 |
|
(RasterLayer.SetUseMask): New. Set if the mask should be used. |
178 |
|
(RasterLayer.ImageInfo): New. Return extra information about the image. |
179 |
|
|
180 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load |
181 |
|
the mask information. |
182 |
|
|
183 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save mask information. |
184 |
|
|
185 |
|
* Thuban/UI/mainwindow.py: Register the RasterLayerProperties and |
186 |
|
Classifier classes as dialogs to use with the proper layer types. |
187 |
|
|
188 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
189 |
|
Fix test. |
190 |
|
|
191 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test new methods. |
192 |
|
(TestLayerModification.build_path): New. Support function. |
193 |
|
(TestLayerModification.test_raster_layer): New. Test new methods. |
194 |
|
|
195 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask. |
196 |
|
|
197 |
|
* test/test_load.py (TestRasterLayer): Add tests for mask. |
198 |
|
|
199 |
|
* test/test_load_1_0_1.py: New. Copied from test_load.py. |
200 |
|
|
201 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed |
202 |
|
obsolete optional mask argument. |
203 |
|
|
204 |
|
2005-01-26 Nina H�ffmeyer <[email protected]> |
205 |
|
|
206 |
|
* Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore |
207 |
|
which maps the ids and the ordinals. Fixed RowIdToOrdinal(), |
208 |
|
RowOrdinalToId() and ReadRowAsDict(). |
209 |
|
|
210 |
|
* Extensions/ogr/ogrstart.py: Added menu item which opens database |
211 |
|
layers for existing database connections. |
212 |
|
|
213 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string. |
214 |
|
|
215 |
|
|
216 |
|
2005-01-26 Jan-Oliver Wagner <[email protected]> |
217 |
|
|
218 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
219 |
|
|
220 |
|
2005-01-24 Bernhard Herzog <[email protected]> |
221 |
|
|
222 |
|
Rework the status bar updates a bit to make sure the message about |
223 |
|
the projections is produced at the right times. |
224 |
|
|
225 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages): |
226 |
|
New class variable with messages that may require a status bar |
227 |
|
update. |
228 |
|
(MainWindow.view_position_changed) |
229 |
|
(MainWindow.update_status_bar): Rename from view_position_changed |
230 |
|
to update_status_bar. It's meaning has changed now that it may |
231 |
|
also generate messages about problems with projection settings. |
232 |
|
(MainWindow.__init__): Use the new update_status_bar_messages |
233 |
|
class variable to subscribe update_status_bar |
234 |
|
(MainWindow.set_position_text): Update doc-string. This method |
235 |
|
has to be renamed at some point. See doc-string and comments. |
236 |
|
(MainWindow.OnClose): Unsubscribe update_status_bar from all |
237 |
|
messages in update_status_bar_messages |
238 |
|
|
239 |
|
* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New |
240 |
|
class attribute. map messages to be forwarded by the viewport. |
241 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe |
242 |
|
the messages in forwarded_map_messages |
243 |
|
|
244 |
|
2005-01-21 Bernhard Herzog <[email protected]> |
245 |
|
|
246 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Tweak |
247 |
|
doc-string |
248 |
|
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a |
249 |
|
different name for the initialization SQL file. |
250 |
|
|
251 |
|
2005-01-21 Jonathan Coles <[email protected]> |
252 |
|
|
253 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
254 |
|
a projection and returns a formatted string representing the |
255 |
|
parameters to feed to gdalwarp. This function eliminates |
256 |
|
redundancy in draw_raster_layer(). |
257 |
|
(BaseRenderer.render_map_incrementally): Removed the optimization which |
258 |
|
drew the top most raster layer first and then only those vector- |
259 |
|
based layers that are above it. With the support for transparency |
260 |
|
this optimization breaks correct behaviour. |
261 |
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
262 |
|
future enhancements to raster layer bounding box. The old behaviour has |
263 |
|
not changed. Also, change calling parameters to draw_raster_data() |
264 |
|
to specify new RAW data format and mask. |
265 |
|
(BaseRenderer.draw_raster_data): Change signature to include an optional |
266 |
|
parameter for mask information. Change documentation to mention |
267 |
|
support for new parameter and added option for RAW data format. |
268 |
|
The data argument is now a list of [width, height, data]. |
269 |
|
|
270 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
271 |
|
mask parameter. Add new condition for RAW format, which |
272 |
|
significantly reduces rendering time. Add condition for |
273 |
|
mask parameter. |
274 |
|
|
275 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
276 |
|
data array of RGB values from the projected image returned from |
277 |
|
the gdal warping functions. In the case of palette based images, it |
278 |
|
converts the NO_DATA index to the mask color. |
279 |
|
(ProjectRasterFile): Removed all custom memory driver references |
280 |
|
and replaced it with the standard in-memory dataset provided |
281 |
|
by gdal. The return data is no longer a BMP file, but an array |
282 |
|
of RGB values, one set triple per pixel. |
283 |
|
|
284 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
285 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
286 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
287 |
|
|
288 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
289 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
290 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
291 |
|
|
292 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
293 |
|
Updated signature. |
294 |
|
(TestBaseRenderer.test_raster_no_projection): Changed the test |
295 |
|
data to be data in the uncompressed RAW format returned from |
296 |
|
ProjectRasterFile. |
297 |
|
|
298 |
|
2005-01-21 Jan-Oliver Wagner <[email protected]> |
299 |
|
|
300 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
301 |
|
string available for i18n. |
302 |
|
|
303 |
|
2005-01-20 Russell Nelson <[email protected]> |
304 |
|
|
305 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
306 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
307 |
|
It's the wrong thing to do in the long run, but it's necessary for |
308 |
|
those users until that bug is fixed. Otherwise the projection |
309 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
310 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
311 |
|
|
312 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
313 |
|
|
314 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
315 |
|
docstring and comment that the warning code here is a hack. |
316 |
|
|
317 |
|
2005-01-20 Russell Nelson <[email protected]> |
318 |
|
|
319 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
320 |
|
user about misprojected layers when their lat/lon bounding |
321 |
|
box exceeds rational lat/lon values. |
322 |
|
|
323 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
324 |
|
|
325 |
|
* Thuban/UI/about.py (unicodeToLocale): Improved: |
326 |
|
Use 'ascii' and then 'replace' for other characters |
327 |
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
328 |
|
|
329 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
330 |
|
|
331 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
332 |
|
that OnRangeText might be called twice and using None as argument. |
333 |
|
|
334 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
335 |
|
|
336 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
337 |
|
OnRangeText(0) to work around a different in wx Behaviour noticed |
338 |
|
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
339 |
|
|
340 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
341 |
|
|
342 |
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
343 |
|
None. (Fixes rt#2910.) |
344 |
|
|
345 |
|
2005-01-18 Frank Koormann <[email protected]> |
346 |
|
|
347 |
|
New Extension: mouseposition |
348 |
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
349 |
|
|
350 |
|
* Extensions/mouseposition/__init__.py: New, extension registration |
351 |
|
|
352 |
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
353 |
|
dialog and adds a tool to Thuban mainwindow. |
354 |
|
|
355 |
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
356 |
|
|
357 |
|
2005-01-14 Jan-Oliver Wagner <[email protected]> |
358 |
|
|
359 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
360 |
|
|
361 |
|
2005-01-11 Frank Koormann <[email protected]> |
362 |
|
|
363 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
364 |
|
Fix indention bug. |
365 |
|
|
366 |
|
2005-01-09 Frank Koormann <[email protected]> |
367 |
|
|
368 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
369 |
|
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
370 |
|
is not part of the layers Classification. |
371 |
|
|
372 |
|
2005-01-03 Frank Koormann <[email protected]> |
373 |
|
|
374 |
|
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
375 |
|
BugFix 2883: Former implementation only worked on classified point |
376 |
|
layers: KeyError was raised, now use the default size if field is None. |
377 |
|
|
378 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
379 |
|
|
380 |
|
svgexport 1.0.0cvs: Fixed label export. |
381 |
|
|
382 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
383 |
|
class TestSVGRenderer(): New class; new test test_label_font(). |
384 |
|
|
385 |
|
* Extensions/svgexport/svgmapwriter.py |
386 |
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
387 |
|
makes test_label_font happy. |
388 |
|
|
389 |
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
390 |
|
Added item for options. |
391 |
|
|
392 |
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
393 |
|
|
394 |
|
2004-12-27 Russell Nelson <[email protected]> |
395 |
|
|
396 |
|
Middle mouse button pans. |
397 |
|
|
398 |
|
* Thuban/UI/view.py (MapCanvas.__init__): Subscribe also |
399 |
|
OnMiddleDown and OnMiddleUp events. |
400 |
|
(MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the |
401 |
|
previously used tool. |
402 |
|
(MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before |
403 |
|
pressing the middle mouse button. |
404 |
|
|
405 |
|
2004-12-27 Jan-Oliver Wagner <[email protected]> |
406 |
|
|
407 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
408 |
|
|
409 |
|
2004-12-23 Jan-Oliver Wagner <[email protected]> |
410 |
|
|
411 |
|
* Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a |
412 |
|
\n to stderr after the warnings. Thanks to Russell Nelson. |
413 |
|
|
414 |
|
2004-12-20 Nina Hueffmeyer <[email protected]> |
415 |
|
|
416 |
|
* Extensions/ogr/ogrshapes.py: Fixed some issues from |
417 |
|
Bernhard (coding guidelines etc.). Additionally it is now possible to |
418 |
|
display shapefiles containing feature collections (e.g.polygons |
419 |
|
with holes). Works with gdal 1.2.1 now. |
420 |
|
|
421 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues |
422 |
|
from Bernhard (coding guidelines etc.). If ogr can't be imported, |
423 |
|
tests are skipped now. |
424 |
|
|
425 |
|
* Extensions/ogr/ogrstart.py: Fixed some typings. |
426 |
|
|
427 |
|
2004-12-20 Bernhard Reiter <[email protected]> |
428 |
|
|
429 |
|
* Extensions/svgexport/TODO: updated to add support for |
430 |
|
raster layers and labels for 1.0.1. |
431 |
|
|
432 |
|
* Extensions/svgexport/svgmapwriter.py (draw_raster_layer): |
433 |
|
Issue a warning now. |
434 |
|
|
435 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
436 |
|
|
437 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
438 |
|
the application down the pipe. |
439 |
|
|
440 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
441 |
|
|
442 |
|
svgexport: Improved code quality, mainly by better naming. |
443 |
|
|
444 |
|
* Extensions/svgexport/svgmapwriter.py: |
445 |
|
DrawPath() renamed to DrawPolygonPath(), |
446 |
|
added documentation, improved comments and variable names. |
447 |
|
|
448 |
|
* Extensions/svgexport/svgmapwriter.py, |
449 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
450 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
451 |
|
omitted. |
452 |
|
|
453 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
454 |
|
renamed test_polygon_opened() to test_polyline() |
455 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
456 |
|
|
457 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
458 |
|
|
459 |
|
Some fixes of gns2shp extension. |
460 |
|
|
461 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
462 |
|
package. |
463 |
|
|
464 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
465 |
|
dynamically. |
466 |
|
|
467 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
468 |
|
|
469 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
470 |
|
fixed some dimensions of fields according to the GNS documentation |
471 |
|
which seems to change undocumented. |
472 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
473 |
|
This fixes RT#2453. |
474 |
|
|
475 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
476 |
|
|
477 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
478 |
|
|
479 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
480 |
|
Added new tests: test_export_polygon_with_hole() |
481 |
|
and test_polygon_with_hole(). |
482 |
|
|
483 |
|
* Extensions/svgexport/svgmapwriter.py |
484 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
485 |
|
|
486 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
487 |
|
extention svgexport. |
488 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
489 |
|
svexport over. |
490 |
|
|
491 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
492 |
|
|
493 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
494 |
|
Moved from experimental to stable extension menu. |
495 |
|
|
496 |
|
* Extensions/svgexport/TODO: updated. |
497 |
|
|
498 |
|
|
499 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
500 |
|
|
501 |
|
Added Extensions/svgexport/TODO |
502 |
|
|
503 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
504 |
|
|
505 |
|
Refactored in svgexport: |
506 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
507 |
|
|
508 |
|
* Extensions/svgexport/svgmapwriter.py |
509 |
|
Added verbosity level 3 to print out polygon points. |
510 |
|
(class Point): added __repr__ |
511 |
|
(class Brush, __str__()): Added space after ,. |
512 |
|
(DrawPolygon): Renamed to DrawPath() |
513 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
514 |
|
(DrawLines): Using DrawPath now. |
515 |
|
|
516 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
517 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
518 |
|
inside another list. Adapted test data with a newline before "M". |
519 |
|
|
520 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
521 |
|
|
522 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
523 |
|
code size reduced by 8 lines. |
524 |
|
|
525 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
526 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
527 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
528 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
529 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
530 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
531 |
|
|
532 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
533 |
|
|
534 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
535 |
|
|
536 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
537 |
|
instead of getlocale because getlocale doesn't return a usable |
538 |
|
encoding name on a german windows 2000 |
539 |
|
|
540 |
|
* setup.py: windows build: Removed the absolute path names and |
541 |
|
made all prfixes relative to the directory containing setup.py. |
542 |
|
Makes it a little easier to adapt to a different system. |
543 |
|
|
544 |
2004-12-16 Bernhard Herzog <[email protected]> |
2004-12-16 Bernhard Herzog <[email protected]> |
545 |
|
|
546 |
Add support for PostGIS tables with LINESTRING geomentries. |
Add support for PostGIS tables with LINESTRING geometries. |
547 |
Fixes RT#2299 |
Fixes RT#2299 |
548 |
|
|
549 |
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |