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