1 |
joey |
2555 |
2005-02-06 Martin Schulze <[email protected]> |
2 |
|
|
|
3 |
|
|
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
4 |
|
|
the arguments of the contstructor to fit the global scheme |
5 |
|
|
|
6 |
nhueffme |
2554 |
2005-01-31 Nina Hüffmeyer <[email protected]> |
7 |
|
|
|
8 |
|
|
* Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides |
9 |
|
|
some dialogs needed to start ogr. |
10 |
|
|
|
11 |
|
|
* Extensions/ogr/__init__.py: Changed comments to avoid encoding |
12 |
|
|
warnings. |
13 |
|
|
|
14 |
|
|
* Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid |
15 |
|
|
encoding warnings. |
16 |
|
|
|
17 |
jonathan |
2552 |
2005-01-28 Jonathan Coles <[email protected]> |
18 |
|
|
|
19 |
jonathan |
2553 |
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |
20 |
|
|
mask is packed into a bit array. It's now slightly faster. |
21 |
|
|
|
22 |
|
|
2005-01-28 Jonathan Coles <[email protected]> |
23 |
|
|
|
24 |
jonathan |
2552 |
* Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask |
25 |
|
|
default to true. |
26 |
|
|
|
27 |
|
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove |
28 |
|
|
code that loads the state of the layer's use_mask flag. Its |
29 |
|
|
usefulness is still being debated. |
30 |
|
|
|
31 |
|
|
* Thuban/Model/save.py (SessionSaver.write_layer): Remove |
32 |
|
|
code that saves the state of the layer's use_mask flag. Its |
33 |
|
|
usefulness is still being debated. |
34 |
|
|
|
35 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
36 |
|
|
options to ProjectRasterFile based on the state of layer.UseMask(). |
37 |
|
|
Catch more exceptions from ProjectRasterFile so that Thuban doesn't |
38 |
|
|
quit is there is a problem projecting. |
39 |
|
|
(BaseRenderer.draw_raster_data): Change the documentation to |
40 |
|
|
describe the new format (XBM) that the mask data will be in. |
41 |
|
|
|
42 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask |
43 |
|
|
data is in XBM format when format='RAW' which means it doesn't |
44 |
|
|
need to be converted to a wxImage before being used as a mask |
45 |
|
|
for a wxBitmap. Assume that if format != 'RAW' that the image |
46 |
|
|
data and mask data are in the same format. |
47 |
|
|
|
48 |
|
|
* libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled |
49 |
|
|
and a mask is requested, convert the alpha band to a bit array in |
50 |
|
|
XBM format. if an alpha channel is requested, simply return the |
51 |
|
|
data in the alpha band. Provide better error handling by returning |
52 |
|
|
python error messages (also fixes RT #2947). |
53 |
|
|
(ProjectRasterFile): Support multiple mask options, rather than simply |
54 |
|
|
a flag indicating that a mask should or should not be used. Provide |
55 |
|
|
better error handling by returning python error messages. |
56 |
|
|
|
57 |
|
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
58 |
|
|
Add mask data to test. |
59 |
|
|
|
60 |
|
|
* test/test_layer.py (TestLayer.test_raster_layer): Test that a layer |
61 |
|
|
should use the mask by default. |
62 |
|
|
(TestLayerModificaton.test_raster_layer): Test that a layer should use |
63 |
|
|
the mask by default. |
64 |
|
|
|
65 |
|
|
* test/test_load.py (TestRasterLayer.test): Remove testing for |
66 |
|
|
use_mask flag in file. |
67 |
|
|
|
68 |
|
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing |
69 |
|
|
for use_mask in file. |
70 |
|
|
|
71 |
|
|
* test/test_load_1_0_1.py: Removed. Shouldn't have been checked in. |
72 |
|
|
|
73 |
jonathan |
2551 |
2005-01-26 Jonathan Coles <[email protected]> |
74 |
|
|
|
75 |
|
|
Add a new dialog box for raster layers. The dialog box allows |
76 |
|
|
the user to toggle a mask that is generated by ProjectRasterFile |
77 |
|
|
and is used to only draw the real parts of the projected image. |
78 |
|
|
|
79 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
80 |
|
|
Instruct the warping code to generate a mask if the raster layer |
81 |
|
|
requests one. |
82 |
|
|
(BaseRenderer.draw_raster_data): Removed obsolete optional mask argument. |
83 |
|
|
|
84 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed |
85 |
|
|
obsolete optional mask argument. |
86 |
|
|
|
87 |
|
|
* Thuban/UI/classifier.py (Classifier): Change the parent class |
88 |
|
|
to LayerProperties and rework the code to support layout calls |
89 |
|
|
from the parent. |
90 |
|
|
(Classifier.dialog_layout): New. Layout the dialog box. |
91 |
|
|
(Classifier.map_layers_removed): Removed. Moved to parent class. |
92 |
|
|
(Classifier.map_replaced): Removed. Moved to parent class. |
93 |
|
|
(Classifier._OnTry): Renamed to OnTry to support parent class. |
94 |
|
|
(Classifier.OnClose): Removed. Supplied in parent class. |
95 |
|
|
(Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn. |
96 |
|
|
(Classifier._OnOK): Renamed to OnOK to support parent class. |
97 |
|
|
(Classifier._OnRevert): Renamed to OnRevert to support parent class. |
98 |
|
|
|
99 |
|
|
* Thuban/UI/layerproperties.py: New. Base class for layer properties |
100 |
|
|
dialog boxes. |
101 |
|
|
|
102 |
|
|
* Thuban/UI/rasterlayerproperties.py: New. Class for displaying |
103 |
|
|
raster layer properties. |
104 |
|
|
|
105 |
|
|
* libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code |
106 |
|
|
with the non-simple version supplied with gdal. This allows added |
107 |
|
|
features such as creating an alpha band. |
108 |
|
|
(GetImageData): Generate a mask array from the alpha band that is |
109 |
|
|
generated by gdal if the user has selected it. Try to support images |
110 |
|
|
that have more than three bands, such as images with RGB plus an |
111 |
|
|
alpha band. |
112 |
|
|
(ProjectRasterFile): Convert python argument for mask and tell |
113 |
|
|
gdal to enable or disable an alpha band. |
114 |
|
|
|
115 |
|
|
* Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string |
116 |
|
|
describing what kind of layer the class is. Defaults to "Unknown", |
117 |
|
|
but should be overridden by subclasses. |
118 |
|
|
(Layer.Type): New. Override base class method. |
119 |
|
|
(RasterLayer.__init__): Create a flag for using a mask. Record extra |
120 |
|
|
data from gdal for display in the properties dialog. |
121 |
|
|
(RasterLayer.Type): New. Override base class method. |
122 |
|
|
(RasterLayer.UseMask): New. Returns True if the mask should be used. |
123 |
|
|
(RasterLayer.SetUseMask): New. Set if the mask should be used. |
124 |
|
|
(RasterLayer.ImageInfo): New. Return extra information about the image. |
125 |
|
|
|
126 |
|
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load |
127 |
|
|
the mask information. |
128 |
|
|
|
129 |
|
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save mask information. |
130 |
|
|
|
131 |
|
|
* Thuban/UI/mainwindow.py: Register the RasterLayerProperties and |
132 |
|
|
Classifier classes as dialogs to use with the proper layer types. |
133 |
|
|
|
134 |
|
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
135 |
|
|
Fix test. |
136 |
|
|
|
137 |
|
|
* test/test_layer.py (TestLayer.test_raster_layer): Test new methods. |
138 |
|
|
(TestLayerModification.build_path): New. Support function. |
139 |
|
|
(TestLayerModification.test_raster_layer): New. Test new methods. |
140 |
|
|
|
141 |
|
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask. |
142 |
|
|
|
143 |
|
|
* test/test_load.py (TestRasterLayer): Add tests for mask. |
144 |
|
|
|
145 |
|
|
* test/test_load_1_0_1.py: New. Copied from test_load.py. |
146 |
|
|
|
147 |
|
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed |
148 |
|
|
obsolete optional mask argument. |
149 |
|
|
|
150 |
nhueffme |
2549 |
2005-01-26 Nina Hüffmeyer <[email protected]> |
151 |
|
|
|
152 |
|
|
* Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore |
153 |
|
|
which maps the ids and the ordinals. Fixed RowIdToOrdinal(), |
154 |
|
|
RowOrdinalToId() and ReadRowAsDict(). |
155 |
|
|
|
156 |
|
|
* Extensions/ogr/ogrstart.py: Added menu item which opens database |
157 |
|
|
layers for existing database connections. |
158 |
|
|
|
159 |
|
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string. |
160 |
|
|
|
161 |
|
|
|
162 |
jan |
2548 |
2005-01-26 Jan-Oliver Wagner <[email protected]> |
163 |
|
|
|
164 |
|
|
* Doc/manual/thuban-manual-de.xml: More translations. |
165 |
|
|
|
166 |
bh |
2544 |
2005-01-24 Bernhard Herzog <[email protected]> |
167 |
|
|
|
168 |
|
|
Rework the status bar updates a bit to make sure the message about |
169 |
|
|
the projections is produced at the right times. |
170 |
|
|
|
171 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages): |
172 |
|
|
New class variable with messages that may require a status bar |
173 |
|
|
update. |
174 |
|
|
(MainWindow.view_position_changed) |
175 |
|
|
(MainWindow.update_status_bar): Rename from view_position_changed |
176 |
|
|
to update_status_bar. It's meaning has changed now that it may |
177 |
|
|
also generate messages about problems with projection settings. |
178 |
|
|
(MainWindow.__init__): Use the new update_status_bar_messages |
179 |
|
|
class variable to subscribe update_status_bar |
180 |
|
|
(MainWindow.set_position_text): Update doc-string. This method |
181 |
|
|
has to be renamed at some point. See doc-string and comments. |
182 |
|
|
(MainWindow.OnClose): Unsubscribe update_status_bar from all |
183 |
|
|
messages in update_status_bar_messages |
184 |
|
|
|
185 |
|
|
* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New |
186 |
|
|
class attribute. map messages to be forwarded by the viewport. |
187 |
|
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe |
188 |
|
|
the messages in forwarded_map_messages |
189 |
|
|
|
190 |
bh |
2543 |
2005-01-21 Bernhard Herzog <[email protected]> |
191 |
|
|
|
192 |
|
|
* test/postgissupport.py (PostGISDatabase.__init__): Tweak |
193 |
|
|
doc-string |
194 |
|
|
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a |
195 |
|
|
different name for the initialization SQL file. |
196 |
|
|
|
197 |
jonathan |
2537 |
2005-01-21 Jonathan Coles <[email protected]> |
198 |
jan |
2542 |
|
199 |
|
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
200 |
|
|
a projection and returns a formatted string representing the |
201 |
|
|
parameters to feed to gdalwarp. This function eliminates |
202 |
|
|
redundancy in draw_raster_layer(). |
203 |
|
|
(BaseRenderer.render_map_incrementally): Removed the optimization which |
204 |
|
|
drew the top most raster layer first and then only those vector- |
205 |
|
|
based layers that are above it. With the support for transparency |
206 |
|
|
this optimization breaks correct behaviour. |
207 |
|
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
208 |
|
|
future enhancements to raster layer bounding box. The old behaviour has |
209 |
|
|
not changed. Also, change calling parameters to draw_raster_data() |
210 |
|
|
to specify new RAW data format and mask. |
211 |
|
|
(BaseRenderer.draw_raster_data): Change signature to include an optional |
212 |
|
|
parameter for mask information. Change documentation to mention |
213 |
|
|
support for new parameter and added option for RAW data format. |
214 |
|
|
The data argument is now a list of [width, height, data]. |
215 |
|
|
|
216 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
217 |
|
|
mask parameter. Add new condition for RAW format, which |
218 |
|
|
significantly reduces rendering time. Add condition for |
219 |
|
|
mask parameter. |
220 |
|
|
|
221 |
|
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
222 |
jonathan |
2537 |
data array of RGB values from the projected image returned from |
223 |
|
|
the gdal warping functions. In the case of palette based images, it |
224 |
jan |
2542 |
converts the NO_DATA index to the mask color. |
225 |
|
|
(ProjectRasterFile): Removed all custom memory driver references |
226 |
|
|
and replaced it with the standard in-memory dataset provided |
227 |
|
|
by gdal. The return data is no longer a BMP file, but an array |
228 |
|
|
of RGB values, one set triple per pixel. |
229 |
jonathan |
2537 |
|
230 |
|
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
231 |
|
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
232 |
|
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
233 |
|
|
|
234 |
jan |
2542 |
* setup.py (thuban_build_ext.finalize_options): Removed mention |
235 |
|
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
236 |
|
|
files. These are obsolete with the new version of gdalwarp.cpp |
237 |
|
|
|
238 |
|
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
239 |
|
|
Updated signature. |
240 |
|
|
(TestBaseRenderer.test_raster_no_projection): Changed the test |
241 |
|
|
data to be data in the uncompressed RAW format returned from |
242 |
|
|
ProjectRasterFile. |
243 |
|
|
|
244 |
jan |
2535 |
2005-01-21 Jan-Oliver Wagner <[email protected]> |
245 |
|
|
|
246 |
jan |
2542 |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
247 |
|
|
string available for i18n. |
248 |
jan |
2535 |
|
249 |
russell |
2532 |
2005-01-20 Russell Nelson <[email protected]> |
250 |
|
|
|
251 |
|
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
252 |
russell |
2533 |
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
253 |
|
|
It's the wrong thing to do in the long run, but it's necessary for |
254 |
|
|
those users until that bug is fixed. Otherwise the projection |
255 |
|
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
256 |
|
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
257 |
russell |
2532 |
|
258 |
bernhard |
2531 |
2005-01-20 Bernhard Reiter <[email protected]> |
259 |
|
|
|
260 |
jan |
2542 |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
261 |
|
|
docstring and comment that the warning code here is a hack. |
262 |
bernhard |
2531 |
|
263 |
russell |
2529 |
2005-01-20 Russell Nelson <[email protected]> |
264 |
|
|
|
265 |
jan |
2542 |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
266 |
|
|
user about misprojected layers when their lat/lon bounding |
267 |
russell |
2529 |
box exceeds rational lat/lon values. |
268 |
|
|
|
269 |
bernhard |
2525 |
2005-01-20 Bernhard Reiter <[email protected]> |
270 |
|
|
|
271 |
jan |
2542 |
* Thuban/UI/about.py (unicodeToLocale): Improved: |
272 |
bernhard |
2528 |
Use 'ascii' and then 'replace' for other characters |
273 |
|
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
274 |
jan |
2542 |
|
275 |
bernhard |
2528 |
2005-01-20 Bernhard Reiter <[email protected]> |
276 |
|
|
|
277 |
jan |
2542 |
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
278 |
bernhard |
2527 |
that OnRangeText might be called twice and using None as argument. |
279 |
jan |
2542 |
|
280 |
bernhard |
2527 |
2005-01-20 Bernhard Reiter <[email protected]> |
281 |
|
|
|
282 |
jan |
2542 |
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
283 |
|
|
OnRangeText(0) to work around a different in wx Behaviour noticed |
284 |
|
|
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
285 |
|
|
|
286 |
bernhard |
2526 |
2005-01-20 Bernhard Reiter <[email protected]> |
287 |
|
|
|
288 |
|
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
289 |
bernhard |
2525 |
None. (Fixes rt#2910.) |
290 |
|
|
|
291 |
frank |
2524 |
2005-01-18 Frank Koormann <[email protected]> |
292 |
|
|
|
293 |
|
|
New Extension: mouseposition |
294 |
|
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
295 |
|
|
|
296 |
|
|
* Extensions/mouseposition/__init__.py: New, extension registration |
297 |
|
|
|
298 |
|
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
299 |
|
|
dialog and adds a tool to Thuban mainwindow. |
300 |
|
|
|
301 |
|
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
302 |
|
|
|
303 |
jan |
2522 |
2005-01-14 Jan-Oliver Wagner <[email protected]> |
304 |
|
|
|
305 |
|
|
* Doc/manual/thuban-manual-de.xml: More translations. |
306 |
|
|
|
307 |
frank |
2520 |
2005-01-11 Frank Koormann <[email protected]> |
308 |
|
|
|
309 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
310 |
|
|
Fix indention bug. |
311 |
|
|
|
312 |
frank |
2517 |
2005-01-09 Frank Koormann <[email protected]> |
313 |
|
|
|
314 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
315 |
frank |
2520 |
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
316 |
frank |
2517 |
is not part of the layers Classification. |
317 |
|
|
|
318 |
frank |
2515 |
2005-01-03 Frank Koormann <[email protected]> |
319 |
|
|
|
320 |
frank |
2517 |
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
321 |
|
|
BugFix 2883: Former implementation only worked on classified point |
322 |
|
|
layers: KeyError was raised, now use the default size if field is None. |
323 |
frank |
2515 |
|
324 |
bernhard |
2513 |
2004-12-27 Bernhard Reiter <[email protected]> |
325 |
|
|
|
326 |
|
|
svgexport 1.0.0cvs: Fixed label export. |
327 |
|
|
|
328 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
329 |
|
|
class TestSVGRenderer(): New class; new test test_label_font(). |
330 |
|
|
|
331 |
|
|
* Extensions/svgexport/svgmapwriter.py |
332 |
|
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
333 |
|
|
makes test_label_font happy. |
334 |
|
|
|
335 |
|
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
336 |
|
|
Added item for options. |
337 |
|
|
|
338 |
|
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
339 |
|
|
|
340 |
russell |
2511 |
2004-12-27 Russell Nelson <[email protected]> |
341 |
|
|
|
342 |
jan |
2512 |
Middle mouse button pans. |
343 |
russell |
2511 |
|
344 |
jan |
2512 |
* Thuban/UI/view.py (MapCanvas.__init__): Subscribe also |
345 |
|
|
OnMiddleDown and OnMiddleUp events. |
346 |
|
|
(MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the |
347 |
|
|
previously used tool. |
348 |
|
|
(MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before |
349 |
|
|
pressing the middle mouse button. |
350 |
|
|
|
351 |
jan |
2509 |
2004-12-27 Jan-Oliver Wagner <[email protected]> |
352 |
|
|
|
353 |
|
|
* Doc/manual/thuban-manual-de.xml: More translations. |
354 |
|
|
|
355 |
jan |
2506 |
2004-12-23 Jan-Oliver Wagner <[email protected]> |
356 |
|
|
|
357 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a |
358 |
|
|
\n to stderr after the warnings. Thanks to Russell Nelson. |
359 |
|
|
|
360 |
nhueffme |
2493 |
2004-12-20 Nina Hueffmeyer <[email protected]> |
361 |
|
|
|
362 |
|
|
* Extensions/ogr/ogrshapes.py: Fixed some issues from |
363 |
|
|
Bernhard (coding guidelines etc.). Additionally it is now possible to |
364 |
|
|
display shapefiles containing feature collections (e.g.polygons |
365 |
|
|
with holes). Works with gdal 1.2.1 now. |
366 |
|
|
|
367 |
|
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues |
368 |
|
|
from Bernhard (coding guidelines etc.). If ogr can't be imported, |
369 |
|
|
tests are skipped now. |
370 |
|
|
|
371 |
|
|
* Extensions/ogr/ogrstart.py: Fixed some typings. |
372 |
|
|
|
373 |
bernhard |
2490 |
2004-12-20 Bernhard Reiter <[email protected]> |
374 |
|
|
|
375 |
|
|
* Extensions/svgexport/TODO: updated to add support for |
376 |
|
|
raster layers and labels for 1.0.1. |
377 |
|
|
|
378 |
|
|
* Extensions/svgexport/svgmapwriter.py (draw_raster_layer): |
379 |
|
|
Issue a warning now. |
380 |
|
|
|
381 |
bernhard |
2488 |
2004-12-19 Bernhard Reiter <[email protected]> |
382 |
|
|
|
383 |
bernhard |
2489 |
* Extensions/svgexport/TODO: Added idea to support triggering |
384 |
|
|
the application down the pipe. |
385 |
|
|
|
386 |
|
|
2004-12-19 Bernhard Reiter <[email protected]> |
387 |
|
|
|
388 |
bernhard |
2488 |
svgexport: Improved code quality, mainly by better naming. |
389 |
|
|
|
390 |
|
|
* Extensions/svgexport/svgmapwriter.py: |
391 |
|
|
DrawPath() renamed to DrawPolygonPath(), |
392 |
|
|
added documentation, improved comments and variable names. |
393 |
|
|
|
394 |
|
|
* Extensions/svgexport/svgmapwriter.py, |
395 |
|
|
Extensions/svgexport/test/test_svgmapwriter.py: |
396 |
|
|
All using DrawPolygonPath() now, the default parameter closed=True |
397 |
|
|
omitted. |
398 |
|
|
|
399 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
400 |
|
|
renamed test_polygon_opened() to test_polyline() |
401 |
|
|
renamed test_transparent_polygon() to test_transparent_polyline() |
402 |
|
|
|
403 |
jan |
2487 |
2004-12-18 Jan-Oliver Wagner <[email protected]> |
404 |
|
|
|
405 |
|
|
Some fixes of gns2shp extension. |
406 |
|
|
|
407 |
|
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
408 |
|
|
package. |
409 |
|
|
|
410 |
|
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
411 |
|
|
dynamically. |
412 |
|
|
|
413 |
|
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
414 |
|
|
|
415 |
|
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
416 |
|
|
fixed some dimensions of fields according to the GNS documentation |
417 |
|
|
which seems to change undocumented. |
418 |
|
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
419 |
|
|
This fixes RT#2453. |
420 |
|
|
|
421 |
bernhard |
2479 |
2004-12-18 Bernhard Reiter <[email protected]> |
422 |
bernhard |
2480 |
|
423 |
bernhard |
2482 |
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
424 |
|
|
|
425 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
426 |
|
|
Added new tests: test_export_polygon_with_hole() |
427 |
|
|
and test_polygon_with_hole(). |
428 |
|
|
|
429 |
|
|
* Extensions/svgexport/svgmapwriter.py |
430 |
|
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
431 |
|
|
|
432 |
|
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
433 |
|
|
extention svgexport. |
434 |
|
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
435 |
|
|
svexport over. |
436 |
|
|
|
437 |
jan |
2509 |
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
438 |
bernhard |
2482 |
|
439 |
|
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
440 |
|
|
Moved from experimental to stable extension menu. |
441 |
|
|
|
442 |
|
|
* Extensions/svgexport/TODO: updated. |
443 |
|
|
|
444 |
|
|
|
445 |
|
|
2004-12-18 Bernhard Reiter <[email protected]> |
446 |
|
|
|
447 |
bernhard |
2481 |
Added Extensions/svgexport/TODO |
448 |
|
|
|
449 |
|
|
2004-12-18 Bernhard Reiter <[email protected]> |
450 |
|
|
|
451 |
bernhard |
2480 |
Refactored in svgexport: |
452 |
|
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
453 |
|
|
|
454 |
|
|
* Extensions/svgexport/svgmapwriter.py |
455 |
|
|
Added verbosity level 3 to print out polygon points. |
456 |
|
|
(class Point): added __repr__ |
457 |
|
|
(class Brush, __str__()): Added space after ,. |
458 |
|
|
(DrawPolygon): Renamed to DrawPath() |
459 |
|
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
460 |
|
|
(DrawLines): Using DrawPath now. |
461 |
|
|
|
462 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
463 |
|
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
464 |
|
|
inside another list. Adapted test data with a newline before "M". |
465 |
|
|
|
466 |
|
|
2004-12-18 Bernhard Reiter <[email protected]> |
467 |
bernhard |
2479 |
|
468 |
|
|
Refactored svgexport tests: 9 double tests runs eliminated; |
469 |
|
|
code size reduced by 8 lines. |
470 |
|
|
|
471 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
472 |
|
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
473 |
|
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
474 |
|
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
475 |
|
|
this fixed the double running of the nine tests of TestVirtualDC. |
476 |
|
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
477 |
|
|
|
478 |
bh |
2478 |
2004-12-17 Bernhard Herzog <[email protected]> |
479 |
|
|
|
480 |
|
|
Two windows specific fixes ported from thuban-10-branch: |
481 |
|
|
|
482 |
|
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
483 |
|
|
instead of getlocale because getlocale doesn't return a usable |
484 |
|
|
encoding name on a german windows 2000 |
485 |
|
|
|
486 |
|
|
* setup.py: windows build: Removed the absolute path names and |
487 |
|
|
made all prfixes relative to the directory containing setup.py. |
488 |
|
|
Makes it a little easier to adapt to a different system. |
489 |
|
|
|
490 |
bh |
2470 |
2004-12-16 Bernhard Herzog <[email protected]> |
491 |
|
|
|
492 |
bernhard |
2479 |
Add support for PostGIS tables with LINESTRING geometries. |
493 |
bh |
2472 |
Fixes RT#2299 |
494 |
|
|
|
495 |
|
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
496 |
|
|
|
497 |
|
|
* test/postgissupport.py |
498 |
|
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
499 |
|
|
table to "roads-multi" because it now uses MULTILINESTRING |
500 |
|
|
geometries and introduce a new "roads" table that uses LINESTRING |
501 |
|
|
(coords_to_multilinestring): Make the doc string more precise |
502 |
|
|
(coords_to_linestring): New. Create a LINESTRING WKT |
503 |
|
|
representatin |
504 |
|
|
(wkt_converter): Add coords_to_linestring |
505 |
|
|
(upload_shapefile): Rephrase the doc-string a bit. |
506 |
|
|
|
507 |
|
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
508 |
|
|
(LineStringTests) |
509 |
|
|
(TestPostGISShapestoreLineString) |
510 |
|
|
(TestPostGISShapestoreMultiLineString): Split |
511 |
|
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
512 |
|
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
513 |
|
|
geometries and TestPostGISShapestoreMultiLineString for |
514 |
|
|
MULTILINESTRING geometries. Most test methods are in the base |
515 |
|
|
class with the exception of tests that explicitly check the raw |
516 |
|
|
format. |
517 |
|
|
|
518 |
|
|
2004-12-16 Bernhard Herzog <[email protected]> |
519 |
|
|
|
520 |
bh |
2471 |
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
521 |
|
|
|
522 |
|
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
523 |
|
|
versions put the postgis.sql file into slightly different places |
524 |
|
|
so we have to look in both. The updated doc string describes this |
525 |
|
|
is more detail. |
526 |
|
|
|
527 |
|
|
* test/test_postgis_db.py |
528 |
|
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
529 |
|
|
value of UniqueValues is unsorted, so it has to be sorted for |
530 |
|
|
comparison. |
531 |
|
|
|
532 |
|
|
2004-12-16 Bernhard Herzog <[email protected]> |
533 |
|
|
|
534 |
bh |
2470 |
Fix for RT#2237 |
535 |
|
|
|
536 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
537 |
|
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
538 |
|
|
buttons. Otherwise enable them. |
539 |
|
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
540 |
|
|
the parameters. In that case __GetProjection also returns None |
541 |
|
|
now. |
542 |
|
|
|
543 |
bh |
2459 |
2004-12-15 Bernhard Herzog <[email protected]> |
544 |
|
|
|
545 |
bh |
2462 |
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
546 |
|
|
minimum number of classes to 2. The calculate_quantiles needs at |
547 |
|
|
least two and raises an exception otherwise. |
548 |
|
|
Fixes RT#2549 |
549 |
|
|
|
550 |
|
|
2004-12-15 Bernhard Herzog <[email protected]> |
551 |
|
|
|
552 |
bh |
2460 |
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
553 |
|
|
so that it returns a result for select statements. |
554 |
|
|
(PostgreSQLServer.server_version): New. Return the version of the |
555 |
|
|
server software. |
556 |
|
|
(PostgreSQLServer.require_authentication): The format of |
557 |
|
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
558 |
|
|
server version and generate the file in the correct format |
559 |
|
|
|
560 |
|
|
2004-12-15 Bernhard Herzog <[email protected]> |
561 |
|
|
|
562 |
bh |
2459 |
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
563 |
|
|
in the doc string and rephrase it a little. |
564 |
|
|
|
565 |
frank |
2457 |
2004-12-15 Frank Koormann <[email protected]> |
566 |
|
|
|
567 |
|
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
568 |
|
|
session has been loaded successfully. The check is called by the relevant |
569 |
|
|
tests after executing load_session(). |
570 |
|
|
|
571 |
bh |
2450 |
2004-12-13 Bernhard Herzog <[email protected]> |
572 |
|
|
|
573 |
bh |
2454 |
Make sure the region used to determine which shapes are visible |
574 |
|
|
actually matches the region on the printed page. If this isn't |
575 |
|
|
done properly some shapes might not be printed. |
576 |
|
|
Fixes RT #2692 |
577 |
|
|
|
578 |
|
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
579 |
|
|
renderer has to be at the same position as the mapregion |
580 |
|
|
|
581 |
|
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
582 |
|
|
has to be moved by (self.shiftx, self.shifty) too. |
583 |
|
|
|
584 |
|
|
2004-12-13 Bernhard Herzog <[email protected]> |
585 |
|
|
|
586 |
bh |
2452 |
* libraries/pyprojection/Projection.i: Work around a bug in the |
587 |
|
|
generated python code which leads to exception in the __del__ |
588 |
|
|
method when the constructor fails. See the comments in the code |
589 |
|
|
for more details. |
590 |
|
|
|
591 |
|
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
592 |
|
|
with SWIG. |
593 |
|
|
|
594 |
|
|
2004-12-13 Bernhard Herzog <[email protected]> |
595 |
|
|
|
596 |
bh |
2451 |
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
597 |
|
|
(TestAltPath.test_02_path_error_fix_from_list) |
598 |
|
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
599 |
|
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
600 |
|
|
is destroyed in tearDown, so there's no need to do it in a test |
601 |
|
|
case. |
602 |
|
|
|
603 |
|
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
604 |
|
|
debug print |
605 |
|
|
|
606 |
|
|
2004-12-13 Bernhard Herzog <[email protected]> |
607 |
|
|
|
608 |
bh |
2450 |
* Extensions/svgexport/test/test_svgmapwriter.py |
609 |
|
|
(TestDrawSplines.setUp): Do not use super with the unittest |
610 |
|
|
classes because in Python 2.2 they're still old-style classes. |
611 |
|
|
|
612 |
frank |
2448 |
2004-12-13 Frank Koormann <[email protected]> |
613 |
|
|
|
614 |
|
|
Alternative Path feature: When loading a (moved) session where |
615 |
|
|
shapefiles cannot be found, ask the user. Use the specified path |
616 |
|
|
if further shapefiles are missing. However, ask the usr for confirmation |
617 |
|
|
in such cases. |
618 |
|
|
|
619 |
|
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
620 |
|
|
in load_session() |
621 |
|
|
(Shapefile_CallBack): Helper, implements controllable callback. |
622 |
|
|
|
623 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
624 |
|
|
Added "alt_path" to self.path |
625 |
|
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
626 |
|
|
callback similar to db_connection_callback. |
627 |
|
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
628 |
|
|
shapefile_callback. In addition to raising the dialog the control of |
629 |
|
|
self.path('alt_path') is implemented here. |
630 |
|
|
|
631 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
632 |
|
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
633 |
|
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
634 |
|
|
formerly used in start_fileshapesource()/start_layer(). |
635 |
|
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
636 |
|
|
(SessionLoader.start_layer): Call open_shapefile(). |
637 |
|
|
(load_session): Added shapefile_callback. |
638 |
|
|
|
639 |
|
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
640 |
|
|
feature (search / check). |
641 |
|
|
|
642 |
|
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
643 |
|
|
|
644 |
bernhard |
2443 |
2004-12-11 Bernhard Reiter <[email protected]> |
645 |
|
|
|
646 |
bernhard |
2445 |
svgexport 0.9.2: Point size supports for maps. |
647 |
|
|
|
648 |
|
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
649 |
|
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
650 |
|
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
651 |
|
|
Added draw_func call with size when dealing with a point layer. |
652 |
|
|
|
653 |
|
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
654 |
|
|
|
655 |
|
|
2004-12-11 Bernhard Reiter <[email protected]> |
656 |
|
|
|
657 |
bernhard |
2444 |
Made sure that newlines are inserted in the svg path d attributes |
658 |
|
|
to raise the chance that the line length will be below 255 characters, |
659 |
|
|
as recommended by REC SVG 1.1 in section 8.3.1. |
660 |
|
|
|
661 |
|
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
662 |
|
|
Adding \n before L's and changed whitespace handling. |
663 |
|
|
|
664 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
665 |
|
|
Adapted tests to new whitespace handling of DrawPolygon. |
666 |
|
|
|
667 |
|
|
2004-12-11 Bernhard Reiter <[email protected]> |
668 |
|
|
|
669 |
bernhard |
2443 |
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
670 |
|
|
|
671 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
672 |
|
|
Removed test_drawbezier in favour of new test_drawspline3 and |
673 |
|
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
674 |
|
|
All only to test DrawSpline. |
675 |
|
|
|
676 |
|
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
677 |
|
|
New implementation now really using the strange algorithm of |
678 |
|
|
xfig 3.1's approximated splines and its conversion to postscript |
679 |
|
|
with one twist: SVG can do quadratic beziers, so skipped translation |
680 |
|
|
to cubic beziers. |
681 |
|
|
(TestWithDC): Typo in comment fixed. |
682 |
|
|
|
683 |
joey |
2442 |
2004-12-09 Martin Schulze <[email protected]> |
684 |
|
|
|
685 |
|
|
* Thuban/Model/classgen.py: Added missing character encoding |
686 |
|
|
|
687 |
|
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
688 |
|
|
|
689 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
690 |
|
|
support for get_srs_discrepancies() since there are no |
691 |
|
|
discrepancies anymore (was a thinko) |
692 |
|
|
|
693 |
|
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
694 |
|
|
format priority now that more formats are supported globally by |
695 |
|
|
the render engine. |
696 |
|
|
|
697 |
silke |
2437 |
2004-12-08 Silke Reimer <[email protected]> |
698 |
|
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
699 |
|
|
because it is not available in all versions of ogr |
700 |
|
|
|
701 |
bernhard |
2436 |
2004-12-08 Bernhard Reiter <[email protected]> |
702 |
|
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
703 |
|
|
global tests until a real one is commited. |
704 |
|
|
|
705 |
nhueffme |
2435 |
2004-12-07 Nina Hüffmeyer <[email protected]> |
706 |
|
|
|
707 |
|
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
708 |
|
|
ogr. It is planned to add other vector formats. |
709 |
|
|
|
710 |
|
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
711 |
|
|
|
712 |
jan |
2434 |
2004-12-07 Jan-Oliver Wagner <[email protected]> |
713 |
|
|
|
714 |
|
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
715 |
|
|
part of a (non-)fix to renable that the tests are always |
716 |
|
|
executed. |
717 |
|
|
|
718 |
bernhard |
2432 |
2004-12-07 Bernhard Reiter <[email protected]> |
719 |
|
|
|
720 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
721 |
|
|
Added test_drawbezier() to test DrawSpline(). |
722 |
|
|
|
723 |
|
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
724 |
|
|
Really implemented bezier drawing. |
725 |
|
|
|
726 |
|
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
727 |
|
|
to 0.9.1 because now the legend examples lines styles |
728 |
|
|
will be drawing with beziers. |
729 |
|
|
|
730 |
joey |
2431 |
2004-12-05 Martin Schulze <[email protected]> |
731 |
|
|
|
732 |
|
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
733 |
|
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
734 |
|
|
|
735 |
joey |
2430 |
2004-11-30 Martin Schulze <[email protected]> |
736 |
|
|
|
737 |
|
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
738 |
|
|
Improved the test for the internal compare method |
739 |
|
|
|
740 |
jan |
2429 |
2004-11-27 Jan-Oliver Wagner <[email protected]> |
741 |
|
|
|
742 |
|
|
* Thuban/UI/about.py (About.__init__): Added |
743 |
|
|
Norbert Solymosi for hungarian translation and Ole Rahn |
744 |
|
|
as contrbutor. Moved Bernhard Reiter from Contributor |
745 |
|
|
to Developer. |
746 |
|
|
|
747 |
bernhard |
2425 |
2004-11-27 Bernhard Reiter <[email protected]> |
748 |
|
|
|
749 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
750 |
|
|
Removed Jan from author list as he did not change enough significant |
751 |
|
|
lines yet. |
752 |
|
|
|
753 |
|
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
754 |
|
|
of the Extension. |
755 |
|
|
|
756 |
jan |
2422 |
2004-11-27 Jan-Oliver Wagner <[email protected]> |
757 |
|
|
|
758 |
|
|
* po/hu.po: New. Hungarian translation. Contributed |
759 |
|
|
by Norbert Solymosi. |
760 |
|
|
|
761 |
bh |
2419 |
2004-11-26 Bernhard Herzog <[email protected]> |
762 |
|
|
|
763 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py |
764 |
|
|
(Testobjectexport.test_transparent_polygon): Commented out some |
765 |
|
|
debug prints |
766 |
|
|
|
767 |
jan |
2418 |
2004-11-24 Jan-Oliver Wagner <[email protected]> |
768 |
|
|
|
769 |
|
|
Fix broken tests for svg extension and added svg legend |
770 |
|
|
to Experimental menu. |
771 |
|
|
|
772 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
773 |
|
|
the test run correctly even if the extension is a package. |
774 |
|
|
Also removed the "import Thuban" which makes no sense. |
775 |
|
|
|
776 |
|
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
777 |
|
|
test module also be executed from the global test routine. |
778 |
|
|
This is done by looking for the absense of the DISPLAY variable. |
779 |
|
|
|
780 |
|
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
781 |
|
|
to Experimental menu since this module has yet not reached a stable |
782 |
|
|
status (ie. 1.0). |
783 |
|
|
|
784 |
bernhard |
2414 |
2004-11-22 Bernhard Reiter <[email protected]> |
785 |
|
|
|
786 |
|
|
* Extensions/svgexport/svgmapwriter.py: |
787 |
|
|
Added verbose variable and some logging depending on it. |
788 |
|
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
789 |
|
|
because counting i is not necessary. |
790 |
|
|
(class Pen, class Brush): Added simple __str__ methods. |
791 |
|
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
792 |
|
|
not exported to svg file) Note: holes still unhandled. |
793 |
|
|
|
794 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
795 |
|
|
Made a baseclass TestWithDC for test needed a DC. |
796 |
|
|
Added tests for bug #2698 (transparent polygons are not |
797 |
|
|
exported to svg file): |
798 |
|
|
Testobjectexport.test_transparent_polygon() |
799 |
|
|
|
800 |
|
|
* Thuban/Model/base.py (UnsetModified): |
801 |
|
|
Fixed some typos in docstring. |
802 |
|
|
|
803 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
804 |
|
|
Added hints on the used algorithm for handling holes. |
805 |
|
|
|
806 |
jan |
2403 |
2004-11-20 Jan-Oliver Wagner <[email protected]> |
807 |
|
|
|
808 |
jan |
2412 |
Some face lifting for the examples. |
809 |
|
|
|
810 |
|
|
* Examples/__init__.py: Make this directory a package. |
811 |
|
|
|
812 |
|
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
813 |
|
|
|
814 |
|
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
815 |
|
|
menu to Examples menu. |
816 |
|
|
|
817 |
|
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
818 |
|
|
minor changes. |
819 |
|
|
|
820 |
|
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
821 |
|
|
|
822 |
|
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
823 |
|
|
|
824 |
jan |
2407 |
Changed way of extension registry for wms and added extension |
825 |
|
|
registry for umn_mapserver extension. |
826 |
|
|
|
827 |
|
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
828 |
|
|
of the actual wms module. Included a test for the required PyOGCLib. |
829 |
|
|
|
830 |
|
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
831 |
|
|
|
832 |
|
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
833 |
|
|
importing of the actual umn mapserver management modules. |
834 |
|
|
Included a test for the required Python MapScript. |
835 |
|
|
|
836 |
|
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
837 |
|
|
|
838 |
jan |
2403 |
Changed way of extension registry for importAPR, bboxdump |
839 |
|
|
and added extension registry for svgexport.extension registry for |
840 |
|
|
svgexport. |
841 |
|
|
|
842 |
|
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
843 |
|
|
of the actual importAPR module. |
844 |
|
|
|
845 |
|
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
846 |
|
|
__init__.py). |
847 |
|
|
|
848 |
|
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
849 |
|
|
»···of the actual bboxdump module. |
850 |
|
|
|
851 |
|
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
852 |
|
|
»···__init__.py). |
853 |
|
|
|
854 |
|
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
855 |
|
|
of the svgsaver module. |
856 |
|
|
|
857 |
|
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
858 |
|
|
to Experimental menu since this module has yet not reached a stable |
859 |
|
|
status (ie. 1.0). |
860 |
|
|
|
861 |
jan |
2397 |
2004-11-18 Jan-Oliver Wagner <[email protected]> |
862 |
|
|
|
863 |
|
|
Now the hit test considers the size of point symbols. |
864 |
|
|
|
865 |
|
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
866 |
|
|
'size' defaulting to the previously fixed value 5. |
867 |
|
|
Extended doc-string. |
868 |
|
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
869 |
|
|
for symbols. |
870 |
|
|
Now the size of the largest point symbol is determined to find out |
871 |
|
|
about whether the point has been hit. |
872 |
|
|
This fixes the problem that only clicks inside a fixed distance of |
873 |
|
|
5 where found. |
874 |
|
|
|
875 |
jan |
2395 |
2004-11-17 Jan-Oliver Wagner <[email protected]> |
876 |
|
|
|
877 |
jan |
2397 |
Another open issue fixed regarding sizeable symbols: correct rendering of |
878 |
jan |
2395 |
selected symbols. |
879 |
|
|
|
880 |
|
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
881 |
|
|
Added consideration of the specific size of point symbols. |
882 |
|
|
The property for each point symbol is retrieved and the size applied |
883 |
|
|
for the rendering method. |
884 |
|
|
Added doc-string. |
885 |
|
|
|
886 |
jan |
2393 |
2004-11-16 Jan-Oliver Wagner <[email protected]> |
887 |
|
|
|
888 |
|
|
Changed way of Extension Registry for gns2shp and profiling. |
889 |
|
|
|
890 |
|
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
891 |
|
|
__init__.py). |
892 |
|
|
|
893 |
|
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
894 |
|
|
of the actual gns2shp module. |
895 |
|
|
|
896 |
|
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
897 |
|
|
__init__.py). |
898 |
|
|
|
899 |
|
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
900 |
|
|
of the actual profiling module. |
901 |
|
|
|
902 |
bernhard |
2388 |
2004-10-28 Bernhard Reiter <[email protected]> |
903 |
|
|
|
904 |
|
|
* Extensions/svgexport/: Minor improvements to doc strings. |
905 |
|
|
|
906 |
jan |
2387 |
2004-10-07 Jan-Oliver Wagner <[email protected]> |
907 |
|
|
|
908 |
|
|
Further elements for sizable point objects now |
909 |
|
|
making this feature usable though not yet complete. |
910 |
|
|
|
911 |
|
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
912 |
|
|
attribute 'size' for cldata when the shape layer is of point type. |
913 |
|
|
This also now make the test_load.py tests happy. |
914 |
|
|
|
915 |
|
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
916 |
|
|
gradient. |
917 |
|
|
|
918 |
|
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
919 |
|
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
920 |
|
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
921 |
|
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
922 |
|
|
(SelectPropertiesDialog.__init__): Added a second spin control |
923 |
|
|
for the size in case the corresponding layer is of point type. |
924 |
|
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
925 |
|
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
926 |
|
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
927 |
|
|
and refresh preview. |
928 |
|
|
|
929 |
|
|
|
930 |
|
|
|
931 |
joey |
2381 |
2004-10-04 Martin Schulze <[email protected]> |
932 |
|
|
|
933 |
|
|
* Extensions/wms/test/test_parser.py |
934 |
|
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
935 |
|
|
self-test for compareLists() |
936 |
|
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
937 |
|
|
self-test for compareDicts() |
938 |
joey |
2382 |
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
939 |
|
|
to verify the test routine fails with non-equal arguments |
940 |
|
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
941 |
|
|
to verify the test routine fails with non-equal arguments |
942 |
joey |
2381 |
|
943 |
jan |
2370 |
2004-10-03 Jan-Oliver Wagner <[email protected]> |
944 |
|
|
|
945 |
jan |
2380 |
First elements for sizeable point objects. |
946 |
|
|
|
947 |
|
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
948 |
|
|
|
949 |
|
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
950 |
|
|
|
951 |
|
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
952 |
|
|
of a corresponding argument is given. |
953 |
|
|
(TestSymbolSize): New. Test the size attribute of cldata. |
954 |
|
|
|
955 |
|
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
956 |
|
|
(ClassGroupProperties.__init__): Set default size. |
957 |
|
|
(ClassGroupProperties.SetProperties): Set the size. |
958 |
|
|
(ClassGroupProperties.GetSize): New. Return the size. |
959 |
|
|
(ClassGroupProperties.SetSize): New. Set the size. |
960 |
|
|
(ClassGroupProperties__eq__): Compare also size. |
961 |
|
|
(ClassGroupProperties__repr__): Print also size. |
962 |
|
|
|
963 |
|
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
964 |
|
|
the size attribute. |
965 |
|
|
|
966 |
|
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
967 |
|
|
Also, now there is a return value that indicates whether the drawing |
968 |
|
|
size exceeded the given rect extent and if so the new extent. |
969 |
|
|
Finally, point objects are drawn depending on the size. If either |
970 |
|
|
the width or height is exceeded, the new extent is returned. |
971 |
|
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
972 |
|
|
evaluate the return value and, if not None, adapt the grid widget size |
973 |
|
|
accordingly and redraw again. |
974 |
|
|
|
975 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
976 |
|
|
If the draw function is for points, call it with the size as additional |
977 |
|
|
parameter. |
978 |
|
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
979 |
|
|
the size. Compute the radius using the size. |
980 |
|
|
|
981 |
|
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
982 |
|
|
that Thuban supports size, apply this correctly. |
983 |
|
|
|
984 |
|
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
985 |
|
|
|
986 |
|
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
987 |
|
|
|
988 |
jan |
2370 |
* Doc/manual/thuban-manual-de.xml: Started translation of |
989 |
|
|
Map chapter. |
990 |
|
|
|
991 |
joey |
2368 |
2004-10-01 Martin Schulze <[email protected]> |
992 |
|
|
|
993 |
|
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
994 |
|
|
argument for general use through properties-dialog selector |
995 |
|
|
|
996 |
|
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
997 |
|
|
both provided layer classes/types. |
998 |
|
|
|
999 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
1000 |
|
|
map can be retrieved through the parent which is passed to the |
1001 |
|
|
constructor anyway and doesn't require an argument of its own, |
1002 |
|
|
required for the unification of arguments for general use through |
1003 |
|
|
properties-dialog selector. |
1004 |
|
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
1005 |
|
|
whether a dialog is already opened (and raising it to the users |
1006 |
|
|
attention) and creating a new dialog into a function of its own |
1007 |
|
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
1008 |
|
|
method |
1009 |
|
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
1010 |
|
|
global registration of properties dialog classes (which are indeed |
1011 |
|
|
layer-specific). |
1012 |
|
|
|
1013 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
1014 |
|
|
for general use through properties-dialog selector, the map can be |
1015 |
|
|
retrieved through the parent and doesn't require an argument of |
1016 |
|
|
its own. |
1017 |
|
|
|
1018 |
|
|
* Extensions/wms/wms.py: Register the properties dialog class for |
1019 |
|
|
the provided WMS layer |
1020 |
|
|
|
1021 |
jan |
2358 |
2004-09-28 Jan-Oliver Wagner <[email protected]> |
1022 |
|
|
|
1023 |
|
|
New feature: Registry for Extensions. |
1024 |
|
|
|
1025 |
|
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
1026 |
|
|
Extensions. |
1027 |
|
|
|
1028 |
|
|
* Thuban/UI/about.py (About.__init__): Added description |
1029 |
|
|
of the registered extensions with all of the information. |
1030 |
|
|
|
1031 |
|
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
1032 |
|
|
|
1033 |
|
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
1034 |
|
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
1035 |
|
|
Extensions/wms/wms.py: Added registration of the extension. |
1036 |
|
|
|
1037 |
bernhard |
2352 |
2004-09-27 Bernhard Reiter <[email protected]> |
1038 |
|
|
|
1039 |
|
|
More fixes to svgexport to make used ids unique and |
1040 |
|
|
conforming to XML's Name production. |
1041 |
|
|
|
1042 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
1043 |
|
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
1044 |
|
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
1045 |
|
|
Added Bernhard R. as author. |
1046 |
|
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
1047 |
|
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
1048 |
|
|
Also transform second id part with "%d" and catch the TypeError |
1049 |
|
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
1050 |
|
|
Corrected typo inBernhard's author line. |
1051 |
|
|
(SetBaseID): Return the transformed base id. Transform characters |
1052 |
|
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
1053 |
|
|
import binascii. If to be set string starts with "xml" or so, add "t". |
1054 |
|
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
1055 |
|
|
for used_baseids checks. |
1056 |
|
|
|
1057 |
bh |
2351 |
2004-09-25 Bernhard Herzog <[email protected]> |
1058 |
|
|
|
1059 |
|
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
1060 |
|
|
Remove a debug print and some tab characters. |
1061 |
|
|
|
1062 |
bernhard |
2350 |
2004-09-25 Bernhard Reiter <[email protected]> |
1063 |
|
|
|
1064 |
|
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
1065 |
|
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
1066 |
|
|
the interaction of the three functions and the XML id contrains. |
1067 |
|
|
|
1068 |
bernhard |
2352 |
|
1069 |
jan |
2346 |
2004-09-23 Jan-Oliver Wagner <[email protected]> |
1070 |
|
|
|
1071 |
jan |
2349 |
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
1072 |
|
|
Module. |
1073 |
|
|
|
1074 |
|
|
* Doc/README: Added info on ThubanModel.xmi. |
1075 |
|
|
|
1076 |
|
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
1077 |
|
|
|
1078 |
jan |
2346 |
* Doc/README: New. Some info about how to generate technical |
1079 |
|
|
documentation from the source code. |
1080 |
|
|
This text was send to the Thuban developer mailing list on |
1081 |
|
|
September 21st 2004 by Bernhard Reiter. |
1082 |
|
|
|
1083 |
bernhard |
2344 |
2004-09-21 Bernhard Reiter <[email protected]> |
1084 |
|
|
|
1085 |
|
|
Improved the svgexport to only use unique ids. Will issues |
1086 |
|
|
an error message dialoge when two layer names are the same. |
1087 |
|
|
ShapeIDs are now added with a dash within the svg ids. |
1088 |
|
|
|
1089 |
|
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
1090 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
1091 |
|
|
(TestSVGRenderer): New test class with test_make_in() and |
1092 |
|
|
test_check_for_layer_name_clash() |
1093 |
|
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
1094 |
|
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
1095 |
|
|
satisfying test_check_for_layer_name_clash() |
1096 |
|
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
1097 |
|
|
test_make_in(). |
1098 |
|
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
1099 |
|
|
and wxICON_HAND. |
1100 |
|
|
(write_to_svg): Put dc and rendering in a try statement and on |
1101 |
|
|
catching SVGmapWriterError notify the user and delete the target file. |
1102 |
|
|
|
1103 |
bernhard |
2343 |
2004-09-20 Bernhard Reiter <[email protected]> |
1104 |
|
|
|
1105 |
|
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
1106 |
|
|
|
1107 |
jschuengel |
2342 |
2004-09-03 Jan Schüngel <[email protected]> |
1108 |
|
|
|
1109 |
|
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
1110 |
|
|
small bug with the line color. Now the line color will now only set |
1111 |
|
|
if it is set in Thuban an not Transparent. |
1112 |
|
|
|
1113 |
|
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
1114 |
|
|
deleting the layers from mapfile. Now all layers will delete backwards |
1115 |
|
|
from the last. |
1116 |
|
|
|
1117 |
silke |
2339 |
2004-08-20 Silke Reimer <[email protected]> |
1118 |
silke |
2338 |
|
1119 |
silke |
2339 |
* Thuban/Model/layer.py: |
1120 |
|
|
Fixes bug in projection handling: Otherwise very large region might not |
1121 |
|
|
have valid values in the layer's projection. |
1122 |
|
|
|
1123 |
|
|
2004-08-20 Silke Reimer <[email protected]> |
1124 |
|
|
|
1125 |
silke |
2338 |
* Thuban/UI/about.py: |
1126 |
|
|
small changes to be consistent with coding style. |
1127 |
|
|
|
1128 |
joey |
2337 |
2004-08-13 Martin Schulze <[email protected]> |
1129 |
|
|
|
1130 |
|
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
1131 |
|
|
Adjusted a comment |
1132 |
|
|
|
1133 |
silke |
2335 |
2004-08-11 Silke Reimer <[email protected]> |
1134 |
silke |
2334 |
|
1135 |
silke |
2335 |
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
1136 |
|
|
too many and too enhanced imports of locale |
1137 |
|
|
|
1138 |
silke |
2334 |
2004-08-10 Silke Reimer <[email protected]> |
1139 |
|
|
|
1140 |
|
|
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
1141 |
silke |
2339 |
function unicodeToLocale() to convert special characters to users |
1142 |
|
|
locale encoding |
1143 |
silke |
2334 |
|
1144 |
jan |
2333 |
2004-08-10 Jan-Oliver Wagner <[email protected]> |
1145 |
|
|
|
1146 |
|
|
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |
1147 |
|
|
lower case letter' |
1148 |
|
|
|
1149 |
jschuengel |
2331 |
2004-08-09 Jan Schüngel <[email protected]> |
1150 |
|
|
|
1151 |
|
|
* ChangeLog: Rewrite the last ChangeLog entry to follow |
1152 |
|
|
the standard way. |
1153 |
|
|
|
1154 |
|
|
* Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to |
1155 |
|
|
the function where it is needed, because it don't works if it stands |
1156 |
|
|
at the beginning. |
1157 |
|
|
(MF_Layer.__init__): Removed the extra numclassed variable. Now |
1158 |
|
|
numclasses from the mapscript will be used. |
1159 |
|
|
(MF_Layer.get_index): New. Return the index of the layer in mapfile. |
1160 |
|
|
(MF_Layer.set_classes): New. A Classlist will be set to the layer. |
1161 |
|
|
(MF_Layer.set_metadata): New. A Metadata mapscript object will set. |
1162 |
|
|
(MF_Layer.remove_allclasses): New. All class of the layer will remove. |
1163 |
|
|
(MF_Map.create_new_layer): New. A new Layer is created and associated |
1164 |
|
|
with the mapscript object. |
1165 |
|
|
(MF_Map.set_layerorder): New. The Layer order like in thuban is set in |
1166 |
|
|
the mapscript. |
1167 |
|
|
(MF_Map.add_thubanlayer): Now a new layerobj is created if no one is |
1168 |
|
|
linked to the layer in thuban, else the layerobject linked to the |
1169 |
|
|
thubanlayer will be used. |
1170 |
|
|
AnnotationLayer will now store the filename of the shapefile. |
1171 |
|
|
(MF_Map.remove_layer): If a layer is removed the associated object |
1172 |
|
|
must be set new. |
1173 |
|
|
|
1174 |
|
|
* Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all |
1175 |
|
|
layers which are exists in thuban to the mapobj. All removed Layers |
1176 |
|
|
will be removed from the mapobj. |
1177 |
|
|
Added comments to all functions. |
1178 |
|
|
(thuban_to_map): No layer will be removed here. |
1179 |
|
|
|
1180 |
|
|
* Extensions/umn_mapserver/mf_handle.py |
1181 |
|
|
(_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now |
1182 |
|
|
Layersettings for the mapserver kann be edited. |
1183 |
|
|
|
1184 |
|
|
* Extensions/umn_mapserver/mf_import.py: Now all layers which are |
1185 |
|
|
imported, will be linked with the associated MF_Layer. |
1186 |
|
|
(import_mapfile): All layers, which are not selected, will be removed. |
1187 |
|
|
Disable the "import layer from mapfile" menu option. |
1188 |
|
|
|
1189 |
|
|
* Extensions/umn_mapserver/sample/iceland.map: Set the status of the |
1190 |
|
|
Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the |
1191 |
|
|
layer on permanently. |
1192 |
|
|
|
1193 |
jschuengel |
2323 |
2004-08-03 Jan Schüngel <[email protected]> |
1194 |
|
|
|
1195 |
jschuengel |
2331 |
* Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata): |
1196 |
|
|
New. This function removes all metadata |
1197 |
|
|
(MF_Layer.set_group): New. Set the group setting. |
1198 |
|
|
(MF_Layer.get_group): New. Get the group setting. |
1199 |
|
|
(MF_Map): Removed the extra numlayers variable, used the mapscript |
1200 |
|
|
parameter instead. |
1201 |
|
|
(MF_Map.get_numlayers): New. This get numlayers. |
1202 |
|
|
(MF_Map.remove_all_layers): New. Removes all layers from the mapobj. |
1203 |
jschuengel |
2323 |
(MF_Map.add_thubanlayer): Replaced the exception handling by a check |
1204 |
|
|
if the object is an instance. Also added the annotation layer here to |
1205 |
|
|
export, but only the layer is created in the mapfile. |
1206 |
|
|
|
1207 |
jschuengel |
2331 |
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed |
1208 |
|
|
the check if a mapobj exist, because its not needed anymore. The |
1209 |
|
|
export function is only available if a mapobj exist. |
1210 |
|
|
Use the new function to remove all layers. |
1211 |
jschuengel |
2323 |
|
1212 |
jschuengel |
2331 |
* Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group |
1213 |
|
|
option and the metadata button. The layer dialog is temporary disabled. |
1214 |
|
|
(Metadata_CustomDataTable): Added some functions to show the grid |
1215 |
jschuengel |
2323 |
correct. |
1216 |
|
|
|
1217 |
jschuengel |
2331 |
* Extensions/umn_mapserver/mf_import.py: Moved the code for showing |
1218 |
|
|
the number of layer from import_mapfile to this function. |
1219 |
|
|
(AnnotationLayer): New. This Class shows the Annotation layer in |
1220 |
|
|
thuban. The layer don't do anything. It's only to show the layer |
1221 |
|
|
and to save the layer order. |
1222 |
|
|
(add_annotationlayer): New. Import an annotation layer to thuban. |
1223 |
|
|
(select_layer2import): New. Import only layers to thuban and not |
1224 |
|
|
the other settings like projection or scalebar. |
1225 |
|
|
(create_new_mapfile): Moved the _has_umn_mapobj function and the |
1226 |
|
|
create_new_mapfile functions from mf_handle.py to mf_import.py. |
1227 |
jschuengel |
2323 |
|
1228 |
|
|
* Extensions/umn_mapserver/sample/iceland.map: Added the group |
1229 |
|
|
parameter to the roads and cultural layers. Also added a new |
1230 |
|
|
Annotation Layer for the cultural points. |
1231 |
|
|
|
1232 |
|
|
* Extensions/umn_mapserver/sample/iceland.html: Added the select |
1233 |
|
|
option for the annotation layer. |
1234 |
|
|
|
1235 |
|
|
* Extensions/umn_mapserver/sample/index.html: Added the start |
1236 |
|
|
parameter for the annotation layer. |
1237 |
|
|
|
1238 |
jan |
2315 |
2004-08-01 Jan-Oliver Wagner <[email protected]> |
1239 |
|
|
|
1240 |
|
|
* Doc/manual/thuban-manual-de.xml (Chapter Session Management): |
1241 |
|
|
translation completed. |
1242 |
|
|
|
1243 |
|
|
* Doc/manual/thuban-manual.xml (Chapter Session Management): |
1244 |
|
|
Fixed unprecise description for Save Session. |
1245 |
|
|
|
1246 |
jan |
2312 |
2004-07-31 Jan-Oliver Wagner <[email protected]> |
1247 |
|
|
|
1248 |
|
|
Started translation of Users Manual into german. |
1249 |
|
|
|
1250 |
|
|
* Doc/manual/thuban-manual-de.xml: New. German Users Manual. |
1251 |
|
|
|
1252 |
|
|
* Doc/manual/Makefile: Added build instructions for german |
1253 |
|
|
users manual. |
1254 |
|
|
|
1255 |
|
|
* Doc/manual/thuban-manual.xml: Minor corrections in Introduction. |
1256 |
|
|
|
1257 |
jschuengel |
2308 |
2004-07-28 Jan Schüngel <[email protected]> |
1258 |
|
|
|
1259 |
|
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class |
1260 |
|
|
functions. Now all metadata will handle by the function and its not |
1261 |
|
|
needed to initialize it from outside. Therefor the associated mapobj |
1262 |
|
|
will be stored in the Metadata Object. So we can use the special |
1263 |
|
|
functions from the associated mapobj to get the Metadata. |
1264 |
|
|
Therefor all initialization code for the metadata is removed from the |
1265 |
|
|
other classes. |
1266 |
|
|
(MF_Layer): Added a function to get the metadata object. |
1267 |
|
|
(MF_Map): Added a function to set the mappath, the path where |
1268 |
|
|
the mapfile ist stored. |
1269 |
|
|
|
1270 |
|
|
* Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code |
1271 |
|
|
to set the extent in the mapfile. Now the code is set by the displayed |
1272 |
|
|
data in the Thuban-view. |
1273 |
|
|
(export_mapfile): The shapepath is now set empty, until relative |
1274 |
|
|
pathnames are supported. |
1275 |
|
|
|
1276 |
|
|
* Extension/umn_mapserver/mf_handle.py: Added a dialog to handle |
1277 |
|
|
metadata. Yet only mapfile metadata are supported. Layer and class |
1278 |
|
|
supported are not implemented. |
1279 |
|
|
Added a dialog to handle layer informations. The dialog only shows the |
1280 |
|
|
selected layer at the moment. |
1281 |
|
|
|
1282 |
|
|
* Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the |
1283 |
|
|
code for setting the extent in thuban. Now the extent is set to the |
1284 |
|
|
given extent from the mapfile. |
1285 |
|
|
Fixed a logical mistake. Now the extent is set when realy a layer is |
1286 |
|
|
loaded, and not if one is selected to load. |
1287 |
|
|
|
1288 |
|
|
* Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and |
1289 |
|
|
move the shown map in the browser. |
1290 |
|
|
|
1291 |
|
|
* Extensions/umn_mapserver/sample/iceland.map: Added a new metadata |
1292 |
|
|
line to the mapobj and added metadata to the political layer. |
1293 |
|
|
|
1294 |
|
|
* Extensions/umn_mapserver/test/test_mapserver.py: Changed the test |
1295 |
|
|
for Metadata. |
1296 |
|
|
|
1297 |
joey |
2300 |
2004-07-26 Martin Schulze <[email protected]> |
1298 |
|
|
|
1299 |
|
|
* Thuban/Lib/classmapper.py (ClassMapper.has): Added the new |
1300 |
|
|
ClassMapper |
1301 |
|
|
|
1302 |
|
|
* test/test_classmapper.py (TestMapping.test_mapper): Added a Test |
1303 |
|
|
case for the new ClassMapper |
1304 |
|
|
|
1305 |
|
|
|
1306 |
bh |
2296 |
2004-07-22 Bernhard Herzog <[email protected]> |
1307 |
|
|
|
1308 |
bh |
2297 |
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the |
1309 |
|
|
visible extent of the map in projected coordinates |
1310 |
|
|
|
1311 |
|
|
* test/test_viewport.py (SimpleViewPortTest.test_default_size) |
1312 |
|
|
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent() |
1313 |
|
|
tests. |
1314 |
|
|
(SimpleViewPortTest.test_visible_extent): New. The real test for |
1315 |
|
|
VisibleExtent() |
1316 |
|
|
|
1317 |
|
|
2004-07-22 Bernhard Herzog <[email protected]> |
1318 |
|
|
|
1319 |
bh |
2296 |
* test/test_viewport.py: Use support.run_tests as the main |
1320 |
|
|
function when running asa script. |
1321 |
|
|
|
1322 |
jschuengel |
2295 |
2004-07-22 Jan Schüngel <[email protected]> |
1323 |
|
|
|
1324 |
|
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
1325 |
|
|
Removed the old "import Thuban.UI.mainwindow" code. |
1326 |
|
|
(tbextent_to_map): Removed the extra function and at the code direct |
1327 |
|
|
to "thuban_to_map" function. |
1328 |
|
|
(write_creatorcomment): Added. Now a short comment is added to the |
1329 |
|
|
beginning of an generated mapfile. |
1330 |
|
|
(export_mapfile): Now the Path and filename are saved in to variables, |
1331 |
|
|
and not together in one variable. This is needed for the new |
1332 |
|
|
write_creatorcomment function. |
1333 |
|
|
|
1334 |
|
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
1335 |
|
|
import module "re". Also added Range and the ClassGroupRange import |
1336 |
|
|
from Thuban. Both are needed for the new range expression import. |
1337 |
|
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
1338 |
|
|
style from a given mapfile expression. |
1339 |
|
|
(added_rasterlayer): Make some small code changes. The shapepath is |
1340 |
|
|
now stored in an extra variable and the clazz_name is set empty if no |
1341 |
|
|
class name set in the mapfile. |
1342 |
|
|
Changed the Error message for Range Expressions, becaus the new |
1343 |
|
|
function create a error string which will be shown in the dialog. |
1344 |
|
|
|
1345 |
|
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
1346 |
|
|
range expression import. |
1347 |
jan |
2312 |
|
1348 |
jan |
2291 |
2004-07-21 Jan-Oliver Wagner <[email protected]> |
1349 |
|
|
|
1350 |
|
|
* Extensions/umn_mapserver/README: Added hint that |
1351 |
|
|
installation as root can be avoided. Removed all tabs. |
1352 |
|
|
|
1353 |
bh |
2289 |
2004-07-16 Bernhard Herzog <[email protected]> |
1354 |
|
|
|
1355 |
|
|
* test/test_viewport.py |
1356 |
|
|
(ViewPortTest.test_changing_map_projection): Check that changing |
1357 |
|
|
the projection of an empty map shown in a viewport doesn't lead to |
1358 |
|
|
exceptions in the viewport's handler for the |
1359 |
|
|
MAP_PROJECTION_CHANGED messages |
1360 |
|
|
|
1361 |
|
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
1362 |
|
|
try to keep the same region visible when the map actually contains |
1363 |
|
|
something |
1364 |
|
|
|
1365 |
jschuengel |
2288 |
2004-07-15 Jan Schüngel <[email protected]> |
1366 |
|
|
|
1367 |
|
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
1368 |
|
|
mappath directly from the mapobj. Is needed because of the changes |
1369 |
|
|
in mf_import.py. |
1370 |
|
|
(MF_Layer.add_thubanclass): Added a new comment. |
1371 |
|
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
1372 |
|
|
mapobj is empty there is no extent get from thuban an so no one can |
1373 |
|
|
set to th mapobj. |
1374 |
|
|
|
1375 |
|
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
1376 |
|
|
the discription. |
1377 |
|
|
Split the funktion in to three smaller ones. The new functions are |
1378 |
|
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
1379 |
|
|
Removed the mapfilepath and filepath initialisation, because its know |
1380 |
|
|
include in the new functions. |
1381 |
|
|
Now nothing will be imported if cancel is pressed in the |
1382 |
|
|
layer choice dialog. |
1383 |
|
|
|
1384 |
jschuengel |
2285 |
2004-07-14 Jan Schüngel <[email protected]> |
1385 |
|
|
|
1386 |
|
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
1387 |
|
|
import. |
1388 |
|
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
1389 |
|
|
(MF_Class.__init__): Added a comment to the exception clause. |
1390 |
|
|
Removed the extent init, because it was not needed anymore. |
1391 |
|
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
1392 |
|
|
the expression value from thuban if no label is defined. |
1393 |
|
|
Added the code to export Range expressions from thuban to the mapfile. |
1394 |
|
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
1395 |
|
|
code. If the size of a map is not defined the size will be set to 1,1. |
1396 |
|
|
This is necessary because if the extent is set, mapscript checks if |
1397 |
|
|
the size is greater than zero. |
1398 |
|
|
(MF_Web): Added the get and set function for the template. |
1399 |
|
|
|
1400 |
|
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
1401 |
|
|
if a mapobject exists and used it to set the status of the menu items. |
1402 |
|
|
If no mapfile exists the settings could not be edditied. |
1403 |
|
|
Define after which menuitem the exportitem will include. |
1404 |
|
|
|
1405 |
|
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
1406 |
|
|
Thuban.UI.mainwindow clause, because it is not needed. |
1407 |
|
|
Added the command Refresh() to all "OnChangeColor()" functions, |
1408 |
|
|
because the color preview window was not updated on a color change. |
1409 |
|
|
Added the function to check if a mapobject exists and used it to set the |
1410 |
|
|
status of the menu items. If no mapobject exists the settings could not |
1411 |
|
|
be edditied. |
1412 |
|
|
(Map_Dialog): Moved the imagetype selector from the |
1413 |
|
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
1414 |
|
|
(Web_Dialog): Removed the name label and added the template textbox. |
1415 |
|
|
|
1416 |
|
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
1417 |
|
|
the exception handling on loading the layers by an if statement. It |
1418 |
|
|
is not necessary to us the exception there. |
1419 |
|
|
The Filepath creation now use os.path.join to build the path. |
1420 |
|
|
|
1421 |
|
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
1422 |
|
|
definition from global to the setUp function. Now the testMap will |
1423 |
|
|
initialize new on each test. |
1424 |
|
|
|
1425 |
|
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
1426 |
|
|
classes in the Line Layer, to test logical Expressions. |
1427 |
|
|
Set the status of the class "Point9" in the Point Layer to off |
1428 |
|
|
|
1429 |
bh |
2278 |
2004-07-13 Bernhard Herzog <[email protected]> |
1430 |
|
|
|
1431 |
|
|
* Thuban/UI/baserenderer.py |
1432 |
|
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
1433 |
|
|
optimization that tries not to draw layers under a raster layer. |
1434 |
|
|
The bug was harmless. All it effectively did was to produce The a |
1435 |
|
|
strange messages about not being able to draw Layer instances for |
1436 |
|
|
all vector layers below a raster layer which would be invisible |
1437 |
|
|
anyway because the raster layer currently always covers the entire |
1438 |
|
|
window |
1439 |
|
|
|
1440 |
jschuengel |
2277 |
2004-07-08 Jan Schüngel <[email protected]> |
1441 |
|
|
|
1442 |
|
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
1443 |
|
|
a list of supported outputformats. This formats are not alle supported |
1444 |
|
|
because there is no possibility to get the outputformat without the |
1445 |
|
|
name known. Make some formal changes to the code. |
1446 |
|
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
1447 |
|
|
|
1448 |
|
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
1449 |
|
|
statement, because its not needed anymore. The Outputformat is now |
1450 |
|
|
given as string from the object. Make some formal changes to the code. |
1451 |
|
|
|
1452 |
|
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
1453 |
|
|
most of the new setting which were added during the last changes. |
1454 |
|
|
Removed the MF_Size Test. |
1455 |
|
|
|
1456 |
|
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
1457 |
|
|
cultural Layer to test expressions and the the status of that layer |
1458 |
|
|
from on to default. |
1459 |
|
|
Changed the data path the the correct Thuban Data |
1460 |
|
|
Added the Outputformat Object and Symbol Object |
1461 |
|
|
|
1462 |
jschuengel |
2272 |
2004-07-07 Jan Schüngel <[email protected]> |
1463 |
|
|
|
1464 |
|
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
1465 |
|
|
settings to edit (outputformat, label, imagetype) |
1466 |
|
|
|
1467 |
|
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
1468 |
|
|
the Label Dialog and add the OutputDialog. |
1469 |
|
|
Make some changes to the code order. |
1470 |
|
|
|
1471 |
jschuengel |
2269 |
2004-07-06 Jan Schüngel <[email protected]> |
1472 |
|
|
|
1473 |
|
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
1474 |
|
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
1475 |
|
|
scalebar_position_type. |
1476 |
|
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
1477 |
|
|
are only used to create a Symbol like the circle in Thuban. |
1478 |
|
|
Added the scalebarObject (MF_Scalebar) |
1479 |
|
|
(MF_Class): Added set_status and get_status. |
1480 |
|
|
(MF_Layer.add_thubanclass): Added code to set the class status |
1481 |
|
|
(MF_Map): Added code to handle the symbols and scalebar |
1482 |
|
|
(MF_Label): Added the set_partials and get_partials functions |
1483 |
|
|
|
1484 |
|
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
1485 |
|
|
from mapfile. Added a function to create a circle object like the one |
1486 |
|
|
from thuban if no one exists. |
1487 |
|
|
|
1488 |
|
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
1489 |
|
|
press ok in the assosiated dialog and not at the end of the |
1490 |
|
|
colordialog. |
1491 |
|
|
Added the Dialog for the Scalebar. |
1492 |
|
|
(Label_Dialog): Added the offset option |
1493 |
|
|
|
1494 |
|
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
1495 |
|
|
status of the Classes. |
1496 |
|
|
Fixed a bug with the projection. Now the to_meter parameter will be |
1497 |
|
|
added to the Projection only if it doesn't exists. |
1498 |
|
|
|
1499 |
jschuengel |
2264 |
2004-07-01 Jan Schüngel <[email protected]> |
1500 |
|
|
|
1501 |
|
|
Added the functionality to handle the content thuban is not |
1502 |
|
|
able to handle directly. |
1503 |
|
|
|
1504 |
|
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
1505 |
|
|
Thuban with the possibility to edit the mapfile content. |
1506 |
|
|
|
1507 |
|
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
1508 |
|
|
to import mapfiles without any layer selected. So it is possible |
1509 |
|
|
to edit the other settings in a mapfile. |
1510 |
|
|
(import_mapfile): Added code to use the editing functions. |
1511 |
|
|
Added the possibility to import the projection to a layer if one |
1512 |
|
|
is defined. |
1513 |
|
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
1514 |
|
|
fixed a bug with with classnames. If no classname is set in mapfile |
1515 |
|
|
the value in Thuban will set to the expression. |
1516 |
|
|
|
1517 |
|
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
1518 |
|
|
possibility to save a new mapfile or use the old one which is |
1519 |
|
|
imported or new created. |
1520 |
|
|
Added code to use the editing functions. |
1521 |
|
|
Remove some not needed import statements |
1522 |
|
|
|
1523 |
|
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
1524 |
|
|
need for the editing functions. |
1525 |
|
|
Added needed set-functions for the editing functions. |
1526 |
|
|
Added the possibility to export rasterimages. |
1527 |
|
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
1528 |
|
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
1529 |
|
|
moment. |
1530 |
|
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
1531 |
|
|
symbol to show a circle in mapserver and not only a 1px dot. |
1532 |
|
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
1533 |
|
|
correct before. |
1534 |
|
|
(MF_Size): Removed, because it is not needed. |
1535 |
|
|
|
1536 |
|
|
* Extensions/umn_mapserver/README: Added the hints to use the |
1537 |
|
|
export and editing functions, too. |
1538 |
|
|
|
1539 |
|
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
1540 |
|
|
new parameter "UNITS METERS". |
1541 |
|
|
Change the political layer to status OFF. |
1542 |
|
|
|
1543 |
|
|
* Extensions/umn_mapserver/sample/README: Added some |
1544 |
|
|
more details to setup the sample in the MapServer. |
1545 |
|
|
|
1546 |
bernhard |
2256 |
2004-06-26 Bernhard Reiter <[email protected]> |
1547 |
|
|
|
1548 |
|
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
1549 |
|
|
Removed class VFile and used standard StringIO instead. |
1550 |
|
|
|
1551 |
jschuengel |
2255 |
2004-06-23 Jan Schüngel <[email protected]> |
1552 |
|
|
|
1553 |
|
|
Add the export function to the umn_mapserver extension. |
1554 |
|
|
|
1555 |
|
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
1556 |
|
|
Thuban with the possibility to export the Thuban content. |
1557 |
|
|
|
1558 |
|
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
1559 |
|
|
with the export module. Especially added the possibility to |
1560 |
|
|
add thuban objects directly to the map objects. |
1561 |
|
|
|
1562 |
|
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
1563 |
|
|
because of the hint from Bernhard Herzog. |
1564 |
|
|
Corrected the handling of absolute pathnames. |
1565 |
|
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
1566 |
|
|
|
1567 |
|
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
1568 |
|
|
|
1569 |
jschuengel |
2250 |
2004-06-16 Jan Schüngel <[email protected]> |
1570 |
jschuengel |
2242 |
|
1571 |
jschuengel |
2250 |
Add a sample and make some changes. |
1572 |
|
|
|
1573 |
|
|
* Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx |
1574 |
|
|
import from * to explicit used statements. Changed the |
1575 |
|
|
Thuban.UI.mainwindow import phrase, too. |
1576 |
|
|
(import_mapfile):Corrected a clerical mistake. |
1577 |
|
|
Added wxCHANGE_DIR in OpenFile Dialog. |
1578 |
|
|
Added a MultipleChoiceDialog, to select the layers to load from |
1579 |
|
|
mapfile into thuban. Thereby the projection is only set if one layer |
1580 |
|
|
is selected. |
1581 |
|
|
Added the possibility to handle relative pathnames which uses |
1582 |
|
|
up-level references. |
1583 |
|
|
Removed some doubled code. |
1584 |
|
|
Corrected an error with integer values used as label in thuban |
1585 |
|
|
ClassGroup. |
1586 |
|
|
|
1587 |
|
|
* Extensions/umn_mapserver/sample: New. |
1588 |
|
|
|
1589 |
|
|
* Extensions/umn_mapserver/sample/README: New. Describes the |
1590 |
|
|
usage of the sample files. |
1591 |
|
|
|
1592 |
|
|
* Extensions/umn_mapserver/sample/iceland.map: New. This is |
1593 |
|
|
a suitable .map-file for the iceland data. |
1594 |
|
|
|
1595 |
|
|
* Extensions/umn_mapserver/sample/index.html: New. The template |
1596 |
|
|
for the mapfile. |
1597 |
|
|
|
1598 |
|
|
* Extensions/umn_mapserver/sample/iceland.html: New. Initialisation |
1599 |
|
|
file for the Iceland Application on web. |
1600 |
|
|
|
1601 |
|
|
* Extensions/umn_mapserver/README: Corrected a inaccuracy and added |
1602 |
|
|
some details. |
1603 |
|
|
|
1604 |
|
|
* Extensions/umn_mapserver/test/test_mapserver |
1605 |
|
|
(mapserver_import_Test_generalClasses.test_MF_Color): |
1606 |
|
|
Corrected the thubancolor test. |
1607 |
|
|
|
1608 |
|
|
2004-06-15 Jan Schüngel <[email protected]> |
1609 |
|
|
|
1610 |
jschuengel |
2242 |
* Extensions/umn_mapserver/README: New. Install instruction. |
1611 |
|
|
|
1612 |
bernhard |
2240 |
2004-06-14 Bernhard Reiter <[email protected]> |
1613 |
|
|
|
1614 |
|
|
* libraries/thuban/cpl_mfile.h: Added copyright header. |
1615 |
|
|
|
1616 |
|
|
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting |
1617 |
|
|
Free Software License so that it is most useful with gdalwarp |
1618 |
|
|
and bmpdataset. |
1619 |
|
|
|
1620 |
bh |
2239 |
2004-06-14 Bernhard Herzog <[email protected]> |
1621 |
|
|
|
1622 |
|
|
* Thuban/UI/multiplechoicedialog.py (__version__): Add missing |
1623 |
|
|
import of wxPython.wx itself (as opposed to the contents of |
1624 |
|
|
wxPython.wx). For some reason wxPython.wx is available as |
1625 |
|
|
wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482 |
1626 |
|
|
wrt. wxPython 2.4. |
1627 |
|
|
|
1628 |
jschuengel |
2238 |
2004-06-10 Jan Schüngel <[email protected]> |
1629 |
|
|
|
1630 |
|
|
Initial version of new extension "umn_mapserver". This extension aims |
1631 |
|
|
to manage configuration for the UMN MapServer application. This |
1632 |
|
|
inital version just imports the .map-files and displays all, Thuban is |
1633 |
|
|
capable of. |
1634 |
|
|
|
1635 |
|
|
* Extensions/umn_mapserver, Extensions/umn_mapserver/test: New. |
1636 |
|
|
|
1637 |
|
|
* Extensions/umn_mapserver/test/README: New. Describes how to run the |
1638 |
|
|
tests. |
1639 |
|
|
|
1640 |
|
|
* Extensions/umn_mapserver/test/test.map: New. This is a test |
1641 |
|
|
.map-file for automated tests of the umn_mapserver extension of |
1642 |
|
|
Thuban. |
1643 |
|
|
|
1644 |
|
|
* Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for |
1645 |
|
|
UMN Mapserver classes. |
1646 |
|
|
|
1647 |
|
|
* Extensions/umn_mapserver/__init__.py: New. Init to make this |
1648 |
|
|
directory a package. |
1649 |
|
|
|
1650 |
|
|
* Extensions/umn_mapserver/mapfile.py: New. Classes to represent |
1651 |
|
|
'.map'-file objects. |
1652 |
|
|
|
1653 |
|
|
* Extensions/umn_mapserver/mf_import.py: New. This module extends |
1654 |
|
|
Thuban with the possibility to handle UMN MapServer mapfiles. |
1655 |
|
|
|
1656 |
bh |
2230 |
2004-06-03 Bernhard Herzog <[email protected]> |
1657 |
|
|
|
1658 |
|
|
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
1659 |
|
|
to a tuple before using it as arguments to the % operator. This |
1660 |
|
|
fixes the formatting issue filed in RT#2239 on 2004-01-13 and |
1661 |
|
|
reported today on thuban-list by Jan Schüngel |
1662 |
|
|
|
1663 |
|
|
* test/test_layer.py (TestLayerModification.setUp): Save the |
1664 |
|
|
filename as an instance variable so we can refer to it in tests |
1665 |
|
|
(TestLayerModification.test_tree_info): Uncomment this method |
1666 |
|
|
again and make it work. This tests for the formatting issue |
1667 |
|
|
filed in RT#2239 on 2004-01-13 |
1668 |
|
|
|
1669 |
bh |
2224 |
2004-05-28 Bernhard Herzog <[email protected]> |
1670 |
|
|
|
1671 |
|
|
* Thuban/UI/baserenderer.py: Fix some typos. |
1672 |
|
|
|
1673 |
jan |
2217 |
2004-05-18 Jan-Oliver Wagner <[email protected]> |
1674 |
|
|
|
1675 |
|
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug |
1676 |
|
|
by increasing a field size. |
1677 |
|
|
|
1678 |
bh |
2213 |
2004-05-17 Bernhard Herzog <[email protected]> |
1679 |
|
|
|
1680 |
|
|
Update to newest shapelib and get rid of Thuban specific |
1681 |
|
|
extensions, i.e. use the new DBFUpdateHeader instead of our |
1682 |
|
|
DBFCommit kludge |
1683 |
|
|
|
1684 |
|
|
* libraries/shapelib/shpopen.c: Update to version from current |
1685 |
|
|
shapelib CVS. |
1686 |
|
|
|
1687 |
|
|
* libraries/shapelib/shapefil.h: Update to version from current |
1688 |
|
|
shapelib CVS. |
1689 |
|
|
|
1690 |
|
|
* libraries/shapelib/dbfopen.c: Update to version from current |
1691 |
|
|
shapelib CVS. |
1692 |
|
|
(DBFCommit): Effectively removed since shapelib itself has |
1693 |
|
|
DBFUpdateHeader now which is better for what DBFCommit wanted to |
1694 |
|
|
achieve. |
1695 |
|
|
We're now using an unmodified version of dbfopen. |
1696 |
|
|
|
1697 |
|
|
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with |
1698 |
|
|
value '1' to the Lib.dbflibc extension. This simply reflects the |
1699 |
|
|
shapelib and pyshapelib updates |
1700 |
|
|
|
1701 |
jan |
2211 |
2004-05-16 Jan-Oliver Wagner <[email protected]> |
1702 |
|
|
|
1703 |
|
|
Finished introduction of Menu.FindOrInsertMenu. |
1704 |
|
|
|
1705 |
|
|
* Extensions/drawshape/drawshape.py: Add the command |
1706 |
|
|
to the experimental menu additionally to the toolbar. |
1707 |
|
|
|
1708 |
|
|
* Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of |
1709 |
|
|
finding menu on its own. |
1710 |
|
|
|
1711 |
|
|
* Doc/manual/thuban-manual.xml: updated sample file |
1712 |
|
|
to use FindOrInsertMenu(). |
1713 |
|
|
|
1714 |
|
|
* Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu() |
1715 |
|
|
instead of finding menu on its own. |
1716 |
|
|
|
1717 |
jan |
2206 |
2004-05-11 Jan-Oliver Wagner <[email protected]> |
1718 |
|
|
|
1719 |
|
|
* test/test_menu.py (MenuTest.test): Added testing |
1720 |
|
|
of method Menu.FindOrInsertMenu. |
1721 |
|
|
|
1722 |
jan |
2204 |
2004-05-10 Jan-Oliver Wagner <[email protected]> |
1723 |
|
|
|
1724 |
|
|
Introduce and use Menu.FindOrInsertMenu. |
1725 |
|
|
|
1726 |
|
|
* Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a |
1727 |
|
|
given menu or, if not found, insert it. |
1728 |
|
|
|
1729 |
|
|
* Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py, |
1730 |
|
|
/Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py, |
1731 |
|
|
/Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding |
1732 |
|
|
menu on its own. |
1733 |
|
|
|
1734 |
jan |
2201 |
2004-05-06 Jan-Oliver Wagner <[email protected]> |
1735 |
|
|
|
1736 |
|
|
Introduce a abstract ColorDialog class and remove |
1737 |
|
|
and outdated file. |
1738 |
|
|
|
1739 |
|
|
* Thuban/UI/proj4dialog.py: Removed. It is has been |
1740 |
|
|
replaced by projdialog for quite a while and is not used |
1741 |
|
|
anymore. |
1742 |
|
|
|
1743 |
|
|
* Thuban/UI/colordialog.py: New. Abstraction for color selection |
1744 |
|
|
dialog(s). |
1745 |
|
|
|
1746 |
|
|
* Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor): |
1747 |
|
|
Now calls the abstract ColorDialog instead of wxColourDialog. |
1748 |
|
|
This also removed the dependency to Color class conversion |
1749 |
|
|
from this function. |
1750 |
|
|
|
1751 |
frank |
2197 |
2004-05-04 Frank Koormann <[email protected]> |
1752 |
|
|
|
1753 |
|
|
* Extensions/bboxdump/__init__.py: Fixed string left over from |
1754 |
|
|
copying. |
1755 |
|
|
|
1756 |
|
|
* Extensions/bboxdump/bboxdump.py (bboxdump): |
1757 |
|
|
Use layer.ShapeStore().AllShapes() to loop over shapes instead of |
1758 |
|
|
xrange(layer.NumShapes()). Compile the bboxmessage from a list |
1759 |
|
|
of formatted outputs (string.join) instead of appending to the |
1760 |
|
|
message. Two progress bar dialogs to report progress on the sometimes |
1761 |
|
|
lenghty processing. |
1762 |
|
|
|
1763 |
frank |
2196 |
2004-04-22 Frank Koormann <[email protected]> |
1764 |
|
|
|
1765 |
|
|
New Extension to dump bounding boxes of all shapes of the selected |
1766 |
|
|
layer. An optional column can be specified to group the objects, |
1767 |
|
|
in this case the bounding box is a union of the separate boxes. |
1768 |
|
|
Dump can be displayed in a ScrolledMessageDialog or written to file. |
1769 |
|
|
The Extension is simply a combination of available and well tested |
1770 |
|
|
Thuban functionality. |
1771 |
|
|
|
1772 |
|
|
* Extensions/bboxdump/__init__.py: New: Init to make this |
1773 |
|
|
directory a package. |
1774 |
|
|
|
1775 |
|
|
* Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of |
1776 |
|
|
all shapes of the selected layer. |
1777 |
|
|
|
1778 |
jan |
2192 |
2004-04-22 Jan-Oliver Wagner <[email protected]> |
1779 |
|
|
|
1780 |
|
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two |
1781 |
|
|
strings to be i18n now. |
1782 |
|
|
|
1783 |
jan |
2188 |
2004-04-18 Jan-Oliver Wagner <[email protected]> |
1784 |
|
|
|
1785 |
|
|
Changing popup menu of legend from direct building |
1786 |
|
|
to using the Menu construction as used for the mainwindow. |
1787 |
|
|
|
1788 |
|
|
* Thuban/UI/mainwindow.py: New method commands: layer_to_top, |
1789 |
|
|
layer_to_bottom, layer_visibility |
1790 |
|
|
(MainWindow.LayerToTop): New. Put current layer to the top. |
1791 |
|
|
(MainWindow.LayerToBottom): New. Put current layer to bottom. |
1792 |
|
|
(MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map): |
1793 |
|
|
Replace 1,0 by True, False. |
1794 |
|
|
(MainWindow.ToggleLayerVisibility): New. Toggle visibility of |
1795 |
|
|
current layer. |
1796 |
|
|
(MainWindow.LayerShowTable): Removed raising of dialog. |
1797 |
|
|
(_has_selected_layer_visible): New. Support function. |
1798 |
|
|
|
1799 |
|
|
* Thuban/UI/legend.py: ID_POP_xxx: removed. |
1800 |
|
|
(LegendPanel.__init__): Removed EVT_MENU bindings. |
1801 |
|
|
(LegendTree._OnRightClick): Replace direct creation of |
1802 |
|
|
menu via wx Classes by applying the menu definition |
1803 |
|
|
as of Menu class of menu.py. |
1804 |
|
|
|
1805 |
jan |
2185 |
2004-04-16 Jan-Oliver Wagner <[email protected]> |
1806 |
|
|
|
1807 |
|
|
* Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved |
1808 |
|
|
button string to stronger clearify that Thuban will be closed when hitting |
1809 |
|
|
the button. |
1810 |
|
|
|
1811 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring. |
1812 |
|
|
Now for layers without a ShapeStore a corresponding message is given |
1813 |
|
|
to the user, that this layer has no table to show. |
1814 |
|
|
|
1815 |
joey |
2182 |
2004-04-15 Martin Schulze <[email protected]> |
1816 |
|
|
|
1817 |
|
|
* Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to |
1818 |
|
|
recalculate the format for the internal render engine as well. |
1819 |
|
|
|
1820 |
|
|
* Extensions/wms/properties.py (wmsProperties): First start for a |
1821 |
|
|
properties dialog. It's functional for a first selection of |
1822 |
|
|
layers, but still has some weired wxWidgets/GTK problems but |
1823 |
|
|
beautification can be done later. |
1824 |
|
|
|
1825 |
|
|
* Extensions/wms/layer.py: Added more documentation |
1826 |
|
|
(WMSLayer.getFormats): New: Return list of supported image formats |
1827 |
|
|
by the WMS server |
1828 |
|
|
(WMSLayer.getLayers): New: Return the list of layer names |
1829 |
|
|
supported by the WMS server |
1830 |
|
|
(WMSLayer.getLayerTitle): New: Return the title of the named layer |
1831 |
|
|
(WMSLayer.getWMSFormat): New: Return the image format that is used |
1832 |
|
|
for WMS GetMap requests |
1833 |
|
|
(WMSLayer.setWMSFormat): New: Set the image format that is used |
1834 |
|
|
for WMS GetMap requests |
1835 |
|
|
(WMSLayer.__init__): Move away from using only one layer to using |
1836 |
|
|
a list of layers (unsorted at the moment, though). |
1837 |
|
|
(WMSLayer.getVisibleLayers): New: Return the list of names for all |
1838 |
|
|
visible layers |
1839 |
|
|
(WMSLayer.setVisibleLayers): New: Set the list of names for all |
1840 |
|
|
visible layers |
1841 |
|
|
|
1842 |
|
|
* Extensions/wms/wms.py: Moved the WMS layer into layer.py in |
1843 |
|
|
order to establish a clean structure. |
1844 |
|
|
|
1845 |
|
|
* Extensions/wms/layer.py: Moved the WMS layer into a file on its |
1846 |
|
|
own in order to establish a clean structure. |
1847 |
|
|
|
1848 |
joey |
2174 |
2004-04-13 Martin Schulze <[email protected]> |
1849 |
|
|
|
1850 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added |
1851 |
|
|
support for oldstyle (WMS 1.0 apparently) image format |
1852 |
|
|
specification. |
1853 |
|
|
|
1854 |
|
|
* Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of |
1855 |
|
|
supported graphic formats back to JPEG and BMP, PNG and others are |
1856 |
|
|
too *cough* experimental... Sorry, I meant to filter this out |
1857 |
|
|
before I committed this part. This should make the WMS extension |
1858 |
|
|
run from CVS again. |
1859 |
|
|
(wms_dialog): Reset an empty URL to None so that the subsequent |
1860 |
|
|
program can depend on this, since the dialog will indeed return an |
1861 |
|
|
empty URL, causing another declaration of love by Python. |
1862 |
|
|
|
1863 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox): |
1864 |
|
|
Whenever a native BoundingBox request cannot be fulfilled, check |
1865 |
|
|
whether the requested SRS is EPSG:3426, in which case return the |
1866 |
|
|
LatLonBoundingBox values. |
1867 |
|
|
|
1868 |
|
|
* Extensions/wms/test/test_parser.py |
1869 |
|
|
(TestWMSCapabilitiesParser.test_LayerSRS): Added a test for |
1870 |
|
|
ignoring AUTO:* SRS. |
1871 |
|
|
(TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes): |
1872 |
|
|
Added another test method to test whether the LatLonBoundingBox |
1873 |
|
|
values will be returned if BoundingBox values are requested with |
1874 |
|
|
SRS set to EPSG:3426. |
1875 |
|
|
|
1876 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers): |
1877 |
|
|
Added rudimentary support for non-EPSG SRS, i.e. ignore them for |
1878 |
|
|
the moment by placing them into a variable which is currently |
1879 |
|
|
unused. Also test whether the EPSG SRS is numerical as it should |
1880 |
|
|
be and add an error message if it is not. |
1881 |
|
|
|
1882 |
|
|
* Extensions/wms/test/sample.xml: Added AUTO:* SRS since they |
1883 |
|
|
appear in the real world as well. Since we cannot handle them yet |
1884 |
|
|
(OGCLib can't either), we will ignore them for the moment. |
1885 |
|
|
|
1886 |
|
|
* Extensions/wms/parser.py: Use a variable for denoting the sample |
1887 |
|
|
filename |
1888 |
|
|
(WMSCapabilitiesParser.peekLayers): Added support for error |
1889 |
|
|
messages during grok(). They will be aggregated in an array and |
1890 |
|
|
may be displayed later. We may have to add a classification |
1891 |
|
|
"Warning" and "Error" to this. That requires more experience, |
1892 |
|
|
though, since not every error may be lethal. |
1893 |
|
|
|
1894 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the |
1895 |
|
|
ShowTable() dialog/frame when the user attempts to display it |
1896 |
|
|
while it has been opened before already and not closed again. |
1897 |
|
|
|
1898 |
joey |
2161 |
2004-04-11 Martin Schulze <[email protected]> |
1899 |
|
|
|
1900 |
|
|
* Extensions/wms/infodialog.py: Adjusted the class documentation |
1901 |
|
|
|
1902 |
|
|
* Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg): |
1903 |
|
|
Switch to using Thuban{Begin,End}BusyCursor instead of the pure |
1904 |
|
|
wxWidgets variants. |
1905 |
|
|
(WMSLayer.__init__): The epsg_id variable is named top_srs now. |
1906 |
|
|
|
1907 |
|
|
* Extensions/wms/infodialog.py: Added an information dialog that |
1908 |
|
|
will display various information about the WMS current resource, |
1909 |
|
|
so that additional information such as the title, the abstract, |
1910 |
|
|
fees and access constraints can be displayed for the user if they |
1911 |
|
|
are documented in the WMS XML. |
1912 |
|
|
|
1913 |
joey |
2156 |
2004-04-10 Martin Schulze <[email protected]> |
1914 |
|
|
|
1915 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted |
1916 |
|
|
string handling. It's "foo".lower() and not lower(foo) without |
1917 |
|
|
lower imported from strings or something. |
1918 |
|
|
|
1919 |
|
|
* Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities |
1920 |
|
|
from capabilities.py and parser.py. Implement priority list for |
1921 |
|
|
supported graphics formats, take care of wbmp != bmp. PNG, TIFF |
1922 |
|
|
and GIF are supported here, but not yet by main Thuban. Hence, |
1923 |
|
|
support for them may be removed later. Special contribution to |
1924 |
|
|
usability: get wxWidgets to change the cursor when we're waiting |
1925 |
|
|
for data from the network so the user won't start to worry. This |
1926 |
|
|
causes a redrawing error/warning, though. |
1927 |
|
|
|
1928 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink |
1929 |
|
|
the DOM object. |
1930 |
|
|
|
1931 |
|
|
2004-04-01 Martin Schulze <[email protected]> |
1932 |
|
|
|
1933 |
|
|
* Extensions/wms/capabilities.py: Adjusted documentation |
1934 |
|
|
(WMSCapabilities.__init__): Improved documentation, fixed syntax |
1935 |
|
|
(WMSCapabilities.saveCapabilities): Only catch IOError when |
1936 |
|
|
handling files |
1937 |
|
|
(WMSCapabilities.loadCapabilities): Only catch IOError when |
1938 |
|
|
handling files |
1939 |
|
|
__main__: corrected variable naming |
1940 |
|
|
(WMSCapabilities.fetchCapabilities,loadCapabilities): Make this |
1941 |
|
|
class a specialisation of WMSCapabilitiesParser as well. Also |
1942 |
|
|
execute grok() after loading or fetching capabilities, if that |
1943 |
|
|
went well, so that subsequent calls can already access the data. |
1944 |
|
|
(WMSCapabilities.getVersion): Export the used version of the |
1945 |
|
|
GetCapabilities request, so we can use it for subsequent calls, |
1946 |
|
|
i.e. for GetMap requests. |
1947 |
|
|
(WMSCapabilities.fetchCapabilities): Added proper error handling |
1948 |
|
|
when the GetCapabilities request failed, so that the surrounding |
1949 |
|
|
program can act accordingly. |
1950 |
|
|
|
1951 |
joey |
2146 |
2004-03-30 Martin Schulze <[email protected]> |
1952 |
|
|
|
1953 |
|
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS): |
1954 |
|
|
Adjusted the getLayerSRS method to return the list of SRSes |
1955 |
|
|
extracted from <SRS> elements instead of <BoundingBox> elements. |
1956 |
|
|
Added a bit of documentation as well. |
1957 |
|
|
(WMSCapabilitiesParser.checkLayerSRS): Removed integrity test |
1958 |
|
|
since it was only implemented due to a misunderstanding. |
1959 |
|
|
|
1960 |
|
|
* Extensions/wms/test/test_parser.py |
1961 |
|
|
(TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to |
1962 |
|
|
reflect the corrected interpretation of the standard: i.e. a layer |
1963 |
|
|
does not have to define a BoundingBox for all SRSes it supports. |
1964 |
|
|
Hence the <SRS></SRS> specification is authoritative, not the list |
1965 |
|
|
of BoundingBoxes. |
1966 |
|
|
(TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test |
1967 |
|
|
to ensure None is returned for a non-existing SRS. |
1968 |
|
|
(TestWMSCapabilitiesParser.test_grok): Removed test_grok method |
1969 |
|
|
since it is not applicable anymore. Listing more SRSes in <SRS> |
1970 |
|
|
elements is valid according to the specs. |
1971 |
|
|
|
1972 |
bernhard |
2140 |
2004-03-26 Bernhard Reiter <[email protected]> |
1973 |
joey |
2146 |
|
1974 |
bernhard |
2140 |
* README: Nicer formatting of text. Improved descriptions. |
1975 |
|
|
Reflected wxWidgets name change. |
1976 |
|
|
|
1977 |
|
|
* Thuban/UI/about.py: Extended copyright to 2004 and added |
1978 |
|
|
information about the thuban-devel mailinglist. |
1979 |
|
|
|
1980 |
joey |
2138 |
2004-03-24 Martin Schulze <[email protected]> |
1981 |
joey |
2120 |
|
1982 |
joey |
2138 |
* Extensions/wms/capabilities.py: Renamed the class to contain |
1983 |
|
|
'WMS', also added a linebreak where required |
1984 |
|
|
|
1985 |
|
|
* Extensions/wms/parser.py: Finally added the XML parser for the |
1986 |
|
|
GetCapabilities response. |
1987 |
|
|
|
1988 |
|
|
* Extensions/wms/test/sample.xml: Adjusted the sample file so that |
1989 |
|
|
<SRS> elements match the <BoundingBox> elements, except for the |
1990 |
|
|
layer 'beschriftung'. |
1991 |
|
|
|
1992 |
|
|
* Extensions/wms/test/test_parser.py: Encode non-ascii strings |
1993 |
|
|
since Python uses unicode strings internally, otherwise |
1994 |
|
|
comparisons will fail. Removed tests for getLayerBBoxSRS() since |
1995 |
|
|
the SRS will be calculated anyway and this method is obsoleted by |
1996 |
|
|
getLayerSRS(). Denote SRS as strings and not as cardinal numbers. |
1997 |
|
|
Move loading the sample file into the setUp method. Added a test |
1998 |
|
|
for finding the integrity problem in the sample response. |
1999 |
|
|
Improved formatting. |
2000 |
|
|
|
2001 |
|
|
* Extensions/wms/domutils.py: Added convenience routines for |
2002 |
|
|
handling of Document Object Model (DOM) nodes. |
2003 |
|
|
|
2004 |
|
|
* Extensions/wms/test/test_domutils.py: Added a test for the |
2005 |
|
|
domutils module |
2006 |
|
|
|
2007 |
|
|
2004-03-19 Martin Schulze <[email protected]> |
2008 |
|
|
|
2009 |
joey |
2120 |
* Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser): |
2010 |
|
|
Moved path detection and adding into a module of its own, |
2011 |
|
|
adjustpath, which exports thubandir as main Thuban directory. |
2012 |
|
|
|
2013 |
|
|
* Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path |
2014 |
|
|
detection and adding into a module of its own, adjustpath, which |
2015 |
|
|
exports thubandir as main Thuban directory. Reorganised the |
2016 |
|
|
module in order to support the SkipTest feature for Thuban test |
2017 |
|
|
cases. |
2018 |
|
|
|
2019 |
|
|
* Extensions/wms/test/adjustpath.py: Moved path detection and |
2020 |
|
|
adding into a module of its own. |
2021 |
|
|
|
2022 |
joey |
2115 |
2004-03-18 Martin Schulze <[email protected]> |
2023 |
|
|
|
2024 |
|
|
* Extensions/wms/test/test_parser.py: Added another test for |
2025 |
|
|
checking whether the WMS XML parser (to be implemented) returns |
2026 |
|
|
the information we expect. This requires a sample WMS WML file |
2027 |
|
|
(sample.xml) which has been extracted from the frida server and |
2028 |
|
|
"improved" manually. |
2029 |
|
|
|
2030 |
|
|
* Extensions/wms/test/test_ogclib.py: Added legacy code to add the |
2031 |
|
|
main Thuban directory to the path in order to be able to import |
2032 |
|
|
random modules. Adjusted the PyOGCLib detection to reuse the |
2033 |
|
|
information gathered. Also added a note about the PYTHONPATH |
2034 |
|
|
environment variable. |
2035 |
|
|
|
2036 |
|
|
* Extensions/wms/test/test_ogclib.py: The format specification is |
2037 |
|
|
a mime-type, not a graphic format, hence image/jpeg wou ld be the |
2038 |
|
|
proper format and not JPEG. We'll also have to take care of the |
2039 |
|
|
encoding of / as %2F. |
2040 |
|
|
|
2041 |
joey |
2111 |
2004-03-16 Martin Schulze <[email protected]> |
2042 |
|
|
|
2043 |
|
|
* Extensions/wms/test/test_ogclib.py: Added a (hopefully) |
2044 |
|
|
comprehensive test for the getMapURL method, built compare URLs |
2045 |
|
|
according to the documentation in OGC 01-068r3 |
2046 |
|
|
|
2047 |
|
|
* Extensions/wms/capabilities.py (WMSCapabilities): Added the |
2048 |
|
|
class WMSCapabilities to manage capabilites, will incorporate |
2049 |
|
|
parsing the capabilities response and provide details for other |
2050 |
|
|
classes. |
2051 |
|
|
|
2052 |
bh |
2105 |
2004-03-12 Bernhard Herzog <[email protected]> |
2053 |
|
|
|
2054 |
bh |
2107 |
Support views in addition to normal tables in the postgis |
2055 |
|
|
shapestore |
2056 |
|
|
|
2057 |
|
|
* Thuban/Model/postgisdb.py |
2058 |
|
|
(PostGISShapeStore._fetch_table_information): Add a fallback for |
2059 |
|
|
the case where the table name is not in the geometry_columns |
2060 |
|
|
table. This is usually the case for views. Also, set |
2061 |
|
|
self.shapestore here. |
2062 |
|
|
(PostGISShapeStore.ShapeType): No need to query the database all |
2063 |
|
|
the time. The shape type is now determined in |
2064 |
|
|
_fetch_table_information |
2065 |
|
|
|
2066 |
|
|
* test/postgissupport.py (PostgreSQLServer.new_postgis_db) |
2067 |
|
|
(PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__): |
2068 |
|
|
New parameter to specify views. |
2069 |
|
|
(PostGISDatabase.has_data): Also compare the views. New views |
2070 |
|
|
parameter |
2071 |
|
|
(PostGISDatabase.initdb): Create the views. |
2072 |
|
|
(PostgreSQLServer.get_default_static_data_db): Add the v_landmarks |
2073 |
|
|
view |
2074 |
|
|
|
2075 |
|
|
* test/test_postgis_db.py |
2076 |
|
|
(TestPostGISShapestorePointFromViews): New. Test a |
2077 |
|
|
PostGISShapeStore with a view |
2078 |
|
|
(TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of |
2079 |
|
|
the geometry_column explicitly to test whether that works |
2080 |
|
|
|
2081 |
|
|
2004-03-12 Bernhard Herzog <[email protected]> |
2082 |
|
|
|
2083 |
bh |
2105 |
Final step for explicit id/geometry columns: Loading and saving |
2084 |
|
|
|
2085 |
|
|
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd |
2086 |
|
|
with the following changes: |
2087 |
|
|
(dbshapesource): Two new attributes id_column and geometry_column |
2088 |
|
|
|
2089 |
|
|
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd |
2090 |
|
|
(SessionSaver.write_session): Use the new namespace |
2091 |
|
|
(SessionSaver.write_data_containers): Write the new dbshapesource |
2092 |
|
|
parameters |
2093 |
|
|
|
2094 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for |
2095 |
|
|
the new file format version |
2096 |
|
|
(SessionLoader.start_dbshapesource): Handle the new db parameters |
2097 |
|
|
|
2098 |
|
|
* test/test_save.py: Update to the new dtd and namespace |
2099 |
|
|
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore |
2100 |
|
|
mock object to provide a working IDColumn method. |
2101 |
|
|
|
2102 |
|
|
* test/test_load_1_0.py: New. Copy of the test_load.py before |
2103 |
|
|
today's changes but with the round-trip tests removed. |
2104 |
|
|
|
2105 |
|
|
* test/test_load_0_9.py: Update doc-string. |
2106 |
|
|
|
2107 |
|
|
* test/test_load.py: Update all .thuban files to the new dtd and |
2108 |
|
|
namespace. |
2109 |
|
|
(TestPostGISLayer.file_contents): Add the new dbshapesource |
2110 |
|
|
paramters |
2111 |
|
|
|
2112 |
bh |
2100 |
2004-03-11 Bernhard Herzog <[email protected]> |
2113 |
|
|
|
2114 |
bh |
2103 |
Next step for explicit id/geometry columns: User interaction |
2115 |
|
|
|
2116 |
|
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how |
2117 |
|
|
the dialog is constructed. Add combo boxes to select id and |
2118 |
|
|
geometry column. Rename some instance variables. |
2119 |
|
|
(ChooseDBTableDialog.GetTable): Return id and geometry column |
2120 |
|
|
names |
2121 |
|
|
(ChooseDBTableDialog.OnTableSelect): New. Event handler for |
2122 |
|
|
selections in the table list |
2123 |
|
|
|
2124 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column |
2125 |
|
|
and geometry_column |
2126 |
|
|
|
2127 |
|
|
* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new |
2128 |
|
|
parameters for id_column and geometry column of PostGISShapeStore |
2129 |
|
|
here as well. |
2130 |
|
|
|
2131 |
|
|
* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type. |
2132 |
|
|
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types |
2133 |
|
|
(PostGISConnection.GeometryTables): Use a better query to |
2134 |
|
|
determine which relations in the database might be usable for |
2135 |
|
|
shapestores. Now supports views as well but is more PostgreSQL |
2136 |
|
|
specific |
2137 |
|
|
(PostGISConnection.table_columns): New. Somewhat experimental |
2138 |
|
|
method to let the db dialogs provide lists of columns to users so |
2139 |
|
|
that they can select id and geometry columns. |
2140 |
|
|
(PostGISTable.__init__): The default value of the id_column |
2141 |
|
|
parameter is now None it still means "gid" effectively, though. |
2142 |
|
|
(PostGISTable.IDColumn): New introspection method to return a |
2143 |
|
|
column object for the id column |
2144 |
|
|
(PostGISShapeStore.GeometryColumn): New introspection method to |
2145 |
|
|
return a column object for the geometry column |
2146 |
|
|
|
2147 |
|
|
* test/test_postgis_db.py |
2148 |
|
|
(TestPostGISConnection.test_gis_tables_non_empty): |
2149 |
|
|
Removed. Subsumed by the new: |
2150 |
|
|
(TestPostGISConnection.test_gis_tables_with_views_and_tables): |
2151 |
|
|
New. Tes the GeometryTables and table_columns methods with actual |
2152 |
|
|
tables and views. |
2153 |
|
|
(PointTests.test_id_column, PointTests.test_geometry_column): |
2154 |
|
|
New. tests for the new methods. |
2155 |
|
|
(TestPostGISShapestorePoint.setUp) |
2156 |
|
|
(TestPostGISShapestorePointSRID.setUp) |
2157 |
|
|
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the |
2158 |
|
|
instance variables needed by the new tests |
2159 |
|
|
|
2160 |
|
|
2004-03-11 Bernhard Herzog <[email protected]> |
2161 |
|
|
|
2162 |
bh |
2100 |
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
2163 |
|
|
numbers given to ReadValue are ordinals. |
2164 |
|
|
|
2165 |
|
|
2004-03-11 Bernhard Herzog <[email protected]> |
2166 |
|
|
|
2167 |
|
|
Elimiate the requirement for PostGIS tables to have a column |
2168 |
|
|
called "gid". |
2169 |
|
|
|
2170 |
|
|
* Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter |
2171 |
|
|
id_column to specify which column to use to identify rows. Also |
2172 |
|
|
new instance variables id_column and quoted_id_column |
2173 |
|
|
(PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId) |
2174 |
|
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue) |
2175 |
|
|
(PostGISTable.SimpleQuery): Use the id column name provided to the |
2176 |
|
|
constructor instead of "gid" |
2177 |
|
|
(PostGISShapeStore.__init__): New parameter id_column analogously |
2178 |
|
|
to PostGISTable.__init__. This parameter is simply passed through |
2179 |
|
|
to the base class constructor |
2180 |
|
|
(PostGISShapeStore._create_col_from_description): Fix typo in |
2181 |
|
|
doc-string |
2182 |
|
|
(PostGISShapeStore.Shape, PostGISShapeStore.AllShapes) |
2183 |
|
|
(PostGISShapeStore.ShapesInRegion): Use the id column name |
2184 |
|
|
provided to the constructor instead of "gid" |
2185 |
|
|
|
2186 |
|
|
* test/postgissupport.py |
2187 |
|
|
(PostgreSQLServer.get_default_static_data_db): New static table |
2188 |
|
|
landmarks_point_id with an id column != "gid. Update the comments |
2189 |
|
|
a bit. |
2190 |
|
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in |
2191 |
|
|
doc- |
2192 |
|
|
(upload_shapefile): New parameter gid_column to use a name other |
2193 |
|
|
than "gid" for the column to store the shape ids |
2194 |
|
|
|
2195 |
|
|
* test/test_postgis_db.py (TableTests): New. Mixin-class |
2196 |
|
|
containing all tests previously in TestPostGISTable. The actual |
2197 |
|
|
tests are the same but the code is a bit more configurable to |
2198 |
|
|
allow for different id columns etc. |
2199 |
|
|
(TestPostGISTable): Derive from TableTests now for the actual |
2200 |
|
|
tests. |
2201 |
|
|
(TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable |
2202 |
|
|
except that it the landmarks_point_id table to test the id_column |
2203 |
|
|
parameter |
2204 |
|
|
(PointTests): Extend the doc-string |
2205 |
|
|
(TestPostGISShapestorePointExplicitGIDColumn) |
2206 |
|
|
(TestPostGISShapestorePointOIDAsGIDColumn): New classes derived |
2207 |
|
|
from PointTests to test the explicit id_column parameter. One |
2208 |
|
|
tests with the name of the column holding the shape ids, the other |
2209 |
|
|
uses PostgreSQL's OID column. For the latter a number of methods |
2210 |
|
|
have to be overwritten to make them independent of the actual id |
2211 |
|
|
values. |
2212 |
|
|
|
2213 |
silke |
2095 |
2004-03-08 Silke Reimer <[email protected]> |
2214 |
|
|
|
2215 |
|
|
Update debian directory: |
2216 |
|
|
|
2217 |
|
|
* debian/changelog: Added new version. |
2218 |
|
|
* deiban/rules: Updated management of patches (with cbds) |
2219 |
|
|
* debian/control: Added cbds to dependencies |
2220 |
|
|
* debian/patches/*: New. Adds better support for patches of thuban in |
2221 |
|
|
debian |
2222 |
|
|
* debian/menu: Syntax of menu changed slightly |
2223 |
|
|
* debian/setup.py.patch: removed because it has been moved to |
2224 |
|
|
debian/patechs/setup.py.patch |
2225 |
|
|
|
2226 |
|
|
|
2227 |
bh |
2094 |
2004-02-26 Bernhard Herzog <[email protected]> |
2228 |
|
|
|
2229 |
|
|
Create the Doc/technotes directory for text files with information |
2230 |
|
|
for developers |
2231 |
|
|
|
2232 |
|
|
* Doc/technotes/README: New. README for the technotes |
2233 |
|
|
|
2234 |
|
|
* Doc/technotes/coding_guidelines.txt: New. Coding guidelines for |
2235 |
|
|
Thuban |
2236 |
|
|
|
2237 |
|
|
* Doc/technotes/release_process.txt: New. Used to be |
2238 |
|
|
HOWTO-Release. Now slightly adapted to technote formatting style. |
2239 |
|
|
|
2240 |
|
|
* HOWTO-Release: Removed. It's contents are now in |
2241 |
|
|
Doc/technotes/release_process.txt |
2242 |
|
|
|
2243 |
bh |
2089 |
2004-02-25 Bernhard Herzog <[email protected]> |
2244 |
|
|
|
2245 |
|
|
* libraries/thuban/wxproj.cpp (get_wx_version): New. Return the |
2246 |
|
|
version of wxWindows the module was compiled with so we can check |
2247 |
|
|
that against the wxPython version. |
2248 |
|
|
|
2249 |
|
|
* Thuban/version.py (thuban_branch, thuban_release): New variables |
2250 |
|
|
controlling which and how Thuban versions are shown. See the |
2251 |
|
|
comments for details. |
2252 |
|
|
(verify_versions): Also check that the wx version that wxproj is |
2253 |
|
|
compiled against matches that of the wxPython we use at runtime |
2254 |
|
|
|
2255 |
bh |
2080 |
2004-02-20 Bernhard Herzog <[email protected]> |
2256 |
|
|
|
2257 |
bh |
2087 |
* Extensions/wms/wms.py (epsg_code_to_projection): Use |
2258 |
|
|
get_system_proj_file to read the epsg projections. The old way |
2259 |
|
|
depended on the current directory being the top Thuban directory. |
2260 |
|
|
|
2261 |
|
|
2004-02-20 Bernhard Herzog <[email protected]> |
2262 |
|
|
|
2263 |
bh |
2085 |
* Extensions/svgexport/test/test_svgmapwriter.py |
2264 |
|
|
(TestVirtualDC.test_clippath): Remove a debug print |
2265 |
|
|
|
2266 |
|
|
2004-02-20 Bernhard Herzog <[email protected]> |
2267 |
|
|
|
2268 |
bh |
2083 |
* Extensions/svgexport/__init__.py: New. Turn |
2269 |
|
|
Extensions/svgexport into a package. |
2270 |
|
|
|
2271 |
|
|
* Extensions/svgexport/svgmapwriter.py: Reorder the imports and |
2272 |
|
|
doc-string a bit. The doc-string must come first, otherwise it's |
2273 |
|
|
not a doc-string. The __future__ import must be the first thing |
2274 |
|
|
after the doc-string. Use only double quotes in doc-strings. |
2275 |
|
|
Single quotes trip up emacs syntax highlighting if the text |
2276 |
|
|
contains apostrophes. |
2277 |
|
|
|
2278 |
|
|
2004-02-20 Bernhard Herzog <[email protected]> |
2279 |
|
|
|
2280 |
bh |
2080 |
* Extensions/svgexport/test/__init__.py, |
2281 |
|
|
Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test |
2282 |
|
|
suite for svgexport |
2283 |
|
|
|
2284 |
|
|
* test/runtests.py (find_test_modules): New. Function with the |
2285 |
|
|
module finding code from main. |
2286 |
|
|
(main): Use find_test_modules to figure out the default test |
2287 |
|
|
modules and take modules from Extensions.svgexport.test too. |
2288 |
|
|
|
2289 |
bh |
2075 |
2004-02-19 Bernhard Herzog <[email protected]> |
2290 |
|
|
|
2291 |
bh |
2077 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Make sure |
2292 |
|
|
the mainwindow has a reference to the map of the initial session. |
2293 |
|
|
This fixes a bug introduced with the fix for RT#2245 |
2294 |
|
|
|
2295 |
|
|
2004-02-19 Bernhard Herzog <[email protected]> |
2296 |
|
|
|
2297 |
bh |
2075 |
* Extensions/svgexport/svgsaver.py, |
2298 |
|
|
Extensions/svgexport/svgmapwriter.py, |
2299 |
|
|
Extensions/svgexport/maplegend.py: Added again. This time in the |
2300 |
|
|
correct place. |
2301 |
|
|
|
2302 |
bh |
2070 |
2004-02-17 Bernhard Herzog <[email protected]> |
2303 |
|
|
|
2304 |
bh |
2073 |
Fix for RT#2245 |
2305 |
|
|
|
2306 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Initialize |
2307 |
|
|
instance variables before trying to create any windows. Creating |
2308 |
|
|
windows can start an event loop if e.g. message boxes are popped |
2309 |
|
|
up for some reason, and event handlers, especially EVT_UPDATE_UI |
2310 |
|
|
may want to access things from the application. |
2311 |
|
|
(ThubanApplication.maps_changed): The mainwindow may not have been |
2312 |
|
|
created yet, so check whether it has been created before calling |
2313 |
|
|
its methods |
2314 |
|
|
|
2315 |
|
|
* Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we |
2316 |
|
|
have a map |
2317 |
|
|
|
2318 |
|
|
2004-02-17 Bernhard Herzog <[email protected]> |
2319 |
|
|
|
2320 |
bh |
2070 |
* test/test_svgmapwriter.py, Extensions/svgsaver.py, |
2321 |
|
|
Extensions/svgmapwriter.py, Extensions/maplegend.py, |
2322 |
|
|
extensions/svgexport/svgsaver.py, |
2323 |
|
|
extensions/svgexport/svgmapwriter.py, |
2324 |
|
|
extensions/svgexport/maplegend.py: Removed. These files were in |
2325 |
|
|
the wrong places or didn't work at all. |
2326 |
|
|
|
2327 |
bh |
2067 |
2004-02-16 Bernhard Herzog <[email protected]> |
2328 |
|
|
|
2329 |
bh |
2069 |
* Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added |
2330 |
|
|
line |
2331 |
|
|
|
2332 |
|
|
2004-02-16 Bernhard Herzog <[email protected]> |
2333 |
|
|
|
2334 |
bh |
2067 |
* Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError. |
2335 |
|
|
|
2336 |
mrechtie |
2064 |
2004-02-15 Markus Rechtien <[email protected]> |
2337 |
|
|
|
2338 |
|
|
* Extensions/svgexport/svgmapwriter.py: New. Adds the capability |
2339 |
|
|
to write a session to a file in SVG format. |
2340 |
|
|
* Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py |
2341 |
|
|
to write a SVG map of a session. |
2342 |
|
|
* Extensions/svgexport/maplegend: New. Writes a basic maplegend |
2343 |
|
|
in SVG format for the current session. |
2344 |
|
|
|
2345 |
bh |
2062 |
2004-02-13 Bernhard Herzog <[email protected]> |
2346 |
|
|
|
2347 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer |
2348 |
|
|
can't be created, return immediately after displaying the error |
2349 |
|
|
message. |
2350 |
|
|
|
2351 |
bh |
2060 |
2004-02-11 Bernhard Herzog <[email protected]> |
2352 |
|
|
|
2353 |
|
|
Handle postgis tables with more than one geometry column. |
2354 |
|
|
|
2355 |
|
|
* Thuban/Model/postgisdb.py |
2356 |
|
|
(PostGISTable._fetch_table_information): Delegate the creation of |
2357 |
|
|
column objects to a different method so that we can extend that in |
2358 |
|
|
derived classes |
2359 |
|
|
(PostGISTable._create_col_from_description): New. Column object |
2360 |
|
|
creation part of _fetch_table_information |
2361 |
|
|
(PostGISShapeStore._create_col_from_description): New. Extend |
2362 |
|
|
inherited method to handle geometry columns |
2363 |
|
|
(PostGISShapeStore.__init__): New parameter geometry_column to |
2364 |
|
|
specify which geometry column to use. Optional but mandatory for |
2365 |
|
|
tables with more than one geometry column |
2366 |
|
|
(PostGISShapeStore._fetch_table_information): Also use the name of |
2367 |
|
|
the geometry column when looking for the srid |
2368 |
|
|
(PostGISShapeStore.ShapeType): Also use the name of the geometry |
2369 |
|
|
column when looking for the shape type |
2370 |
|
|
|
2371 |
|
|
* test/test_save.py (SaveSessionTest.test_save_postgis): Adapt |
2372 |
|
|
NonConnectionStore to changes in the PostGISShapeStore |
2373 |
|
|
|
2374 |
|
|
* test/test_postgis_db.py |
2375 |
|
|
(TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test |
2376 |
|
|
PostGISShapeStore with tables having two geometry columns. |
2377 |
|
|
|
2378 |
bh |
2058 |
2004-02-10 Bernhard Herzog <[email protected]> |
2379 |
|
|
|
2380 |
|
|
Fix some postgis problems. What remains to be done is real |
2381 |
|
|
handling of SRIDs as they affect how reprojection is done |
2382 |
|
|
|
2383 |
|
|
* Thuban/Model/postgisdb.py (quote_identifier): Fix typo in |
2384 |
|
|
doc-string |
2385 |
|
|
(PostGISShapeStore._fetch_table_information): New. Extend |
2386 |
|
|
inherited method to retrieve srid |
2387 |
|
|
(PostGISShapeStore.BoundingBox): Handle tables without data. |
2388 |
|
|
extent yields NULL for those |
2389 |
|
|
(PostGISShapeStore.ShapesInRegion): Use the srid of the table. |
2390 |
|
|
|
2391 |
|
|
* test/test_postgis_db.py |
2392 |
|
|
(TestPostGISSpecialCases.test_shapestore_empty_table): New test |
2393 |
|
|
for the special case of a table without any data |
2394 |
|
|
(TestPostGISShapestorePointSRID): New class with tests for a table |
2395 |
|
|
that uses srids |
2396 |
|
|
(PolygonTests): Fix a doc-string typo |
2397 |
|
|
|
2398 |
|
|
* test/postgissupport.py (PostGISDatabase.__init__): New parameter |
2399 |
|
|
reference_systems with a specification of spacial reference |
2400 |
|
|
systems to create in the new db. |
2401 |
|
|
(PostgreSQLServer.new_postgis_db) |
2402 |
|
|
(PostgreSQLServer.get_static_data_db): New parameter |
2403 |
|
|
reference_systems to be passed through ultimately to |
2404 |
|
|
PostGISDatabase. In new_postgis_db also check whether an existing |
2405 |
|
|
db already has the right srids |
2406 |
|
|
(PostgreSQLServer.get_default_static_data_db): Add srids and a |
2407 |
|
|
table that uses srids |
2408 |
|
|
(PostGISDatabase.initdb): Create the entries for the reference |
2409 |
|
|
systems |
2410 |
|
|
(PostGISDatabase.has_data): Add reference_systems parameter to |
2411 |
|
|
check for those too |
2412 |
|
|
(upload_shapefile): New parameter srid to create tables with a |
2413 |
|
|
specific srid |
2414 |
|
|
|
2415 |
frank |
2055 |
2004-02-06 Frank Koormann <[email protected]> |
2416 |
|
|
|
2417 |
|
|
* po/pt_BR.po: Fixed charset |
2418 |
|
|
|
2419 |
frank |
2054 |
2004-02-05 Frank Koormann <[email protected]> |
2420 |
|
|
|
2421 |
|
|
* po/pt_BR.po: Fixed format string for error message, missing %s |
2422 |
|
|
added (Thuban/UI/application.py:273) |
2423 |
|
|
|
2424 |
frank |
2053 |
2004-02-03 Frank Koormann <[email protected]> |
2425 |
|
|
|
2426 |
|
|
First version of Portuguese (Brazilian) translation |
2427 |
|
|
|
2428 |
|
|
* po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for |
2429 |
|
|
Brazilian Portuguese by Eduardo Patto Kanegae. |
2430 |
|
|
|
2431 |
|
|
* Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of |
2432 |
|
|
translators. |
2433 |
|
|
|
2434 |
|
|
|
2435 |
frank |
2052 |
2004-01-22 Frank Koormann <[email protected]> |
2436 |
|
|
|
2437 |
|
|
* Doc/manual/thuban-manual.xml: Added section on installation of |
2438 |
|
|
Thuban under Win32 systems. Fixed image path references in the postgis |
2439 |
|
|
section. Some minor source formattings. |
2440 |
|
|
|
2441 |
frank |
2051 |
2004-01-21 Frank Koormann <[email protected]> |
2442 |
|
|
|
2443 |
|
|
Make Thuban remember path selections (at least for one application run). |
2444 |
|
|
|
2445 |
|
|
* Thuban/UI/application.py (Application.OnInit): Initialize path as a |
2446 |
|
|
attribute of application object. Path is a dictionary of |
2447 |
|
|
strings, currently with the items "data" and "projection". |
2448 |
|
|
(Application.SetPath): New, stores path for the specified item. |
2449 |
|
|
(Application.Path): New, return path for the specified item. |
2450 |
|
|
|
2451 |
|
|
* Thuban/UI/mainwindow.py |
2452 |
|
|
(MainWindow.OpenSession, MainWindow.SaveSessionAs, |
2453 |
|
|
MainWindow.AddLayer, MainWindow.AddRasterLayer, |
2454 |
|
|
MainWindow.TableOpen): Access "data" path information of the |
2455 |
|
|
application. |
2456 |
|
|
|
2457 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport): |
2458 |
|
|
Access "projection" path information of the application. |
2459 |
|
|
|
2460 |
bh |
2048 |
2004-01-05 Bernhard Herzog <[email protected]> |
2461 |
|
|
|
2462 |
bh |
2050 |
* po/ru.po: Updated translations from Alex Shevlakov |
2463 |
|
|
|
2464 |
|
|
2004-01-05 Bernhard Herzog <[email protected]> |
2465 |
|
|
|
2466 |
bh |
2048 |
* po/Makefile, po/README: Move the description of how to generate |
2467 |
|
|
the translation statistics to the README. |
2468 |
|
|
|
2469 |
bh |
2042 |
2003-12-23 Bernhard Herzog <[email protected]> |
2470 |
|
|
|
2471 |
bh |
2045 |
* NEWS: Update for 1.0.0 |
2472 |
|
|
|
2473 |
|
|
* po/it.po: Another update from Maurizio Napolitano |
2474 |
|
|
|
2475 |
|
|
2003-12-23 Bernhard Herzog <[email protected]> |
2476 |
|
|
|
2477 |
bh |
2042 |
* po/it.po: Updated translation from Maurizio Napolitano |
2478 |
|
|
|
2479 |
|
|
2003-12-23 Bernhard Herzog <[email protected]> |
2480 |
|
|
|
2481 |
|
|
* Thuban/UI/join.py (JoinDialog.__init__): Mark one more string |
2482 |
|
|
for translation |
2483 |
|
|
|
2484 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.TableRename) |
2485 |
|
|
(MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more |
2486 |
|
|
strings for translation |
2487 |
|
|
|
2488 |
|
|
* po/de.po: Update with the newly marked strings. |
2489 |
|
|
|
2490 |
bh |
2033 |
2003-12-22 Bernhard Herzog <[email protected]> |
2491 |
|
|
|
2492 |
bh |
2039 |
* HOWTO-Release: Fix the places where version numbers have to be |
2493 |
|
|
updated |
2494 |
|
|
|
2495 |
|
|
2003-12-22 Bernhard Herzog <[email protected]> |
2496 |
|
|
|
2497 |
bh |
2037 |
* setup.py (setup call): 1.0.0, yeah! |
2498 |
|
|
|
2499 |
|
|
* Thuban/version.py (longversion): 1.0.0, yeah! |
2500 |
|
|
|
2501 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
2502 |
|
|
1.0.0 namespace too |
2503 |
|
|
|
2504 |
|
|
* Thuban/Model/save.py (SessionSaver.write_session): Save with |
2505 |
|
|
1.0.0 namespace |
2506 |
|
|
|
2507 |
|
|
* test/test_load.py (LoadSessionTest.dtd) |
2508 |
|
|
(TestSingleLayer.file_contents) |
2509 |
|
|
(TestNonAsciiColumnName.file_contents) |
2510 |
|
|
(TestLayerVisibility.file_contents) |
2511 |
|
|
(TestClassification.file_contents, TestLabels.file_contents) |
2512 |
|
|
(TestLayerProjection.file_contents) |
2513 |
|
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
2514 |
|
|
(TestLabelLayer.file_contents, TestPostGISLayer.file_contents) |
2515 |
|
|
(TestPostGISLayerPassword.file_contents) |
2516 |
|
|
(TestLoadError.file_contents, TestLoadError.test): Update for |
2517 |
|
|
1.0.0 namespace |
2518 |
|
|
|
2519 |
|
|
* test/test_save.py (SaveSessionTest.dtd) |
2520 |
|
|
(SaveSessionTest.testEmptySession) |
2521 |
|
|
(SaveSessionTest.testSingleLayer) |
2522 |
|
|
(SaveSessionTest.testLayerProjection) |
2523 |
|
|
(SaveSessionTest.testRasterLayer) |
2524 |
|
|
(SaveSessionTest.testClassifiedLayer) |
2525 |
|
|
(SaveSessionTest.test_dbf_table) |
2526 |
|
|
(SaveSessionTest.test_joined_table) |
2527 |
|
|
(SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace |
2528 |
|
|
|
2529 |
|
|
2003-12-22 Bernhard Herzog <[email protected]> |
2530 |
|
|
|
2531 |
bh |
2035 |
* Thuban/Model/load.py (SessionLoader.start_label): Make sure the |
2532 |
|
|
alignment flags are byte strings not unicode and that they have |
2533 |
|
|
valid values |
2534 |
|
|
|
2535 |
|
|
* test/test_load.py (TestLabelLayer): New. Test loading (and |
2536 |
|
|
indirectly saving) of maps with labels. |
2537 |
|
|
|
2538 |
|
|
2003-12-22 Bernhard Herzog <[email protected]> |
2539 |
|
|
|
2540 |
bh |
2033 |
* Thuban/UI/tableview.py (TableGrid.OnDestroy) |
2541 |
|
|
(TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to |
2542 |
|
|
unsubscribe all subscribers. |
2543 |
|
|
(LayerTableFrame.OnDestroy): Do not unsubscribe any messages from |
2544 |
|
|
self.grid since it may already have been destroyed. |
2545 |
|
|
Fixes RT #2256 |
2546 |
|
|
|
2547 |
bh |
2031 |
2003-12-19 Bernhard Herzog <[email protected]> |
2548 |
|
|
|
2549 |
|
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
2550 |
|
|
|
2551 |
bh |
2028 |
2003-12-16 Bernhard Herzog <[email protected]> |
2552 |
silke |
2029 |
|
2553 |
|
|
* debian/bitmappath.patch, debian/setup.py.patch: |
2554 |
|
|
added to ensure compliance with FHS for debian |
2555 |
|
|
* debian/rules, debian/changelog: |
2556 |
|
|
added patches in rules to ensure compliance with FHS for debian |
2557 |
bh |
2028 |
|
2558 |
silke |
2029 |
2003-12-16 Bernhard Herzog <[email protected]> |
2559 |
|
|
|
2560 |
bh |
2028 |
* po/Makefile (mo): Make the output a bit nicer so that it prints |
2561 |
|
|
statistics about the translations. Add a comment how produce even |
2562 |
|
|
nicer statistics with sed. |
2563 |
|
|
|
2564 |
frank |
2026 |
2003-12-09 Frank Koormann <[email protected]> |
2565 |
|
|
|
2566 |
|
|
* Resources/Projections/defaults.proj: |
2567 |
|
|
French projection sample with correct accents (UNICODE). |
2568 |
|
|
|
2569 |
bh |
2025 |
2003-12-05 Bernhard Herzog <[email protected]> |
2570 |
|
|
|
2571 |
|
|
* MANIFEST.in: Add the devtools directory |
2572 |
|
|
|
2573 |
|
|
* setup.py (setup call): Use license instead of licence. This |
2574 |
|
|
silences a deprecation warning on Python 2.3 |
2575 |
|
|
|
2576 |
frank |
2022 |
2003-12-05 Frank Koormann <[email protected]> |
2577 |
|
|
|
2578 |
frank |
2023 |
Documentation synced with 1.0rc1 |
2579 |
|
|
|
2580 |
|
|
* Doc/manual/thuban-manual.xml: |
2581 |
|
|
Minor formatting changes and references to database layers . |
2582 |
|
|
Introduction.Internationalization: New section on i18n. |
2583 |
|
|
MapManagement.AddingandRemovingLayers: Added item on database layers. |
2584 |
|
|
MapManagement.TheLegend: Added section and screenshot on popup menu. |
2585 |
|
|
ProjectionManagement: Updated screenshot and sentence on EPSG. |
2586 |
|
|
Appendix.SupportedDataSources: Added PostGIS. |
2587 |
|
|
Appendix.WorkingwithPostGIS: New section. |
2588 |
|
|
|
2589 |
|
|
* Doc/manual/images/6_projection.png: Updated screenshot including |
2590 |
|
|
EPSG checkboxes. |
2591 |
|
|
|
2592 |
|
|
* Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot. |
2593 |
|
|
|
2594 |
|
|
* Doc/manual/images/app_postgis_add_layer.png, |
2595 |
|
|
Doc/manual/images/app_postgis_db_add.png, |
2596 |
|
|
Doc/manual/images/app_postgis_db_management.png: |
2597 |
|
|
New screenshots focussing on database layers |
2598 |
|
|
|
2599 |
|
|
2003-12-05 Frank Koormann <[email protected]> |
2600 |
|
|
|
2601 |
frank |
2022 |
* Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing |
2602 |
|
|
write warning to stderr instead of rising a warning dialog |
2603 |
|
|
|
2604 |
bh |
2016 |
2003-12-03 Bernhard Herzog <[email protected]> |
2605 |
|
|
|
2606 |
bh |
2021 |
Fix for RT #2243 |
2607 |
|
|
|
2608 |
bh |
2020 |
* Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer): |
2609 |
|
|
New. Like has_selected_layer but for shape layers only |
2610 |
|
|
(_has_selected_shape_layer): New. Like _has_selected_layer but for |
2611 |
|
|
shape layers only |
2612 |
|
|
(layer_show_table command, layer_jointable command): Use these |
2613 |
|
|
commands should only be available for shape layers |
2614 |
|
|
|
2615 |
|
|
2003-12-03 Bernhard Herzog <[email protected]> |
2616 |
|
|
|
2617 |
bh |
2018 |
* Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with |
2618 |
|
|
publishers that are wx objects and may have been destroyed by wx |
2619 |
|
|
already. Fixes RT #2242. |
2620 |
|
|
|
2621 |
|
|
2003-12-03 Bernhard Herzog <[email protected]> |
2622 |
|
|
|
2623 |
bh |
2016 |
* po/ru.po: Updates from Alex Shevlakov |
2624 |
|
|
|
2625 |
silke |
2013 |
2003-12-03 Silke Reimer <silkeintevation.de> |
2626 |
|
|
|
2627 |
|
|
* debian/control, debian/changelog: Added gdal-support to |
2628 |
|
|
debian package, updated to new thuban version |
2629 |
|
|
|
2630 |
|
|
|
2631 |
bh |
2012 |
2003-12-03 Bernhard Herzog <[email protected]> |
2632 |
|
|
|
2633 |
|
|
* Thuban/Lib/version.py: New. Module for version number |
2634 |
|
|
manipulations. The version of make_tuple here also deals better |
2635 |
|
|
with more unusual version number strings, such as e.g. |
2636 |
|
|
"1.2+cvs20031111" |
2637 |
|
|
|
2638 |
|
|
* Thuban/version.py (make_tuple): Removed. It's now in |
2639 |
|
|
Thuban.Lib.version. Use that implementation instead. |
2640 |
|
|
|
2641 |
|
|
* test/test_lib_version.py: New. Tests for Thuban/Lib/version.py |
2642 |
|
|
|
2643 |
bh |
2005 |
2003-12-02 Bernhard Herzog <[email protected]> |
2644 |
|
|
|
2645 |
bh |
2010 |
* MANIFEST.in: Add debian files |
2646 |
|
|
|
2647 |
bh |
2008 |
* setup.py (setup call): Add packages for the Extensions so that |
2648 |
|
|
they're installed too |
2649 |
|
|
(data_files): Add READMEs and sample data from some Extensions |
2650 |
|
|
|
2651 |
|
|
* NEWS: Add note about the extensions in binary packages |
2652 |
|
|
|
2653 |
|
|
2003-12-02 Bernhard Herzog <[email protected]> |
2654 |
|
|
|
2655 |
bh |
2005 |
* Thuban/Model/save.py (SessionSaver.write_session): Save files |
2656 |
|
|
with the thuban-1.0rc1 |
2657 |
|
|
|
2658 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Recognize the |
2659 |
|
|
thuban-1.0rc1 namespace too |
2660 |
|
|
|
2661 |
|
|
* test/test_save.py (SaveSessionTest.dtd) |
2662 |
|
|
(SaveSessionTest.testEmptySession) |
2663 |
|
|
(SaveSessionTest.testSingleLayer) |
2664 |
|
|
(SaveSessionTest.testLayerProjection) |
2665 |
|
|
(SaveSessionTest.testRasterLayer) |
2666 |
|
|
(SaveSessionTest.testClassifiedLayer) |
2667 |
|
|
(SaveSessionTest.test_dbf_table) |
2668 |
|
|
(SaveSessionTest.test_joined_table) |
2669 |
|
|
(SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1 |
2670 |
|
|
namespace |
2671 |
|
|
|
2672 |
|
|
* test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1 |
2673 |
|
|
namespace |
2674 |
|
|
(TestSingleLayer.file_contents) |
2675 |
|
|
(TestNonAsciiColumnName.file_contents) |
2676 |
|
|
(TestLayerVisibility.file_contents) |
2677 |
|
|
(TestClassification.file_contents, TestLabels.file_contents) |
2678 |
|
|
(TestLayerProjection.file_contents) |
2679 |
|
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
2680 |
|
|
(TestPostGISLayer.file_contents) |
2681 |
|
|
(TestPostGISLayerPassword.file_contents) |
2682 |
|
|
(TestLoadError.file_contents, TestLoadError.test): Update to |
2683 |
|
|
thuban-1.0rc1 namespace |
2684 |
|
|
|
2685 |
bh |
1996 |
2003-12-01 Bernhard Herzog <[email protected]> |
2686 |
|
|
|
2687 |
bh |
2003 |
* setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for |
2688 |
|
|
nt to better match Intevation's current w32 setup |
2689 |
|
|
|
2690 |
bh |
2001 |
* HOWTO-Release: Add note about updating MANIFEST.in |
2691 |
|
|
|
2692 |
|
|
* MANIFEST.in: Add the Extensions |
2693 |
|
|
|
2694 |
bh |
1998 |
* NEWS: Update for 1.0rc1 |
2695 |
|
|
|
2696 |
|
|
2003-12-01 Bernhard Herzog <[email protected]> |
2697 |
|
|
|
2698 |
bh |
1996 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild |
2699 |
|
|
cards for the dialog so that shapefiles ending in all uppercase |
2700 |
|
|
SHP are listed too |
2701 |
|
|
|
2702 |
bh |
1988 |
2003-11-28 Bernhard Herzog <[email protected]> |
2703 |
|
|
|
2704 |
bh |
1996 |
* Thuban/version.py (longversion): Update to 1.0rc1 |
2705 |
|
|
|
2706 |
|
|
* setup.py (setup call): Update version to 1.0rc1. Use the |
2707 |
|
|
[email protected] email address as author email instead of my |
2708 |
|
|
personal one. |
2709 |
|
|
|
2710 |
|
|
2003-11-28 Bernhard Herzog <[email protected]> |
2711 |
|
|
|
2712 |
bh |
1992 |
* po/de.po: Update german translation. |
2713 |
|
|
|
2714 |
|
|
2003-11-28 Bernhard Herzog <[email protected]> |
2715 |
|
|
|
2716 |
bh |
1990 |
Unify the filenames stored in .thuban files so that the .thuban |
2717 |
|
|
files are more platform independend |
2718 |
|
|
|
2719 |
|
|
* Thuban/Model/save.py (unify_filename): New. Unify filenames so |
2720 |
|
|
that they can be used on both windows and unix |
2721 |
|
|
(SessionSaver.prepare_filename): New. Handle all filename |
2722 |
|
|
transformations for filenames stored in the thuban file |
2723 |
|
|
(SessionSaver.write_data_containers, SessionSaver.write_layer): |
2724 |
|
|
Use prepare_filename |
2725 |
|
|
|
2726 |
|
|
* test/test_save.py (SaveSessionTest.testSingleLayer) |
2727 |
|
|
(SaveSessionTest.testLayerProjection) |
2728 |
|
|
(SaveSessionTest.testRasterLayer) |
2729 |
|
|
(SaveSessionTest.testClassifiedLayer) |
2730 |
|
|
(SaveSessionTest.test_dbf_table) |
2731 |
|
|
(SaveSessionTest.test_joined_table): Filenames are always stored |
2732 |
|
|
with slashes on all currently supported platforms so adapt all |
2733 |
|
|
tests to this |
2734 |
|
|
|
2735 |
|
|
* test/test_load.py (LoadSessionTest.filenames): With the new |
2736 |
|
|
filename scheme the filenames in the tests should be |
2737 |
|
|
understandable on all currently supported platforms so we turn |
2738 |
|
|
this into an empty list because we don't have to normalize them |
2739 |
|
|
anymore |
2740 |
|
|
|
2741 |
|
|
2003-11-28 Bernhard Herzog <[email protected]> |
2742 |
|
|
|
2743 |
bh |
1988 |
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
2744 |
|
|
Add the ellipsoid to the projection since some Proj versions |
2745 |
|
|
complain if it's missing. |
2746 |
|
|
|
2747 |
bh |
1984 |
2003-11-27 Bernhard Herzog <[email protected]> |
2748 |
|
|
|
2749 |
|
|
Corect some bounding box projection problems |
2750 |
|
|
|
2751 |
|
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
2752 |
|
|
version of ForwardBBox |
2753 |
|
|
(Projection._transform_bbox): New. common implementation of |
2754 |
|
|
ForwardBBox and InverseBBox |
2755 |
|
|
(Projection.ForwardBBox): Use _transform_bbox. |
2756 |
|
|
|
2757 |
|
|
* test/test_proj.py (TestProjection.test): Add test for |
2758 |
|
|
InverseBBox |
2759 |
|
|
|
2760 |
|
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
2761 |
|
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
2762 |
|
|
new InverseBBox method to determine the unprojected bounding box |
2763 |
|
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
2764 |
|
|
bbox. |
2765 |
|
|
|
2766 |
|
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
2767 |
|
|
Removed. |
2768 |
|
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
2769 |
|
|
better able to test whether bounding boxes are projected correctly |
2770 |
|
|
than test_point_layer_with_projection |
2771 |
|
|
|
2772 |
bh |
1986 |
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use |
2773 |
|
|
InverseBBox to unproject bboxes |
2774 |
|
|
|
2775 |
bh |
1975 |
2003-11-25 Bernhard Herzog <[email protected]> |
2776 |
|
|
|
2777 |
bh |
1981 |
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
2778 |
|
|
source code. |
2779 |
|
|
|
2780 |
|
|
2003-11-25 Bernhard Herzog <[email protected]> |
2781 |
|
|
|
2782 |
bh |
1979 |
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
2783 |
|
|
there for backwards compatibility and all code relying on that |
2784 |
|
|
should have been updated by now. |
2785 |
|
|
|
2786 |
|
|
2003-11-25 Bernhard Herzog <[email protected]> |
2787 |
|
|
|
2788 |
bh |
1977 |
* test/test_load.py (TestClassification.test): Add the missing |
2789 |
|
|
round trip test. |
2790 |
|
|
(TestClassification.file_contents): Update to the newest file |
2791 |
|
|
format |
2792 |
|
|
|
2793 |
|
|
2003-11-25 Bernhard Herzog <[email protected]> |
2794 |
|
|
|
2795 |
bh |
1975 |
Add very experimental (and possibly dangerous) extension to draw |
2796 |
|
|
polygons: |
2797 |
|
|
|
2798 |
|
|
* Extensions/drawshape/README: New. Brief installation |
2799 |
|
|
instructions |
2800 |
|
|
|
2801 |
|
|
* Extensions/drawshape/drawshape.py: New. Implementation of the |
2802 |
|
|
drawshape extensions |
2803 |
|
|
|
2804 |
|
|
* Extensions/drawshape/patch.diff: Patch to apply before the |
2805 |
|
|
extension can be used. |
2806 |
|
|
|
2807 |
bh |
1971 |
2003-11-24 Bernhard Herzog <[email protected]> |
2808 |
|
|
|
2809 |
bh |
1973 |
* Thuban/Model/data.py (ShapefileStore._open_shapefile) |
2810 |
|
|
(ShapefileStore.__init__): Factor opening the shapefile into a |
2811 |
|
|
separate method (the new _open_shapefile). This makes the code a |
2812 |
|
|
bit more readable but the real reason is that it makes some evil |
2813 |
|
|
hacks easier. :-) |
2814 |
|
|
|
2815 |
|
|
2003-11-24 Bernhard Herzog <[email protected]> |
2816 |
|
|
|
2817 |
bh |
1971 |
* Thuban/Model/load.py (SessionLoader.check_attrs): If no |
2818 |
|
|
converter is specified for an attribute assume it's a string |
2819 |
|
|
containing only Latin1 characters. Update doc-string accordingly. |
2820 |
|
|
This change should fix many places where unicode objects might |
2821 |
|
|
accidentally enter Thuban. |
2822 |
|
|
|
2823 |
|
|
* test/test_load.py (TestNonAsciiColumnName): New test to check |
2824 |
|
|
what happens with column names in DBF files that contain non-ascii |
2825 |
|
|
characters |
2826 |
|
|
|
2827 |
bh |
1969 |
2003-11-21 Bernhard Herzog <[email protected]> |
2828 |
|
|
|
2829 |
|
|
Enable the experimental attribute editing again and introduce a |
2830 |
|
|
command line switch to actually activate it |
2831 |
|
|
|
2832 |
|
|
* Thuban/UI/main.py (options): New. Container for options set on |
2833 |
|
|
the commmand line |
2834 |
|
|
(main): Add the --enable-attribute-editing flag. |
2835 |
|
|
|
2836 |
|
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute |
2837 |
|
|
editing is enabled use the grid ctrl which allows editing of the |
2838 |
|
|
values |
2839 |
|
|
|
2840 |
|
|
* Thuban/Model/transientdb.py (AutoTransientTable.write_record): |
2841 |
|
|
New. Just delegate this to the underlying table. |
2842 |
|
|
|
2843 |
bh |
1967 |
2003-11-20 Bernhard Herzog <[email protected]> |
2844 |
|
|
|
2845 |
|
|
* test/test_proj.py (ProjFileReadTests.test_read_unreadable_file): |
2846 |
|
|
Skip this test if run under non-posix systems since it only works |
2847 |
|
|
there |
2848 |
|
|
|
2849 |
bh |
1960 |
2003-11-19 Bernhard Herzog <[email protected]> |
2850 |
|
|
|
2851 |
bh |
1965 |
* Thuban/Model/resource.py: Rework the way gdal support is |
2852 |
|
|
determined so that we can give a reason in the about why gdal is |
2853 |
|
|
not supported. |
2854 |
|
|
(gdal_support_status): New. Variable holding a string with the |
2855 |
|
|
reason for no gdal support |
2856 |
|
|
|
2857 |
|
|
* Thuban/UI/about.py (About.__init__): Add the reason why gdal is |
2858 |
|
|
not supported to the message |
2859 |
|
|
|
2860 |
|
|
2003-11-19 Bernhard Herzog <[email protected]> |
2861 |
|
|
|
2862 |
bh |
1963 |
Remove the old table interface and its test cases |
2863 |
|
|
|
2864 |
|
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Removed. |
2865 |
|
|
(DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin |
2866 |
|
|
anymore |
2867 |
|
|
|
2868 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase) |
2869 |
|
|
(AutoTransientTable): Do not derive from OldTableInterfaceMixin |
2870 |
|
|
anymore |
2871 |
|
|
|
2872 |
|
|
* test/test_table.py: Removed since the old interface it tests is |
2873 |
|
|
gone. |
2874 |
|
|
|
2875 |
|
|
* test/runtests.py (main): The old table interface is gone and |
2876 |
|
|
with it the deprecation warnings so remove the code that turns |
2877 |
|
|
these warnings into errors |
2878 |
|
|
|
2879 |
|
|
2003-11-19 Bernhard Herzog <[email protected]> |
2880 |
|
|
|
2881 |
bh |
1960 |
* test/test_table.py: Revert to revision 1.5 again. Changing the |
2882 |
|
|
tests to use the new table interface is completely wrong since the |
2883 |
|
|
whole purpose of the tests in this module is to test the old |
2884 |
|
|
interface. |
2885 |
|
|
|
2886 |
bh |
1954 |
2003-11-18 Bernhard Herzog <[email protected]> |
2887 |
|
|
|
2888 |
bh |
1958 |
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
2889 |
|
|
New. Test whether the connection matches a set of connection |
2890 |
|
|
parameters |
2891 |
|
|
|
2892 |
|
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
2893 |
|
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
2894 |
|
|
for existing connections with the same parameters and break out of |
2895 |
|
|
the loop correctly. |
2896 |
|
|
|
2897 |
|
|
* test/test_postgis_db.py (TestBriefDescription) |
2898 |
|
|
(TestPostGISSimple.test_brief_description): Rename |
2899 |
|
|
TestBriefDescription to TestPostGISSimple and the test method to |
2900 |
|
|
test_brief_description so that we can add more test methods. |
2901 |
|
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
2902 |
|
|
MatchesParameters method |
2903 |
|
|
|
2904 |
|
|
2003-11-18 Bernhard Herzog <[email protected]> |
2905 |
|
|
|
2906 |
bh |
1960 |
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
2907 |
bh |
1954 |
_was_destroyed, to indicate whether an publisher instance has |
2908 |
|
|
already been destroyed. |
2909 |
|
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
2910 |
|
|
been destroyed yet. |
2911 |
|
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
2912 |
|
|
|
2913 |
|
|
* test/test_connector.py |
2914 |
|
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
2915 |
|
|
calling Unsubscribe after Destroy doesn't raise an exception |
2916 |
|
|
|
2917 |
bh |
1951 |
2003-11-14 Bernhard Herzog <[email protected]> |
2918 |
|
|
|
2919 |
|
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
2920 |
|
|
typo in doc-string |
2921 |
|
|
|
2922 |
bh |
1949 |
2003-11-13 Bernhard Herzog <[email protected]> |
2923 |
|
|
|
2924 |
|
|
Quote table and column names properly for postgis. |
2925 |
|
|
|
2926 |
|
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
2927 |
|
|
quote an identifier for use in an sql statement |
2928 |
|
|
(PostGISColumn.__init__): Add the quoted_name attribute |
2929 |
|
|
(PostGISTable.__init__): New instance variable quoted_tablename |
2930 |
|
|
(PostGISTable._fetch_table_information): Use the quoted table |
2931 |
|
|
name. New isntance variable quoted_geo_col with a quoted version |
2932 |
|
|
of geometry_column |
2933 |
|
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
2934 |
|
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
2935 |
|
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
2936 |
|
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
2937 |
|
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
2938 |
|
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
2939 |
|
|
Use quoted table and column names |
2940 |
|
|
|
2941 |
|
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
2942 |
|
|
(TestPostGISIgnoredColumns): Rename the class to |
2943 |
|
|
TestPostGISSpecialCases because that better describes the new |
2944 |
|
|
cases |
2945 |
|
|
(TestPostGISSpecialCases.test_unsupported_types) |
2946 |
|
|
(TestPostGISSpecialCases.test): Rename the method to |
2947 |
|
|
test_unsupported_types because we need a more descriptive name now |
2948 |
|
|
that there are more methods |
2949 |
|
|
(TestPostGISSpecialCases.test_table_name_quoting) |
2950 |
|
|
(TestPostGISSpecialCases.test_column_name_quoting) |
2951 |
|
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
2952 |
|
|
cases to test quoting of table and column names in PostGISTable |
2953 |
|
|
and PostGISShapeStore |
2954 |
|
|
|
2955 |
|
|
* test/postgissupport.py |
2956 |
|
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
2957 |
|
|
AddGeometryColumn desn't support table or column names with sapces |
2958 |
|
|
or double quotes |
2959 |
|
|
|
2960 |
jan |
1945 |
2003-11-12 Jan-Oliver Wagner <[email protected]> |
2961 |
|
|
|
2962 |
|
|
* Extensions/wms/__init__.py: New: Init to make this |
2963 |
|
|
directory a package. |
2964 |
|
|
|
2965 |
|
|
* Extensions/wms/wms.py: New: Provide layers via OGC WMS. |
2966 |
|
|
|
2967 |
bh |
1932 |
2003-11-11 Bernhard Herzog <[email protected]> |
2968 |
|
|
|
2969 |
bh |
1942 |
* Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New. |
2970 |
|
|
Constant for the file woth deprecated epsg projections |
2971 |
|
|
(get_system_proj_file): Update doc-string |
2972 |
|
|
|
2973 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space |
2974 |
|
|
above the EPS widgets, introduce a check box for the deprecated |
2975 |
|
|
eps projections and a label for the epsg widgets |
2976 |
|
|
(ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections |
2977 |
|
|
too |
2978 |
|
|
|
2979 |
|
|
2003-11-11 Bernhard Herzog <[email protected]> |
2980 |
|
|
|
2981 |
bh |
1939 |
Avoid warnings when run under Python 2.3 |
2982 |
|
|
|
2983 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape) |
2984 |
|
|
(BaseRenderer.draw_label_layer): Coordinates must be ints. |
2985 |
|
|
|
2986 |
|
|
* Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a |
2987 |
|
|
real method so that we can convert to int. |
2988 |
|
|
(MapRenderer.label_font): The font size mist be an int. |
2989 |
|
|
|
2990 |
|
|
* Thuban/UI/common.py (Color2wxColour): The color values must be |
2991 |
|
|
ints. Also, remove the unnecessary asserts. |
2992 |
|
|
|
2993 |
|
|
* test/test_load_0_8.py (TestUnicodeStrings.file_contents) |
2994 |
|
|
(TestUnicodeStrings.test): Python source code should not contain |
2995 |
|
|
non-ascii characters unless an encoding is specified in the file. |
2996 |
|
|
Therefore use \x escapes in the string literals for non-ascii |
2997 |
|
|
characters. |
2998 |
|
|
|
2999 |
|
|
2003-11-11 Bernhard Herzog <[email protected]> |
3000 |
|
|
|
3001 |
bh |
1934 |
* Thuban/Model/resource.py (get_system_proj_file): Add a filename |
3002 |
|
|
parameter so that this function can be used for all proj files in |
3003 |
|
|
Resource/Projections |
3004 |
|
|
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for |
3005 |
|
|
get_system_proj_file |
3006 |
|
|
|
3007 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one |
3008 |
|
|
ProjFile self.__sysProjFile use a dictionary of system ProjFile |
3009 |
|
|
objects self._sys_proj_files |
3010 |
|
|
(ProjFrame.build_dialog): Adapt to the new changes in the |
3011 |
|
|
ProjectionList constructor. Add a check button to toggle whether |
3012 |
|
|
EPSG projections are shown |
3013 |
|
|
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button |
3014 |
|
|
events. |
3015 |
|
|
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show |
3016 |
|
|
the busy cursor if the files have not yet been loaded by the |
3017 |
|
|
dialog. |
3018 |
|
|
(ProjFrame.load_system_proj): Add a parameter for the name of the |
3019 |
|
|
proj file. Maintain the dictionary of system projections |
3020 |
|
|
self._sys_proj_files |
3021 |
|
|
|
3022 |
|
|
* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs, |
3023 |
|
|
user_projs parameters into one parameter proj_files which is a |
3024 |
|
|
list of proj files. |
3025 |
|
|
(ProjectionList._subscribe_proj_files) |
3026 |
|
|
(ProjectionList._unsubscribe_proj_files): New. Move |
3027 |
|
|
subscription/unsubscription of projfile messages to separate |
3028 |
|
|
methods |
3029 |
|
|
(ProjectionList.Destroy): The unsubscribe is now done in |
3030 |
|
|
_unsubscribe_proj_files |
3031 |
|
|
(ProjectionList.update_projections): We now have a list of proj |
3032 |
|
|
file objects |
3033 |
|
|
(ProjectionList.SetProjFiles): New method to set a new list of |
3034 |
|
|
proj file objects |
3035 |
|
|
|
3036 |
|
|
* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file): |
3037 |
|
|
Specify explicitly which system proj file to load. |
3038 |
|
|
|
3039 |
|
|
2003-11-11 Bernhard Herzog <[email protected]> |
3040 |
|
|
|
3041 |
bh |
1932 |
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |
3042 |
|
|
instance variables to cut cyclic references. The GC would have |
3043 |
|
|
collected the loader eventually but it can happen that it doesn't |
3044 |
|
|
run at all until thuban is closed (2.3 but not 2.2 tries a bit |
3045 |
|
|
harder and forces a collection when the interpreter terminates) |
3046 |
|
|
(load_session): Call the handler's Destroy method to make sure |
3047 |
|
|
that it gets garbage collected early. Otherwise it will be |
3048 |
|
|
collected very late if at all and it holds some references to e.g. |
3049 |
|
|
shapestores and the session which can lead to leaks (of e.g. the |
3050 |
|
|
temporary files) |
3051 |
|
|
|
3052 |
|
|
* test/test_load.py (TestSingleLayer.test_leak): New. test for the |
3053 |
|
|
resource leak in load_session |
3054 |
|
|
|
3055 |
bh |
1929 |
2003-11-10 Bernhard Herzog <[email protected]> |
3056 |
|
|
|
3057 |
|
|
* Thuban/UI/baserenderer.py: Add a way to specify how layers in |
3058 |
|
|
extensions are to be rendered. |
3059 |
|
|
(_renderer_extensions): New. List with renderer for layers in |
3060 |
|
|
extensions |
3061 |
|
|
(add_renderer_extension): New. Add a renderer extension |
3062 |
|
|
(init_renderer_extensions): New. Init the renderer extensions |
3063 |
|
|
(BaseRenderer.render_map_incrementally): Search |
3064 |
|
|
_renderer_extensions for how to draw unknown layer types |
3065 |
|
|
(BaseRenderer.draw_raster_data): Add format parameter so that |
3066 |
|
|
formats other than BMP can be drawn |
3067 |
|
|
(BaseRenderer.draw_raster_layer): Pass an explicit format to |
3068 |
|
|
draw_raster_data |
3069 |
|
|
|
3070 |
|
|
* Thuban/UI/renderer.py (raster_format_map): New. Mapping form the |
3071 |
|
|
strings of the format parameter of draw_raster_data method to wx |
3072 |
|
|
constants |
3073 |
|
|
(MapRenderer.draw_raster_data): Add the format parameter and use |
3074 |
|
|
raster_format_map to map it to the right wxwindows constant for |
3075 |
|
|
wxImageFromStream |
3076 |
|
|
|
3077 |
|
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add |
3078 |
|
|
the format parameter and record it |
3079 |
|
|
(TestBaseRenderer.test_raster_no_projection): check the format |
3080 |
|
|
paramter of the draw_raster_data method |
3081 |
|
|
(TestBaseRenderer.test_renderer_extension): New. Test the renderer |
3082 |
|
|
extension facility |
3083 |
|
|
|
3084 |
bh |
1925 |
2003-11-07 Bernhard Herzog <[email protected]> |
3085 |
|
|
|
3086 |
|
|
Tweak the usage of the sqlite database to make common use cases |
3087 |
|
|
more responsive. In most cases copying the data to the sqlite |
3088 |
|
|
database takes so long that using sqlite doesn't have enough |
3089 |
|
|
advantages. |
3090 |
|
|
|
3091 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add |
3092 |
|
|
comments about performance and query the min and max in separate |
3093 |
|
|
statements because only that way will indexes be used. |
3094 |
|
|
(TransientTableBase.UniqueValues): Add some comments about |
3095 |
|
|
performance. |
3096 |
|
|
(AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues): |
3097 |
|
|
Do not copy the data to the transient DB but use the transient |
3098 |
|
|
copy if it exists. See the new comments for the performance trade |
3099 |
|
|
offs |
3100 |
|
|
|
3101 |
|
|
* test/test_transientdb.py |
3102 |
|
|
(TestTransientTable.test_auto_transient_table): Make sure that the |
3103 |
|
|
data is copied to the transient database at some point. |
3104 |
|
|
|
3105 |
bh |
1913 |
2003-11-03 Bernhard Herzog <[email protected]> |
3106 |
|
|
|
3107 |
bh |
1922 |
* Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some |
3108 |
|
|
globals to locals so that it's a bit faster |
3109 |
|
|
|
3110 |
|
|
2003-11-03 Bernhard Herzog <[email protected]> |
3111 |
|
|
|
3112 |
bh |
1920 |
* Thuban/UI/baserenderer.py |
3113 |
|
|
(BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue |
3114 |
|
|
method. ReadValue is faster than ReadRowAsDict since it only reads |
3115 |
|
|
one cell especially now that the dbf file objects actually |
3116 |
|
|
implement it. |
3117 |
|
|
|
3118 |
|
|
* Thuban/Model/table.py (DBFTable.ReadValue): Use the new |
3119 |
|
|
read_attribute method of the dbf objects |
3120 |
|
|
|
3121 |
|
|
2003-11-03 Bernhard Herzog <[email protected]> |
3122 |
|
|
|
3123 |
bh |
1916 |
* Extensions/profiling/profiling.py (popup_dialog_box): New config |
3124 |
|
|
variable to indicate whether the result should be shown in a |
3125 |
|
|
dialog box |
3126 |
|
|
(profile_screen_renderer, time_screen_renderer): Only show a |
3127 |
|
|
dialog box if popup_dialog_box is true. |
3128 |
|
|
(profile_screen_renderer): Flush stdout after the printing the |
3129 |
|
|
first part of the "profiling..." message |
3130 |
|
|
|
3131 |
|
|
* Thuban/UI/baserenderer.py |
3132 |
|
|
(BaseRenderer.draw_shape_layer_incrementally): Cache the pens and |
3133 |
|
|
brushes for the groups so that they're not created over and over |
3134 |
|
|
again |
3135 |
|
|
|
3136 |
bh |
1913 |
* Thuban/Model/classification.py (Classification.__getattr__) |
3137 |
|
|
(Classification._compile_classification) |
3138 |
|
|
(Classification._clear_compiled_classification): New. Methods to |
3139 |
|
|
manage a 'compiled' representation of the classification groups |
3140 |
|
|
which is created on demand |
3141 |
|
|
(Classification.InsertGroup, Classification.RemoveGroup) |
3142 |
|
|
(Classification.ReplaceGroup): reset the compiled representation |
3143 |
|
|
(Classification.FindGroup): Use the compiled representation to |
3144 |
|
|
find the matching group |
3145 |
|
|
(ClassGroupRange.GetRangeTuple): New. Return the range as a tuple |
3146 |
|
|
|
3147 |
bh |
1904 |
2003-10-31 Bernhard Herzog <[email protected]> |
3148 |
|
|
|
3149 |
bh |
1911 |
* Thuban/Model/classification.py (Classification.SetDefaultGroup): |
3150 |
|
|
Send a CLASS_CHANGED message |
3151 |
|
|
(Classification.RemoveGroup): Send a CLASS_CHANGED message and do |
3152 |
|
|
not return the removed group since it wasn't used. |
3153 |
|
|
|
3154 |
|
|
* test/test_classification.py |
3155 |
|
|
(TestClassification.test_set_default_group): New. Test the |
3156 |
|
|
SetDefaultGroup method |
3157 |
|
|
(TestClassification.test_insert_group): New. Test the InsertGroup |
3158 |
|
|
method |
3159 |
|
|
(TestClassification.test_remove_group): New. Test the RemoveGroup |
3160 |
|
|
method |
3161 |
|
|
(TestClassification.test_replace_group): New. Test the |
3162 |
|
|
ReplaceGroup method |
3163 |
|
|
|
3164 |
|
|
2003-10-31 Bernhard Herzog <[email protected]> |
3165 |
|
|
|
3166 |
bh |
1908 |
* test/test_classification.py (TestClassification.setUp): |
3167 |
|
|
Subscribe to the CLASS_CHANGED messages |
3168 |
|
|
(TestClassification.tearDown): New. Destroy the classification |
3169 |
|
|
properly |
3170 |
|
|
(TestClassification.test_defaults): Add tests for the default line |
3171 |
|
|
width and whether no messages were sent yet |
3172 |
|
|
(TestClassification.test_set_default_properties): Add tests for |
3173 |
|
|
messages and setting the default line width |
3174 |
|
|
(TestClassification.test_add_singleton) |
3175 |
|
|
(TestClassification.test_add_range) |
3176 |
|
|
(TestClassification.test_multiple_groups): Add tests for messages |
3177 |
|
|
|
3178 |
|
|
2003-10-31 Bernhard Herzog <[email protected]> |
3179 |
|
|
|
3180 |
bh |
1906 |
Some more refactoring in preparation for new tests: |
3181 |
|
|
|
3182 |
|
|
* test/test_classification.py (TestClassification.setUp): New. |
3183 |
|
|
Instantiate the classification here. Update the test methods |
3184 |
|
|
accordingly. |
3185 |
|
|
(TestClassification.test_multiple_groups): Make sure that the two |
3186 |
|
|
singletons matching 1 are considered different. |
3187 |
|
|
|
3188 |
|
|
2003-10-31 Bernhard Herzog <[email protected]> |
3189 |
|
|
|
3190 |
bh |
1904 |
* test/test_classification.py (red, green, blue): New. These |
3191 |
|
|
constants were used in several cases. Update the relevant methods. |
3192 |
|
|
(TestClassification.test_defaults) |
3193 |
|
|
(TestClassification.test_set_default_properties) |
3194 |
|
|
(TestClassification.test_add_singleton) |
3195 |
|
|
(TestClassification.test_add_range) |
3196 |
|
|
(TestClassification.test_multiple_groups) |
3197 |
|
|
(TestClassification.test_deepcopy): New. These were formerly all |
3198 |
|
|
part of the single method test. |
3199 |
|
|
(TestClassification.test_deepcopy): Removed. |
3200 |
|
|
(TestClassIterator): Removed. The test case is now a method of |
3201 |
|
|
TestClassification since it tests part of the public interface of |
3202 |
|
|
Classification |
3203 |
|
|
(TestClassification.test_iterator): New. Used to be |
3204 |
|
|
TestClassIterator effectively |
3205 |
|
|
|
3206 |
jan |
1902 |
2003-10-31 Jan-Oliver Wagner <[email protected]> |
3207 |
|
|
|
3208 |
|
|
GUIfied the functions of the profiling extension. |
3209 |
|
|
|
3210 |
|
|
* /Extensions/profiling/__init__.py: New: Init to make this |
3211 |
|
|
directory a package. |
3212 |
|
|
|
3213 |
|
|
* Extensions/profiling/profiling.py: Moved menu entries to |
3214 |
|
|
the Extensions menu. Applied _() for strings. |
3215 |
|
|
(profile_screen_renderer): Catch the detailed printout and present |
3216 |
|
|
it in a dialog. |
3217 |
bh |
1904 |
(time_screen_renderer): Raise a dialog to present the result instead |
3218 |
jan |
1902 |
of printing it to stdout. |
3219 |
|
|
|
3220 |
bh |
1897 |
2003-10-31 Bernhard Herzog <[email protected]> |
3221 |
|
|
|
3222 |
bh |
1899 |
* test/test_classification.py (TestClassGroupProperties) |
3223 |
|
|
(TestClassGroup, TestClassGroupDefault, TestClassGroupRange) |
3224 |
|
|
(TestClassGroupSingleton, TestClassIterator, TestClassification): |
3225 |
|
|
Split TestClassification into several classes, one for each class |
3226 |
|
|
being tested. TestClassification itself now only tests |
3227 |
|
|
Classification. This split makes changes to the tests a bit easier |
3228 |
|
|
|
3229 |
|
|
2003-10-31 Bernhard Herzog <[email protected]> |
3230 |
|
|
|
3231 |
bh |
1897 |
* Extensions/profiling/profiling.py: New. Extension to measure |
3232 |
|
|
Thuban performance |
3233 |
|
|
|
3234 |
frank |
1895 |
2003-10-31 Frank Koormann <[email protected]> |
3235 |
|
|
|
3236 |
|
|
Added two items to legend popup menu: Remove Layer and Show Layer Table |
3237 |
|
|
|
3238 |
|
|
* Thuban/UI/legend.py (LegendPanel._OnRemoveLayer, |
3239 |
|
|
LegendPanel._OnShowTable): New event handlers, call the corresponding |
3240 |
|
|
mainwindow methods. |
3241 |
|
|
(LegendTree._OnRightClick): Added items to popup menu. |
3242 |
|
|
|
3243 |
bh |
1894 |
2003-10-30 Bernhard Herzog <[email protected]> |
3244 |
|
|
|
3245 |
|
|
* Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle |
3246 |
|
|
EVT_WINDOW_DESTROY |
3247 |
|
|
(ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does |
3248 |
|
|
nothing but is convenient for the derived classes. |
3249 |
|
|
|
3250 |
|
|
* Thuban/UI/tableview.py |
3251 |
|
|
(TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New. |
3252 |
|
|
Unsubscribe the messages here not in OnClose because that might |
3253 |
|
|
get called multiple times. Fixes RT #2196 |
3254 |
|
|
(TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed |
3255 |
|
|
anymore. |
3256 |
|
|
|
3257 |
|
|
* README: Update the minimum requirement for wxPython. Since we |
3258 |
|
|
now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4, |
3259 |
|
|
the version in which that was introduced for all platforms |
3260 |
|
|
|
3261 |
frank |
1890 |
2003-10-30 Frank Koormann <[email protected]> |
3262 |
|
|
|
3263 |
|
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of |
3264 |
|
|
the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor |
3265 |
|
|
frame. |
3266 |
|
|
|
3267 |
jan |
1889 |
2003-10-30 Jan-Oliver Wagner <[email protected]> |
3268 |
|
|
|
3269 |
|
|
Improved APR import extension, added further EPSG definitions |
3270 |
|
|
and some cleanup regarding string class. |
3271 |
|
|
|
3272 |
|
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo): |
3273 |
|
|
Added test for alias 'longlat'. |
3274 |
|
|
|
3275 |
|
|
* Resources/Projections/epsg-deprecated.proj: New. Contains |
3276 |
|
|
deprecated EPSG definitions. |
3277 |
|
|
|
3278 |
|
|
* Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added |
3279 |
|
|
the variable names for objects. |
3280 |
|
|
|
3281 |
|
|
* Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New. |
3282 |
|
|
Copied from importAPR and provided with documentation. |
3283 |
|
|
|
3284 |
|
|
* Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym): |
3285 |
|
|
Moved to apr.py. |
3286 |
|
|
(APR_View): Added object ref 'ITheme'. |
3287 |
|
|
|
3288 |
|
|
* Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string |
3289 |
|
|
split function by corresponding use of the string class method. |
3290 |
|
|
|
3291 |
|
|
* Thuban/Model/xmlwriter.py: Replaced string replace function by |
3292 |
|
|
corresponding string method. |
3293 |
|
|
|
3294 |
bh |
1880 |
2003-10-29 Bernhard Herzog <[email protected]> |
3295 |
|
|
|
3296 |
|
|
* Thuban/UI/baserenderer.py |
3297 |
|
|
(BaseRenderer.draw_shape_layer_incrementally): Speed up the |
3298 |
|
|
special case of a classification that only has the default group |
3299 |
|
|
|
3300 |
bh |
1868 |
2003-10-27 Bernhard Herzog <[email protected]> |
3301 |
|
|
|
3302 |
bh |
1878 |
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
3303 |
|
|
|
3304 |
bh |
1876 |
* po/de.po: Update. |
3305 |
|
|
|
3306 |
|
|
* Thuban/UI/application.py |
3307 |
|
|
(ThubanApplication.ShowExceptionDialog): Handle translation of the |
3308 |
|
|
dialog message properly |
3309 |
|
|
|
3310 |
|
|
2003-10-27 Bernhard Herzog <[email protected]> |
3311 |
|
|
|
3312 |
bh |
1873 |
Rework how localization works so that we use wx's translation |
3313 |
|
|
functions when running Thuban as a normal application but not when |
3314 |
|
|
we don't need any UI, such as in the test suite. See the comment |
3315 |
|
|
in Thuban/__init__.py for details |
3316 |
|
|
|
3317 |
|
|
* Thuban/__init__.py (_): Add one level of indirection to make the |
3318 |
|
|
translation handling more flexible and to make it possible to use |
3319 |
|
|
either wx's translation services or not. |
3320 |
|
|
(gettext_identity, translation_function_installed) |
3321 |
|
|
(install_translation_function): New function to help with this |
3322 |
|
|
|
3323 |
|
|
* Thuban/UI/__init__.py: Install the wx specific translation |
3324 |
|
|
function if it's OK to do that |
3325 |
|
|
|
3326 |
|
|
* test/support.py (initthuban): Install a dummy translation |
3327 |
|
|
function so that importing Thuban.UI doesn't install a wx specific |
3328 |
|
|
one for which would need to import wxPython |
3329 |
|
|
|
3330 |
|
|
2003-10-27 Bernhard Herzog <[email protected]> |
3331 |
|
|
|
3332 |
bh |
1870 |
* HOWTO-Release: Source archives should be created first and the |
3333 |
|
|
binary packages should be created from the source archives. |
3334 |
|
|
There's an official debian package now so there's no need to test |
3335 |
|
|
the rpm on debian anymore |
3336 |
|
|
|
3337 |
|
|
2003-10-27 Bernhard Herzog <[email protected]> |
3338 |
|
|
|
3339 |
bh |
1868 |
Several rendering changes: |
3340 |
|
|
|
3341 |
|
|
- Render the selection into a separate bitmap so that only that |
3342 |
|
|
bitmap needs to be redrawn when the selection changes |
3343 |
|
|
|
3344 |
|
|
- Render incrementally showing previews and allowing interaction |
3345 |
|
|
before rendering is complete |
3346 |
|
|
|
3347 |
|
|
- Update the renderer interface a bit. Most parameters of |
3348 |
|
|
RenderMap are now parameters of the constructor |
3349 |
|
|
|
3350 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map |
3351 |
|
|
and the update region as parameters. Update the doc-string |
3352 |
|
|
(BaseRenderer.render_map_incrementally): New. Generator function |
3353 |
|
|
to renders the map incrementally |
3354 |
|
|
(BaseRenderer.render_map): Remove the map argument (it's now in |
3355 |
|
|
the constructor) and simply iterate over the |
3356 |
|
|
render_map_incrementally generator to draw the map. |
3357 |
|
|
(BaseRenderer.draw_shape_layer_incrementally) |
3358 |
|
|
(BaseRenderer.draw_shape_layer): Renamed to |
3359 |
|
|
draw_shape_layer_incrementally and changed into a generator that |
3360 |
|
|
yields True every 500 shapes. Used by render_map_incrementally to |
3361 |
|
|
render shape layers incrementally |
3362 |
|
|
|
3363 |
|
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the |
3364 |
|
|
map and region parameters which are now in the constructor |
3365 |
|
|
(ScreenRenderer.RenderMapIncrementally): New. Public frontend for |
3366 |
|
|
the inherited render_map_incrementally. |
3367 |
|
|
(BaseRenderer.draw_shape_layer): Removed. |
3368 |
|
|
(ScreenRenderer.draw_selection_incrementally): New. The selection |
3369 |
|
|
drawing part of the removed draw_shape_layer as a generator |
3370 |
|
|
(ScreenRenderer.layer_shapes): Update because of the region |
3371 |
|
|
parameter change |
3372 |
|
|
(ExportRenderer.__init__): New. Extend the inherited constructor |
3373 |
|
|
with the destination region for the drawing |
3374 |
|
|
(ExportRenderer.RenderMap): Removed the map and region parameters |
3375 |
|
|
which are now in the constructor |
3376 |
|
|
|
3377 |
|
|
* Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a |
3378 |
|
|
bitmap suitable for a preview in a tool |
3379 |
|
|
(CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the |
3380 |
|
|
bitmap |
3381 |
|
|
(MapPrintout.draw_on_dc): Adapt to new renderer interface |
3382 |
|
|
(MapCanvas.OnPaint): Handle drawing the selection bitmap if it |
3383 |
|
|
exists |
3384 |
|
|
(MapCanvas.OnIdle): Update the logic to deal with incremental |
3385 |
|
|
rendering and the selection bitmap |
3386 |
|
|
(MapCanvas._do_redraw): Handle the instantiation of the render |
3387 |
|
|
iterator and the redraws during rendering |
3388 |
|
|
(MapCanvas._render_iterator): New. Generator to incrementally |
3389 |
|
|
redraw both bitmaps |
3390 |
|
|
(MapCanvas.Export): Adapt to new renderer interface. |
3391 |
|
|
(MapCanvas.full_redraw): Reset the selection bitmap and the |
3392 |
|
|
renderer iterator too |
3393 |
|
|
(MapCanvas.redraw_selection): New. Force a redraw of the selection |
3394 |
|
|
bitmap |
3395 |
|
|
(MapCanvas.shape_selected): Only redraw the selection bitmap |
3396 |
|
|
|
3397 |
|
|
* test/test_baserenderer.py |
3398 |
|
|
(TestBaseRenderer.test_polygon_no_projection) |
3399 |
|
|
(TestBaseRenderer.test_raster_no_projection) |
3400 |
|
|
(TestBaseRenderer.test_point_map_projection) |
3401 |
|
|
(TestBaseRenderer.test_point_layer_and_map_projection) |
3402 |
|
|
(TestBaseRenderer.test_point_layer_projection) |
3403 |
|
|
(TestBaseRenderer.test_point_with_classification): Adapt to new |
3404 |
|
|
renderer interface |
3405 |
|
|
|
3406 |
bh |
1865 |
2003-10-24 Bernhard Herzog <[email protected]> |
3407 |
|
|
|
3408 |
|
|
* libraries/thuban/wxproj.cpp (draw_polygon_shape) |
3409 |
|
|
(point_in_polygon_shape, shape_centroid): Raise an exception if |
3410 |
|
|
the shape can't be read. Previously invalid shape ids would lead |
3411 |
|
|
to a segfault. |
3412 |
|
|
|
3413 |
|
|
* test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id): |
3414 |
|
|
New. test whether an exception is raised for invalid shape ids |
3415 |
|
|
|
3416 |
jan |
1857 |
2003-10-24 Jan-Oliver Wagner <[email protected]> |
3417 |
|
|
|
3418 |
jan |
1862 |
* Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat' |
3419 |
|
|
as alias for 'latlong'. |
3420 |
|
|
|
3421 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat' |
3422 |
|
|
as alias for 'latlong'. |
3423 |
|
|
|
3424 |
|
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
3425 |
|
|
|
3426 |
jan |
1859 |
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |
3427 |
|
|
the projection even for the UnknownPanel. |
3428 |
|
|
(UnknownProjPanel.__init__): Define the text and create the textctrl |
3429 |
|
|
widget. |
3430 |
|
|
(UnknownProjPanel._DoLayout): Replaced static text widget by the |
3431 |
|
|
textctrl created in __init__. |
3432 |
|
|
(UnknownProjPanel.SetProjection): Set the text for the text ctrl |
3433 |
|
|
including the parameters of the projection. |
3434 |
|
|
|
3435 |
|
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
3436 |
|
|
|
3437 |
jan |
1857 |
* Resources/Projections/epsg.proj: New. This is a list of |
3438 |
|
|
EPSG codes with parameters for proj. The list has been |
3439 |
|
|
generated using devtools/create_epsg.py based on the |
3440 |
|
|
file nad/epsg of the proj 4.4.7 package. Four projection |
3441 |
|
|
definitions have been deleted as they are not accepted by proj: |
3442 |
|
|
"CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03" |
3443 |
|
|
and "HD72 / EOV". |
3444 |
|
|
|
3445 |
bh |
1855 |
2003-10-22 Bernhard Herzog <[email protected]> |
3446 |
|
|
|
3447 |
|
|
Some more tweaks to the projection dialog which should fix RT |
3448 |
|
|
#1886. |
3449 |
|
|
|
3450 |
|
|
* Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from |
3451 |
|
|
the ProjFile's messages and call the base class methods correctly |
3452 |
|
|
(ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED |
3453 |
|
|
flag on the newly selected item too. Otherwise some other item is |
3454 |
|
|
focused and the first time the focus is moved with the keyboard |
3455 |
|
|
the selection moves in unexpected ways. |
3456 |
|
|
|
3457 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the |
3458 |
|
|
focus on the OK button, only on the projection list. That way the |
3459 |
|
|
list really has the focus initially |
3460 |
|
|
(ProjFrame.OnClose): Call the projection list's Destroy method to |
3461 |
|
|
make it unsubscribe all messages |
3462 |
|
|
|
3463 |
bh |
1840 |
2003-10-21 Bernhard Herzog <[email protected]> |
3464 |
|
|
|
3465 |
bh |
1852 |
Rework the projection dialog to fix a few bugs, including RT 2166 |
3466 |
|
|
and most of 2168 |
3467 |
|
|
|
3468 |
|
|
* Thuban/UI/projlist.py: New. The class ProjectionList is a |
3469 |
|
|
special wxListCtrl to show a list of projections in a more MVC |
3470 |
|
|
fashion |
3471 |
|
|
|
3472 |
|
|
* Thuban/UI/projdialog.py (ProjFrame): Substantial changes |
3473 |
|
|
throughout the class. The main change is to use the ProjectionList |
3474 |
|
|
class instead of a normal wxListBox. Also, add an explicit |
3475 |
|
|
"Unknown" projection to the projection choice control. |
3476 |
|
|
(ProjPanel.__init__): Add an "unknown" ellipsoid |
3477 |
|
|
(TMPanel.__init__, LCCPanel.__init__): Tweak the order of |
3478 |
|
|
instantiation of the panel's controls to make the tab-order more |
3479 |
|
|
natural |
3480 |
|
|
|
3481 |
|
|
2003-10-21 Bernhard Herzog <[email protected]> |
3482 |
|
|
|
3483 |
bh |
1849 |
* test/test_load.py (TestSingleLayer.file_contents) |
3484 |
|
|
(TestSingleLayer.test): Add non-ascii characters to the titles of |
3485 |
|
|
session, map and layer. This is effectively a port of the |
3486 |
|
|
TestUnicodeStrings test in test_load_0_8.py which for some reason |
3487 |
|
|
was only added there. |
3488 |
|
|
|
3489 |
|
|
* test/test_load_0_9.py (TestSingleLayer.file_contents) |
3490 |
|
|
(TestSingleLayer.test): Same as in test_load.py: add non-ascii |
3491 |
|
|
characters to the titles of session, map and layer,. |
3492 |
|
|
|
3493 |
|
|
2003-10-21 Bernhard Herzog <[email protected]> |
3494 |
|
|
|
3495 |
bh |
1847 |
Add EPSG projection handling to .thuban files |
3496 |
|
|
|
3497 |
|
|
* test/test_save.py (SaveSessionTest.dtd) |
3498 |
|
|
(SaveSessionTest.testEmptySession) |
3499 |
|
|
(SaveSessionTest.testLayerProjection) |
3500 |
|
|
(SaveSessionTest.testRasterLayer) |
3501 |
|
|
(SaveSessionTest.testClassifiedLayer) |
3502 |
|
|
(SaveSessionTest.test_dbf_table) |
3503 |
|
|
(SaveSessionTest.test_joined_table) |
3504 |
|
|
(SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace |
3505 |
|
|
(SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and |
3506 |
|
|
use a and epsg projection to test saving them |
3507 |
|
|
|
3508 |
|
|
* test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev |
3509 |
|
|
namespace |
3510 |
|
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
3511 |
|
|
(TestLayerProjection.file_contents) |
3512 |
|
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
3513 |
|
|
(TestPostGISLayer.file_contents) |
3514 |
|
|
(TestPostGISLayerPassword.file_contents) |
3515 |
|
|
(TestLoadError.file_contents, TestLoadError.test): Update to use |
3516 |
|
|
1.0-dev namespace |
3517 |
|
|
(TestSingleLayer.file_contents, TestSingleLayer.test): Update to |
3518 |
|
|
use 1.0-dev namespace and use an EPSG projection to test whether |
3519 |
|
|
loading it works |
3520 |
|
|
|
3521 |
|
|
* test/test_load_0_9.py: New. Effectively a copy of test_load.py |
3522 |
|
|
as of Thuban 0.9. These are now tests to determine whether Thuban |
3523 |
|
|
can still read files generated by Thuban 0.9 |
3524 |
|
|
|
3525 |
|
|
* Thuban/Model/save.py (SessionSaver.write) |
3526 |
|
|
(SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev |
3527 |
|
|
namespace |
3528 |
|
|
(SessionSaver.write_projection): Write the projection's epsg |
3529 |
|
|
attribute |
3530 |
|
|
|
3531 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Also accept the |
3532 |
|
|
thuban-1.0-dev.dtd namespace |
3533 |
|
|
(SessionLoader.check_attrs): Allow a callable object as conversion |
3534 |
|
|
too |
3535 |
|
|
(SessionLoader.start_projection, SessionLoader.end_projection) |
3536 |
|
|
(SessionLoader.start_parameter): Handle the epsg attribute and |
3537 |
|
|
rename a few instance variables to lower case |
3538 |
|
|
|
3539 |
|
|
* Resources/XML/thuban-1.0.dtd: New. Only difference to |
3540 |
|
|
thuban-0.9.dtd is the epsg attribute for projections. |
3541 |
|
|
|
3542 |
|
|
2003-10-21 Bernhard Herzog <[email protected]> |
3543 |
|
|
|
3544 |
bh |
1840 |
* test/runtests.py (main): Let the user specify which tests to run |
3545 |
|
|
on the command line |
3546 |
|
|
|
3547 |
|
|
* test/support.py (ThubanTestResult.getDescription): Override to |
3548 |
|
|
give a better short description. The description can be used as a |
3549 |
|
|
parameter to run_tests to run that particular test in isolation. |
3550 |
|
|
|
3551 |
frank |
1837 |
2003-10-21 Frank Koormann <[email protected]> |
3552 |
|
|
|
3553 |
|
|
Popup menu for legend. Scheduled for the 1.2 release this was too |
3554 |
|
|
simple to implement: The popup menu is bound to the legend tree, while |
3555 |
|
|
the events are hanlded by its anchestor, the legend panel. This |
3556 |
|
|
allows reuse of all the event handlers already implemented for the |
3557 |
|
|
legend toolbar buttons. |
3558 |
|
|
|
3559 |
|
|
* Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros |
3560 |
|
|
to add handlers for the events issued by the popup menu. |
3561 |
|
|
(LegendPanel._OnToggleVisibility): Handler for toggling layer |
3562 |
|
|
visibility event |
3563 |
|
|
(LegendPanel._OnProjection): Handler for layer projection event. |
3564 |
|
|
(LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK |
3565 |
|
|
(LegendTree._OnRightClick): Event handler for right click, select item |
3566 |
|
|
and pop up menu. |
3567 |
|
|
(LegendTree.ToggleVisibility): Toggle layer visibility |
3568 |
|
|
(LegendTree.LayerProjection): Raise layer projection dialog for |
3569 |
|
|
current layer. |
3570 |
|
|
|
3571 |
bh |
1836 |
2003-10-21 Bernhard Herzog <[email protected]> |
3572 |
|
|
|
3573 |
|
|
* Resources/Projections/defaults.proj: Use correct DOCTYPE |
3574 |
|
|
declaration. The top-level element is projectionlist not projfile |
3575 |
|
|
|
3576 |
bh |
1834 |
2003-10-20 Bernhard Herzog <[email protected]> |
3577 |
|
|
|
3578 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |
3579 |
|
|
method to write a projfile and display a busy cursor and error |
3580 |
|
|
dialogs. |
3581 |
|
|
(ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport) |
3582 |
|
|
(ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file |
3583 |
|
|
(ProjFrame.__FillAvailList): Translate "<None>" too and display a |
3584 |
|
|
busy cursor while loading the user and system prj files. |
3585 |
|
|
|
3586 |
bh |
1832 |
2003-10-16 Bernhard Herzog <[email protected]> |
3587 |
|
|
|
3588 |
|
|
* Thuban/Model/resource.py (projfile_cache): Introduce a cache for |
3589 |
|
|
ProjFile objects |
3590 |
|
|
(clear_proj_file_cache): New function to clear the cache. Mainly |
3591 |
|
|
useful for use by the test suite |
3592 |
|
|
(read_proj_file): Use the cache. |
3593 |
|
|
|
3594 |
|
|
* test/test_proj.py (TestProjFile): Clarify the doc-string |
3595 |
|
|
(ProjFileReadTests): Update doc-string |
3596 |
|
|
(ProjFileReadTests.test_get_system_proj_file): Check whether the |
3597 |
|
|
system proj files is cached. |
3598 |
|
|
(ProjFileLoadTestCase): New base class for the proj file tests |
3599 |
|
|
derived from support.FileLoadTestCase to provide some common |
3600 |
|
|
behavior. |
3601 |
|
|
(TestLoadingProjFile) |
3602 |
|
|
(TestLoadingProjFileWithEmptyProjectionlist.file_contents) |
3603 |
|
|
(TestProjFileWithInvalidParameters.file_contents): Derive from |
3604 |
|
|
ProjFileLoadTestCase |
3605 |
|
|
(TestLoadingProjFile.test_caching): New. Test whether the cache |
3606 |
|
|
works |
3607 |
|
|
|
3608 |
silke |
1829 |
2003-10-16 Silke Reimer <[email protected]> |
3609 |
|
|
|
3610 |
|
|
* debian/*: New directory with configuration files for building a thuban |
3611 |
|
|
deb-package. |
3612 |
|
|
|
3613 |
bh |
1822 |
2003-10-14 Bernhard Herzog <[email protected]> |
3614 |
|
|
|
3615 |
bh |
1828 |
* test/test_proj.py: Execute support.run_tests when run as |
3616 |
|
|
__main__ so that missing unsubscribes are detected |
3617 |
|
|
(TestProjFile.tearDown): Destroy the proj_file properly |
3618 |
|
|
|
3619 |
|
|
2003-10-14 Bernhard Herzog <[email protected]> |
3620 |
|
|
|
3621 |
bh |
1826 |
* Thuban/Model/messages.py (PROJECTION_ADDED) |
3622 |
|
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
3623 |
|
|
the ProjFile objects |
3624 |
|
|
|
3625 |
|
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
3626 |
|
|
easily send messages when the projections change |
3627 |
|
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
3628 |
|
|
when the change was successful |
3629 |
|
|
|
3630 |
|
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
3631 |
|
|
proj file messages |
3632 |
|
|
(TestProjFile.test_add_remove) |
3633 |
|
|
(TestProjFile.test_remove_non_existing) |
3634 |
|
|
(TestProjFile.test_replace) |
3635 |
|
|
(TestProjFile.test_replace_non_existing): Test whether the right |
3636 |
|
|
messages are sent |
3637 |
|
|
|
3638 |
|
|
2003-10-14 Bernhard Herzog <[email protected]> |
3639 |
|
|
|
3640 |
bh |
1822 |
* test/test_proj.py (TestProjFile.test): Refactor into several |
3641 |
|
|
tests |
3642 |
|
|
(TestProjFile.test_add_remove) |
3643 |
|
|
(TestProjFile.test_remove_non_existing) |
3644 |
|
|
(TestProjFile.test_replace) |
3645 |
|
|
(TestProjFile.test_replace_non_existing): Some of the new |
3646 |
|
|
individual test cases |
3647 |
|
|
(TestProjFileSimple): New class for the rest of the test cases |
3648 |
|
|
that came out of the refactoring |
3649 |
|
|
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the |
3650 |
|
|
derived classes don't have to |
3651 |
|
|
|
3652 |
bh |
1812 |
2003-10-13 Bernhard Herzog <[email protected]> |
3653 |
|
|
|
3654 |
bh |
1820 |
Add an optional EPSG code to the projection objects and extend the |
3655 |
|
|
.proj file format accordingly. |
3656 |
|
|
|
3657 |
|
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
3658 |
|
|
attribute |
3659 |
|
|
|
3660 |
|
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
3661 |
|
|
instance variable epsg. Update doc-string |
3662 |
|
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
3663 |
|
|
access to EPSG code and a label for use in dialogs |
3664 |
|
|
|
3665 |
|
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
3666 |
|
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
3667 |
|
|
Handle the epsg code attribute when reading or writing proj files |
3668 |
|
|
|
3669 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
3670 |
|
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
3671 |
|
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
3672 |
|
|
get the string for the list box |
3673 |
|
|
|
3674 |
|
|
* test/test_proj.py (TestProjection.test_label) |
3675 |
|
|
(TestProjection.test_label_epsg) |
3676 |
|
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
3677 |
|
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
3678 |
|
|
for the label and EPSGCode methods |
3679 |
|
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
3680 |
|
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
3681 |
|
|
objects in the test cases and put the expected contents into the |
3682 |
|
|
test case methods too. Update doTestWrite accordingly |
3683 |
|
|
(TestLoadingProjFile) |
3684 |
|
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
3685 |
|
|
read tests from TestProjFile. |
3686 |
|
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
3687 |
|
|
tests are now in the new classes. |
3688 |
|
|
(sample_projfile, sample_projfile_data) |
3689 |
|
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
3690 |
|
|
anymore. |
3691 |
|
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
3692 |
|
|
permissions at the end anymore since we use a unique filename |
3693 |
|
|
|
3694 |
|
|
2003-10-13 Bernhard Herzog <[email protected]> |
3695 |
|
|
|
3696 |
bh |
1814 |
* test/test_proj.py: Some more refactoring of the test cases |
3697 |
|
|
(ProjFileTest): New base class for the proj file tests. |
3698 |
|
|
(TestProjFile): Derive from ProjFileTest |
3699 |
|
|
(TestProjFile.test_read_unreadable_file) |
3700 |
|
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
3701 |
|
|
the new filename method to get a unique filename |
3702 |
|
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
3703 |
|
|
(WriteProjFileTests): New class for proj file write tests. |
3704 |
|
|
Contains the write test that were in TestProjFile originally. |
3705 |
|
|
|
3706 |
|
|
2003-10-13 Bernhard Herzog <[email protected]> |
3707 |
|
|
|
3708 |
bh |
1812 |
* test/test_proj.py (TestProjFile.testRead) |
3709 |
|
|
(TestProjFile.test_read_non_existing_file) |
3710 |
|
|
(TestProjFile.test_read_unreadable_file) |
3711 |
|
|
(TestProjFile.test_read_empty_file): Split into several methods. |
3712 |
|
|
|
3713 |
bh |
1805 |
2003-10-10 Bernhard Herzog <[email protected]> |
3714 |
|
|
|
3715 |
bh |
1810 |
* Thuban/UI/sizers.py: New file with custom sizers. |
3716 |
|
|
|
3717 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
3718 |
|
|
all projection type specific panels and put them into a |
3719 |
|
|
NotebookLikeSizer. This way the dialog doesn't change its size |
3720 |
|
|
when a different projection is selected |
3721 |
|
|
(ProjFrame.__init__): Rename projection_panels |
3722 |
|
|
projection_panel_defs and reuse projection_panels for a list of |
3723 |
|
|
the instantiated panels. |
3724 |
|
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
3725 |
|
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
3726 |
|
|
the panels |
3727 |
|
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
3728 |
|
|
differently to make the panel narrower. |
3729 |
|
|
(TMPanel._DoLayout): Layout the parameters in one column. |
3730 |
|
|
|
3731 |
|
|
2003-10-10 Bernhard Herzog <[email protected]> |
3732 |
|
|
|
3733 |
bh |
1807 |
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
3734 |
|
|
that contains all the setup for the dialog's widgets, layout and |
3735 |
|
|
event handling. |
3736 |
|
|
(__): Call build_dialog to build the dialog. |
3737 |
|
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
3738 |
|
|
Their functionality is now in build_dialog |
3739 |
|
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
3740 |
|
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
3741 |
|
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
3742 |
|
|
different widget names and hierarchy introduced with build_dialog. |
3743 |
|
|
|
3744 |
|
|
2003-10-10 Bernhard Herzog <[email protected]> |
3745 |
|
|
|
3746 |
bh |
1805 |
* README: Fix typo. |
3747 |
|
|
|
3748 |
bh |
1803 |
2003-10-09 Bernhard Herzog <[email protected]> |
3749 |
|
|
|
3750 |
|
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
3751 |
|
|
projection is already in the list. This is *a lot* faster when |
3752 |
|
|
loading files with hundreds of projections since it saves a linear |
3753 |
|
|
search. OTOH this will allow adding the same projection to the |
3754 |
|
|
user.proj file multiple times in the projection dialog but we'll |
3755 |
|
|
deal with that later |
3756 |
|
|
|
3757 |
jan |
1801 |
2003-10-09 Jan-Oliver Wagner <[email protected]> |
3758 |
|
|
|
3759 |
|
|
* devtools: New. Directory for developer tools that are not intended |
3760 |
|
|
for the regular user. |
3761 |
|
|
|
3762 |
|
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
3763 |
|
|
a python .proj file. |
3764 |
|
|
|
3765 |
bh |
1799 |
2003-10-09 Bernhard Herzog <[email protected]> |
3766 |
|
|
|
3767 |
|
|
* test/test_proj.py |
3768 |
|
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
3769 |
|
|
whether GetParameter handles parameters without "=" sign correctly |
3770 |
|
|
|
3771 |
|
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
3772 |
|
|
parameters that do not contain a "=". Update the doc-string |
3773 |
|
|
|
3774 |
bh |
1794 |
2003-10-08 Bernhard Herzog <[email protected]> |
3775 |
|
|
|
3776 |
bh |
1796 |
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
3777 |
|
|
length limit on the projname text control |
3778 |
|
|
|
3779 |
|
|
2003-10-08 Bernhard Herzog <[email protected]> |
3780 |
|
|
|
3781 |
bh |
1794 |
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
3782 |
|
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
3783 |
|
|
the Projection.GetProjectedUnits method |
3784 |
|
|
|
3785 |
jan |
1792 |
2003-10-08 Jan-Oliver Wagner <[email protected]> |
3786 |
|
|
|
3787 |
|
|
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
3788 |
|
|
Added missing 'val' parameter. |
3789 |
|
|
|
3790 |
bh |
1788 |
2003-10-08 Bernhard Herzog <[email protected]> |
3791 |
|
|
|
3792 |
bh |
1790 |
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the |
3793 |
|
|
projection type of the currently selected projection is not known, |
3794 |
|
|
i.e. there's no panel for it, use the UnknownProjPanel |
3795 |
|
|
(ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split |
3796 |
|
|
the actual replacing of the proj panel into the new method |
3797 |
|
|
_show_proj_panel. |
3798 |
|
|
(UnknownProjPanel): Add doc-string. |
3799 |
|
|
(UnknownProjPanel._DoLayout): Insert a newline into the text so |
3800 |
|
|
that the panel is not so wide. |
3801 |
|
|
|
3802 |
|
|
2003-10-08 Bernhard Herzog <[email protected]> |
3803 |
|
|
|
3804 |
bh |
1788 |
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
3805 |
|
|
too. Update the doc-string |
3806 |
|
|
(get_proj_files): Removed. It wasn't used anywhere |
3807 |
|
|
(get_system_proj_files, get_system_proj_file): Rename to |
3808 |
|
|
get_system_proj_file and return the ProjFile object and not a list |
3809 |
|
|
of ProjFile objects. Update the callers. |
3810 |
|
|
(get_user_proj_files, get_user_proj_file): Rename to |
3811 |
|
|
get_user_proj_file return the ProjFile object and not a list of |
3812 |
|
|
ProjFile objects. Update the callers. |
3813 |
|
|
(ProjFileReader.__init__): New instance variable for the warnings. |
3814 |
|
|
Rename the __pf ivar to projfile. Update the methods referring to |
3815 |
|
|
__pf |
3816 |
|
|
(ProjFileReader.end_projection): Catch any errors raised when |
3817 |
|
|
instantiating the projection and record that as an error. The |
3818 |
|
|
projection will not be in the final ProjFile object. |
3819 |
|
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
3820 |
|
|
|
3821 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
3822 |
|
|
show the warnings from the projfile reader |
3823 |
|
|
(ProjFrame._OnImport): Deal with any warnings returned by |
3824 |
|
|
read_proj_file |
3825 |
|
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
3826 |
|
|
get_system_proj_file or get_user_proj_file. |
3827 |
|
|
|
3828 |
|
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
3829 |
|
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
3830 |
|
|
to test whether read_proj_file handles invalid projection |
3831 |
|
|
parameters correctly |
3832 |
|
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
3833 |
|
|
resource.get_system_proj_file |
3834 |
|
|
|
3835 |
bh |
1785 |
2003-10-07 Bernhard Herzog <[email protected]> |
3836 |
|
|
|
3837 |
|
|
* test/test_derivedshapestore.py |
3838 |
|
|
(TestDerivedShapeStoreExceptions.tearDown): Clear the session |
3839 |
|
|
properly so that the temporary directories get deleted correctly |
3840 |
|
|
|
3841 |
bh |
1773 |
2003-10-06 Bernhard Herzog <[email protected]> |
3842 |
|
|
|
3843 |
bh |
1783 |
Handle the title changes in a proper MVC way. |
3844 |
|
|
|
3845 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
3846 |
|
|
canvas' TITLE_CHANGED messages |
3847 |
|
|
(MainWindow.update_title): New. Update the main window's title |
3848 |
|
|
(MainWindow.__SetTitle): Removed. Use update_title instead. |
3849 |
|
|
(MainWindow.SetMap): Use update_title instead of __SetTitle |
3850 |
|
|
(MainWindow.RenameMap): Do change the window title explicitly |
3851 |
|
|
here. That's handled in a proper MVC way now. |
3852 |
|
|
(MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED |
3853 |
|
|
messages |
3854 |
|
|
|
3855 |
|
|
* Thuban/Lib/connector.py (Conduit): New class to help classes |
3856 |
|
|
that forward messages |
3857 |
|
|
|
3858 |
|
|
* Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages |
3859 |
|
|
(ViewPort): Derive from Conduit instead of Publisher |
3860 |
|
|
(ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class |
3861 |
|
|
when calling the inherited versions |
3862 |
|
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper |
3863 |
|
|
methods to subscribe and unsubscribe map messages |
3864 |
|
|
(ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to |
3865 |
|
|
handle the map subscriptions |
3866 |
|
|
(ViewPort.Map, ViewPort.map_projection_changed) |
3867 |
|
|
(ViewPort.layer_projection_changed): Add or update doc-strings |
3868 |
|
|
|
3869 |
|
|
* test/test_connector.py (TestPublisher.test_issue_simple): Fix |
3870 |
|
|
typo |
3871 |
|
|
(MyConduit): Helper class for the Conduit test. |
3872 |
|
|
(TestConduit): Test cases for Conduit |
3873 |
|
|
|
3874 |
|
|
* test/test_connector.py: Use support.run_tests as main. |
3875 |
|
|
|
3876 |
|
|
* test/test_viewport.py (ViewPortTest.setUp): Also subscribe to |
3877 |
|
|
the TITLE_CHANGED messages |
3878 |
|
|
(ViewPortTest.test_forwarding_title_changed): New test to check |
3879 |
|
|
whether the viewport forwards the map's TITLE_CHANGED messages |
3880 |
|
|
(TestViewportWithPostGIS.tearDown): Call the map's Destroy method |
3881 |
|
|
after the port's because the latter may require a still functional |
3882 |
|
|
map. |
3883 |
|
|
|
3884 |
|
|
2003-10-06 Bernhard Herzog <[email protected]> |
3885 |
|
|
|
3886 |
bh |
1777 |
* Thuban/UI/application.py (ThubanApplication.maps_changed): Add |
3887 |
|
|
doc-string |
3888 |
|
|
|
3889 |
|
|
2003-10-06 Bernhard Herzog <[email protected]> |
3890 |
|
|
|
3891 |
bh |
1775 |
* test/test_viewport.py (ViewPortTest.setUp) |
3892 |
|
|
(SimpleViewPortTest.test_init_with_size): Move the test for the |
3893 |
|
|
initial size as a constructor parameter from ViewPortTest.setUp |
3894 |
|
|
method to a new separate test in SimpleViewPortTest. |
3895 |
|
|
|
3896 |
|
|
2003-10-06 Bernhard Herzog <[email protected]> |
3897 |
|
|
|
3898 |
bh |
1773 |
* test/test_viewport.py (MockView): New class derived from |
3899 |
|
|
ViewPort with a mock implementation of GetTextExtent to be used in |
3900 |
|
|
the test cases |
3901 |
|
|
(ViewPortTest.setUp): Use MockView instead of ViewPort |
3902 |
|
|
|
3903 |
|
|
* Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method |
3904 |
|
|
into what would be a "pure virtual function" in C++: always raise |
3905 |
|
|
NotImplementedError. Mock implementations for test cases don't |
3906 |
|
|
belong into the real code |
3907 |
|
|
|
3908 |
bh |
1770 |
2003-10-02 Bernhard Herzog <[email protected]> |
3909 |
|
|
|
3910 |
|
|
* test/test_layer.py (TestLayer.test_empty_layer): Explicitly |
3911 |
|
|
close the dbf file we create so that it's contents have been |
3912 |
|
|
written properly. |
3913 |
|
|
|
3914 |
|
|
* libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c, |
3915 |
|
|
libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c: |
3916 |
|
|
Update to shapelib 1.2.10 |
3917 |
|
|
|
3918 |
jan |
1767 |
2003-10-01 Jan-Oliver Wagner <[email protected]> |
3919 |
|
|
|
3920 |
|
|
* Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as |
3921 |
|
|
it annoys lintian which warns about these files not being |
3922 |
|
|
executable. The #! isn't necessary here since if you absolutely |
3923 |
|
|
must execute them you can always say "python <filename>". |
3924 |
|
|
|
3925 |
bh |
1757 |
2003-09-26 Bernhard Herzog <[email protected]> |
3926 |
|
|
|
3927 |
bh |
1760 |
* Thuban/Model/classgen.py (GenQuantiles0): Removed since it's |
3928 |
|
|
only used in GREAT-ER but not used in Thuban itself. When GREAT-ER |
3929 |
|
|
is ported to a newer the import will fail, so it should be noticed |
3930 |
|
|
immediately that this function is gone. |
3931 |
|
|
Fixes RT#1919 |
3932 |
|
|
|
3933 |
|
|
2003-09-26 Bernhard Herzog <[email protected]> |
3934 |
|
|
|
3935 |
bh |
1757 |
Add a DTD for the projection files and make thuban write valid |
3936 |
|
|
projection files |
3937 |
|
|
|
3938 |
|
|
* Resources/XML/projfile.dtd: New. DTD for thuban's projection |
3939 |
|
|
files |
3940 |
|
|
|
3941 |
|
|
* Thuban/Model/resource.py (ProjFileSaver.write): Use |
3942 |
|
|
'projectionlist' as the name in the document type declaration so |
3943 |
|
|
that it matches the element type of the root element. |
3944 |
|
|
|
3945 |
|
|
* test/test_proj.py (sample_projfile, sample_projfile2): Use |
3946 |
|
|
'projectionlist' as the name in the document type declaration just |
3947 |
|
|
as it is done now in the files thuban would write |
3948 |
|
|
(sample_projfile, sample_projfile_data): Fix spelling of |
3949 |
|
|
"Mercator" |
3950 |
|
|
(TestProjFile.doTestWrite): Validate the written and the expected |
3951 |
|
|
XML data |
3952 |
|
|
(TestProjFile): Derive from ValidationTest so that we can run xml |
3953 |
|
|
validation tests |
3954 |
|
|
|
3955 |
bh |
1751 |
2003-09-24 Bernhard Herzog <[email protected]> |
3956 |
|
|
|
3957 |
|
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not |
3958 |
|
|
modify the list returned by map.Layers() in place since it is the |
3959 |
|
|
actual list of layers used by the map. |
3960 |
|
|
|
3961 |
jan |
1745 |
2003-09-23 Jan-Oliver Wagner <[email protected]> |
3962 |
|
|
|
3963 |
|
|
* Doc/manual/thuban-manual.xml: Added subsection to chapter |
3964 |
|
|
Extensions to describe the extensions coming with the Thuban |
3965 |
|
|
standard package (gns2shp and importAPR). |
3966 |
|
|
|
3967 |
bh |
1743 |
2003-09-23 Bernhard Herzog <[email protected]> |
3968 |
|
|
|
3969 |
|
|
* libraries/thuban/wxproj.cpp (project_point): if there's an |
3970 |
|
|
inverse but no forward projection, convert to degrees after |
3971 |
|
|
applying the inverse projection. Fixes RT#2096 |
3972 |
|
|
|
3973 |
|
|
* test/test_wxproj.py: New. Test cases for wxproj.so. One test |
3974 |
|
|
implicitly tests for the fix to RT#2096 |
3975 |
|
|
|
3976 |
|
|
* test/support.py (FloatComparisonMixin.assertFloatSeqEqual): |
3977 |
|
|
Check that the sequences have the same lengths |
3978 |
|
|
|
3979 |
|
|
* Resources/Projections/defaults.proj (Geographic projection): Use |
3980 |
|
|
a much more precise value for the to_meter attribute. |
3981 |
|
|
|
3982 |
bh |
1737 |
2003-09-22 Bernhard Herzog <[email protected]> |
3983 |
|
|
|
3984 |
|
|
* test/support.py (initthuban): Make sure to unset the LANG env. |
3985 |
|
|
var. so that tests that compare translated strings work. Solves RT |
3986 |
|
|
#2094 |
3987 |
|
|
|
3988 |
jan |
1730 |
2003-09-22 Jan-Oliver Wagner <[email protected]> |
3989 |
|
|
|
3990 |
jan |
1735 |
Small improvement of APR import. |
3991 |
|
|
|
3992 |
|
|
* Extensions/importAPR/test/test_apr.py (aprTest.test_LClass): |
3993 |
|
|
Added tests for text-ranges. |
3994 |
|
|
|
3995 |
|
|
* Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now |
3996 |
|
|
returns a string object if the range is based on text. |
3997 |
|
|
|
3998 |
|
|
* Extensions/importAPR/importAPR.py (import_apr_dialog): Unified |
3999 |
|
|
range retrieval. |
4000 |
|
|
|
4001 |
|
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
4002 |
|
|
|
4003 |
jan |
1730 |
Initial version of the importAPR extension which is in |
4004 |
|
|
experimental state. |
4005 |
|
|
|
4006 |
|
|
* /Extensions/importAPR/, /Extensions/importAPR/samples/, |
4007 |
|
|
/Extensions/importAPR/test/: New directories. |
4008 |
|
|
|
4009 |
|
|
* /Extensions/importAPR/samples/README: New: Howto load the samples. |
4010 |
|
|
|
4011 |
|
|
* /Extensions/importAPR/samples/iceland.apr: New: A sample APR |
4012 |
|
|
file which refers to the Thuban Iceland demo data. |
4013 |
|
|
|
4014 |
|
|
* /Extensions/importAPR/test/README: New: Howto execute the tests. |
4015 |
|
|
|
4016 |
|
|
* /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes. |
4017 |
|
|
|
4018 |
|
|
* /Extensions/importAPR/apr.py: New: Classes for ArcView Objects |
4019 |
|
|
as in '.apr'-files. |
4020 |
|
|
|
4021 |
|
|
* /Extensions/importAPR/odb.py: New: Classes for generic ArcView |
4022 |
|
|
ODB Objects as in '.apr', '.avl' and other files. |
4023 |
|
|
|
4024 |
|
|
* /Extensions/importAPR/__init__.py: New: Init to make this |
4025 |
|
|
directory a package. |
4026 |
|
|
|
4027 |
|
|
* /Extensions/importAPR/importAPR.py: New: Import a ArcView |
4028 |
|
|
project file (.apr) and convert it to Thuban. |
4029 |
|
|
|
4030 |
|
|
2003-09-22 Jan-Oliver Wagner <[email protected]> |
4031 |
|
|
|
4032 |
|
|
* Extensions/gns2shp.gns2shp.py: The main module of gns2shp. |
4033 |
|
|
|
4034 |
jan |
1720 |
2003-09-19 Jan-Oliver Wagner <[email protected]> |
4035 |
|
|
|
4036 |
|
|
* Doc/manual/thuban-manual.xml: Extended section 'Installation' |
4037 |
|
|
with description on RPM installation and RPM binary package |
4038 |
|
|
creation. |
4039 |
|
|
|
4040 |
bh |
1718 |
2003-09-18 Bernhard Herzog <[email protected]> |
4041 |
|
|
|
4042 |
|
|
* setup.py (data_files): Only add the mo files if the Locales |
4043 |
|
|
directory actually exists, so that setup.py works with a fresh CVS |
4044 |
|
|
checkout |
4045 |
|
|
|
4046 |
jan |
1716 |
2003-09-12 Jan-Oliver Wagner <[email protected]> |
4047 |
|
|
|
4048 |
|
|
* Examples/simple_extensions/simple_tool.py: bugfix: Tool is now |
4049 |
|
|
in viewport, not anymore in view |
4050 |
|
|
|
4051 |
jan |
1714 |
2003-09-04 Jan-Oliver Wagner <[email protected]> |
4052 |
|
|
|
4053 |
|
|
Introducing first Extension (gns2shp). |
4054 |
|
|
|
4055 |
|
|
* Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New. |
4056 |
|
|
|
4057 |
|
|
* Extensions/__init__.py: New. init to make this dir a package. |
4058 |
|
|
|
4059 |
|
|
* Extensions/gns2shp/__init__.py: New. init to make this dir a package. |
4060 |
|
|
|
4061 |
|
|
* Extensions/gns2shp/test/README: New. some info on this test directory. |
4062 |
|
|
|
4063 |
|
|
* Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein). |
4064 |
|
|
|
4065 |
|
|
* Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation |
4066 |
|
|
of Shapefile from GNS text file format |
4067 |
|
|
|
4068 |
jan |
1705 |
2003-09-03 Jan-Oliver Wagner <[email protected]> |
4069 |
|
|
|
4070 |
jan |
1707 |
Fix/workaround for bug #2019: |
4071 |
|
|
https://intevation.de/rt/webrt?serial_num=2019 |
4072 |
|
|
|
4073 |
|
|
* Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New. |
4074 |
|
|
(IdentifyView.__init__): Added another button that allows to |
4075 |
|
|
stop the identify mode. |
4076 |
|
|
(IdentifyView.OnStop): New. Stops the identify mode. |
4077 |
|
|
|
4078 |
|
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
4079 |
|
|
|
4080 |
jan |
1705 |
Introducing a new exception dialog that allows to exit the |
4081 |
|
|
application immediately. |
4082 |
|
|
This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060 |
4083 |
|
|
|
4084 |
|
|
* Thuban/UI/exceptiondialog.py: New. A special exception dialog. |
4085 |
|
|
|
4086 |
|
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
4087 |
|
|
Made strings available to translations. Exchanged the simple |
4088 |
|
|
ScrolledMessageDialog by the new ExceptionDialog. |
4089 |
|
|
|
4090 |
bh |
1694 |
2003-09-01 Bernhard Herzog <[email protected]> |
4091 |
|
|
|
4092 |
bh |
1701 |
* NEWS: New. Summary of changes and release notes. |
4093 |
|
|
|
4094 |
|
|
* MANIFEST.in: Add NEWS |
4095 |
|
|
|
4096 |
|
|
2003-09-01 Bernhard Herzog <[email protected]> |
4097 |
|
|
|
4098 |
bh |
1699 |
* MANIFEST.in: Correct the include statement for the mo-files and |
4099 |
|
|
include the documentation too. |
4100 |
|
|
|
4101 |
|
|
* setup.py (data_files): Add the .mo files |
4102 |
|
|
(setup call): Up to version 0.9.0 |
4103 |
|
|
|
4104 |
|
|
2003-09-01 Bernhard Herzog <[email protected]> |
4105 |
|
|
|
4106 |
bh |
1696 |
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the |
4107 |
|
|
parameter list to just parent and session |
4108 |
|
|
(ChooseDBTableDialog.__set_properties): Removed. Setting the |
4109 |
|
|
selection of empty list boxes is not allowed (and produces C++ |
4110 |
|
|
assertion errors) and the rest of the setup is better done in |
4111 |
|
|
__init__ anyway. |
4112 |
|
|
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK) |
4113 |
|
|
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python |
4114 |
|
|
builtins True/False for booleans to avoid warnings from wxPython |
4115 |
|
|
|
4116 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new |
4117 |
|
|
ChooseDBTableDialog constructor parameters. |
4118 |
|
|
|
4119 |
|
|
2003-09-01 Bernhard Herzog <[email protected]> |
4120 |
|
|
|
4121 |
bh |
1694 |
* Thuban/Model/postgisdb.py |
4122 |
|
|
(PostGISTable): Extend doc-string |
4123 |
|
|
(PostGISTable._fetch_table_information): Set the column index |
4124 |
|
|
correctly, pretending ignored columns don't exist. |
4125 |
|
|
|
4126 |
|
|
* test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests |
4127 |
|
|
for postgis tables with data types not yet supported by thuban. |
4128 |
|
|
|
4129 |
bh |
1692 |
2003-08-29 Bernhard Herzog <[email protected]> |
4130 |
|
|
|
4131 |
|
|
* HOWTO-Release: Tweak item about running the tests. |
4132 |
|
|
|
4133 |
jan |
1690 |
2003-08-29 Jan-Oliver Wagner <[email protected]> |
4134 |
|
|
|
4135 |
|
|
* /Doc/manual/thuban-manual.xml: updated to version 1.0pre2. |
4136 |
|
|
|
4137 |
bh |
1688 |
2003-08-29 Bernhard Herzog <[email protected]> |
4138 |
|
|
|
4139 |
|
|
Add some missing parameters to projections. Proj complains about |
4140 |
|
|
them on windows but for some reason not on Linux. |
4141 |
|
|
|
4142 |
|
|
* test/test_save.py (SaveSessionTest.testLayerProjection): Add |
4143 |
|
|
missing required projection parameters |
4144 |
|
|
|
4145 |
|
|
* test/test_proj.py (TestProjFile.test): Add missing required |
4146 |
|
|
projection parameters |
4147 |
|
|
|
4148 |
|
|
* test/test_load_0_8.py (TestLayerProjection.file_contents) |
4149 |
|
|
(TestLayerProjection.test): Add missing required projection |
4150 |
|
|
parameters and tests for them |
4151 |
|
|
|
4152 |
|
|
* test/test_load.py (TestLayerProjection.file_contents) |
4153 |
|
|
(TestLayerProjection.test): Add missing required projection |
4154 |
|
|
parameters and tests for them |
4155 |
|
|
|
4156 |
|
|
* test/test_layer.py (TestLayer.test_base_layer): Add missing |
4157 |
|
|
required projection parameters |
4158 |
|
|
|
4159 |
|
|
2003-08-29 Bernhard Herzog <[email protected]> |
4160 |
|
|
|
4161 |
|
|
* libraries/pyprojection/Projection.i: Use pj_get_errno_ref to |
4162 |
|
|
access the pj_errno because directly accessing pj_errno doesn't |
4163 |
|
|
work on windows if the proj library is in a DLL |
4164 |
|
|
|
4165 |
|
|
* libraries/pyprojection/Projection_wrap.c: Update from Projection.i |
4166 |
|
|
|
4167 |
bh |
1672 |
2003-08-28 Bernhard Herzog <[email protected]> |
4168 |
|
|
|
4169 |
bh |
1685 |
* test/test_proj.py: Import things from Thuban after calling |
4170 |
|
|
initthuban |
4171 |
|
|
|
4172 |
|
|
* test/test_load.py (LoadSessionTest.filenames): New class |
4173 |
|
|
variable with the filename attributes to normalize |
4174 |
|
|
(LoadSessionTest.check_format): Pass self.filenames to |
4175 |
|
|
sax_eventlist to normalize the filename attributes |
4176 |
|
|
|
4177 |
|
|
* test/xmlsupport.py: Add cvs keywords |
4178 |
|
|
(SaxEventLister.__init__): New parameter filenames which indicates |
4179 |
|
|
attributes that contain filenames |
4180 |
|
|
(SaxEventLister.startElementNS): Normalize the filename attributes |
4181 |
|
|
with os.path.normpath |
4182 |
|
|
(sax_eventlist): New parameter filenames to pass through to |
4183 |
|
|
SaxEventLister |
4184 |
|
|
|
4185 |
|
|
* test/test_derivedshapestore.py: Make this file callable as a |
4186 |
|
|
program to execute the tests |
4187 |
|
|
(TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind |
4188 |
|
|
the session to self.session so that it gets destroyed properly |
4189 |
|
|
|
4190 |
|
|
* test/test_layer.py (TestLayer.tearDown): Call the session's |
4191 |
|
|
Destroy method |
4192 |
|
|
|
4193 |
|
|
* test/test_map.py (TestMapBase.tearDown): Destroy self.session |
4194 |
|
|
too if it exists |
4195 |
|
|
(TestMapAddLayer.test_add_layer): Bind the session to self.session |
4196 |
|
|
so that it gets destroyed properly |
4197 |
|
|
|
4198 |
|
|
* test/postgissupport.py (reason_for_not_running_tests): Add a |
4199 |
|
|
test for the existence of popen2.Popen4. |
4200 |
|
|
|
4201 |
|
|
* test/test_save.py (SaveSessionTest.tearDown): New. Provide a |
4202 |
|
|
reliable way to destroy the sessions created in the test cases |
4203 |
|
|
(SaveSessionTest.test_dbf_table): Bind the session to self.session |
4204 |
|
|
so that it gets destroyed properly |
4205 |
|
|
(SaveSessionTest.testLayerProjection): Bind the session to |
4206 |
|
|
self.session so that it gets destroyed properly |
4207 |
|
|
|
4208 |
|
|
* test/test_session.py (UnreferencedTablesTests.tearDown): Make |
4209 |
|
|
sure that the session is destroyed properly |
4210 |
|
|
|
4211 |
|
|
* test/test_shapefilestore.py: Make this callable as a program to |
4212 |
|
|
execute the tests |
4213 |
|
|
|
4214 |
|
|
* test/test_scalebar.py: Remove unnecessary import of _ from |
4215 |
|
|
Thuban |
4216 |
|
|
|
4217 |
|
|
* test/support.py (print_garbage_information): Call initthuban |
4218 |
|
|
here because it may be called indirectly from test cases that test |
4219 |
|
|
test support modules which do not use anything from thuban itself |
4220 |
|
|
(ThubanTestProgram.runTests): Remove unnecessary debug print |
4221 |
|
|
|
4222 |
|
|
2003-08-28 Bernhard Herzog <[email protected]> |
4223 |
|
|
|
4224 |
bh |
1672 |
* Thuban/version.py (longversion): Update to 0.9 |
4225 |
|
|
|
4226 |
|
|
* Thuban/UI/mainwindow.py: Remove some unused imports |
4227 |
|
|
|
4228 |
|
|
* README: Add section about required additional software. Add date |
4229 |
|
|
and revision CVS keywords |
4230 |
|
|
|
4231 |
|
|
* HOWTO-Release: Add item about the translations. Add date and |
4232 |
|
|
revision CVs keywords and change formatting to match README a bit |
4233 |
|
|
better |
4234 |
|
|
|
4235 |
|
|
* po/de.po: Update for 0.9 |
4236 |
|
|
|
4237 |
|
|
* test/README: Tweak the wording a little because many tests are |
4238 |
|
|
not really unittest. |
4239 |
|
|
|
4240 |
bh |
1663 |
2003-08-27 Bernhard Herzog <[email protected]> |
4241 |
|
|
|
4242 |
bh |
1665 |
As preparation for the 0.9 release, switch thuban files to a |
4243 |
|
|
non-dev namespace |
4244 |
|
|
|
4245 |
|
|
* Thuban/Model/save.py (SessionSaver.write_session): Write files |
4246 |
|
|
with the http://thuban.intevation.org/dtds/thuban-0.9.dtd |
4247 |
|
|
namespace |
4248 |
|
|
|
4249 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
4250 |
|
|
http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too |
4251 |
|
|
|
4252 |
|
|
* test/test_save.py (SaveSessionTest.dtd) |
4253 |
|
|
(SaveSessionTest.testEmptySession) |
4254 |
|
|
(SaveSessionTest.testSingleLayer) |
4255 |
|
|
(SaveSessionTest.testLayerProjection) |
4256 |
|
|
(SaveSessionTest.testRasterLayer) |
4257 |
|
|
(SaveSessionTest.testClassifiedLayer) |
4258 |
|
|
(SaveSessionTest.test_dbf_table) |
4259 |
|
|
(SaveSessionTest.test_joined_table) |
4260 |
|
|
(SaveSessionTest.test_save_postgis): Update for new namespace |
4261 |
|
|
|
4262 |
|
|
* test/test_load.py (LoadSessionTest.dtd, TestSingleLayer) |
4263 |
|
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
4264 |
|
|
(TestLayerProjection.file_contents) |
4265 |
|
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
4266 |
|
|
(TestPostGISLayer.file_contents) |
4267 |
|
|
(TestPostGISLayerPassword.file_contents) |
4268 |
|
|
(TestLoadError.file_contents, TestLoadError.test): Update for new |
4269 |
|
|
namespace |
4270 |
|
|
|
4271 |
|
|
2003-08-27 Bernhard Herzog <[email protected]> |
4272 |
|
|
|
4273 |
bh |
1663 |
Make the table interface distinguish between row ids (an integer |
4274 |
|
|
that uniquely identifies a row) and row ordinals (a simple row |
4275 |
|
|
count from 0 to NumRows() - 1) |
4276 |
|
|
|
4277 |
|
|
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal) |
4278 |
|
|
(PostGISTable.RowOrdinalToId): New methods to conver between row |
4279 |
|
|
ids and row ordinals |
4280 |
|
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword |
4281 |
|
|
parameter row_is_ordinal to indicate whether the row parameter is |
4282 |
|
|
the row id or the ordinal |
4283 |
|
|
|
4284 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal) |
4285 |
|
|
(TransientTableBase.RowOrdinalToId) |
4286 |
|
|
(AutoTransientTable.RowIdToOrdinal) |
4287 |
|
|
(AutoTransientTable.RowOrdinalToId): Same new methods as in |
4288 |
|
|
PostGISTable. |
4289 |
|
|
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue) |
4290 |
|
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue): |
4291 |
|
|
Same new parameter as in PostGISTable. |
4292 |
|
|
|
4293 |
|
|
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal) |
4294 |
|
|
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal) |
4295 |
|
|
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable. |
4296 |
|
|
(DBFTable.ReadValue, DBFTable.ReadRowAsDict) |
4297 |
|
|
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new |
4298 |
|
|
parameter as in PostGISTable. |
4299 |
|
|
|
4300 |
|
|
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal) |
4301 |
|
|
(DataTable.RowOrdinalToId): New methods to convert between row ids |
4302 |
|
|
and row ordinals. |
4303 |
|
|
(TableGrid.SelectRowById): New method to select a row based on its |
4304 |
|
|
ID as opposed to its ordinal |
4305 |
|
|
(DataTable.GetValue, TableGrid.OnRangeSelect) |
4306 |
|
|
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes) |
4307 |
|
|
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected) |
4308 |
|
|
(LayerTableFrame.__init__): Convert between row ids and row |
4309 |
|
|
ordinals as appropriate |
4310 |
|
|
|
4311 |
|
|
* test/postgissupport.py (PostGISDatabase.__init__): Add |
4312 |
|
|
doc-string. |
4313 |
|
|
(PostGISDatabase.initdb): The optional third item in a tuple in |
4314 |
|
|
tables is now a (key, value) list with additional arguments to |
4315 |
|
|
pass to upload_shapefile |
4316 |
|
|
(upload_shapefile): New parameter gid_offset to allow gids that |
4317 |
|
|
are not the same as the shapeids in the shapefile |
4318 |
|
|
(PostgreSQLServer.get_default_static_data_db): Use the new |
4319 |
|
|
gid_offset to make the gids in landmarks 1000 higher than the |
4320 |
|
|
shapeids in the shapefile |
4321 |
|
|
|
4322 |
|
|
* test/test_viewport.py |
4323 |
|
|
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the |
4324 |
|
|
new shapeids in the landmarks table |
4325 |
|
|
|
4326 |
|
|
* test/test_transientdb.py |
4327 |
|
|
(TestTransientTable.run_iceland_political_tests) |
4328 |
|
|
(TestTransientTable.test_transient_joined_table): Add tests for |
4329 |
|
|
the new table methods and new keywords arguments. |
4330 |
|
|
|
4331 |
|
|
* test/test_postgis_db.py |
4332 |
|
|
(TestPostGISTable.test_read_row_as_dict_row_count_mode) |
4333 |
|
|
(TestPostGISTable.test_read_value_row_count_mode) |
4334 |
|
|
(TestPostGISTable.test_row_id_to_ordinal) |
4335 |
|
|
(TestPostGISTable.test_row_oridnal_to_id): New test for the new |
4336 |
|
|
table methods and the new arguments |
4337 |
|
|
(TestPostGISShapestorePoint.test_shapes_in_region) |
4338 |
|
|
(TestPostGISShapestorePoint.test_shape_raw_data) |
4339 |
|
|
(TestPostGISShapestorePoint.test_shape_points) |
4340 |
|
|
(TestPostGISShapestorePoint.test_shape_shapeid) |
4341 |
|
|
(TestPostGISShapestorePoint.test_all_shapes) |
4342 |
|
|
(TestPostGISTable.test_simple_query) |
4343 |
|
|
(TestPostGISTable.test_simple_query) |
4344 |
|
|
(TestPostGISTable.test_simple_query) |
4345 |
|
|
(TestPostGISTable.test_read_value) |
4346 |
|
|
(TestPostGISTable.test_read_row_as_dict): Adapt to the new |
4347 |
|
|
shapeids in the landmarks table |
4348 |
|
|
|
4349 |
|
|
* test/test_memory_table.py |
4350 |
|
|
(TestMemoryTable.test_read_row_as_dict_row_count_mode) |
4351 |
|
|
(TestMemoryTable.test_read_value_row_count_mode) |
4352 |
|
|
(TestMemoryTable.test_row_id_to_ordinal) |
4353 |
|
|
(TestMemoryTable.test_row_oridnal_to_id): New test for the new |
4354 |
|
|
table methods and the new arguments |
4355 |
|
|
|
4356 |
|
|
* test/test_dbf_table.py |
4357 |
|
|
(TestDBFTable.test_read_row_as_dict_row_count_mode) |
4358 |
|
|
(TestDBFTable.test_read_value_row_count_mode) |
4359 |
|
|
(TestDBFTable.test_row_id_to_ordinal) |
4360 |
|
|
(TestDBFTable.test_row_oridnal_to_id): New test for the new table |
4361 |
|
|
methods and the new arguments |
4362 |
|
|
|
4363 |
bh |
1659 |
2003-08-26 Bernhard Herzog <[email protected]> |
4364 |
|
|
|
4365 |
bh |
1661 |
* Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a |
4366 |
|
|
more postgis specific but much faster method to get the bounding |
4367 |
|
|
box |
4368 |
|
|
|
4369 |
|
|
2003-08-26 Bernhard Herzog <[email protected]> |
4370 |
|
|
|
4371 |
bh |
1659 |
* Thuban/Model/postgisdb.py (PostGISTable.Title) |
4372 |
|
|
(PostGISShapeStore.AllShapes): Add these missing methods. |
4373 |
|
|
(PostGISShapeStore.ShapesInRegion): No need to raise |
4374 |
|
|
StopIteration. We can simply return |
4375 |
|
|
|
4376 |
|
|
* test/test_postgis_db.py (TestPostGISTable.test_title) |
4377 |
|
|
(TestPostGISShapestorePoint.test_all_shapes): New tests for the |
4378 |
|
|
new methods |
4379 |
|
|
|
4380 |
bh |
1643 |
2003-08-25 Bernhard Herzog <[email protected]> |
4381 |
|
|
|
4382 |
bh |
1657 |
* Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON. |
4383 |
|
|
|
4384 |
|
|
* test/test_postgis_db.py (PolygonTests): New class containing |
4385 |
|
|
those tests from TestPostGISShapestorePolygon that can also be |
4386 |
|
|
used to test MUTLIPOLYGON tables |
4387 |
|
|
(TestPostGISShapestorePolygon): Most tests are now in PolygonTests |
4388 |
|
|
so derive from that |
4389 |
|
|
(TestPostGISShapestoreMultiPolygon): New class with tests for |
4390 |
|
|
MUTLIPOLYGON tables |
4391 |
|
|
|
4392 |
|
|
* test/postgissupport.py (PostGISDatabase.initdb): Allow the |
4393 |
|
|
tables argument to have tuples with three items to override the |
4394 |
|
|
WKT type used. |
4395 |
|
|
(PostgreSQLServer.get_default_static_data_db): Use the above to |
4396 |
|
|
create a polygon table with MUTLIPOLYGONs |
4397 |
|
|
(point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon) |
4398 |
|
|
(arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to |
4399 |
|
|
coords_to* |
4400 |
|
|
(coords_to_multipolygon): New. Convert to MUTLIPOLYGON |
4401 |
|
|
(wkt_converter): New. Map WKT types to converters |
4402 |
|
|
(upload_shapefile): New parameter force_wkt_type to use a |
4403 |
|
|
different WKT type than the default |
4404 |
|
|
|
4405 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4406 |
|
|
|
4407 |
bh |
1655 |
* Thuban/UI/application.py |
4408 |
|
|
(ThubanApplication.run_db_param_dialog): New. Suitable as a |
4409 |
|
|
db_connection_callback. Main difference is that the dialog run |
4410 |
|
|
from this method doesn't have a parent so it can be used even when |
4411 |
|
|
there is no main window |
4412 |
|
|
(ThubanApplication.OpenSession): Use self.run_db_param_dialog if |
4413 |
|
|
no db_connection_callback was given. This way the dialog pops up |
4414 |
|
|
even when the .thuban file was given as a command line parameter. |
4415 |
|
|
|
4416 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4417 |
|
|
|
4418 |
bh |
1653 |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse |
4419 |
|
|
before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs |
4420 |
|
|
which leads to an effectively frozen X session because the user |
4421 |
|
|
can only interact with the dialog but the mouse is still grabbed |
4422 |
|
|
by the canvas. |
4423 |
|
|
Also, call the tool's Hide method before MouseLeftUp because |
4424 |
|
|
MouseLeftUp may change the tool's coordinates. |
4425 |
|
|
|
4426 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4427 |
|
|
|
4428 |
bh |
1651 |
* Thuban/UI/application.py (ThubanApplication.OpenSession): Catch |
4429 |
|
|
LoadCancelled exceptions and handle them by returning immediately. |
4430 |
|
|
|
4431 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4432 |
|
|
|
4433 |
bh |
1649 |
GUI part of loading sessions with postgis connections which may |
4434 |
|
|
require user interaction to get passwords or updated parameters |
4435 |
|
|
|
4436 |
|
|
* Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a |
4437 |
|
|
bit nucer and be more generic. |
4438 |
|
|
(DBFrame.OnAdd): Adapt to new DBDialog interface |
4439 |
|
|
|
4440 |
|
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): New |
4441 |
|
|
optional parameter db_connection_callback which is passed to |
4442 |
|
|
load_session. |
4443 |
|
|
|
4444 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New. |
4445 |
|
|
Suitable as a db_connection_callback |
4446 |
|
|
(MainWindow.OpenSession): Use self.run_db_param_dialog as the |
4447 |
|
|
db_connection_callback of the application's OpenSession method |
4448 |
|
|
|
4449 |
|
|
|
4450 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4451 |
|
|
|
4452 |
bh |
1647 |
Basic loading of sessions containing postgis connections: |
4453 |
|
|
|
4454 |
|
|
* Thuban/Model/load.py (LoadError): Add doc-string |
4455 |
|
|
(LoadCancelled): New exception class to indicate a cancelled load |
4456 |
|
|
(SessionLoader.__init__): Add the db_connection_callback parameter |
4457 |
|
|
which will be used by the loader to get updated parameters and a |
4458 |
|
|
password for a database connection |
4459 |
|
|
(SessionLoader.__init__): Add the new XML elements to the |
4460 |
|
|
dispatchers dictionary |
4461 |
|
|
(SessionLoader.check_attrs): Two new conversions, ascii to convert |
4462 |
|
|
to a byte-string object and idref as a generic id reference |
4463 |
|
|
(SessionLoader.start_dbconnection) |
4464 |
|
|
(SessionLoader.start_dbshapesource): New. Handlers for the new XML |
4465 |
|
|
elements |
4466 |
|
|
(load_session): Add the db_connection_callback to pass through the |
4467 |
|
|
SessionLoader |
4468 |
|
|
|
4469 |
|
|
* test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword): |
4470 |
|
|
New classes to test loading of sessions with postgis database |
4471 |
|
|
connections. |
4472 |
|
|
|
4473 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4474 |
|
|
|
4475 |
bh |
1645 |
* Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and |
4476 |
|
|
replace it and the comment with __BuildDate__ by the Source: and |
4477 |
|
|
Id: cvs keywords as used in the other files. |
4478 |
|
|
|
4479 |
|
|
2003-08-25 Bernhard Herzog <[email protected]> |
4480 |
|
|
|
4481 |
bh |
1643 |
* Thuban/Model/load.py (SessionLoader.check_attrs): Raise a |
4482 |
|
|
LoadError when a required attribute is missing. The code used to |
4483 |
|
|
be commented out for some reason, but probably should have been |
4484 |
|
|
active. |
4485 |
|
|
|
4486 |
|
|
* test/test_load.py (TestLoadError.test): Test the message in the |
4487 |
|
|
LoadError too to make sure it really is about the missing |
4488 |
|
|
attribute |
4489 |
|
|
|
4490 |
bh |
1632 |
2003-08-22 Bernhard Herzog <[email protected]> |
4491 |
bh |
1641 |
|
4492 |
|
|
* test/test_save.py (SaveSessionTest.test_dbf_table) |
4493 |
|
|
(SaveSessionTest.test_joined_table): Add XML validation tests. |
4494 |
|
|
|
4495 |
|
|
2003-08-22 Bernhard Herzog <[email protected]> |
4496 |
|
|
|
4497 |
bh |
1639 |
Implement saving a session with a postgis connection |
4498 |
bh |
1632 |
|
4499 |
bh |
1639 |
* Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New |
4500 |
|
|
elements for database connections and shapestores using db |
4501 |
|
|
connections |
4502 |
|
|
(session): Add the dbconnections to the content model |
4503 |
|
|
|
4504 |
|
|
* Thuban/Model/save.py (SessionSaver.write_db_connections): New. |
4505 |
|
|
Write the db connections |
4506 |
|
|
(SessionSaver.write_session): Call write_db_connections to write |
4507 |
|
|
the connection before the data sources |
4508 |
|
|
(SessionSaver.write_data_containers): Handle postgis shapestores |
4509 |
|
|
|
4510 |
|
|
* test/test_save.py (SaveSessionTest.thubanids) |
4511 |
|
|
(SaveSessionTest.thubanidrefs): Update for new DTD |
4512 |
|
|
(SaveSessionTest.test_save_postgis): New. Test saving a session |
4513 |
|
|
with postgis connections |
4514 |
|
|
|
4515 |
|
|
* Thuban/Model/postgisdb.py (PostGISTable.DBConnection) |
4516 |
|
|
(PostGISTable.TableName): New accessor methods for the connection |
4517 |
|
|
and table name |
4518 |
|
|
|
4519 |
|
|
* test/test_postgis_db.py (TestPostGISTable.test_dbconn) |
4520 |
|
|
(TestPostGISTable.test_dbname): New methods to test the new |
4521 |
|
|
PostGISConnection methods |
4522 |
|
|
|
4523 |
|
|
2003-08-22 Bernhard Herzog <[email protected]> |
4524 |
|
|
|
4525 |
bh |
1637 |
* Thuban/Model/postgisdb.py (ConnectionError): New exception class |
4526 |
|
|
for exceptions occurring when establishing a Database connection |
4527 |
|
|
(PostGISConnection.connect): Catch psycopg.OperationalError during |
4528 |
|
|
connects and raise ConnectionError. |
4529 |
|
|
|
4530 |
|
|
* test/test_postgis_db.py (TestPostgisDBExceptions): New class for |
4531 |
|
|
tests for database exceptions |
4532 |
|
|
|
4533 |
|
|
2003-08-22 Bernhard Herzog <[email protected]> |
4534 |
|
|
|
4535 |
bh |
1635 |
Prepare the test suite for tests with required authentication |
4536 |
|
|
|
4537 |
|
|
* test/postgissupport.py (PostgreSQLServer.__init__): Add instance |
4538 |
|
|
variables with two predefined users/passwords, one for the admin |
4539 |
|
|
and one for a non-privileged user. |
4540 |
|
|
(PostgreSQLServer.createdb): Pass the admin name to initdb and add |
4541 |
|
|
the non-privileged user to the database and set the admin password |
4542 |
|
|
(PostgreSQLServer.wait_for_postmaster): Use the admin user name. |
4543 |
|
|
Better error reporting |
4544 |
|
|
(PostgreSQLServer.connection_params) |
4545 |
|
|
(PostgreSQLServer.connection_string): New methods to return |
4546 |
|
|
information about how to connect to the server |
4547 |
|
|
(PostgreSQLServer.execute_sql): New. Convenience method to execute |
4548 |
|
|
SQL statements |
4549 |
|
|
(PostgreSQLServer.require_authentication): Toggle whether the |
4550 |
|
|
server requires authentication |
4551 |
|
|
(PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New. |
4552 |
|
|
Add or alter users |
4553 |
|
|
(PostGISDatabase.initdb): Pass the admin name one the |
4554 |
|
|
subprocesses' command lines. Grant select rights on |
4555 |
|
|
geometry_columns to everybody. |
4556 |
|
|
(upload_shapefile): Use the admin name and password when |
4557 |
|
|
connecting. Grant select rights on the new table to everybody. |
4558 |
|
|
|
4559 |
|
|
* test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the |
4560 |
|
|
server's new methods to get the connection parameters. |
4561 |
|
|
|
4562 |
|
|
* test/test_postgis_session.py (TestSessionWithPostGIS.setUp) |
4563 |
|
|
(TestSessionWithPostGIS.test_remove_dbconn_exception): Use the |
4564 |
|
|
server's new methods to get the connection parameters. |
4565 |
|
|
|
4566 |
|
|
* test/test_postgis_db.py |
4567 |
|
|
(TestPostGISConnection.test_gis_tables_empty) |
4568 |
|
|
(TestPostGISConnection.test_gis_tables_non_empty) |
4569 |
|
|
(PostGISStaticTests.setUp): Use the server's new methods to get |
4570 |
|
|
the connection parameters. |
4571 |
|
|
|
4572 |
|
|
2003-08-22 Bernhard Herzog <[email protected]> |
4573 |
|
|
|
4574 |
bh |
1632 |
* Thuban/UI/about.py (About.__init__): Add the psycopg version. |
4575 |
|
|
|
4576 |
|
|
* Thuban/version.py: Add psycopg version |
4577 |
|
|
|
4578 |
|
|
* Thuban/Model/postgisdb.py (psycopg_version): New. Return the |
4579 |
|
|
version of the psycopg module |
4580 |
|
|
|
4581 |
|
|
2003-08-22 Bernhard Herzog <[email protected]> |
4582 |
|
|
|
4583 |
|
|
* Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used. |
4584 |
|
|
(DBFrame.OnEdit): Removed because it's not used and wouldn't work |
4585 |
|
|
at the moment. The functionality should probably be implemented |
4586 |
|
|
some time, though. |
4587 |
bh |
1633 |
(DBFrame.OnRemove): Display a message if the connection can't be |
4588 |
|
|
removed because it's still in use. |
4589 |
bh |
1632 |
|
4590 |
jan |
1629 |
2003-08-22 Jan-Oliver Wagner <[email protected]> |
4591 |
|
|
|
4592 |
|
|
* Thuban/UI/about.py (About.__init__): split up the huge about |
4593 |
|
|
text into elements/lists for easier translation. This fixes bug |
4594 |
|
|
https://intevation.de/rt/webrt?serial_num=2058 |
4595 |
|
|
Also, made some forgotten string available for the i18n. |
4596 |
|
|
|
4597 |
bh |
1627 |
2003-08-21 Bernhard Herzog <[email protected]> |
4598 |
|
|
|
4599 |
|
|
Make postgis support really optional including insensitive menu |
4600 |
|
|
items. |
4601 |
|
|
|
4602 |
|
|
* Thuban/Model/postgisdb.py (has_postgis_support): New. Return |
4603 |
|
|
whether the postgis is supported. |
4604 |
|
|
|
4605 |
|
|
* Thuban/UI/dbdialog.py: Put the psycopg import into try..except |
4606 |
|
|
to make postgis support optional |
4607 |
|
|
|
4608 |
|
|
* Thuban/UI/mainwindow.py (_has_postgis_support): New. Context |
4609 |
|
|
version of Thuban.Model.postgisdb.has_postgis_support |
4610 |
|
|
(database_management command): Make it only sensitive if postgis |
4611 |
|
|
is supported. |
4612 |
|
|
|
4613 |
jan |
1623 |
2003-08-21 Jan-Oliver Wagner <[email protected]> |
4614 |
|
|
|
4615 |
jan |
1626 |
* Doc/manual/thuban-manual.xml: Added CVS revision for rev-history. |
4616 |
|
|
(section Adding and Removing Layers): Added text and described |
4617 |
|
|
multi-selection. |
4618 |
|
|
(chapter Extensions): New. |
4619 |
|
|
|
4620 |
|
|
2003-08-21 Jan-Oliver Wagner <[email protected]> |
4621 |
|
|
|
4622 |
jan |
1623 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog |
4623 |
|
|
settings to allow multiple files to load into the map. |
4624 |
|
|
Also reduced selection to *.shp as a default. |
4625 |
|
|
|
4626 |
bh |
1621 |
2003-08-20 Bernhard Herzog <[email protected]> |
4627 |
|
|
|
4628 |
|
|
Add dialogs and commands to open database connections and add |
4629 |
|
|
database layers. |
4630 |
|
|
|
4631 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New |
4632 |
|
|
method to open the database connection management dialog |
4633 |
|
|
(MainWindow.AddDBLayer): New method to add a layer from a database |
4634 |
|
|
(_has_dbconnections): New helper function to use for sensitivity |
4635 |
|
|
(database_management command, layer_add_db command): New commands |
4636 |
|
|
that call the above new methods. |
4637 |
|
|
(main_menu): Add the new commands to the menu. |
4638 |
|
|
|
4639 |
|
|
* Thuban/Model/postgisdb.py (PostGISConnection.__init__) |
4640 |
|
|
(PostGISConnection.connect): Establish the actual connection in a |
4641 |
|
|
separate method and call it in __init__. This makes it easier to |
4642 |
|
|
override the behavior in test cases |
4643 |
|
|
(PostGISConnection.BriefDescription): New method to return a brief |
4644 |
|
|
description for use in dialogs. |
4645 |
|
|
|
4646 |
|
|
* test/test_postgis_db.py (NonConnection): DB connection that |
4647 |
|
|
doesn't actually connect |
4648 |
|
|
(TestBriefDescription): New class with tests for the new |
4649 |
|
|
BriefDescription method |
4650 |
|
|
|
4651 |
jan |
1619 |
2003-08-19 Jan-Oliver Wagner <[email protected]> |
4652 |
|
|
|
4653 |
|
|
Moved anything from extensions to libraries. |
4654 |
|
|
|
4655 |
|
|
* libraries: New. |
4656 |
|
|
|
4657 |
|
|
* libraries/ pyprojection, pyshapelib, shapelib, thuban: New. |
4658 |
|
|
|
4659 |
|
|
* libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i, |
4660 |
|
|
Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have |
4661 |
|
|
been moved here from thuban/extensions/pyprojection/ |
4662 |
|
|
See there in the Attic for the older history. |
4663 |
|
|
|
4664 |
|
|
* libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i, |
4665 |
|
|
dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py, |
4666 |
|
|
shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files |
4667 |
|
|
have been moved here from thuban/extensions/pyshapelib/ |
4668 |
|
|
See there in the Attic for the older history. |
4669 |
|
|
|
4670 |
|
|
* libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These |
4671 |
|
|
files have been moved here from thuban/extensions/shapelib/ |
4672 |
|
|
See there in the Attic for the older history. |
4673 |
|
|
|
4674 |
|
|
* libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h, |
4675 |
|
|
gdalwarp.cpp, wxproj.cpp: These files have been moved here from |
4676 |
|
|
thuban/extensions/thuban/ |
4677 |
|
|
See there in the Attic for the older history. |
4678 |
|
|
|
4679 |
|
|
* MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries. |
4680 |
|
|
|
4681 |
|
|
* extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h, |
4682 |
|
|
gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban. |
4683 |
|
|
|
4684 |
|
|
* extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: |
4685 |
|
|
Moved to libraries/shapelib. |
4686 |
|
|
|
4687 |
|
|
* extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py, |
4688 |
|
|
shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c, |
4689 |
|
|
ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c: |
4690 |
|
|
Moved to libraries/pyshapelib. |
4691 |
|
|
|
4692 |
|
|
* extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py, |
4693 |
|
|
LICENSE, Projection.i, Projection_wrap.c, swighelp.txt: |
4694 |
|
|
Moved to libraries/pyprojection. |
4695 |
|
|
|
4696 |
|
|
* extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed. |
4697 |
|
|
|
4698 |
|
|
* extensions: Removed. |
4699 |
|
|
|
4700 |
bh |
1606 |
2003-08-19 Bernhard Herzog <[email protected]> |
4701 |
|
|
|
4702 |
bh |
1609 |
* test/test_viewport.py (ViewPortTest): We don't use the |
4703 |
|
|
facilities of FileTestMixin so don't derive from it. |
4704 |
|
|
(TestViewportWithPostGIS): New class with tests for using a |
4705 |
|
|
viewport on a map with postgis layers. |
4706 |
|
|
|
4707 |
|
|
2003-08-19 Bernhard Herzog <[email protected]> |
4708 |
|
|
|
4709 |
|
|
Add the db connection management to the session. |
4710 |
|
|
|
4711 |
|
|
* Thuban/Model/session.py (Session.__init__): New instance |
4712 |
|
|
variable db_connections |
4713 |
|
|
(Session.AddDBConnection, Session.DBConnections) |
4714 |
|
|
(Session.HasDBConnections, Session.CanRemoveDBConnection) |
4715 |
|
|
(Session.RemoveDBConnection): New methods to manage and query the |
4716 |
|
|
db connections managed by the session |
4717 |
|
|
(Session.OpenDBShapeStore): New method to open a shapestore from a |
4718 |
|
|
db connection |
4719 |
|
|
|
4720 |
|
|
* Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New |
4721 |
|
|
messages for the db connection handling in the session |
4722 |
|
|
|
4723 |
|
|
* test/test_postgis_session.py: New. test cases for the session's |
4724 |
|
|
db connection handling with postgis connections |
4725 |
|
|
|
4726 |
|
|
2003-08-19 Bernhard Herzog <[email protected]> |
4727 |
|
|
|
4728 |
bh |
1606 |
Add very basic postgis database support and the corresponding test |
4729 |
|
|
cases. The test cases require a PostgreSQL + postgis installation |
4730 |
|
|
but no existing database. The database will be created |
4731 |
|
|
automatically by the test cases |
4732 |
|
|
|
4733 |
|
|
* test/README: Add note about skipped tests and the requirements |
4734 |
|
|
of the postgis tests. |
4735 |
|
|
|
4736 |
|
|
* Thuban/Model/postgisdb.py: New. Basic postgis database support. |
4737 |
|
|
|
4738 |
|
|
* test/test_postgis_db.py: New. Test cases for the postgis |
4739 |
|
|
support. |
4740 |
|
|
|
4741 |
|
|
* Thuban/Model/wellknowntext.py: New. Parser for well-known-text |
4742 |
|
|
format |
4743 |
|
|
|
4744 |
|
|
* test/test_wellknowntext.py: New. Test cases for the |
4745 |
|
|
wellknowntext parser |
4746 |
|
|
|
4747 |
|
|
* test/postgissupport.py: New. Support module for tests involving |
4748 |
|
|
a postgis database. |
4749 |
|
|
|
4750 |
|
|
* test/support.py (execute_as_testsuite): Shut down the postmaster |
4751 |
|
|
if it's still running after the tests |
4752 |
|
|
|
4753 |
|
|
* Thuban/Model/data.py (RAW_WKT): New constant for raw data in |
4754 |
|
|
well known text format |
4755 |
|
|
|
4756 |
jan |
1604 |
2003-08-19 Jan-Oliver Wagner <[email protected]> |
4757 |
|
|
|
4758 |
|
|
* Examples/simple_extensions/hello_world.py: New. Raises a Hello World |
4759 |
|
|
message dialog. |
4760 |
|
|
|
4761 |
bh |
1600 |
2003-08-18 Bernhard Herzog <[email protected]> |
4762 |
|
|
|
4763 |
bh |
1602 |
* test/support.py (ThubanTestResult.printErrors): Indent the |
4764 |
|
|
reason for the skips in the output to make it a bit more readable. |
4765 |
|
|
(execute_as_testsuite): New helper function to run a test suite |
4766 |
|
|
and print some more information. |
4767 |
|
|
(run_tests): Use execute_as_testsuite to run the tests |
4768 |
|
|
|
4769 |
|
|
* test/runtests.py (main): Use execute_as_testsuite to run the |
4770 |
|
|
tests |
4771 |
|
|
|
4772 |
|
|
2003-08-18 Bernhard Herzog <[email protected]> |
4773 |
|
|
|
4774 |
bh |
1600 |
Fix some bugs in Thuban and the test suite that were uncovered by |
4775 |
|
|
changes introduced in Python 2.3: |
4776 |
|
|
|
4777 |
|
|
* Thuban/Model/table.py (DBFTable.__init__): Make sure the |
4778 |
|
|
filename is an absolute name |
4779 |
|
|
|
4780 |
|
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make sure the |
4781 |
|
|
filename is an absolute name |
4782 |
|
|
|
4783 |
|
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Use a |
4784 |
|
|
unique filename to save to and use the correct relative filename |
4785 |
|
|
in the expected output. |
4786 |
|
|
(SaveSessionTest.test_dbf_table): Use the correct relative |
4787 |
|
|
filename in the expected output. |
4788 |
|
|
|
4789 |
|
|
* test/test_layer.py (TestLayer.test_raster_layer): Update the |
4790 |
|
|
test to check whether the filename is absolute. |
4791 |
|
|
|
4792 |
jan |
1596 |
2003-08-18 Jan-Oliver Wagner <[email protected]> |
4793 |
|
|
|
4794 |
|
|
* Thuban/UI/about.py (About.__init__): Added Silke Reimer. |
4795 |
|
|
|
4796 |
bh |
1586 |
2003-08-15 Bernhard Herzog <[email protected]> |
4797 |
|
|
|
4798 |
bh |
1594 |
Change the way shapes are returned by a shape store. The |
4799 |
|
|
ShapesInRegion method returns an iterator over actual shape |
4800 |
|
|
objects instead of a list of shape ids. |
4801 |
|
|
|
4802 |
|
|
* Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape |
4803 |
|
|
id. |
4804 |
|
|
(ShapefileStore.ShapesInRegion): Return an iterator over the |
4805 |
|
|
shapes which yields shape objects instead of returning a list of |
4806 |
|
|
shape ids |
4807 |
|
|
(ShapefileStore.AllShapes): New. Return an iterator over all |
4808 |
|
|
shapes in the shape store |
4809 |
|
|
(DerivedShapeStore.AllShapes): New. Like in ShapefileStore |
4810 |
|
|
|
4811 |
|
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Update |
4812 |
|
|
doc-string. |
4813 |
|
|
|
4814 |
|
|
* Thuban/UI/baserenderer.py |
4815 |
|
|
(BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to |
4816 |
|
|
layer_shapes and make it return an iterator containg shapes |
4817 |
|
|
instead of a list of ids. |
4818 |
|
|
(BaseRenderer.draw_shape_layer): Update doc-string; Adapt to |
4819 |
|
|
layer_shapes() change |
4820 |
|
|
|
4821 |
|
|
* Thuban/UI/renderer.py (ScreenRenderer.layer_ids) |
4822 |
|
|
(ScreenRenderer.layer_shapes): Rename as in BaseRenderer |
4823 |
|
|
|
4824 |
|
|
* Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to |
4825 |
|
|
changes in the ShapesInRegion return value. |
4826 |
|
|
(ViewPort._get_hit_tester): Remove commented out code |
4827 |
|
|
|
4828 |
|
|
* test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the |
4829 |
|
|
new return value. |
4830 |
|
|
(SimpleShapeStore.AllShapes): New. Implement this method too. |
4831 |
|
|
|
4832 |
|
|
* test/test_layer.py (TestLayer.test_arc_layer) |
4833 |
|
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
4834 |
|
|
(TestLayer.test_point_layer_with_projection) |
4835 |
|
|
(TestLayer.test_derived_store): Adapt to changes in the |
4836 |
|
|
ShapesInRegion return value. |
4837 |
|
|
|
4838 |
|
|
* test/test_shapefilestore.py |
4839 |
|
|
(TestShapefileStoreArc.test_shapes_in_region) |
4840 |
|
|
(TestShapefileStorePolygon.test_shapes_in_region) |
4841 |
|
|
(TestShapefileStorePoint.test_shapes_in_region): Adapt to changes |
4842 |
|
|
in the ShapesInRegion return value. |
4843 |
|
|
(TestShapefileStorePoint.test_all_shapes) |
4844 |
|
|
(TestShapefileStoreArc.test_shape_shapeid): New tests for the new |
4845 |
|
|
methods |
4846 |
|
|
|
4847 |
|
|
* test/test_derivedshapestore.py |
4848 |
|
|
(TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in |
4849 |
|
|
the ShapesInRegion return value. |
4850 |
|
|
(TestDerivedShapeStore.test_all_shapes) |
4851 |
|
|
(TestDerivedShapeStore.test_shape_shapeid): New tests for the new |
4852 |
|
|
methods |
4853 |
|
|
|
4854 |
|
|
2003-08-15 Bernhard Herzog <[email protected]> |
4855 |
|
|
|
4856 |
bh |
1592 |
Make the renderers deal correctly with raw vs. python level |
4857 |
|
|
representation of shape geometries |
4858 |
|
|
|
4859 |
|
|
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer): |
4860 |
|
|
Return a flag useraw in addition to the callable and the parameter |
4861 |
|
|
to indicate whether the callable can deal with the raw shape data |
4862 |
|
|
or uses the higher level python lists of coordinates. The callable |
4863 |
|
|
now should accept either the raw data or the return value of the |
4864 |
|
|
shape's Points() method. |
4865 |
|
|
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer |
4866 |
|
|
change |
4867 |
|
|
(BaseRenderer.projected_points): Instead of the shape id use the |
4868 |
|
|
points list as parameter. |
4869 |
|
|
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape) |
4870 |
|
|
(BaseRenderer.draw_point_shape): Adapt to projected_points() |
4871 |
|
|
change and accept the points list as parameter instead of the |
4872 |
|
|
shape id. |
4873 |
|
|
|
4874 |
|
|
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return |
4875 |
|
|
the useraw flag as required by the BaseRenderer |
4876 |
|
|
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer |
4877 |
|
|
changes. |
4878 |
|
|
|
4879 |
|
|
* test/test_baserenderer.py |
4880 |
|
|
(TestBaseRenderer.test_point_with_classification): New test for |
4881 |
|
|
rendering a map with classifications. |
4882 |
|
|
|
4883 |
|
|
2003-08-15 Bernhard Herzog <[email protected]> |
4884 |
|
|
|
4885 |
bh |
1590 |
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
4886 |
|
|
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
4887 |
|
|
(ViewPort._get_hit_tester, ViewPort.projected_points) |
4888 |
|
|
(ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon) |
4889 |
|
|
(ViewPort._find_label_at): Split the find_shape_at method into |
4890 |
|
|
several new methods and use the functions in the hit-test module. |
4891 |
|
|
|
4892 |
|
|
* Thuban/UI/hittest.py: New module with Python-level hit-testing |
4893 |
|
|
functions |
4894 |
|
|
|
4895 |
|
|
* test/test_hittest.py: New. Test for the new hittest module |
4896 |
|
|
|
4897 |
|
|
2003-08-15 Bernhard Herzog <[email protected]> |
4898 |
|
|
|
4899 |
bh |
1588 |
* Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer |
4900 |
|
|
projection to all corners of the bounding box to get a better |
4901 |
|
|
approximation of the projected bounding box |
4902 |
|
|
|
4903 |
|
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
4904 |
|
|
New. Test coordinate handling of a layer with a projection. |
4905 |
|
|
Catches the bug fixed in Layer.ShapesInRegion |
4906 |
|
|
|
4907 |
|
|
2003-08-15 Bernhard Herzog <[email protected]> |
4908 |
|
|
|
4909 |
bh |
1586 |
Move some of the mock objects in test_baserenderer into their own |
4910 |
|
|
module so they can easily be used from other tests |
4911 |
|
|
|
4912 |
|
|
* test/mockgeo.py: New test helper module with some mock objects |
4913 |
|
|
for geometry related things like shapes, shapestores and |
4914 |
|
|
projections. |
4915 |
|
|
|
4916 |
|
|
* test/test_mockgeo.py: New. Tests for the new helper module |
4917 |
|
|
|
4918 |
|
|
* test/test_baserenderer.py: Some of the mock-objects are in |
4919 |
|
|
mockgeo now. |
4920 |
|
|
|
4921 |
jan |
1584 |
2003-08-12 Jan-Oliver Wagner <[email protected]> |
4922 |
|
|
|
4923 |
|
|
* Thuban/UI/about.py (About.__init__): Added Björn Broscheit. |
4924 |
|
|
|
4925 |
bh |
1580 |
2003-08-12 Bernhard Herzog <[email protected]> |
4926 |
|
|
|
4927 |
bh |
1582 |
* po/de.po: New. German translations by Bjoern Broscheit |
4928 |
|
|
|
4929 |
|
|
2003-08-12 Bernhard Herzog <[email protected]> |
4930 |
|
|
|
4931 |
bh |
1580 |
* Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated |
4932 |
|
|
strings have to be one string literal. |
4933 |
|
|
|
4934 |
bh |
1573 |
2003-08-11 Bernhard Herzog <[email protected]> |
4935 |
|
|
|
4936 |
bh |
1578 |
* test/support.py (FloatComparisonMixin.assertPointListEquals): |
4937 |
|
|
New. This method was used in various derived classes, but it's |
4938 |
|
|
better to have it here. |
4939 |
|
|
|
4940 |
|
|
* test/test_shapefilestore.py |
4941 |
|
|
(ShapefileStoreTests.assertPointListEquals): Removed. It's now in |
4942 |
|
|
FloatComparisonMixin |
4943 |
|
|
|
4944 |
|
|
* test/test_layer.py (TestLayer.assertPointListEquals): Removed. |
4945 |
|
|
It's now in FloatComparisonMixin |
4946 |
|
|
|
4947 |
|
|
* test/test_derivedshapestore.py |
4948 |
|
|
(TestDerivedShapeStore.assertPointListEquals): Removed. It's now |
4949 |
|
|
in FloatComparisonMixin |
4950 |
|
|
|
4951 |
|
|
2003-08-11 Bernhard Herzog <[email protected]> |
4952 |
|
|
|
4953 |
bh |
1573 |
* Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to |
4954 |
|
|
error message |
4955 |
|
|
|
4956 |
jan |
1569 |
2003-08-08 Jan-Oliver Wagner <[email protected]> |
4957 |
|
|
|
4958 |
jan |
1571 |
* Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory |
4959 |
|
|
with version number. |
4960 |
|
|
Changed title to reflect version number of Thuban. |
4961 |
|
|
|
4962 |
|
|
2003-08-08 Jan-Oliver Wagner <[email protected]> |
4963 |
|
|
|
4964 |
jan |
1569 |
* Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now |
4965 |
|
|
the list corresponds to the "About" web page. |
4966 |
|
|
|
4967 |
bh |
1567 |
2003-08-08 Bernhard Herzog <[email protected]> |
4968 |
|
|
|
4969 |
|
|
* Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout): |
4970 |
|
|
Make sure translated strings are recognized as one string literal. |
4971 |
|
|
|
4972 |
|
|
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout): |
4973 |
|
|
Make sure translated strings are recognized as one string literal. |
4974 |
|
|
|
4975 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure |
4976 |
|
|
translated strings are recognized as one string literal. |
4977 |
|
|
|
4978 |
|
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
4979 |
|
|
sure translated strings are recognized as one string literal. |
4980 |
|
|
|
4981 |
bh |
1556 |
2003-08-07 Bernhard Herzog <[email protected]> |
4982 |
|
|
|
4983 |
bh |
1565 |
* Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New. |
4984 |
|
|
Simply delegates to the original shapestore. |
4985 |
|
|
|
4986 |
|
|
* test/test_derivedshapestore.py |
4987 |
|
|
(TestDerivedShapeStore.test_raw_format): New. Test case for |
4988 |
|
|
DerivedShapeStore.RawShapeFormat |
4989 |
|
|
|
4990 |
|
|
2003-08-07 Bernhard Herzog <[email protected]> |
4991 |
|
|
|
4992 |
bh |
1561 |
Add raw data interface to shape objects. |
4993 |
|
|
|
4994 |
|
|
* Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape |
4995 |
|
|
class to ShapefileShape which now holds shapefile specific |
4996 |
|
|
information. |
4997 |
|
|
(ShapefileShape.compute_bbox): Simplified to not cache any |
4998 |
|
|
information. The way this method is used that shouldn't matter |
4999 |
|
|
performance wise. |
5000 |
|
|
(ShapefileShape.RawData): New. Return the shapeid which is the raw |
5001 |
|
|
data format for shapes from shapefiles. |
5002 |
|
|
(ShapefileStore.RawShapeFormat): New. Return the raw datatype used |
5003 |
|
|
in the shape objects returned by a shapestore. For a |
5004 |
|
|
ShapefileStore this is always RAW_SHAPEFILE. |
5005 |
|
|
(RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat |
5006 |
|
|
method. |
5007 |
|
|
|
5008 |
|
|
* test/test_shapefilestore.py |
5009 |
|
|
(TestShapefileStore.test_raw_format): New test to test the raw |
5010 |
|
|
format feature of shapes. |
5011 |
|
|
|
5012 |
bh |
1560 |
* Thuban/Model/layer.py: Remove the unused import of Shape from |
5013 |
|
|
data. It was only there for interface compatibility but it's not |
5014 |
bh |
1561 |
used inside of Thuban and the generic Shape class has gone away. |
5015 |
bh |
1560 |
|
5016 |
bh |
1563 |
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check |
5017 |
|
|
the raw data format and only use an optimized version of its a |
5018 |
|
|
shapefile. |
5019 |
|
|
|
5020 |
bh |
1561 |
2003-08-07 Bernhard Herzog <[email protected]> |
5021 |
|
|
|
5022 |
bh |
1559 |
* test/test_baserenderer.py (SimpleShape): Shape class for the |
5023 |
|
|
tests. |
5024 |
|
|
(SimpleShapeStore.Shape): Use SimpleShape instead of |
5025 |
|
|
Thuban.Model.data.Shape to make the tests independed of the coming |
5026 |
|
|
changes. |
5027 |
|
|
|
5028 |
|
|
2003-08-07 Bernhard Herzog <[email protected]> |
5029 |
|
|
|
5030 |
bh |
1556 |
* test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner) |
5031 |
|
|
(ThubanTestProgram): New classes that extend the respective |
5032 |
|
|
classes from unittest. These new version support skipping tests |
5033 |
|
|
under certain expected conditions. In the Thuban test suite we |
5034 |
|
|
uses this for tests that require the optional gdal support. |
5035 |
|
|
(run_tests): Use ThubanTestProgram instead of the unittest.main() |
5036 |
|
|
|
5037 |
|
|
* test/runtests.py (main): Use the new ThubanTestRunner instead of |
5038 |
|
|
the normal one from unittest |
5039 |
|
|
|
5040 |
|
|
* test/test_layer.py (TestLayer.test_raster_layer): If this test |
5041 |
|
|
is not run because gdal support isn't available report this to the |
5042 |
|
|
runner. |
5043 |
|
|
|
5044 |
|
|
* test/test_baserenderer.py |
5045 |
|
|
(TestBaseRenderer.test_raster_no_projection): Do not run this test |
5046 |
|
|
if gdal support isn't available and report this to the runner. |
5047 |
|
|
|
5048 |
bh |
1553 |
2003-08-06 Bernhard Herzog <[email protected]> |
5049 |
|
|
|
5050 |
|
|
Rearrange the renderers a bit, partly in preparation for changes |
5051 |
|
|
required for the postgis merge, partly to make it more testable. |
5052 |
|
|
Also make the representation of coordinates in Shapes more |
5053 |
|
|
consistent. |
5054 |
|
|
|
5055 |
|
|
* Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in |
5056 |
|
|
this class is now in BaseRenderer. This class is now practically |
5057 |
|
|
only a specialization of BaseRenderer for rendering to an actual |
5058 |
|
|
wx DC. |
5059 |
|
|
(ScreenRenderer.draw_shape_layer): Use self.low_level_renderer() |
5060 |
|
|
to get the shapetype specific rendering functions. |
5061 |
|
|
|
5062 |
|
|
* Thuban/UI/baserenderer.py: New file with the basic rendering |
5063 |
|
|
logic. The code in this file is completely independend of wx. |
5064 |
|
|
(BaseRenderer): Class with the basic rendering logic |
5065 |
|
|
|
5066 |
|
|
* test/test_baserenderer.py: New. Test cases for BaseRenderer |
5067 |
|
|
|
5068 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
5069 |
|
|
error_on_redraw to guard agains endless loops and stack overflows |
5070 |
|
|
when there's a bug in the rendering code that raises exceptions. |
5071 |
|
|
(MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual |
5072 |
|
|
rendering into a separate method _do_redraw so that error handling |
5073 |
|
|
is a bit easier. When an exception occurs, set error_on_redraw to |
5074 |
|
|
true. When it's true on entry to OnIdle do nothing and return |
5075 |
|
|
immediately. |
5076 |
|
|
|
5077 |
|
|
* Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a |
5078 |
|
|
Shape object will always have the coordinates as a list of list of |
5079 |
|
|
coordinate pairs (tuples). |
5080 |
|
|
(Shape.compute_bbox): Adapt to new representation. |
5081 |
|
|
|
5082 |
|
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
5083 |
|
|
(ViewPort.LabelShapeAt): Adapt to new coordinate representation in |
5084 |
|
|
Shape objects. |
5085 |
|
|
|
5086 |
|
|
* test/test_shapefilestore.py |
5087 |
|
|
(ShapefileStoreTests.assertFloatTuplesEqual) |
5088 |
|
|
(ShapefileStoreTests.assertPointListEquals): Rename to |
5089 |
|
|
assertPointListEquals and change purpose to checking equality of |
5090 |
|
|
the lists returned by Shape.Points(). |
5091 |
|
|
(TestShapefileStoreArc.test_shape) |
5092 |
|
|
(TestShapefileStorePolygon.test_shape) |
5093 |
|
|
(TestShapefileStorePoint.test_shape): Use the new |
5094 |
|
|
assertPointListEquals instead of assertFloatTuplesEqual |
5095 |
|
|
|
5096 |
|
|
* test/test_layer.py (TestLayer.assertFloatTuplesEqual) |
5097 |
|
|
(TestLayer.assertPointListEquals): Rename to assertPointListEquals |
5098 |
|
|
and change purpose to checking equality of the lists returned by |
5099 |
|
|
Shape.Points(). |
5100 |
|
|
(TestLayer.test_arc_layer, TestLayer.test_arc_layer) |
5101 |
|
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
5102 |
|
|
(TestLayer.test_derived_store): Use the new assertPointListEquals |
5103 |
|
|
instead of assertFloatTuplesEqual |
5104 |
|
|
|
5105 |
|
|
* test/test_derivedshapestore.py |
5106 |
|
|
(TestDerivedShapeStore.assertFloatTuplesEqual) |
5107 |
|
|
(TestDerivedShapeStore.assertPointListEquals): Rename to |
5108 |
|
|
assertPointListEquals and change purpose to checking equality of |
5109 |
|
|
the lists returned by Shape.Points(). |
5110 |
|
|
(TestDerivedShapeStore.test_shape): Use the new |
5111 |
|
|
assertPointListEquals instead of assertFloatTuplesEqual |
5112 |
|
|
|
5113 |
jan |
1550 |
2003-08-06 Jan-Oliver Wagner <[email protected]> |
5114 |
|
|
|
5115 |
|
|
* Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for |
5116 |
|
|
a bounding box. A dialog is raised in case, no bounding box |
5117 |
|
|
is found. This fixes bug #2043: |
5118 |
|
|
https://intevation.de/rt/webrt?serial_num=2043 |
5119 |
|
|
|
5120 |
bh |
1548 |
2003-08-05 Bernhard Herzog <[email protected]> |
5121 |
|
|
|
5122 |
|
|
* Thuban/Model/color.py (Color.__repr__): Make the repr of a color |
5123 |
|
|
object look like a Color instantiation. Formerly it looked like a |
5124 |
|
|
tuple. |
5125 |
|
|
|
5126 |
|
|
* test/test_color.py (TestColor.test_repr) |
5127 |
|
|
(TestColor.test_equality, TestColor.test_inequality): New. test |
5128 |
|
|
some more apects of the Color class |
5129 |
|
|
(TestTransparent.test_repr, TestTransparent.test_hex) |
5130 |
|
|
(TestTransparent.test_equality): New. Test cases for the |
5131 |
|
|
Transparent object. |
5132 |
|
|
|
5133 |
jan |
1545 |
2003-08-04 Jan-Oliver Wagner <[email protected]> |
5134 |
|
|
|
5135 |
|
|
* Doc/manual/thuban-manual.xml: a number of small improvements. |
5136 |
|
|
The resulting file is the version submitted for GREAT-ER II. |
5137 |
|
|
|
5138 |
bh |
1540 |
2003-08-01 Bernhard Herzog <[email protected]> |
5139 |
|
|
|
5140 |
bh |
1543 |
* Thuban/UI/resource.py, Thuban/UI/projdialog.py, |
5141 |
|
|
Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py, |
5142 |
|
|
Thuban/Model/resource.py: Insert cvs keywords and doc-strings. |
5143 |
|
|
|
5144 |
|
|
* Thuban/UI/common.py: Insert cvs keywords and doc-strings. |
5145 |
|
|
(Color2wxColour, wxColour2Color, ThubanBeginBusyCursor) |
5146 |
|
|
(ThubanEndBusyCursor): Add doc-strings |
5147 |
|
|
|
5148 |
|
|
2003-08-01 Bernhard Herzog <[email protected]> |
5149 |
|
|
|
5150 |
bh |
1540 |
First step towards PostGIS integration. More abstraction by movin |
5151 |
|
|
more code from the layer to the shapestore. More methods of the |
5152 |
|
|
layer are now simply delegated to the equivalent method of the |
5153 |
|
|
shapestore. The SHAPETYPE_* constants are now in data not in |
5154 |
|
|
layer. |
5155 |
|
|
|
5156 |
|
|
* Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC) |
5157 |
|
|
(SHAPETYPE_POINT, Shape): Move these constants and classes from |
5158 |
|
|
layer.py to data.py |
5159 |
|
|
(ShapefileStore.__init__): More Initialization for the new methods |
5160 |
|
|
and functionality. |
5161 |
|
|
(ShapefileStore.ShapeType, ShapefileStore.NumShapes) |
5162 |
|
|
(ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion) |
5163 |
|
|
(ShapefileStore.Shape): New methods that were formerly implemented |
5164 |
|
|
in the layer. |
5165 |
|
|
(DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion) |
5166 |
|
|
(DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes) |
5167 |
|
|
(DerivedShapeStore.BoundingBox): New. DerivedShapeStore |
5168 |
|
|
equivalents of the new shape methods. These versions are simply |
5169 |
|
|
delegated to the original shapstore. |
5170 |
|
|
|
5171 |
|
|
* Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC) |
5172 |
|
|
(SHAPETYPE_POINT, Shape): Removed. They're now in data.py |
5173 |
|
|
(Layer.SetShapeStore): Removed the initializatin of instance |
5174 |
|
|
variables that were needed for the stuff that's now in |
5175 |
|
|
ShapefileStore |
5176 |
|
|
(Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType) |
5177 |
|
|
(Layer.Shape, Layer.ShapesInRegion): Simply delegate to the |
5178 |
|
|
shapestore. |
5179 |
|
|
|
5180 |
|
|
* Thuban/UI/classifier.py, Thuban/UI/renderer.py, |
5181 |
|
|
Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data |
5182 |
|
|
instead of layer. |
5183 |
|
|
|
5184 |
|
|
* test/test_shapefilestore.py: New. Tests for ShapefileStore. |
5185 |
|
|
|
5186 |
|
|
* test/test_derivedshapestore.py: New. Tests for DerivedShapeStore. |
5187 |
|
|
|
5188 |
|
|
* test/test_layer.py: Import the SHAPETYPE_* constants from data |
5189 |
|
|
instead of layer. |
5190 |
|
|
(TestLayer.test_derived_store): Remove the test for the exception |
5191 |
|
|
when instantiating the DerivedShapeStore with an incompatible |
5192 |
|
|
table which is now in test_derivedshapestore.py. Add some more |
5193 |
|
|
tests of the layer methods to determine whether they work for a |
5194 |
|
|
DerivedShapeStore as well. |
5195 |
|
|
|
5196 |
jonathan |
1534 |
2003-07-31 Jonathan Coles <[email protected]> |
5197 |
|
|
|
5198 |
|
|
* Doc/manual/thuban-manual.xml: Fix the list of required packages |
5199 |
|
|
by just listing the name and where they can be found. |
5200 |
|
|
|
5201 |
frank |
1532 |
2003-07-31 Frank Koormann <[email protected]> |
5202 |
|
|
|
5203 |
|
|
* Doc/manual/thuban-manual.xml: |
5204 |
|
|
Changed the screenshot elements to figure. |
5205 |
|
|
Changed some variablelist elements to itemizedlist. |
5206 |
|
|
Added section on GDAL formats. |
5207 |
|
|
|
5208 |
jonathan |
1531 |
2003-07-31 Jonathan Coles <[email protected]> |
5209 |
|
|
|
5210 |
|
|
* Doc/manual/thuban-manual.xml: Added a few sentences about |
5211 |
|
|
the Fix Border Color option when generating classes. |
5212 |
|
|
|
5213 |
jonathan |
1529 |
2003-07-30 Jonathan Coles <[email protected]> |
5214 |
|
|
|
5215 |
|
|
* Thuban/Model/classgen.py: Add docstrings. Rename specific |
5216 |
|
|
Ramp instances to use lower_case_style. |
5217 |
|
|
|
5218 |
|
|
* Thuban/UI/classgen.py: Use renamed Ramp instances. |
5219 |
|
|
|
5220 |
|
|
* Thuban/UI/classifier.py: Add docstrings. |
5221 |
|
|
|
5222 |
|
|
* Thuban/UI/dock.py: Add docstrings. |
5223 |
|
|
|
5224 |
|
|
* test/test_classgen.py: Use renamed Ramp instances. |
5225 |
|
|
|
5226 |
bh |
1522 |
2003-07-30 Bernhard Herzog <[email protected]> |
5227 |
|
|
|
5228 |
bh |
1524 |
* Thuban/Lib/connector.py (QueueingPublisher): Removed. This class |
5229 |
|
|
was never used in Thuban. |
5230 |
|
|
|
5231 |
|
|
2003-07-30 Bernhard Herzog <[email protected]> |
5232 |
|
|
|
5233 |
bh |
1522 |
* Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title() |
5234 |
|
|
method directly instead of going through the transient_table |
5235 |
|
|
method. This faster because transient_table may force the copy of |
5236 |
|
|
a DBF file into the transient database and setting a table's title |
5237 |
|
|
doesnm't affect the title of the associated transient table, so |
5238 |
|
|
this fixes RT #2042 |
5239 |
|
|
|
5240 |
|
|
* Thuban/UI/main.py (__version__): Don't import the already |
5241 |
|
|
removed show_exception_dialog. |
5242 |
|
|
|
5243 |
jonathan |
1517 |
2003-07-29 Jonathan Coles <[email protected]> |
5244 |
|
|
|
5245 |
jonathan |
1519 |
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
5246 |
|
|
Put back this method and remove the equivalent function since we |
5247 |
|
|
are setting the exception hook from within this class (OnInit). |
5248 |
|
|
|
5249 |
|
|
2003-07-29 Jonathan Coles <[email protected]> |
5250 |
|
|
|
5251 |
jonathan |
1517 |
* Doc/manual/images/5_2_custom_ramp.png, |
5252 |
|
|
Doc/manual/images/5_2_quantiles.png, |
5253 |
|
|
Doc/manual/images/5_2_uniform_dist.png, |
5254 |
|
|
Doc/manual/images/5_2_unique_values.png, |
5255 |
|
|
Doc/manual/images/8_int_error.png: New screen shots. |
5256 |
|
|
|
5257 |
|
|
* Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified |
5258 |
|
|
some points, and added more screen shots. |
5259 |
|
|
|
5260 |
bh |
1512 |
2003-07-29 Bernhard Herzog <[email protected]> |
5261 |
|
|
|
5262 |
bh |
1516 |
* Thuban/Model/data.py: Remove the now unused import of warnings |
5263 |
|
|
|
5264 |
|
|
2003-07-29 Bernhard Herzog <[email protected]> |
5265 |
|
|
|
5266 |
bh |
1514 |
* Thuban/Model/data.py (SimpleStore): Removed. This class has been |
5267 |
|
|
deprecated since before the 0.8 release and isn't used in Thuban |
5268 |
|
|
itself anymore. |
5269 |
|
|
|
5270 |
bh |
1512 |
* Thuban/Model/transientdb.py: Remove some unnecessary imports |
5271 |
|
|
|
5272 |
jonathan |
1503 |
2003-07-29 Jonathan Coles <[email protected]> |
5273 |
jonathan |
1506 |
|
5274 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): set the |
5275 |
|
|
python exception hook here so that we are sure to catch any |
5276 |
|
|
Thuban exception that happen during initialization. |
5277 |
|
|
|
5278 |
|
|
* Thuban/UI/main.py (main): Don't set the exception hook here, |
5279 |
|
|
it will get set in ThubanApplication.OnInit. |
5280 |
|
|
|
5281 |
|
|
2003-07-29 Jonathan Coles <[email protected]> |
5282 |
jonathan |
1503 |
|
5283 |
|
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
5284 |
|
|
Removed and called it show_exception_dialog() so that the exception |
5285 |
|
|
handler can be set before the class is created. |
5286 |
|
|
|
5287 |
|
|
* Thuban/UI/main.py (main): Install the exception handler before |
5288 |
|
|
a ThubanApplication is created. |
5289 |
|
|
|
5290 |
bh |
1500 |
2003-07-29 Bernhard Herzog <[email protected]> |
5291 |
|
|
|
5292 |
|
|
* po/it.po: New. Italian translation by Maurizio Napolitano |
5293 |
|
|
|
5294 |
|
|
* po/ru.po: New. Russian translation by Alex Shevlakov |
5295 |
|
|
|
5296 |
frank |
1497 |
2003-07-29 Frank Koormann <[email protected]> |
5297 |
|
|
|
5298 |
frank |
1508 |
* Doc/manual/thuban-manual.xml: Extended section on supported |
5299 |
|
|
projections. |
5300 |
|
|
|
5301 |
|
|
2003-07-29 Frank Koormann <[email protected]> |
5302 |
|
|
|
5303 |
frank |
1497 |
* Doc/manual/thuban-manual.xml: gaspell-checked. |
5304 |
|
|
|
5305 |
jonathan |
1493 |
2003-07-29 Jonathan Coles <[email protected]> |
5306 |
|
|
|
5307 |
jonathan |
1495 |
* Doc/manual/images/3_5_legend.png: Added border to improve look |
5308 |
|
|
on white background. |
5309 |
|
|
|
5310 |
|
|
2003-07-29 Jonathan Coles <[email protected]> |
5311 |
|
|
|
5312 |
jonathan |
1493 |
* Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added |
5313 |
|
|
descriptions for the legend toolbar. |
5314 |
|
|
|
5315 |
|
|
* Doc/manual/images/4_2_raster_layer_properties.png: Removed |
5316 |
|
|
cursor from dialog box. |
5317 |
|
|
|
5318 |
|
|
2003-07-28 Jonathan Coles <[email protected]> |
5319 |
|
|
|
5320 |
|
|
* Doc/manual/thuban-manual.xml: More screenshots and more chapters. |
5321 |
|
|
|
5322 |
|
|
* Doc/manual/images/2_4_session_tree.png, |
5323 |
|
|
Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png, |
5324 |
|
|
Doc/manual/images/4_2_layer_properties.png, |
5325 |
|
|
Doc/manual/images/4_2_raster_layer_properties.png, |
5326 |
|
|
Doc/manual/images/5_3_genclass.png, |
5327 |
|
|
Doc/manual/images/5_classification.png, |
5328 |
|
|
Doc/manual/images/6_projection.png, |
5329 |
|
|
Doc/manual/images/7_1_table_view.png, |
5330 |
|
|
Doc/manual/images/7_2_5_join.png: New screenshots. |
5331 |
|
|
|
5332 |
|
|
2003-07-24 Jonathan Coles <[email protected]> |
5333 |
|
|
|
5334 |
|
|
* Doc/manual/thuban-manual.xml: Chapter on Projection Management. |
5335 |
|
|
|
5336 |
|
|
2003-07-24 Jonathan Coles <[email protected]> |
5337 |
|
|
|
5338 |
|
|
* Doc/manual/thuban-manual.xml: Added EPS images and wrote |
5339 |
|
|
chapter on Layer Management. |
5340 |
|
|
|
5341 |
|
|
* Doc/manual/Makefile: New. Makefile to generate all formats for the |
5342 |
|
|
manual and images. |
5343 |
|
|
|
5344 |
bh |
1483 |
2003-07-24 Bernhard Herzog <[email protected]> |
5345 |
|
|
|
5346 |
|
|
* Thuban/Model/range.py, Thuban/version.py: Remove the #! line as |
5347 |
|
|
it annoys lintian which warns about these files not being |
5348 |
jan |
1767 |
executable. The #! isn't necessary here since if you absolutely |
5349 |
bh |
1483 |
must execute them you can always say "python <filename>". |
5350 |
|
|
|
5351 |
|
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove |
5352 |
|
|
superfluous code to set brush and pen for point shapes |
5353 |
|
|
|
5354 |
|
|
* Thuban/UI/viewport.py: Remove commented out code that wouldn't |
5355 |
|
|
belong in viewport anyway |
5356 |
|
|
|
5357 |
frank |
1479 |
2003-07-24 Frank Koormann <[email protected]> |
5358 |
|
|
|
5359 |
|
|
* Doc/manual/thuban-manual.xml: Added section on table management. |
5360 |
|
|
|
5361 |
bh |
1477 |
2003-07-24 Bernhard Herzog <[email protected]> |
5362 |
|
|
|
5363 |
|
|
* test/runtests.py (main): Recognize the long "verbose" option |
5364 |
|
|
correctly. |
5365 |
|
|
|
5366 |
jonathan |
1470 |
2003-07-22 Jonathan Coles <[email protected]> |
5367 |
|
|
|
5368 |
|
|
* Doc/manual/thuban-manual.xml: Continue to write first revision |
5369 |
|
|
of the manual. |
5370 |
|
|
|
5371 |
|
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method |
5372 |
|
|
with Begin/EndDrawing() calls to ensure we aren't doing to |
5373 |
|
|
many updates to the dc during rendering. |
5374 |
|
|
(ScreenRenderer.draw_shape_layer): self.draw_point_shape takes |
5375 |
|
|
a pen and brush argument so they need to be passed to the function. |
5376 |
|
|
|
5377 |
|
|
* Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New. |
5378 |
|
|
Calculates the minimum and maximum scale values. Factored out |
5379 |
|
|
of set_view_transform so that it could be used to zoom all the |
5380 |
|
|
way into a single point. |
5381 |
|
|
(ViewPort.set_view_transform): Call calc_min_max_scales(). |
5382 |
|
|
(ViewPort.FitSelectedToWindow): Zoom to the maximum scale |
5383 |
|
|
if only a single point is selected. |
5384 |
|
|
|
5385 |
|
|
* Doc/manual/images/1_2_legend_close.png, |
5386 |
|
|
Doc/manual/images/1_2_legend_dock.png, |
5387 |
|
|
Doc/manual/images/1_2_mainwindow.png, |
5388 |
|
|
Doc/manual/images/1_2_mainwindow.ps, |
5389 |
|
|
Doc/manual/images/1_2_mainwindow.sk, |
5390 |
|
|
Doc/manual/images/3_2_fullextent.png, |
5391 |
|
|
Doc/manual/images/3_2_fulllayerextent.png, |
5392 |
|
|
Doc/manual/images/3_2_fullshapeextent.png, |
5393 |
|
|
Doc/manual/images/3_2_pan.png, |
5394 |
|
|
Doc/manual/images/3_2_zoomin.png, |
5395 |
|
|
Doc/manual/images/3_2_zoomout.png, |
5396 |
|
|
Doc/manual/images/3_3_identify.png, |
5397 |
|
|
Doc/manual/images/3_3_label.png, |
5398 |
|
|
Doc/manual/images/3_5_invisible.png, |
5399 |
|
|
Doc/manual/images/3_5_movedown.png, |
5400 |
|
|
Doc/manual/images/3_5_moveup.png, |
5401 |
|
|
Doc/manual/images/3_5_props.png, |
5402 |
|
|
Doc/manual/images/3_5_tobottom.png, |
5403 |
|
|
Doc/manual/images/3_5_totop.png, |
5404 |
|
|
Doc/manual/images/3_5_visible.png: New. Images for the documentation. |
5405 |
|
|
|
5406 |
bh |
1451 |
2003-07-18 Bernhard Herzog <[email protected]> |
5407 |
|
|
|
5408 |
bh |
1465 |
* Thuban/UI/messages.py (MAP_REPLACED): New message. |
5409 |
|
|
|
5410 |
|
|
* Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED |
5411 |
|
|
after the new map has been assigned |
5412 |
|
|
|
5413 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): |
5414 |
|
|
Delegate MAP_REPLACED to the canvas too |
5415 |
|
|
(MainWindow.prepare_new_session): Removed. Thanks to the new |
5416 |
|
|
MAP_REPLACED message it's no longer needed |
5417 |
|
|
(MainWindow.OpenSession, MainWindow.NewSession): |
5418 |
|
|
prepare_new_session has been removed. |
5419 |
|
|
|
5420 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Subscribe to |
5421 |
|
|
MAP_REPLACED so that we can close the dialog if a new map is set. |
5422 |
|
|
(Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED |
5423 |
|
|
(Classifier.map_replaced): Handle MAP_REPLACED by closing the |
5424 |
|
|
dialog |
5425 |
|
|
|
5426 |
|
|
* test/test_viewport.py (SimpleViewPortTest) |
5427 |
|
|
(SimpleViewPortTest.test_default_size): Add doc-strings |
5428 |
|
|
(ViewPortTest.setUp): Bind map to self.map so we can use it in |
5429 |
|
|
tests. Subscribe to MAP_REPLACED messages too. |
5430 |
|
|
(ViewPortTest.tearDown): No need to explicitly unsubscribe |
5431 |
|
|
(ViewPortTest.test_set_map): New test for the SetMap method. |
5432 |
|
|
|
5433 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5434 |
|
|
|
5435 |
bh |
1463 |
* test/test_viewport.py (SimpleViewPortTest.test_default_size): |
5436 |
|
|
Move this test from ViewPortTest.setUp to this new separate test |
5437 |
|
|
case. setUp is not the place for the actual tests. |
5438 |
|
|
(ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some |
5439 |
|
|
more of the test from setUp to the new test test_inital_settings. |
5440 |
|
|
(ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win) |
5441 |
|
|
(ViewPortTest.test_proj_conv): Split test_proj_conv into |
5442 |
|
|
test_win_to_proj and test_proj_to_win and make the tests easier to |
5443 |
|
|
understand |
5444 |
|
|
(ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor) |
5445 |
|
|
(ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate) |
5446 |
|
|
(ViewPortTest.test_unprojected_rect_around_point) |
5447 |
|
|
(ViewPortTest.test_find_shape_at, ViewPortTest.testTools): |
5448 |
|
|
Reformat to increase readability. |
5449 |
|
|
|
5450 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5451 |
|
|
|
5452 |
bh |
1461 |
* Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse. |
5453 |
|
|
|
5454 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5455 |
|
|
|
5456 |
bh |
1459 |
* test/runtests.py: The test suite can now be run without an X |
5457 |
|
|
connection. To make sure this remains true, remove the DISPLAY |
5458 |
|
|
environment variable so that an error occurs if the wxGTK is |
5459 |
|
|
imported accidentally |
5460 |
|
|
|
5461 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5462 |
|
|
|
5463 |
bh |
1457 |
* Thuban/UI/viewport.py: Remove unused imports |
5464 |
|
|
|
5465 |
|
|
* Thuban/UI/view.py: Remove unused imports |
5466 |
|
|
|
5467 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5468 |
|
|
|
5469 |
bh |
1455 |
* test/test_export.py Remove unused imports. The OutputTransform |
5470 |
|
|
function is now in viewport.py and is called output_transform |
5471 |
|
|
(TestScalebar.test_output_transform) |
5472 |
|
|
(TestScalebar.test_OutputTransform): Renamed to |
5473 |
|
|
test_output_transform and updated to use output_transform instead |
5474 |
|
|
of OutputTransform |
5475 |
|
|
|
5476 |
|
|
* Thuban/UI/view.py (OutputTransform): Moved to viewport.py and |
5477 |
|
|
renamed. |
5478 |
|
|
(MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was |
5479 |
|
|
renamed to output_transform |
5480 |
|
|
|
5481 |
|
|
* Thuban/UI/viewport.py (OutputTransform, output_transform): |
5482 |
|
|
Rename to output_transform |
5483 |
|
|
|
5484 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5485 |
|
|
|
5486 |
bh |
1453 |
* Thuban/Model/layer.py (Layer.__init__): Rename |
5487 |
|
|
classificationField to classificatin_column and init it here so |
5488 |
|
|
that it can be used in SetClassificationColumn |
5489 |
|
|
(Layer.GetClassificationColumn, Layer.GetClassificationField): |
5490 |
|
|
Rename to GetClassificationColumn. |
5491 |
|
|
(Layer.SetClassificationColumn, Layer.SetClassificationField): |
5492 |
|
|
Rename to SetClassificationColumn and issue a LAYER_CHANGED |
5493 |
|
|
message if the column changes. |
5494 |
|
|
(Layer._classification_changed, Layer.ClassChanged): Rename to |
5495 |
|
|
_classification_changed. Update the callers. |
5496 |
|
|
(Layer.SetShapeStore): Further field->column renames. |
5497 |
|
|
|
5498 |
|
|
* Thuban/Model/load.py (SessionLoader.start_classification) |
5499 |
|
|
(SessionLoader.start_clpoint): Updates because of |
5500 |
|
|
field->column method name changes in the Layer class |
5501 |
|
|
|
5502 |
|
|
* Thuban/Model/save.py (SessionSaver.write_classification): Updates |
5503 |
|
|
because of field->column method name changes in the Layer class |
5504 |
|
|
|
5505 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__) |
5506 |
|
|
(Classifier._OnTry, Classifier._OnRevert): Updates because of |
5507 |
|
|
field->column method name changes in the Layer class |
5508 |
|
|
|
5509 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates |
5510 |
|
|
because of field->column method name changes in the Layer class |
5511 |
|
|
|
5512 |
|
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because |
5513 |
|
|
of field->column method name changes in the Layer class |
5514 |
|
|
|
5515 |
|
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer) |
5516 |
|
|
(SaveSessionTest.testClassifiedLayer): Update because of |
5517 |
|
|
field->column method name changes in the Layer class |
5518 |
|
|
|
5519 |
|
|
* test/test_layer.py (SetShapeStoreTests.setUp) |
5520 |
|
|
(SetShapeStoreTests.test_sanity): Update because of field->column |
5521 |
|
|
method name changes in the Layer class |
5522 |
|
|
(TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well |
5523 |
|
|
(TestLayerModification.test_sanity) |
5524 |
|
|
(TestLayerModification.test_initial_settings): remove unsued code |
5525 |
|
|
and rename to test_sanity. |
5526 |
|
|
(TestLayerModification.test_set_classification): New test for |
5527 |
|
|
SetClassification and SetClassificationField. |
5528 |
|
|
|
5529 |
|
|
2003-07-18 Bernhard Herzog <[email protected]> |
5530 |
|
|
|
5531 |
bh |
1451 |
* test/test_classgen.py (TestFixedRamp.test): Extend test to check |
5532 |
|
|
the non-fixed values as well. The old test would have accepted a |
5533 |
|
|
fixed ramp that only returnes the fixed properties |
5534 |
|
|
|
5535 |
jonathan |
1449 |
2003-07-17 Jonathan Coles <[email protected]> |
5536 |
|
|
|
5537 |
|
|
* Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen |
5538 |
|
|
shots for the manual. The XCF file is the source image and |
5539 |
|
|
has additional layers to support changes. |
5540 |
|
|
|
5541 |
|
|
* Doc/manual/thuban-manual.xml: Wrote an initial Introduction. |
5542 |
|
|
|
5543 |
|
|
* Thuban/UI/classifier.py (Classifier.__BuildClassification): |
5544 |
|
|
Return both the new class and the field name. |
5545 |
|
|
|
5546 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't |
5547 |
|
|
fit the map to the window as this changes any zoom level that |
5548 |
|
|
the user may have set. |
5549 |
|
|
|
5550 |
jonathan |
1442 |
2003-07-16 Jonathan Coles <[email protected]> |
5551 |
|
|
|
5552 |
|
|
* Thuban/Model/classgen.py (generate_singletons, |
5553 |
|
|
generate_uniform_distribution, generate_quantiles): Remove |
5554 |
|
|
fixes parameter, but maintain the same functionality by having |
5555 |
|
|
the calling function pass a FixedRamp object for the ramp. |
5556 |
|
|
(FixedRamp): New. Adapts a ramp to have fixed property values. |
5557 |
|
|
|
5558 |
|
|
* Thuban/Model/classification.py: Use new CLASS_CHANGED message. |
5559 |
|
|
(Classification): Inherit from Publisher. |
5560 |
|
|
(Classification.__init__): Remove the layer parameter. |
5561 |
|
|
Classifications no longer need to have a parent layer. |
5562 |
|
|
(Classification.GetField, Classification.GetFieldType, |
5563 |
|
|
Classification.SetFieldInfo): Removed. The field name is stored |
5564 |
|
|
in the layer, and the type can be retreived by calling |
5565 |
|
|
Layer.GetFieldType(). |
5566 |
|
|
(Classification._set_layer, Classification.GetLayer): Removed. |
5567 |
|
|
Classifications no longer have a parent layer. |
5568 |
|
|
|
5569 |
|
|
* Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the |
5570 |
|
|
classification. |
5571 |
|
|
(Layer.SetShapeStore): Reset the classification first while |
5572 |
|
|
we still have the old shape store to work with. |
5573 |
|
|
(Layer.GetClassificationField, Layer.SetClassificationField): |
5574 |
|
|
New. Method for getting/setting the field to classify on. |
5575 |
|
|
(Layer.SetClassification): Simplified now that the layer |
5576 |
|
|
simply has to hold a reference to the classification and not |
5577 |
|
|
tell the classification who owns it. |
5578 |
|
|
Fixes RTbug #2023. |
5579 |
|
|
|
5580 |
|
|
* Thuban/Model/load.py (SessionLoader.start_classification): |
5581 |
|
|
Set the field name on the layer, not the classification. |
5582 |
|
|
|
5583 |
|
|
* Thuban/Model/messages.py: Add CLASS_CHANGED for when a |
5584 |
|
|
classification is modified. |
5585 |
|
|
|
5586 |
|
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
5587 |
|
|
Get the field name and type from the layer. |
5588 |
|
|
|
5589 |
|
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed |
5590 |
|
|
parameter records to rows and add docstring. Fixes RTbug #1997. |
5591 |
|
|
|
5592 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed |
5593 |
|
|
ramp when we need to fix certain values of a ramp rather than |
5594 |
|
|
using the old fixes parameter. Fixes RTbug #2024. |
5595 |
|
|
|
5596 |
|
|
* Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType |
5597 |
|
|
parameter. |
5598 |
|
|
(ClassTable.Reset): Add fieldType parameter and use it, rather |
5599 |
|
|
than asking the classification. |
5600 |
|
|
(Classifier.__init__): Remember the original class's field |
5601 |
|
|
and ask the layer for the field type, rather than the classification. |
5602 |
|
|
(Classifier.__SetGridTable): Retrieve the field and field type |
5603 |
|
|
for the table because they are not in the classification. |
5604 |
|
|
(Classifier._OnTry, Classifier._OnRevert): Set the classification |
5605 |
|
|
field on the layer in addition to the classification itself. |
5606 |
|
|
|
5607 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the |
5608 |
|
|
classification field from layer. |
5609 |
|
|
|
5610 |
|
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the |
5611 |
|
|
classification field from layer. Split up tests and remove |
5612 |
|
|
*-imports. Fixes RTbug #1992. |
5613 |
|
|
|
5614 |
|
|
* test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class. |
5615 |
|
|
|
5616 |
|
|
* test/test_classification.py |
5617 |
|
|
(TestClassification.test_classification): Remove tests for methods |
5618 |
|
|
that no longer exist. |
5619 |
|
|
|
5620 |
|
|
* test/test_layer.py (SetShapeStoreTests.setUp): Classification |
5621 |
|
|
__init__ no longer has a field parameter, use SetClassificationField. |
5622 |
|
|
(SetShapeStoreTests.test_sanity): Use layer object to get class |
5623 |
|
|
field info. |
5624 |
|
|
|
5625 |
|
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Use |
5626 |
|
|
SetClassificationField on layer to set class field info. |
5627 |
|
|
|
5628 |
|
|
* test/test_viewport.py: Renamed from test/test_view.py. |
5629 |
|
|
|
5630 |
jan |
1424 |
2003-07-16 Jan-Oliver Wagner <[email protected]> |
5631 |
|
|
|
5632 |
|
|
* Doc/manual/thuban-manual.xml: Added authors and an initial |
5633 |
|
|
coarse structure. |
5634 |
|
|
|
5635 |
bh |
1418 |
2003-07-15 Bernhard Herzog <[email protected]> |
5636 |
|
|
|
5637 |
bh |
1422 |
* test/support.py (FloatComparisonMixin): This is a mix-in class |
5638 |
|
|
and therefore should not be derived from any other class. |
5639 |
|
|
|
5640 |
|
|
* test/test_range.py (RangeTest): FloatComparisonMixin is a |
5641 |
|
|
mix-in, so derive from TestCase as well. |
5642 |
|
|
|
5643 |
|
|
2003-07-15 Bernhard Herzog <[email protected]> |
5644 |
|
|
|
5645 |
bh |
1420 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the |
5646 |
|
|
draw_func handling a bit to remove one layer of indirection. This |
5647 |
|
|
makes the renderer about 10% faster in the non-classifying case |
5648 |
|
|
and the code a bit cleaner |
5649 |
|
|
(MapRenderer.draw_point_shape): Add the pen and brush parameters |
5650 |
|
|
and set them in the dc. Now the draw_point_shape method and |
5651 |
|
|
wxproj's draw_polygon_shape function have basically the same |
5652 |
|
|
signature so that both can be directly used as draw_func |
5653 |
|
|
|
5654 |
|
|
2003-07-15 Bernhard Herzog <[email protected]> |
5655 |
|
|
|
5656 |
bh |
1418 |
* Thuban/Model/save.py (SessionSaver.write_classification): Encode |
5657 |
|
|
string values (in addition to the labels) as UTF 8 |
5658 |
|
|
|
5659 |
|
|
* Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the |
5660 |
|
|
values if the field type is string |
5661 |
|
|
|
5662 |
|
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Test |
5663 |
|
|
saving a session with non-ascii string classification values. |
5664 |
|
|
|
5665 |
|
|
* test/test_load.py (TestClassification.file_contents) |
5666 |
|
|
(TestClassification.test): Check for non-ascii values in string |
5667 |
|
|
classifications |
5668 |
|
|
|
5669 |
jonathan |
1416 |
2003-07-14 Jonathan Coles <[email protected]> |
5670 |
|
|
|
5671 |
|
|
* test/test_view.py: New. Tests for ViewPort. |
5672 |
|
|
|
5673 |
frank |
1409 |
2003-07-14 Frank Koormann <[email protected]> |
5674 |
|
|
|
5675 |
|
|
* Thuban/Model/load.py (SessionLoader.start_map): Encode map |
5676 |
|
|
title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013 |
5677 |
|
|
|
5678 |
frank |
1411 |
* test/test_load_0_8.py (TestUnicodeStrings): New, test load of |
5679 |
|
|
unicode strings from session file: session title, map title and |
5680 |
|
|
projection name. |
5681 |
|
|
|
5682 |
jonathan |
1403 |
2003-07-10 Jonathan Coles <[email protected]> |
5683 |
|
|
|
5684 |
jonathan |
1406 |
* Thuban/UI/viewport.py (Tool.MouseUp): Should have called |
5685 |
|
|
drag_stop, not drag_move when the mouse is released. |
5686 |
|
|
|
5687 |
|
|
2003-07-10 Jonathan Coles <[email protected]> |
5688 |
|
|
|
5689 |
jonathan |
1403 |
The most important part of this is the seperation of view.py into |
5690 |
|
|
two pieces. viewport.py now has a class called ViewPort which |
5691 |
|
|
contains all the non-wx parts of view.py and can therefore be |
5692 |
|
|
tested. view.py contains only the wx-specific parts and is fairly |
5693 |
|
|
simple. |
5694 |
|
|
|
5695 |
|
|
* Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes |
5696 |
|
|
RTTbug #1992. |
5697 |
|
|
* Thuban/UI/viewport.py: New. Contains non-wx view functionality. |
5698 |
|
|
RTTbug #1992. |
5699 |
|
|
|
5700 |
|
|
* Thuban/Model/classgen.py (generate_singletons, |
5701 |
|
|
generate_uniform_distribution, generate_quantiles): |
5702 |
|
|
Added 'fixes' parameter so that property attributes can |
5703 |
|
|
be held constant over the generated classification groups. |
5704 |
|
|
(CustomRamp.GetProperties): Remove unused variables. |
5705 |
|
|
|
5706 |
|
|
* Thuban/Model/map.py (Map.SetProjection): Send the old |
5707 |
|
|
projection as an argument to listeners of the MAP_PROJECTION_CHANGED |
5708 |
|
|
event. |
5709 |
|
|
|
5710 |
|
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records' |
5711 |
|
|
parameter which is a list of records that restricts which |
5712 |
|
|
records are saved. Fixes RTbug #1997. |
5713 |
|
|
|
5714 |
|
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
5715 |
|
|
Port exception dialog from GREAT-ER. Fixes RTbug #1993. |
5716 |
|
|
|
5717 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls |
5718 |
|
|
to allow the user to fix line color/width on generated groups. |
5719 |
|
|
(ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_* |
5720 |
|
|
functions to optionally fix group properties. |
5721 |
|
|
|
5722 |
|
|
* Thuban/UI/main.py (main): Set exception hook to the |
5723 |
|
|
ShowExceptionDialog. Fixes RTbug #1993. |
5724 |
|
|
|
5725 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise |
5726 |
|
|
the table window when it is selectd to be shown. |
5727 |
|
|
|
5728 |
|
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an |
5729 |
|
|
Export Selection button and move the export buttons underneath |
5730 |
|
|
the table. |
5731 |
|
|
(QueryTableFrame.UpdateStatusText): Added event argument so |
5732 |
|
|
that it can respond to grid selection events. The status text |
5733 |
|
|
is now updated even when the table is not associated with a |
5734 |
|
|
layer as was previously assumed. |
5735 |
|
|
(QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed. |
5736 |
|
|
UpdateStatusText responds to these events. |
5737 |
|
|
(QueryTableFrame.OnSaveAs): Renamed to doExport. |
5738 |
|
|
(QueryTableFrame.doExport): Helper function that saves the |
5739 |
|
|
entire table, or selected rows, to a file. |
5740 |
|
|
(QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New. |
5741 |
|
|
Respond to export button events and call doExport. |
5742 |
|
|
|
5743 |
|
|
* extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure |
5744 |
|
|
the function doesn't return NULL without first setting a Python |
5745 |
|
|
Error. |
5746 |
|
|
|
5747 |
|
|
* test/runtests.py (main): Only print "Unknown option" for |
5748 |
|
|
unsupported options. |
5749 |
|
|
|
5750 |
|
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): Take |
5751 |
|
|
optional epsilon argument to specify floating point accuracy. |
5752 |
|
|
(FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual |
5753 |
|
|
for each item test. |
5754 |
|
|
|
5755 |
|
|
* test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add |
5756 |
|
|
tests for saving selected records. |
5757 |
|
|
|
5758 |
|
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
5759 |
|
|
tests for saving selected records. |
5760 |
|
|
|
5761 |
|
|
* test/test_map.py (TestMapWithContents.test_set_projection): |
5762 |
|
|
MAP_PROJECTION_CHANGED events send the old projection. |
5763 |
|
|
|
5764 |
|
|
* test/test_session.py |
5765 |
|
|
(TestSessionWithContent.test_forward_map_projection): |
5766 |
|
|
MAP_PROJECTION_CHANGED events send the old projection. |
5767 |
|
|
|
5768 |
|
|
* test/test_table.py (TableTest): Update tests to use non-deprecated |
5769 |
|
|
functions. |
5770 |
|
|
|
5771 |
bh |
1376 |
2003-07-08 Bernhard Herzog <[email protected]> |
5772 |
|
|
|
5773 |
bh |
1382 |
* Thuban/Model/transientdb.py (TransientTableBase.Width): The type |
5774 |
|
|
constants in the column objects are the standard ones defined in |
5775 |
|
|
the table module. |
5776 |
|
|
|
5777 |
|
|
* test/test_transientdb.py |
5778 |
|
|
(TestTransientTable.test_transienttable_to_dbf): New. Test whether |
5779 |
|
|
exporting transient tables as DBF works. This should catch the bug |
5780 |
|
|
just fixed in TransientTableBase.Width. |
5781 |
|
|
|
5782 |
|
|
2003-07-08 Bernhard Herzog <[email protected]> |
5783 |
|
|
|
5784 |
bh |
1380 |
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the |
5785 |
|
|
interpolated colors correctly. |
5786 |
|
|
|
5787 |
|
|
* test/test_classgen.py (TestCustomRamp.test_color_interpolation): |
5788 |
|
|
New. Test case for the fix in classgen.py |
5789 |
|
|
|
5790 |
|
|
2003-07-08 Bernhard Herzog <[email protected]> |
5791 |
|
|
|
5792 |
bh |
1378 |
* test/runtests.py (main): Make the default output less verbose |
5793 |
|
|
and add a verbosity option (-v) to get the old output |
5794 |
|
|
|
5795 |
|
|
2003-07-08 Bernhard Herzog <[email protected]> |
5796 |
|
|
|
5797 |
bh |
1376 |
* Resources/XML/thuban-0.9.dtd: New. This will become the DTD for |
5798 |
|
|
0.9. |
5799 |
|
|
|
5800 |
|
|
* Thuban/Model/transientdb.py (TransientJoinedTable.JoinType): |
5801 |
|
|
New. Return the join type |
5802 |
|
|
|
5803 |
|
|
* Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9 |
5804 |
|
|
DTD |
5805 |
|
|
(SessionSaver.write_data_containers): Save the join type for |
5806 |
|
|
joined tables |
5807 |
|
|
|
5808 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9 |
5809 |
|
|
namespace |
5810 |
|
|
(SessionLoader.start_jointable): Handle the jointype attribute |
5811 |
|
|
|
5812 |
|
|
* test/test_load_0_8.py: New. Effectively a copy of test_load.py |
5813 |
|
|
as of Thuban 0.8. These are now tests to determine whether Thuban |
5814 |
|
|
can still read files generated by Thuban 0.8 |
5815 |
|
|
|
5816 |
|
|
* test/test_load.py (LoadSessionTest.dtd) |
5817 |
|
|
(TestSingleLayer.file_contents) |
5818 |
|
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
5819 |
|
|
(TestLayerProjection.file_contents) |
5820 |
|
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
5821 |
|
|
(TestJoinedTable.file_contents) |
5822 |
|
|
(TestLoadError.file_contents): Update for new DTD |
5823 |
|
|
(TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test |
5824 |
|
|
for new join type attribute |
5825 |
|
|
|
5826 |
|
|
* test/test_save.py (SaveSessionTest.dtd) |
5827 |
|
|
(SaveSessionTest.testEmptySession) |
5828 |
|
|
(SaveSessionTest.testSingleLayer) |
5829 |
|
|
(SaveSessionTest.testLayerProjection) |
5830 |
|
|
(SaveSessionTest.testRasterLayer) |
5831 |
|
|
(SaveSessionTest.testClassifiedLayer) |
5832 |
|
|
(SaveSessionTest.test_dbf_table) |
5833 |
|
|
(SaveSessionTest.test_joined_table): Update for new DTD |
5834 |
|
|
(SaveSessionTest.test_joined_table): Add test for new join type |
5835 |
|
|
attribute |
5836 |
|
|
|
5837 |
bh |
1372 |
2003-07-04 Bernhard Herzog <[email protected]> |
5838 |
|
|
|
5839 |
|
|
* Thuban/Model/table.py (_find_dbf_column_names): New. Helper |
5840 |
|
|
function for table_to_dbf |
5841 |
|
|
(table_to_dbf): Deal with names longer than the 10 character limit |
5842 |
|
|
|
5843 |
|
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
5844 |
|
|
doc-string |
5845 |
|
|
(TestTableToDBF.test_table_to_dbf_long_col_names): New test for |
5846 |
|
|
long column names |
5847 |
|
|
|
5848 |
bh |
1365 |
2003-07-03 Bernhard Herzog <[email protected]> |
5849 |
|
|
|
5850 |
bh |
1370 |
* Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax |
5851 |
|
|
|
5852 |
|
|
2003-07-03 Bernhard Herzog <[email protected]> |
5853 |
|
|
|
5854 |
bh |
1368 |
* Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton |
5855 |
|
|
for the Thuban manual and README with some basic information about |
5856 |
|
|
the manual |
5857 |
|
|
|
5858 |
|
|
2003-07-03 Bernhard Herzog <[email protected]> |
5859 |
|
|
|
5860 |
bh |
1365 |
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
5861 |
|
|
Update doc-string |
5862 |
|
|
(TransientJoinedTable.create): Do not modify the column objects of |
5863 |
|
|
the input tables in place and copy all columns of the input tables |
5864 |
|
|
into the joined table after all. |
5865 |
|
|
|
5866 |
|
|
* test/test_transientdb.py |
5867 |
|
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
5868 |
|
|
Update to reflect the new behavior |
5869 |
|
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
5870 |
|
|
Update to reflect the new behavior |
5871 |
|
|
(TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place): |
5872 |
|
|
New test case for a bug which modified the column objects in place |
5873 |
|
|
|
5874 |
jonathan |
1360 |
2003-07-02 Jonathan Coles <[email protected]> |
5875 |
jonathan |
1349 |
|
5876 |
jonathan |
1360 |
* Thuban/Model/classgen.py (generate_singletons, |
5877 |
|
|
generate_uniform_distribution, generate_quantiles, |
5878 |
jonathan |
1363 |
GenQuantiles0): Make sure maxValue isn't less than |
5879 |
|
|
one, otherwise we could divide by zero. |
5880 |
|
|
|
5881 |
|
|
* test/test_classgen.py (ClassGenTest.doClassRangeTest, |
5882 |
|
|
ClassGenTest.doClassSingleTest): Call doBoundsTest to |
5883 |
|
|
check the end classification groups against the |
5884 |
|
|
proper property values. |
5885 |
|
|
(ClassGenTest.doBoundsTest): New. Checks the first and |
5886 |
|
|
last classification groups to make sure their properties |
5887 |
|
|
are the correct upper and lower bounds for a color ramp. |
5888 |
|
|
|
5889 |
|
|
2003-07-02 Jonathan Coles <[email protected]> |
5890 |
|
|
|
5891 |
|
|
* Thuban/Model/classgen.py (generate_singletons, |
5892 |
|
|
generate_uniform_distribution, generate_quantiles, |
5893 |
jonathan |
1360 |
GenQuantiles0): The denominator was one to high when |
5894 |
|
|
calculating the index for the ramp causing the index |
5895 |
|
|
to never to reach one. |
5896 |
|
|
|
5897 |
|
|
2003-07-02 Jonathan Coles <[email protected]> |
5898 |
|
|
|
5899 |
jonathan |
1358 |
Changed the singature of ClassGroupRange.__init__ and |
5900 |
|
|
ClassGroupRange.SetRange() so that the min/max values are |
5901 |
|
|
passed as a tuple. This makes a better calling scheme for |
5902 |
|
|
when a Range object is passed instead. |
5903 |
|
|
|
5904 |
|
|
* Thuban/Model/classgen.py: Fixed parameters to |
5905 |
|
|
ClassGroupRange constructor. |
5906 |
|
|
|
5907 |
|
|
* Thuban/Model/classification.py (ClassGroupRange.__init__): |
5908 |
|
|
Consolidate the min/max parameters into a single _range which |
5909 |
|
|
can either be a tuple or a Range object. |
5910 |
|
|
(ClassGroupRange.SetRange): Consolidate the min/max parameters |
5911 |
|
|
into a single _range which can either be a tuple or a Range object. |
5912 |
|
|
|
5913 |
|
|
* Thuban/Model/load.py (SessionLoader.start_clrange): Fix |
5914 |
|
|
call to ClassGroupRange constructor to use a tuple. |
5915 |
|
|
|
5916 |
|
|
* Thuban/Model/layer.py (Layer.SetClassification): Switch |
5917 |
|
|
the classification instance variable to the new class |
5918 |
|
|
before calling _set_layer otherwise subscribers to a |
5919 |
|
|
LAYER_CHANGED event will not see any difference. |
5920 |
|
|
|
5921 |
|
|
* test/test_classification.py: Fix tests of ClassGroupRange |
5922 |
|
|
so that they use the new signature. |
5923 |
|
|
|
5924 |
|
|
* test/test_load.py: Fix use of ClassGroupRange so that it |
5925 |
|
|
uses the new signature. |
5926 |
|
|
|
5927 |
|
|
* test/test_load_0_2.py: Fix use of ClassGroupRange so that it |
5928 |
|
|
uses the new signature. |
5929 |
|
|
|
5930 |
|
|
* test/test_save.py: Fix use of ClassGroupRange so that it |
5931 |
|
|
uses the new signature. |
5932 |
|
|
|
5933 |
|
|
|
5934 |
|
|
2003-07-01 Jonathan Coles <[email protected]> |
5935 |
|
|
|
5936 |
jonathan |
1349 |
* Thuban/Model/classgen.py: Fixes RTbug #1972, 1971. |
5937 |
|
|
Import used objects/class from color. |
5938 |
|
|
(generate_singletons): We don't |
5939 |
|
|
need the numGroups parameter anymore because we are using |
5940 |
|
|
the new ramps with GetProperties(). |
5941 |
|
|
(generate_uniform_distribution): Use new ramp method |
5942 |
|
|
GetProperties(). |
5943 |
|
|
(generate_quantiles, GenQuantiles0): Use new ramp method |
5944 |
|
|
GetProperties(). |
5945 |
|
|
(CustomRamp.SetNumGroups): Removed. The ramps now map |
5946 |
|
|
a value from 0 to 1 to class properties so the number |
5947 |
|
|
of groups is not needed ahead of time. |
5948 |
|
|
(CustomRamp.next): Removed. CustomRamp does not support |
5949 |
|
|
interation anymore. |
5950 |
|
|
(CustomRamp.GetProperties): Returns a ClassGroupProperties |
5951 |
|
|
object based on the index value from 0 to 1 that is |
5952 |
|
|
passed to it. |
5953 |
|
|
(GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp): |
5954 |
|
|
Made into instances of Monochromatic class instread of |
5955 |
|
|
deriving from it. |
5956 |
|
|
(HotToCold.SetNumGroups): Removed. See CustomRamp. |
5957 |
|
|
(HotToCold.next): Removed. See CustomRamp. |
5958 |
|
|
|
5959 |
|
|
* Thuban/Model/classification.py: Fixes RTbug #1973, 1971. |
5960 |
|
|
(Classification.SetField, Classification.SetFieldType): |
5961 |
|
|
Replaced with SetFieldInfo. |
5962 |
|
|
(Classification.SetFieldInfo): New. Does a better job of |
5963 |
|
|
what SetField and SetFieldType used to do by combining |
5964 |
|
|
their function since they should really always be done |
5965 |
|
|
at the same time. |
5966 |
|
|
(Classification.SetLayer): Renamed to _set_layer. |
5967 |
|
|
(Classification._set_layer): Should only be called from |
5968 |
|
|
Layer's SetClassification. This does not cause a recursive |
5969 |
|
|
call as SetLayer did because we know that Layer knows about |
5970 |
|
|
the classification. |
5971 |
|
|
|
5972 |
|
|
* Thuban/Model/color.py: Fixes RTbug #1971. |
5973 |
|
|
(_Transparent): Renamed from Transparent so it doesn't |
5974 |
|
|
conflict with the module variable. |
5975 |
|
|
(Transparent, Black): Renamed from Color.Transparent, |
5976 |
|
|
Color.Black so they are not class variables. |
5977 |
|
|
|
5978 |
|
|
* Thuban/Model/layer.py: Fixes RTbug #1971, 1973. |
5979 |
|
|
(Layer.Destroy): We don't need to call SetClassification |
5980 |
|
|
anymore to clear out the back reference in the classifcation |
5981 |
|
|
to the layer. It's better to set it to None using _set_layer, |
5982 |
|
|
and we won't be creating another clas object too. |
5983 |
|
|
(Layer.SetClassification): Classification._set_layer is not |
5984 |
|
|
recursive so remove all the locking variables. Also clean |
5985 |
|
|
up the code so that it remains unchanged if something fails. |
5986 |
|
|
|
5987 |
|
|
* Thuban/Model/load.py: Fixes RTbug #1971. |
5988 |
|
|
(SessionLoader.start_classification): Call |
5989 |
|
|
Classification.SetFieldInfo(). |
5990 |
|
|
|
5991 |
|
|
* Thuban/Model/save.py: Removed import of Color which wasn't |
5992 |
|
|
being used. |
5993 |
|
|
|
5994 |
|
|
* Thuban/UI/classgen.py: Fixes RTbug #1972. |
5995 |
|
|
(ClassGenDialog.__init__): Color ramps are now instances |
5996 |
|
|
already so we don't need to create any new objects. |
5997 |
|
|
(ClassGenDialog.OnOK): Check for numGroups is no longer |
5998 |
|
|
necessary because we never use it. |
5999 |
|
|
|
6000 |
|
|
* Thuban/UI/classifier.py: Fixes RTbug #1971. |
6001 |
|
|
(Classifier.__BuildClassification, Classifier.__SetGridTable): |
6002 |
|
|
Call Classification.SetFieldInfo() instead of SetFieldType. |
6003 |
|
|
|
6004 |
|
|
* Thuban/UI/renderer.py: Fixes RTbug #1971. |
6005 |
|
|
|
6006 |
|
|
* Thuban/UI/view.py: Fixes RTbug #1974, 1971. |
6007 |
|
|
(MapCanvas.__init__): Subscribe to the idle time event. Set |
6008 |
|
|
background color to white. |
6009 |
|
|
(MapCanvas.OnPaint): Set a flag indicating that we should |
6010 |
|
|
render the map during idle time. If we already have a bitmap |
6011 |
|
|
just draw it now. |
6012 |
|
|
(MapCanvas.OnIdle): New. Render the map only during idle time. |
6013 |
|
|
This also fixes a problem with the busy cursor under gtk. |
6014 |
|
|
|
6015 |
|
|
* test/test_classgen.py (ClassGenTest.test_generate_singletons): |
6016 |
|
|
Fix calls to generate_singletons because the signature changed. |
6017 |
|
|
|
6018 |
|
|
* test/test_classification.py: Fix color references and |
6019 |
|
|
change calls to Classification.[SetField|SetFieldType] to |
6020 |
|
|
SetFieldInfo. |
6021 |
|
|
|
6022 |
|
|
* test/test_load.py: Fix color references. |
6023 |
|
|
|
6024 |
|
|
* test/test_load_0_2.py: Fix color references. |
6025 |
|
|
|
6026 |
|
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): |
6027 |
|
|
Change calls to Classification.[SetField|SetFieldType] to |
6028 |
|
|
SetFieldInfo. |
6029 |
|
|
|
6030 |
frank |
1334 |
2003-07-01 Frank Koormann <[email protected]> |
6031 |
|
|
|
6032 |
|
|
MERGE from the greater-ms3 branch. |
6033 |
|
|
|
6034 |
|
|
* test/test_transientdb.py |
6035 |
|
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
6036 |
|
|
New. Test join of two tables with partly equal column names. |
6037 |
|
|
|
6038 |
|
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): |
6039 |
|
|
If duplicates in left and right tables column names are found, |
6040 |
|
|
append '_' (underscores) to the name until it is unique. |
6041 |
|
|
Create always new internal names for the resulting table and reference |
6042 |
|
|
columns in the join statement with <table>.<column> |
6043 |
|
|
|
6044 |
bh |
1329 |
2003-07-01 Bernhard Herzog <[email protected]> |
6045 |
|
|
|
6046 |
|
|
* test/test_transientdb.py |
6047 |
|
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
6048 |
|
|
New. Test whether joining on columns with the same names in both |
6049 |
|
|
tables works. |
6050 |
frank |
1334 |
|
6051 |
bh |
1329 |
* Thuban/Model/transientdb.py (TransientJoinedTable.create): Make |
6052 |
|
|
sure to use the right internal names even when joining on field |
6053 |
|
|
with the same names in both tables. Also, detect duplicate names |
6054 |
|
|
in the joined table correctly. |
6055 |
|
|
|
6056 |
frank |
1325 |
2003-07-01 Frank Koormann <[email protected]> |
6057 |
|
|
|
6058 |
|
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
6059 |
|
|
Reverse List of layers to render in same order as in desktop legend. |
6060 |
|
|
|
6061 |
jonathan |
1318 |
2003-06-30 Jonathan Coles <[email protected]> |
6062 |
|
|
|
6063 |
jonathan |
1349 |
* Thuban/version.py (make_tuple): Takes a version string |
6064 |
|
|
and splits it into a tuple of at most three integers. |
6065 |
|
|
Used make_tuple() to make tuple versions of the version |
6066 |
|
|
numbers. |
6067 |
|
|
|
6068 |
|
|
* Thuban/UI/about.py: Add Thuban email addresses. |
6069 |
|
|
|
6070 |
|
|
2003-06-30 Jonathan Coles <[email protected]> |
6071 |
|
|
|
6072 |
jonathan |
1320 |
* Thuban/version.py: SQLite/PySQLite version dependencies |
6073 |
|
|
were too high. |
6074 |
|
|
|
6075 |
|
|
2003-06-30 Jonathan Coles <[email protected]> |
6076 |
|
|
|
6077 |
jonathan |
1318 |
* Thuban/version.py: Update version to 0.8.1 |
6078 |
|
|
|
6079 |
|
|
* MANIFEST.in: Added Projections so that default.proj is |
6080 |
|
|
included. |
6081 |
|
|
|
6082 |
jonathan |
1312 |
2003-06-26 Jonathan Coles <[email protected]> |
6083 |
|
|
|
6084 |
|
|
New About box with lots more information including library |
6085 |
|
|
versions and credits. More/better version checking before |
6086 |
|
|
Thuban starts. |
6087 |
|
|
|
6088 |
|
|
* Thuban/UI/about.py: New. New About box that displays |
6089 |
|
|
library version information and credits. |
6090 |
|
|
|
6091 |
|
|
* Thuban/version.py: Added new 'versions' dictionary which |
6092 |
|
|
contains the verions of various libraries which are checked |
6093 |
|
|
when the module loads. |
6094 |
|
|
(verify_versions): Check all version numbers and returns |
6095 |
|
|
a list of errors. |
6096 |
|
|
|
6097 |
|
|
* Thuban/UI/classifier.py (Classifier.__EnableButtons): |
6098 |
|
|
Reset the status of the buttons as the situation warrants, |
6099 |
|
|
but in a better more reliable way by not relying on the |
6100 |
|
|
current status to determine what needs to change. |
6101 |
|
|
|
6102 |
|
|
* Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed. |
6103 |
|
|
(verify_versions): Remove most of the code since it is |
6104 |
|
|
now in Thuban.version.verify_versions.o |
6105 |
|
|
|
6106 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.About): Call new |
6107 |
|
|
About box in Thuban.UI.about. |
6108 |
|
|
|
6109 |
|
|
* extensions/thuban/gdalwarp.cpp (get_gdal_version): New. |
6110 |
|
|
Returns the version of gdal library being used as a string. |
6111 |
|
|
|
6112 |
|
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
6113 |
|
|
Removed. |
6114 |
|
|
(get_proj_version): Return the version of PROJ that the file |
6115 |
|
|
was compiled with. |
6116 |
|
|
(get_gtk_version): Return th version of GTK that the file |
6117 |
|
|
was compiled with. |
6118 |
|
|
|
6119 |
jonathan |
1304 |
2003-06-25 Jonathan Coles <[email protected]> |
6120 |
|
|
|
6121 |
|
|
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |
6122 |
|
|
of the SelectPropertiesDialog should be self so the window |
6123 |
|
|
appears on top. |
6124 |
|
|
(ClassGroupPropertiesCtrl.DoEdit): The parent |
6125 |
|
|
of the SelectPropertiesDialog should be self so the window |
6126 |
|
|
appears on top. |
6127 |
|
|
|
6128 |
|
|
* Thuban/UI/resource.py: Cleaned up how we determine file |
6129 |
|
|
extensions. |
6130 |
|
|
(GetImageResource): Return an wxImage from our Resources. |
6131 |
|
|
|
6132 |
jonathan |
1299 |
2003-06-24 Jonathan Coles <[email protected]> |
6133 |
|
|
|
6134 |
|
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
6135 |
|
|
Check that a layer has a classification before trying |
6136 |
|
|
to get it. Raster layers don't have classifications. |
6137 |
|
|
|
6138 |
jonathan |
1286 |
2003-06-23 Jonathan Coles <[email protected]> |
6139 |
jonathan |
1297 |
|
6140 |
|
|
* setup.py: Add Resources/XML to resource list. |
6141 |
|
|
|
6142 |
|
|
2003-06-23 Jonathan Coles <[email protected]> |
6143 |
jonathan |
1286 |
|
6144 |
jonathan |
1297 |
* setup.cfg: Fix copyright dates |
6145 |
|
|
|
6146 |
|
|
2003-06-23 Jonathan Coles <[email protected]> |
6147 |
|
|
|
6148 |
jonathan |
1294 |
* MANIFEST.in: Update with Resources/XML |
6149 |
|
|
|
6150 |
|
|
* setup.py: Don't include Locale resources yet as we don't |
6151 |
|
|
have any and it causes problems building the distribution |
6152 |
|
|
for Windows. Update version to 0.8.0. |
6153 |
|
|
|
6154 |
|
|
* Doc/thuban.dtd: Removed since it is now in Resources/XML. |
6155 |
|
|
|
6156 |
|
|
* Thuban/UI/mainwindow.py: Add blank line at the end because |
6157 |
|
|
file was not being read correctly building the Windows |
6158 |
|
|
distribution. |
6159 |
|
|
|
6160 |
|
|
2003-06-23 Jonathan Coles <[email protected]> |
6161 |
|
|
|
6162 |
jonathan |
1289 |
* Thuban/UI/mainwindow.py (MainWindow.About): Fix text. |
6163 |
|
|
|
6164 |
|
|
* Thuban/version.py: Temporarily update longversion for |
6165 |
|
|
the 0.8 release so that it doesn't have the cvs revision. |
6166 |
|
|
|
6167 |
|
|
2003-06-23 Jonathan Coles <[email protected]> |
6168 |
|
|
|
6169 |
jonathan |
1286 |
* Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield |
6170 |
|
|
to make sure that we don't create reentrant possibilities with |
6171 |
|
|
wxYield. |
6172 |
|
|
|
6173 |
|
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor() |
6174 |
|
|
directly to avoid the wxSafeYield() call which generates an |
6175 |
|
|
OnPaint event causing infinite recursion. Don't try to catch |
6176 |
|
|
exception anymore. This was for before there were limits on map |
6177 |
|
|
scaling. |
6178 |
|
|
|
6179 |
bh |
1283 |
2003-06-23 Bernhard Herzog <[email protected]> |
6180 |
|
|
|
6181 |
|
|
Bug fix for RT #1961: |
6182 |
|
|
|
6183 |
|
|
* Thuban/Model/load.py (SessionLoader.start_derivedshapesource): |
6184 |
|
|
Register DerivedShapestores with the session |
6185 |
|
|
|
6186 |
|
|
* Thuban/Model/session.py (Session.Tables): Make sure each table |
6187 |
|
|
is only listed once. |
6188 |
|
|
|
6189 |
|
|
* test/test_load.py (TestJoinedTable.test): Add check_format call. |
6190 |
|
|
Update file contents to match the one written out. |
6191 |
|
|
|
6192 |
bh |
1281 |
2003-06-20 Bernhard Herzog <[email protected]> |
6193 |
|
|
|
6194 |
|
|
* test/xmlsupport.py (SaxEventLister.startElementNS) |
6195 |
|
|
(SaxEventLister.endElementNS): Do not include the qname. Python |
6196 |
|
|
2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it |
6197 |
|
|
is (presumably incorrectly) None, whereas it's a string with the |
6198 |
|
|
element name in the later versions. |
6199 |
|
|
|
6200 |
|
|
* test/test_xmlsupport.py (TestEventList.test_even_list_simple) |
6201 |
|
|
(TestEventList.test_even_list_namespace): Update tests to reflect |
6202 |
|
|
the new behaviour |
6203 |
|
|
(TestEventList.test_even_list_id_normalization): Fix doc-string |
6204 |
|
|
|
6205 |
jonathan |
1272 |
2003-06-20 Jonathan Coles <[email protected]> |
6206 |
|
|
|
6207 |
jonathan |
1279 |
* Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden |
6208 |
|
|
by deriving classes to determine if that layer supports shapes. |
6209 |
|
|
(Layer): Override HasShapes and return true. |
6210 |
|
|
|
6211 |
|
|
* Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor() |
6212 |
|
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
6213 |
|
|
(GenUniquePanel._OnRetrieve): Set busy cursor while retrieving |
6214 |
|
|
table data. |
6215 |
|
|
|
6216 |
|
|
* Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor): |
6217 |
|
|
New. Wrappers around the wxWindows functions that allow us to |
6218 |
|
|
make additional calls such as wxYield which gives the native |
6219 |
|
|
system a chance to update the cursor correctly. |
6220 |
|
|
|
6221 |
|
|
* Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor() |
6222 |
|
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
6223 |
|
|
|
6224 |
|
|
* Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor() |
6225 |
|
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
6226 |
|
|
(MapCanvas.find_shape_at): Check if the current search layer |
6227 |
|
|
support shapes, otherwise go on to the next layer. |
6228 |
|
|
|
6229 |
|
|
* test/test_layer.py: Add tests in each type of layer for |
6230 |
|
|
HasClassification() and HasShapes() |
6231 |
|
|
|
6232 |
|
|
2003-06-20 Jonathan Coles <[email protected]> |
6233 |
|
|
|
6234 |
jonathan |
1272 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after |
6235 |
|
|
turning on the busy cursor to allow the system to change the |
6236 |
|
|
cursor before we begin painting. This fixes a problem that |
6237 |
|
|
was occuring only under GTK. Fixes RTbug #1840. |
6238 |
|
|
|
6239 |
bh |
1270 |
2003-06-20 Bernhard Herzog <[email protected]> |
6240 |
|
|
|
6241 |
|
|
* Resources/XML/thuban-0.8.dtd: New DTD for the new file format |
6242 |
|
|
version. |
6243 |
|
|
|
6244 |
|
|
* Thuban/Model/save.py (sort_data_stores): New. Make topological |
6245 |
|
|
sort of the data sources so they can be written with sources that |
6246 |
|
|
data sources that depend on other data sources come after the |
6247 |
|
|
sources they depend on. |
6248 |
|
|
(SessionSaver.__init__): Add idmap instance variable to map from |
6249 |
|
|
objects to the ids used in the file. |
6250 |
|
|
(SessionSaver.get_id, SessionSaver.define_id) |
6251 |
|
|
(SessionSaver.has_id): New. Methods to manage the idmap |
6252 |
|
|
(SessionSaver.write): Use thuban-0.8.dtd |
6253 |
|
|
(SessionSaver.write_session): Add a namespace on the session and |
6254 |
|
|
write out the data sources before the maps. |
6255 |
|
|
(SessionSaver.write_data_containers): New. Write the data |
6256 |
|
|
containers. |
6257 |
|
|
(SessionSaver.write_layer): Layer elements now refer to a |
6258 |
|
|
shapestore and don't contain filenames anymore. |
6259 |
|
|
|
6260 |
|
|
* Thuban/Model/load.py (LoadError): Exception class to raise when |
6261 |
|
|
errors in the files are discovered |
6262 |
|
|
(SessionLoader.__init__): Define dispatchers for elements with a |
6263 |
|
|
thuban-0.8 namespace too. |
6264 |
|
|
(SessionLoader.check_attrs): New helper method to check and |
6265 |
|
|
convert attributes |
6266 |
|
|
(AttrDesc): New. Helper class for SessionLoader.check_attrs |
6267 |
|
|
(SessionLoader.start_fileshapesource) |
6268 |
|
|
(SessionLoader.start_derivedshapesource) |
6269 |
|
|
(SessionLoader.start_filetable, SessionLoader.start_jointable): |
6270 |
|
|
Handlers for the new elements in the new fileformat |
6271 |
|
|
(SessionLoader.start_layer): Handle the shapestore attribute in |
6272 |
|
|
addition to filename. |
6273 |
|
|
(SessionLoader.start_table, SessionLoader.end_table): Removed. |
6274 |
|
|
They were never used in the old formats and aren't needed for the |
6275 |
|
|
new. |
6276 |
|
|
|
6277 |
|
|
* Thuban/Model/session.py (Session.DataContainers): New method to |
6278 |
|
|
return all "data containers", i.e. shapestores and tables |
6279 |
|
|
|
6280 |
|
|
* test/xmlsupport.py (SaxEventLister.__init__) |
6281 |
|
|
(SaxEventLister.startElementNS, sax_eventlist): Add support to |
6282 |
|
|
normalize IDs. |
6283 |
|
|
|
6284 |
|
|
* test/test_xmlsupport.py |
6285 |
|
|
(TestEventList.test_even_list_id_normalization): New test case for |
6286 |
|
|
id normalization |
6287 |
|
|
|
6288 |
|
|
* test/test_load.py (LoadSessionTest.check_format): Use ID |
6289 |
|
|
normalization |
6290 |
|
|
(LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New |
6291 |
|
|
class atrributes used for ID normalization |
6292 |
|
|
(TestSingleLayer, TestLayerVisibility, TestLabels.test) |
6293 |
|
|
(TestLayerProjection.test, TestRasterLayer.test): Adapt to new |
6294 |
|
|
file format |
6295 |
|
|
(TestJoinedTable): New test for loading sessions with joined |
6296 |
|
|
tables. |
6297 |
|
|
(TestLoadError): New. Test whether missing required attributes |
6298 |
|
|
cause a LoadError. |
6299 |
|
|
|
6300 |
|
|
* test/test_save.py (SaveSessionTest.thubanids) |
6301 |
|
|
(SaveSessionTest.thubanidrefs): New class attributes for ID |
6302 |
|
|
normalization in .thuban files. |
6303 |
|
|
(SaveSessionTest.compare_xml): Use id-normalization. |
6304 |
|
|
(SaveSessionTest.testEmptySession) |
6305 |
|
|
(SaveSessionTest.testLayerProjection) |
6306 |
|
|
(SaveSessionTest.testRasterLayer) |
6307 |
|
|
(SaveSessionTest.testClassifiedLayer): Adapt to new file format. |
6308 |
|
|
(SaveSessionTest.testLayerProjection): The filename used was the |
6309 |
|
|
same as for testSingleLayer. Use a different one. |
6310 |
|
|
(SaveSessionTest.test_dbf_table) |
6311 |
|
|
(SaveSessionTest.test_joined_table): New test cases for saving the |
6312 |
|
|
new data sources structures. |
6313 |
|
|
(TestStoreSort, MockDataStore): Classes to test the sorting of the |
6314 |
|
|
data stores for writing. |
6315 |
|
|
|
6316 |
|
|
* test/runtests.py: Add CVS keywords |
6317 |
|
|
|
6318 |
jonathan |
1265 |
2003-06-20 Jonathan Coles <[email protected]> |
6319 |
|
|
|
6320 |
jonathan |
1267 |
* test/test_session.py |
6321 |
|
|
(UnreferencedTablesTests.test_unreferenced_tables_with_joins): |
6322 |
|
|
Use the cultural_landmark-point.dbf file for the store so that |
6323 |
|
|
the table rows and shape count match. |
6324 |
|
|
|
6325 |
|
|
2003-06-20 Jonathan Coles <[email protected]> |
6326 |
|
|
|
6327 |
jonathan |
1265 |
* Thuban/Model/data.py (DerivedShapeStore.__init__): Raise |
6328 |
|
|
an exception if the number of shapes is different from the |
6329 |
|
|
number of rows in the table. Address RTbug #1933. |
6330 |
|
|
|
6331 |
|
|
* test/test_layer.py (TestLayer.test_derived_store): Add |
6332 |
|
|
a test for the new exception in DerivedShapeStore.__init__. |
6333 |
|
|
|
6334 |
|
|
* test/support.py (FloatTestCase): Removed since there is |
6335 |
|
|
already FloatComparisonMixin. Fixes RTbug #1954. |
6336 |
|
|
(FloatComparisonMixin.assertFloatEqual): Include test for |
6337 |
|
|
infinity that was part of FloatTestCase. |
6338 |
|
|
|
6339 |
|
|
* test/test_range.py (RangeTest): Inherit from |
6340 |
|
|
support.FloatComparisonMixin now that we don't have |
6341 |
|
|
support.FloatTestCase. |
6342 |
|
|
|
6343 |
bh |
1256 |
2003-06-20 Bernhard Herzog <[email protected]> |
6344 |
|
|
|
6345 |
bh |
1260 |
* test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use |
6346 |
|
|
the implementation in xmlsupport instead. |
6347 |
|
|
(SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport |
6348 |
|
|
|
6349 |
|
|
* test/test_proj.py: Import sax_eventlist from xmlsupport instead |
6350 |
|
|
of test_save |
6351 |
|
|
|
6352 |
|
|
2003-06-20 Bernhard Herzog <[email protected]> |
6353 |
|
|
|
6354 |
bh |
1258 |
* test/test_load.py (LoadSessionTest.check_format): New helper |
6355 |
|
|
method to make sure the test files we load might have been written |
6356 |
|
|
by the current thuban version. |
6357 |
|
|
(ClassificationTest.TestLayers, TestSingleLayer.test) |
6358 |
|
|
(TestLayerVisibility.test, TestClassification.test) |
6359 |
|
|
(TestLabels.test, TestLayerProjection.test, TestRasterLayer.test): |
6360 |
|
|
Add check_format() calls and fix the thuban data to match the data |
6361 |
|
|
that would be written by saving the session loaded from it. |
6362 |
|
|
|
6363 |
|
|
* test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of |
6364 |
|
|
the same class and function in test_save. |
6365 |
|
|
|
6366 |
|
|
* test/test_xmlsupport.py (TestEventList): New. test cases for |
6367 |
|
|
sax_eventlist |
6368 |
|
|
|
6369 |
|
|
2003-06-20 Bernhard Herzog <[email protected]> |
6370 |
|
|
|
6371 |
bh |
1256 |
* Resources/XML/thuban.dtd: Add comment about which versions of |
6372 |
|
|
Thuban are covered by this DTD |
6373 |
|
|
(map): Fix content model for layers and raster layers. There can |
6374 |
|
|
be any number or layers and raster layers in any order. |
6375 |
|
|
|
6376 |
jonathan |
1254 |
2003-06-20 Jonathan Coles <[email protected]> |
6377 |
|
|
|
6378 |
jonathan |
1265 |
This is mainly about fixing RTbug #1949. |
6379 |
|
|
|
6380 |
jonathan |
1254 |
* Thuban/Model/classification.py: Remove "from __future__" |
6381 |
|
|
import statement since python 2.2 is the earliest supported |
6382 |
|
|
version. |
6383 |
|
|
|
6384 |
|
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): New. |
6385 |
|
|
Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES |
6386 |
|
|
depending on the units this projection *forwards* into. |
6387 |
|
|
|
6388 |
|
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
6389 |
|
|
Remove unnecessary use of lambdas and nested functions. |
6390 |
|
|
|
6391 |
|
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale |
6392 |
|
|
adjustment here if the map projection uses degrees. |
6393 |
|
|
|
6394 |
|
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove |
6395 |
|
|
scale adjust code since it is now done before calling |
6396 |
|
|
this method. Don't do anything if the map projection |
6397 |
|
|
is None. |
6398 |
|
|
|
6399 |
bh |
1244 |
2003-06-19 Bernhard Herzog <[email protected]> |
6400 |
|
|
|
6401 |
bh |
1248 |
Move version specific load tests to their own file. |
6402 |
|
|
|
6403 |
|
|
* test/test_load.py: Expand the doc-string to explain a bit how to |
6404 |
|
|
handle file format changes. |
6405 |
|
|
(TestClassification.test): Update the docstring as this test is |
6406 |
|
|
not about Thuban 0.2 anymore. |
6407 |
|
|
|
6408 |
|
|
* test/test_load_0_2.py: New file with the load tests for thuban |
6409 |
|
|
files created with Thuban 0.2 and earlier. |
6410 |
|
|
|
6411 |
|
|
2003-06-19 Bernhard Herzog <[email protected]> |
6412 |
|
|
|
6413 |
bh |
1246 |
Add XML validation to some of the tests. Validation will only be |
6414 |
|
|
done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html). |
6415 |
|
|
To make the DTD available to the test cases it's moved into |
6416 |
|
|
Resources/XML |
6417 |
|
|
|
6418 |
|
|
* Resources/XML/thuban.dtd: New. This is now the real Thuban DTD |
6419 |
|
|
for versions up to and including 0.2. Two slight changes: added an |
6420 |
|
|
encoding specification and fixed the comment which refered to |
6421 |
|
|
GRASS, not Thuban |
6422 |
|
|
|
6423 |
|
|
* test/xmlsupport.py: New support module for tests involving XML. |
6424 |
|
|
Currently there's a mix-in class for XML validation. |
6425 |
|
|
|
6426 |
|
|
* test/test_xmlsupport.py: New. Tests for the xmlsupport module |
6427 |
|
|
|
6428 |
|
|
* test/test_save.py (SaveSessionTest): Derive from ValidationTest |
6429 |
|
|
so that we can validate the |
6430 |
|
|
(SaveSessionTest.testEmptySession) |
6431 |
|
|
(SaveSessionTest.testSingleLayer) |
6432 |
|
|
(SaveSessionTest.testSingleLayer) |
6433 |
|
|
(SaveSessionTest.testLayerProjection) |
6434 |
|
|
(SaveSessionTest.testRasterLayer) |
6435 |
|
|
(SaveSessionTest.testClassifiedLayer): Validate the generated XML |
6436 |
|
|
|
6437 |
|
|
* test/runtests.py (main): Call print_additional_summary instead |
6438 |
|
|
of print_garbage_information |
6439 |
|
|
|
6440 |
|
|
* test/support.py (resource_dir): New function to return the |
6441 |
|
|
"Resource" subdirectory |
6442 |
|
|
(print_additional_summary): New function to combine several |
6443 |
|
|
summary functions |
6444 |
|
|
(run_tests): Use print_additional_summary instead of calling |
6445 |
|
|
print_garbage_information directly |
6446 |
|
|
|
6447 |
|
|
2003-06-19 Bernhard Herzog <[email protected]> |
6448 |
|
|
|
6449 |
bh |
1244 |
* Doc/thuban.dtd (classification): Correct the content model of |
6450 |
|
|
the classification element. |
6451 |
|
|
(projection): Add the "name" attribute |
6452 |
|
|
|
6453 |
frank |
1242 |
2003-06-19 Frank Koormann <[email protected]> |
6454 |
|
|
|
6455 |
|
|
MERGE from the greater-ms3 branch. |
6456 |
|
|
|
6457 |
|
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to |
6458 |
|
|
scale if projection is latlong to get better estimate. |
6459 |
|
|
|
6460 |
|
|
Fix problem of hidden properties dialog under windows after double |
6461 |
|
|
click on layer tree: |
6462 |
|
|
The tree control always gets an Expanded / Collapsed event after |
6463 |
joey |
2162 |
the ItemActivated on double click, which raises the main window again. |
6464 |
|
|
We add a second ItemActivated event to the queue, which simply |
6465 |
frank |
1242 |
raises the already displayed window. |
6466 |
|
|
|
6467 |
|
|
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
6468 |
|
|
raiseProperties initialized to prevent endless loops |
6469 |
|
|
(LegendTree._OnItemActivated): Depending on self.raiseProperties |
6470 |
|
|
simply raise the properties or open the dialog and issue a second |
6471 |
|
|
event. |
6472 |
|
|
|
6473 |
jonathan |
1235 |
2003-06-18 Jonathan Coles <[email protected]> |
6474 |
|
|
|
6475 |
jonathan |
1239 |
* setup.py: Fix a few problems that occured under Windows. |
6476 |
|
|
|
6477 |
|
|
2003-06-18 Jonathan Coles <[email protected]> |
6478 |
|
|
|
6479 |
jonathan |
1235 |
When Thuban loaded the map was redrawn twice because the |
6480 |
|
|
legend was being opened after the mainwindow was created |
6481 |
|
|
and not during its creation. This meant the map was drawn |
6482 |
|
|
initially and then had to be redrawn when the legend |
6483 |
|
|
caused the display to change. Now the legend is opened |
6484 |
|
|
in the mainwindow constructor which resolves this issue. |
6485 |
|
|
|
6486 |
|
|
Also, although we were checking for the existence of |
6487 |
|
|
gdal and gdalwarp modules, the gdalwarp extension was |
6488 |
|
|
still being compiled (which may fail if the system doesn't |
6489 |
|
|
have gdal installed). the build_ext command to setup.py |
6490 |
|
|
now accepts the flags --with-gdal and --without-gdal. |
6491 |
|
|
If --without-gdal is specified setup.py will try to |
6492 |
|
|
use the gdal parameters specified by gdal-config. Under |
6493 |
|
|
windows, those parameters have to be set in setup.py |
6494 |
|
|
as with proj4 an wxWindows. |
6495 |
|
|
|
6496 |
|
|
* setup.py: Use a list instead of seperate variables for |
6497 |
|
|
extension parameters so we can create a generic function |
6498 |
|
|
that runs an appropriate *-config script. |
6499 |
|
|
(run_cs_script): Renamed from run_wx_script and modified |
6500 |
|
|
to accept a second argument which is a list of lists to |
6501 |
|
|
be filled in by the values returned from running the command. |
6502 |
|
|
(thuban_build_ext): New. Extends the build_ext command and |
6503 |
|
|
provides the options --with-gdal/--without-gdal which then |
6504 |
|
|
optionally includes the gdalwarp extension. |
6505 |
|
|
|
6506 |
|
|
* Thuban/Model/resource.py: First check if we can import |
6507 |
|
|
the gdalwarp Thuban extension before checking for gdal. |
6508 |
|
|
Also added some comments. |
6509 |
|
|
|
6510 |
|
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if |
6511 |
|
|
the map is None which may be the case if none has been loaded |
6512 |
|
|
yet. |
6513 |
|
|
|
6514 |
|
|
* Thuban/UI/main.py (main): Remove call to ShowLegend. |
6515 |
|
|
|
6516 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend(). |
6517 |
|
|
|
6518 |
|
|
* Thuban/UI/renderer.py: Check for gdal support before importing |
6519 |
|
|
gdalwarp. |
6520 |
|
|
(MapRenderer.render_map): Only try to optimize if we have gdal |
6521 |
|
|
support otherwise nothing will get drawn. |
6522 |
|
|
|
6523 |
jonathan |
1237 |
* Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called |
6524 |
|
|
during startup before a map has been created. Check if map is None |
6525 |
|
|
before using it and do nothing if it is. |
6526 |
|
|
|
6527 |
jonathan |
1224 |
2003-06-17 Jonathan Coles <[email protected]> |
6528 |
|
|
|
6529 |
|
|
Fix the problem with raster layers under Windows that caused |
6530 |
|
|
Thuban to crash. The view should respond to layer projection |
6531 |
|
|
changed events to update the display. Changes to a projection |
6532 |
|
|
should not cause the map to be set to full extent. |
6533 |
|
|
|
6534 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
6535 |
|
|
current_map_proj to remember the current map projection so that |
6536 |
|
|
when the projection changes we know what the previous projection |
6537 |
|
|
was. |
6538 |
|
|
(MapCanvas.SetMap): Unsubscribe and subscribe to |
6539 |
|
|
LAYER_PROJECTION_CHANGED events. |
6540 |
|
|
(MapCanvas.projection_changed): Split into two methods that respond |
6541 |
|
|
to map and layer projection changes. |
6542 |
|
|
(MapCanvas.map_projection_changed): New. Takes the current view and |
6543 |
|
|
projects it using the new projection. This does not cause the |
6544 |
|
|
map to be redrawn at full extent. |
6545 |
|
|
(MapCanvas.layer_projection_changed): New. Cause a redraw which |
6546 |
|
|
will draw each layer in its new projection. |
6547 |
|
|
|
6548 |
|
|
* extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call |
6549 |
|
|
VSIFClose() not VSIFCloseL() to close the file. Fixes a crash |
6550 |
|
|
under Windows. |
6551 |
|
|
|
6552 |
|
|
* extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be |
6553 |
|
|
to twice sizeof(void*) because there are two digits for each |
6554 |
|
|
hex byte. |
6555 |
|
|
|
6556 |
bh |
1220 |
2003-06-16 Bernhard Herzog <[email protected]> |
6557 |
|
|
|
6558 |
|
|
Update to the layer interface: Direct access to the table, |
6559 |
|
|
shapetable, shapefile and filename attributes is now actively |
6560 |
|
|
deprecated by issuing deprecation warnings for all places where |
6561 |
|
|
this happens. |
6562 |
|
|
|
6563 |
|
|
* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access |
6564 |
|
|
to the instance variables table, shapetable, shapefile and |
6565 |
|
|
filename via __getattr__ so that we can issue a deprecation |
6566 |
|
|
warning. |
6567 |
|
|
(Layer.SetShapeStore): Don't set the deprecated instance variables |
6568 |
|
|
any more |
6569 |
|
|
(Layer.SetShapeStore): Don't use deprecated layer instance |
6570 |
|
|
variables |
6571 |
|
|
(Layer.Destroy): No need to explicitly remove the instance |
6572 |
|
|
variables any more |
6573 |
|
|
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer |
6574 |
|
|
instance variables |
6575 |
|
|
|
6576 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
6577 |
|
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve) |
6578 |
|
|
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't |
6579 |
|
|
use deprecated layer instance variables |
6580 |
|
|
|
6581 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Don't use |
6582 |
|
|
deprecated layer instance variables |
6583 |
|
|
|
6584 |
|
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
6585 |
|
|
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer |
6586 |
|
|
instance variables |
6587 |
|
|
|
6588 |
|
|
* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use |
6589 |
|
|
deprecated layer instance variables |
6590 |
|
|
|
6591 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use |
6592 |
|
|
deprecated layer instance variables |
6593 |
|
|
|
6594 |
|
|
* Thuban/Model/save.py (SessionSaver.write_layer): Don't use |
6595 |
|
|
deprecated layer instance variables |
6596 |
|
|
|
6597 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer) |
6598 |
|
|
(MapRenderer.polygon_render_param): Don't use deprecated layer instance |
6599 |
|
|
variables |
6600 |
|
|
|
6601 |
|
|
* test/runtests.py (main): Turn Thuban's deprecation warnings into |
6602 |
|
|
errors so that they're cought by the tests |
6603 |
|
|
|
6604 |
|
|
* test/test_load.py (TestSingleLayer.test): Don't use deprecated |
6605 |
|
|
layer instance variables |
6606 |
|
|
|
6607 |
jonathan |
1212 |
2003-06-16 Jonathan Coles <[email protected]> |
6608 |
|
|
|
6609 |
|
|
Fix a problem under Windows whereby if the user double-clicks on a |
6610 |
|
|
layer in the legend that tree item will expand or collapse as well |
6611 |
|
|
as open the layer properties dialog. The state of the tree item |
6612 |
|
|
should not be affected. |
6613 |
|
|
|
6614 |
|
|
* Thuban/UI/legend.py (LegendTree.__init__): Add instance variable |
6615 |
|
|
preventExpandCollapse and subscribe to expanding and collapsing |
6616 |
|
|
events. |
6617 |
|
|
(LegendTree.OnItemExpandCollapse): New. Responds to expanding and |
6618 |
|
|
collapsing events and will veto the event if it has been triggered |
6619 |
|
|
by the user double clicking on a layer. |
6620 |
|
|
(LegendTree._OnItemActivated): Set preventExpandCollapse to indicate |
6621 |
|
|
that an expanding/collapsing event should be vetoed. |
6622 |
|
|
|
6623 |
bh |
1208 |
2003-06-13 Bernhard Herzog <[email protected]> |
6624 |
|
|
|
6625 |
|
|
* Thuban/UI/classifier.py (Classifier.OnClose) |
6626 |
|
|
(Classifier.map_layers_removed) |
6627 |
|
|
(Classifier.layer_shapestore_replaced): Unsubscribe the messages |
6628 |
|
|
in OnClose and not in map_layers_removed or |
6629 |
|
|
layer_shapestore_replaced to make sure it always happens when the |
6630 |
|
|
dialog is closed |
6631 |
|
|
|
6632 |
jonathan |
1201 |
2003-06-13 Jonathan Coles <[email protected]> |
6633 |
|
|
|
6634 |
jonathan |
1203 |
This puts back a fix for Windows where a panel is needed so that |
6635 |
|
|
the background of the table view appears correctly. |
6636 |
|
|
|
6637 |
|
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
6638 |
|
|
object that can be used by derived classes to place any |
6639 |
|
|
controls (including the grid) onto. |
6640 |
|
|
(QueryTableFrame.__init__): Use the panel as the parent window |
6641 |
|
|
for all the controls. Reparent the grid so that the panel is |
6642 |
|
|
the parent. Call UpdateStatusText() to correctly initialize |
6643 |
|
|
the status bar. |
6644 |
|
|
|
6645 |
|
|
2003-06-13 Jonathan Coles <[email protected]> |
6646 |
|
|
|
6647 |
jonathan |
1201 |
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
6648 |
|
|
from wxFrame (as opposed to wxDialog like the other classes) |
6649 |
|
|
but otherwise behaves like the other classes. This is needed |
6650 |
|
|
for the TableView which isn't really a dialog and needs to |
6651 |
|
|
have a status bar and control buttons. |
6652 |
|
|
|
6653 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
6654 |
|
|
instance variable to keep track of how many rows are selected. |
6655 |
|
|
Subscribe once to the the events we are interested in. |
6656 |
|
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
6657 |
|
|
hasn't been turned off. |
6658 |
|
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
6659 |
|
|
hasn't been turned off. |
6660 |
|
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
6661 |
|
|
as an event listener (which changes the event handler stack) |
6662 |
|
|
simply set an instance variable to False. This is checked in |
6663 |
|
|
the event handlers. |
6664 |
|
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
6665 |
|
|
selected rows. |
6666 |
|
|
(TableFrame): Inherit from ThubanFrame so we can have a |
6667 |
|
|
status bar and control buttons. |
6668 |
|
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
6669 |
|
|
Explicitly set which items are selected in the operator choice and |
6670 |
|
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
6671 |
|
|
Subscribe to grid cell selection events so we can update the |
6672 |
|
|
status bar. |
6673 |
|
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
6674 |
|
|
how many rows are in the grid, how many columns, and how many |
6675 |
|
|
rows are selected. |
6676 |
|
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
6677 |
|
|
Call UpdateStatusText when cells are (de)selected. |
6678 |
|
|
(QueryTableFrame.OnQuery): Use the string value in the value |
6679 |
|
|
combo if either the selected item index is 0 or if the string |
6680 |
|
|
cannot be found in the predefined list (this happens if the |
6681 |
|
|
user changes the text). Fixes RTbug #1940. |
6682 |
|
|
Only turn off the grid event listeners if there a query comes |
6683 |
|
|
back with a none empty list of ids. in the case that the list |
6684 |
|
|
is empty this causes a grid.ClearSelection() call to actually |
6685 |
|
|
clear the grid selection which causes the selected items in |
6686 |
|
|
the map to be deselected. Fixes RTbug #1939. |
6687 |
|
|
|
6688 |
|
|
* test/test_save.py (XMLWriterTest.Encode): Check return values. |
6689 |
|
|
Fixes RTbug #1851. |
6690 |
|
|
|
6691 |
bh |
1195 |
2003-06-13 Bernhard Herzog <[email protected]> |
6692 |
|
|
|
6693 |
|
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
6694 |
|
|
self.selected_shape with the current selection to make sure the |
6695 |
|
|
contents of the dialog are up to date when it's shown for the |
6696 |
|
|
first time. |
6697 |
|
|
The dialog used to work without this by luck. The recent fix to |
6698 |
|
|
the connector module 'broke' a 'feature' the identify view was |
6699 |
|
|
relying on, i.e that subscribing to a message in response to |
6700 |
|
|
receiving a message of that type would mean that the new |
6701 |
|
|
subscriber would also be called for the same message. |
6702 |
|
|
|
6703 |
jonathan |
1169 |
2003-06-12 Jonathan Coles <[email protected]> |
6704 |
jonathan |
1175 |
|
6705 |
jonathan |
1193 |
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
6706 |
|
|
the image is rendered. Fixes RTbug #1937. |
6707 |
|
|
|
6708 |
|
|
2003-06-12 Jonathan Coles <[email protected]> |
6709 |
|
|
|
6710 |
jonathan |
1191 |
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
6711 |
jonathan |
1193 |
user directory if it doesn't exist on a posix system. |
6712 |
|
|
Fixes RTbug #1815. |
6713 |
jonathan |
1191 |
|
6714 |
|
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
6715 |
|
|
called to get_application_dir here, so that the directory |
6716 |
|
|
will only be called if this method is invoked. |
6717 |
|
|
|
6718 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
6719 |
|
|
the projfilepath if no projection is selected. |
6720 |
|
|
|
6721 |
|
|
2003-06-12 Jonathan Coles <[email protected]> |
6722 |
|
|
|
6723 |
jonathan |
1182 |
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
6724 |
|
|
the scalebar if the current map has no projection set. |
6725 |
|
|
|
6726 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
6727 |
|
|
projfilepath label to just the basename of the projection file |
6728 |
|
|
rather than include the entire path. |
6729 |
|
|
|
6730 |
|
|
* Thuban/Model/resource.py: Fix missed proj functions that |
6731 |
|
|
needed to be renamed. |
6732 |
|
|
|
6733 |
|
|
2003-06-12 Jonathan Coles <[email protected]> |
6734 |
|
|
|
6735 |
jonathan |
1178 |
* Thuban/Model/classification.py: Removed assert statements that |
6736 |
|
|
tested if the variable was an instance of Color. |
6737 |
|
|
|
6738 |
|
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
6739 |
|
|
used. |
6740 |
|
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
6741 |
|
|
Fixes RTbug #1835. |
6742 |
|
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
6743 |
|
|
Needed now that the class doesn't inherit from Color. |
6744 |
|
|
|
6745 |
|
|
2003-06-12 Jonathan Coles <[email protected]> |
6746 |
|
|
|
6747 |
jonathan |
1175 |
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
6748 |
|
|
check unicode strings. |
6749 |
|
|
|
6750 |
|
|
* test/test_layer.py: Check for existence of gdal. |
6751 |
|
|
|
6752 |
|
|
2003-06-12 Jonathan Coles <[email protected]> |
6753 |
jonathan |
1172 |
|
6754 |
|
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
6755 |
|
|
that was in load.py |
6756 |
jonathan |
1169 |
|
6757 |
jonathan |
1172 |
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
6758 |
|
|
that was in save.py |
6759 |
|
|
|
6760 |
|
|
2003-06-12 Jonathan Coles <[email protected]> |
6761 |
|
|
|
6762 |
jonathan |
1169 |
This is largely a collection of bug fixes. We also handle the |
6763 |
|
|
case where gdal is not on the system. The XMLReader and XMLWriter |
6764 |
|
|
classes were moved into there own files to resolve some circular |
6765 |
|
|
import references and because they shouldn't really be in the |
6766 |
|
|
file that is dediciated to reading/writing session files since |
6767 |
|
|
they are also used elsewhere. |
6768 |
|
|
|
6769 |
|
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
6770 |
|
|
function_names_with_underscores style. Fixes RTbug #1903. |
6771 |
|
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
6772 |
|
|
|
6773 |
|
|
* Thuban/Model/layer.py: Import gdal only if it available. |
6774 |
|
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
6775 |
|
|
Addresses RTbug #1877. |
6776 |
|
|
|
6777 |
|
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
6778 |
|
|
xmlreader.py. |
6779 |
|
|
|
6780 |
jonathan |
1172 |
2003-06-12 Jonathan Coles <[email protected]> |
6781 |
|
|
|
6782 |
|
|
This is largely a collection of bug fixes. We also handle the |
6783 |
|
|
case where gdal is not on the system. The XMLReader and XMLWriter |
6784 |
|
|
classes were moved into there own files to resolve some circular |
6785 |
|
|
import references and because they shouldn't really be in the |
6786 |
|
|
file that is dediciated to reading/writing session files since |
6787 |
|
|
they are also used elsewhere. |
6788 |
|
|
|
6789 |
|
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
6790 |
|
|
function_names_with_underscores style. Fixes RTbug #1903. |
6791 |
|
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
6792 |
|
|
|
6793 |
|
|
* Thuban/Model/layer.py: Import gdal only if it available. |
6794 |
|
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
6795 |
|
|
Addresses RTbug #1877. |
6796 |
|
|
|
6797 |
|
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
6798 |
|
|
xmlreader.py. |
6799 |
|
|
|
6800 |
jonathan |
1169 |
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
6801 |
|
|
file xmlwriter.py. |
6802 |
|
|
|
6803 |
|
|
* Thuban/Model/resource.py: Renamed functions to following the |
6804 |
|
|
function_names_with_underscores style. |
6805 |
|
|
(has_gdal_support): New function that returns true if the gdal |
6806 |
|
|
library is available. Addresses RTbug #1877. |
6807 |
|
|
|
6808 |
|
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
6809 |
|
|
Display a message box if the gdal library is not available, but |
6810 |
|
|
only if there are any layers that would use it. Addresses RTbug #1877. |
6811 |
|
|
|
6812 |
|
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
6813 |
|
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
6814 |
|
|
when using integers versus floats. |
6815 |
|
|
|
6816 |
|
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
6817 |
|
|
determine if the "Add Image Layer" menu option should be |
6818 |
|
|
greyed out or not. Addresses RTbug #1877. |
6819 |
|
|
|
6820 |
|
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
6821 |
|
|
|
6822 |
|
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
6823 |
|
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
6824 |
|
|
Only draw the raster layer if the gdal library is available. |
6825 |
|
|
Addresses RTbug #1877. |
6826 |
|
|
|
6827 |
|
|
* test/test_classgen.py: Add tests for generate_singletons, |
6828 |
|
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
6829 |
|
|
(test_calculate_quantiles): Fix some tests to catch the new |
6830 |
|
|
ValueError that is raised. |
6831 |
|
|
|
6832 |
|
|
* test/test_proj.py: Use renamed projection resource functions. |
6833 |
|
|
|
6834 |
|
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
6835 |
|
|
test for saving classified layers. Fixes RTbug #1902. |
6836 |
|
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
6837 |
|
|
|
6838 |
jan |
1156 |
2003-06-12 Jan-Oliver Wagner <[email protected]> |
6839 |
|
|
|
6840 |
|
|
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
6841 |
|
|
|
6842 |
|
|
* Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog. |
6843 |
|
|
|
6844 |
|
|
* Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from |
6845 |
|
|
multiplechoicedialog.py rather than from the wxPython library. |
6846 |
|
|
|
6847 |
frank |
1151 |
2003-06-11 Frank Koormann <[email protected]> |
6848 |
|
|
|
6849 |
frank |
1152 |
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
6850 |
|
|
update. |
6851 |
|
|
|
6852 |
|
|
2003-06-11 Frank Koormann <[email protected]> |
6853 |
|
|
|
6854 |
frank |
1151 |
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
6855 |
|
|
determine the absolute .thuban/thuban directory under |
6856 |
|
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
6857 |
|
|
|
6858 |
|
|
* Thuban/Model/resource.py: Use get_application_dir |
6859 |
|
|
|
6860 |
|
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
6861 |
|
|
Use get_application_dir. |
6862 |
|
|
|
6863 |
bh |
1143 |
2003-06-10 Bernhard Herzog <[email protected]> |
6864 |
|
|
|
6865 |
bh |
1147 |
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
6866 |
|
|
the messages MAP_LAYERS_REMOVED messages |
6867 |
|
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
6868 |
|
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
6869 |
|
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
6870 |
|
|
dialog is showing is removed. |
6871 |
|
|
|
6872 |
|
|
2003-06-10 Bernhard Herzog <[email protected]> |
6873 |
|
|
|
6874 |
bh |
1145 |
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
6875 |
|
|
of the receivers list so that unsubscribing in a receiver doesn't |
6876 |
|
|
modify it while iterating over it. |
6877 |
|
|
|
6878 |
|
|
* test/test_connector.py |
6879 |
|
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
6880 |
|
|
unsubscribing in a receiver works correctly. See docstring for |
6881 |
|
|
details |
6882 |
|
|
|
6883 |
|
|
2003-06-10 Bernhard Herzog <[email protected]> |
6884 |
|
|
|
6885 |
bh |
1143 |
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
6886 |
|
|
message. |
6887 |
|
|
|
6888 |
|
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
6889 |
|
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
6890 |
|
|
LAYER_CHANGED will still be sent if the classification changes. |
6891 |
|
|
|
6892 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
6893 |
|
|
parameter so we can subscribe to some of its messages |
6894 |
|
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
6895 |
|
|
and the layer's LAYER_SHAPESTORE_REPLACED |
6896 |
|
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
6897 |
|
|
subscribed to in __init__ |
6898 |
|
|
(Classifier.map_layers_removed) |
6899 |
|
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
6900 |
|
|
subscribed to in __init__. Unsubscribe and close the dialog |
6901 |
|
|
|
6902 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
6903 |
|
|
the map to the Classifier dialog |
6904 |
|
|
|
6905 |
|
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
6906 |
|
|
SubscriberMixin as well so we can test messages |
6907 |
|
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
6908 |
|
|
messages |
6909 |
|
|
(SetShapeStoreTests.tearDown): Clear the messages again |
6910 |
|
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
6911 |
|
|
for the modified flag too |
6912 |
|
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
6913 |
|
|
to check whether SetShapeStore sets the modified flag |
6914 |
|
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
6915 |
|
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
6916 |
|
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
6917 |
|
|
Add tests for the messages. This checks both the new |
6918 |
|
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
6919 |
|
|
|
6920 |
jan |
1141 |
2003-06-06 Jan-Oliver Wagner <[email protected]> |
6921 |
|
|
|
6922 |
|
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
6923 |
|
|
the menu items. |
6924 |
|
|
|
6925 |
frank |
1134 |
2003-06-05 Frank Koormann <[email protected]> |
6926 |
|
|
|
6927 |
frank |
1139 |
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
6928 |
|
|
Layout reimplemented without panel. Make life easier to fit the list |
6929 |
|
|
in the dialog. |
6930 |
|
|
|
6931 |
|
|
2003-06-05 Frank Koormann <[email protected]> |
6932 |
|
|
|
6933 |
frank |
1137 |
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
6934 |
|
|
once on initialisation (Former implementation resulted in multiple |
6935 |
|
|
entries for each projection). |
6936 |
|
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
6937 |
|
|
if set, select the projection found under the specified name. This |
6938 |
|
|
overwrites any other selection estimate. |
6939 |
|
|
Removed projchoice filling from this method. |
6940 |
|
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
6941 |
|
|
Updated call of ProjFrame.__FillAvailList |
6942 |
|
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
6943 |
|
|
|
6944 |
|
|
* Resources/Projections/defaults.proj: Extended defaults representing |
6945 |
|
|
various common European projections. |
6946 |
|
|
|
6947 |
|
|
2003-06-05 Frank Koormann <[email protected]> |
6948 |
|
|
|
6949 |
frank |
1134 |
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
6950 |
|
|
Use ListCtrl instead of GridCtrl |
6951 |
|
|
|
6952 |
|
|
* Thuban/Model/resource.py: |
6953 |
|
|
Guess location of .thuban directory from tempdir parent directory. |
6954 |
|
|
|
6955 |
|
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
6956 |
|
|
Guess location of .thuban directory from tempdir parent directory. |
6957 |
|
|
|
6958 |
bh |
1130 |
2003-06-04 Bernhard Herzog <[email protected]> |
6959 |
|
|
|
6960 |
|
|
Do not cache the values returned by the tree widget's |
6961 |
|
|
GetFirstChild and GetNextChild methods because it led to lots of |
6962 |
|
|
segfaults. The new way requires more brute force but is more |
6963 |
|
|
reliable. |
6964 |
|
|
|
6965 |
|
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
6966 |
|
|
variable layer2id |
6967 |
|
|
(LegendTree.find_layer): New method to do with brute force what |
6968 |
|
|
layer2id tried to accomplish |
6969 |
|
|
(LegendTree._OnMsgLayerChanged) |
6970 |
|
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
6971 |
|
|
Use find_layer instead of layer2id |
6972 |
|
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
6973 |
|
|
update layer2id anymore |
6974 |
|
|
(LegendTree._OnMsgMapLayersRemoved) |
6975 |
|
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
6976 |
|
|
|
6977 |
tkoester |
1128 |
2003-06-03 Thomas Koester <[email protected]> |
6978 |
|
|
|
6979 |
|
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
6980 |
|
|
|
6981 |
bh |
1120 |
2003-06-02 Bernhard Herzog <[email protected]> |
6982 |
|
|
|
6983 |
bh |
1127 |
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
6984 |
|
|
New commands. |
6985 |
|
|
(main_menu): Add the new commands. |
6986 |
|
|
(MainWindow.TableRename): New. Implementation of the table_rename |
6987 |
|
|
command. |
6988 |
|
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
6989 |
|
|
command. |
6990 |
|
|
|
6991 |
|
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
6992 |
|
|
set the modified flag |
6993 |
|
|
|
6994 |
|
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
6995 |
|
|
whether the modified flag is set properly |
6996 |
|
|
|
6997 |
|
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
6998 |
|
|
instead of issue so that the modified flags get updated. |
6999 |
|
|
|
7000 |
|
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
7001 |
|
|
instead of Publisher to reflect reality better and to accomodate |
7002 |
|
|
the fact that SetTitle now calls changed instead of issue |
7003 |
|
|
|
7004 |
|
|
2003-06-02 Bernhard Herzog <[email protected]> |
7005 |
|
|
|
7006 |
|
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
7007 |
|
|
acquisition has to happen before the try in a try-finally. |
7008 |
|
|
|
7009 |
|
|
2003-06-02 Bernhard Herzog <[email protected]> |
7010 |
|
|
|
7011 |
bh |
1120 |
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
7012 |
|
|
possible that a layer is removed that is not currently selected in |
7013 |
|
|
the legend so don't check for this. |
7014 |
|
|
|
7015 |
bh |
1112 |
2003-05-30 Bernhard Herzog <[email protected]> |
7016 |
|
|
|
7017 |
bh |
1118 |
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
7018 |
|
|
variables to None that have direct or indirect references to |
7019 |
|
|
shapefiles or dbf files to make sure that they do go away and the |
7020 |
|
|
files are closed. |
7021 |
|
|
|
7022 |
|
|
2003-05-30 Bernhard Herzog <[email protected]> |
7023 |
|
|
|
7024 |
bh |
1116 |
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
7025 |
|
|
availImgListIndices when a new image list is created |
7026 |
|
|
|
7027 |
|
|
2003-05-30 Bernhard Herzog <[email protected]> |
7028 |
|
|
|
7029 |
bh |
1114 |
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
7030 |
|
|
changing_selection to indicate whether the LegendTree code itself |
7031 |
|
|
is currently changing the selection |
7032 |
|
|
(LegendTree.normalize_selection): New method to normalize the |
7033 |
|
|
selection by selecting the layer item even if the user clicked on |
7034 |
|
|
the classification. |
7035 |
|
|
(LegendTree._OnSelChanged): normalize the selection. This works |
7036 |
|
|
around a bug in wx which doesn't keep track of the selection |
7037 |
|
|
properly when subtrees are deleted. |
7038 |
|
|
|
7039 |
|
|
2003-05-30 Bernhard Herzog <[email protected]> |
7040 |
|
|
|
7041 |
bh |
1112 |
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
7042 |
|
|
maximum and minimum scale factors. |
7043 |
|
|
|
7044 |
|
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
7045 |
|
|
changes in classgen.py |
7046 |
|
|
|
7047 |
jonathan |
1109 |
2003-05-30 Jonathan Coles <[email protected]> |
7048 |
|
|
|
7049 |
|
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
7050 |
|
|
all the methods functions. Fixes RTBug #1903. |
7051 |
|
|
|
7052 |
|
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
7053 |
|
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
7054 |
|
|
RTBug #1907. |
7055 |
|
|
|
7056 |
|
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
7057 |
|
|
of the ClassGenerator class. Put try/finally blocks around |
7058 |
|
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
7059 |
|
|
RTBug #1904. |
7060 |
|
|
|
7061 |
|
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
7062 |
|
|
|
7063 |
|
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
7064 |
|
|
time something changed which caused some state to be lost such |
7065 |
|
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
7066 |
|
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
7067 |
|
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
7068 |
|
|
the legend but not in the map. |
7069 |
|
|
(LegendTree.__FillTree): Move main functionality out into smaller |
7070 |
|
|
methods that can be used by other methods. |
7071 |
|
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
7072 |
|
|
if they are available. |
7073 |
|
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
7074 |
|
|
that we override the wxTreeCtrl method. Iterate over children |
7075 |
|
|
and call __RemoveLayer. |
7076 |
|
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
7077 |
|
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
7078 |
|
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
7079 |
|
|
Should only be called with the id of a layer branch. |
7080 |
|
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
7081 |
|
|
Returns the root item or creates one if necessary. |
7082 |
|
|
|
7083 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
7084 |
|
|
ProjectRasterFile with tuple arguments instead of strings. |
7085 |
|
|
|
7086 |
|
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
7087 |
|
|
with try/finally. Fixes RTBug #1904. |
7088 |
|
|
|
7089 |
|
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
7090 |
|
|
with try/finally. Fixes RTBug #1904. |
7091 |
|
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
7092 |
|
|
simply center it on the display. Fixes RTBug #1849. |
7093 |
|
|
|
7094 |
|
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
7095 |
|
|
to be compiled as a standalone app. Now the code can only be |
7096 |
|
|
called from Python which simplifies the parameter passing. |
7097 |
|
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
7098 |
|
|
checks for a destination dataset. Add more clean up code. |
7099 |
|
|
|
7100 |
|
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
7101 |
|
|
TestMapWithContents.test_lower_layer_bottom): |
7102 |
|
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
7103 |
|
|
Fixes RTBug #1907. |
7104 |
|
|
|
7105 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
7106 |
|
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
7107 |
|
|
|
7108 |
jan |
1097 |
2003-05-29 Jan-Oliver Wagner <[email protected]> |
7109 |
|
|
|
7110 |
|
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
7111 |
|
|
unsubscribes all that is subcribed in __init__. |
7112 |
|
|
|
7113 |
bh |
1089 |
2003-05-28 Bernhard Herzog <[email protected]> |
7114 |
|
|
|
7115 |
bh |
1095 |
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
7116 |
|
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
7117 |
|
|
Layer/Duplicate command. |
7118 |
|
|
(layer_duplicate command): New. |
7119 |
|
|
(main_menu): Add layer_duplicate to the Layer menu. |
7120 |
|
|
|
7121 |
|
|
2003-05-28 Bernhard Herzog <[email protected]> |
7122 |
|
|
|
7123 |
bh |
1093 |
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
7124 |
|
|
renderer so that NULL/None values get displayed differently (by a |
7125 |
|
|
gray rectangle). |
7126 |
|
|
(TableGrid.__init__): Override the default renderers |
7127 |
|
|
|
7128 |
|
|
2003-05-28 Bernhard Herzog <[email protected]> |
7129 |
|
|
|
7130 |
bh |
1089 |
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
7131 |
|
|
classification to "None" if the type of the field has changed. |
7132 |
|
|
|
7133 |
|
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
7134 |
|
|
test for the Layer.SetShapeStore method |
7135 |
|
|
|
7136 |
jan |
1087 |
2003-05-28 Jan-Oliver Wagner <[email protected]> |
7137 |
jan |
1085 |
|
7138 |
jan |
1087 |
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
7139 |
|
|
does not necessarily have a filename). |
7140 |
|
|
|
7141 |
|
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
7142 |
|
|
|
7143 |
jan |
1085 |
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
7144 |
|
|
sort the selection list for the dialog. |
7145 |
|
|
|
7146 |
frank |
1083 |
2003-05-28 Frank Koormann <[email protected]> |
7147 |
|
|
|
7148 |
|
|
* extensions/thuban/wxproj.cpp |
7149 |
|
|
(project_point): Removed cast to int for projected point coordinates. |
7150 |
|
|
(shape_centroid): Return last point if all polygon vertices fall |
7151 |
|
|
to one point. |
7152 |
|
|
|
7153 |
bh |
1079 |
2003-05-28 Bernhard Herzog <[email protected]> |
7154 |
|
|
|
7155 |
bh |
1081 |
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
7156 |
|
|
with layers that don't have shapestores, i.e. raster layers. |
7157 |
|
|
|
7158 |
|
|
2003-05-28 Bernhard Herzog <[email protected]> |
7159 |
|
|
|
7160 |
bh |
1079 |
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
7161 |
|
|
when determining the title from the filename. |
7162 |
|
|
|
7163 |
|
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
7164 |
|
|
reflect changes in the way the title is derived from the filename |
7165 |
|
|
|
7166 |
frank |
1077 |
2003-05-28 Frank Koormann <[email protected]> |
7167 |
|
|
|
7168 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
7169 |
|
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
7170 |
|
|
|
7171 |
bh |
1069 |
2003-05-27 Bernhard Herzog <[email protected]> |
7172 |
|
|
|
7173 |
bh |
1075 |
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
7174 |
|
|
delegate SelectedLayer. |
7175 |
|
|
(MainWindow.LayerUnjoinTable): Implement. |
7176 |
|
|
(_can_unjoin): New. Helper function for the sensitivity of the |
7177 |
|
|
layer/unjoin command. |
7178 |
|
|
|
7179 |
|
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
7180 |
|
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
7181 |
|
|
shapestore. Used to figure out how to unjoin. |
7182 |
|
|
(DerivedShapeStore.Shapefile): Fix a typo. |
7183 |
|
|
|
7184 |
|
|
2003-05-27 Bernhard Herzog <[email protected]> |
7185 |
|
|
|
7186 |
bh |
1073 |
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
7187 |
|
|
well |
7188 |
|
|
(JoinDialog.__init__): Use the layer parameter and only build the |
7189 |
|
|
left choice when a layer is given |
7190 |
|
|
(JoinDialog.OnJoin): Handle layer joins as well |
7191 |
|
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
7192 |
|
|
that the user selects the "Select..." item. The sensitivitly |
7193 |
|
|
updating is now in update_sensitivity |
7194 |
|
|
(JoinDialog.y): New method to refactor the sensitivity update of |
7195 |
|
|
the join button into its own method. |
7196 |
|
|
|
7197 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
7198 |
|
|
|
7199 |
|
|
2003-05-27 Bernhard Herzog <[email protected]> |
7200 |
|
|
|
7201 |
bh |
1071 |
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
7202 |
|
|
iff there are unreferenced tables in the session |
7203 |
|
|
|
7204 |
|
|
2003-05-27 Bernhard Herzog <[email protected]> |
7205 |
|
|
|
7206 |
bh |
1069 |
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
7207 |
|
|
|
7208 |
|
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
7209 |
|
|
to return tables that are not referenced by other tables or shape |
7210 |
|
|
stores and can be removed. |
7211 |
|
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
7212 |
|
|
removing the table |
7213 |
|
|
|
7214 |
|
|
* Thuban/UI/mainwindow.py: Remove unused imports |
7215 |
|
|
(MainWindow.TableClose): Implement. |
7216 |
|
|
|
7217 |
|
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
7218 |
|
|
messages so that the frame will be automatically closed when a new |
7219 |
|
|
session is opened or the table is removed. |
7220 |
|
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
7221 |
|
|
__init__ |
7222 |
|
|
(TableFrame.close_on_session_replaced) |
7223 |
|
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
7224 |
|
|
the window |
7225 |
|
|
|
7226 |
|
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
7227 |
|
|
(TestSessionSimple.test_remove_table): Move the test to |
7228 |
|
|
TestSessionSimple and add test for the TABLE_REMOVED message |
7229 |
|
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
7230 |
|
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
7231 |
|
|
UnreferencedTables method. |
7232 |
|
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
7233 |
|
|
tests for UnreferencedTables. |
7234 |
|
|
|
7235 |
frank |
1065 |
2003-05-27 Frank Koormann <[email protected]> |
7236 |
|
|
|
7237 |
frank |
1067 |
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
7238 |
|
|
display has some unwanted side effects. Removed again. |
7239 |
|
|
|
7240 |
|
|
2003-05-27 Frank Koormann <[email protected]> |
7241 |
|
|
|
7242 |
frank |
1065 |
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
7243 |
|
|
|
7244 |
|
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
7245 |
|
|
|
7246 |
jan |
1062 |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
7247 |
|
|
|
7248 |
bh |
1069 |
* test/test_menu.py (MenuTest.test): Added test for |
7249 |
|
|
Menu.RemoveItem(). |
7250 |
jan |
1062 |
|
7251 |
bh |
1069 |
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
7252 |
|
|
the menu. |
7253 |
jan |
1062 |
|
7254 |
frank |
1059 |
2003-05-27 Frank Koormann <[email protected]> |
7255 |
|
|
|
7256 |
|
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
7257 |
|
|
window) |
7258 |
|
|
|
7259 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
7260 |
|
|
all dialogs in the dialogs dictionary and the canvas. |
7261 |
|
|
|
7262 |
|
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
7263 |
|
|
parent, i.e. can fall behind other windows. |
7264 |
|
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
7265 |
|
|
dictionary before removing it. |
7266 |
|
|
|
7267 |
|
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
7268 |
|
|
|
7269 |
|
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
7270 |
|
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
7271 |
|
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
7272 |
|
|
|
7273 |
bh |
1053 |
2003-05-27 Bernhard Herzog <[email protected]> |
7274 |
|
|
|
7275 |
bh |
1055 |
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
7276 |
|
|
tableview dialog |
7277 |
|
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
7278 |
|
|
Also, don't use the table's titles as the dialog names. The titles |
7279 |
|
|
aren't guaranteed to be unique. |
7280 |
|
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
7281 |
|
|
table |
7282 |
|
|
|
7283 |
|
|
2003-05-27 Bernhard Herzog <[email protected]> |
7284 |
|
|
|
7285 |
bh |
1053 |
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
7286 |
|
|
effect can be achieved by simply closing the window showing the |
7287 |
|
|
table. |
7288 |
|
|
(MainWindow.TableHide): Removed. |
7289 |
|
|
(main_menu): Removed "table_hide" |
7290 |
|
|
|
7291 |
frank |
1051 |
2003-05-27 Frank Koormann <[email protected]> |
7292 |
|
|
|
7293 |
|
|
Fix legend tree display problems under Win32 |
7294 |
|
|
|
7295 |
|
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
7296 |
|
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
7297 |
|
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
7298 |
|
|
|
7299 |
|
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
7300 |
|
|
|
7301 |
jan |
1048 |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
7302 |
|
|
|
7303 |
|
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
7304 |
|
|
'after' now allows to insert separators almost anywhere in the menu. |
7305 |
|
|
|
7306 |
frank |
1046 |
2003-05-27 Frank Koormann <[email protected]> |
7307 |
|
|
|
7308 |
|
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
7309 |
|
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
7310 |
|
|
Win32 but is ignored under GTK. |
7311 |
|
|
|
7312 |
|
|
2003-05-26 Frank Koormann <[email protected]> |
7313 |
|
|
|
7314 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
7315 |
|
|
Center Choices. |
7316 |
|
|
|
7317 |
bh |
1038 |
2003-05-26 Bernhard Herzog <[email protected]> |
7318 |
|
|
|
7319 |
bh |
1044 |
Remove the Precision methods again. They're too DBF specific to be |
7320 |
|
|
part of the table interface and they're only used in table_to_dbf |
7321 |
|
|
anyway. |
7322 |
|
|
|
7323 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
7324 |
|
|
fixed precision of 12 for doubles. |
7325 |
|
|
(TransientTableBase.Precision): Removed |
7326 |
|
|
(AutoTransientTable.Width): Delegate to self.table. |
7327 |
|
|
|
7328 |
|
|
* Thuban/Model/table.py (DBFTable.Precision) |
7329 |
|
|
(MemoryTable.Precision): Removed. |
7330 |
|
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
7331 |
|
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
7332 |
|
|
column object specifies something else. |
7333 |
|
|
|
7334 |
|
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
7335 |
|
|
test for table_to_dbf |
7336 |
|
|
|
7337 |
|
|
2003-05-26 Bernhard Herzog <[email protected]> |
7338 |
|
|
|
7339 |
|
|
* test/test_transientdb.py |
7340 |
|
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
7341 |
|
|
|
7342 |
|
|
2003-05-26 Bernhard Herzog <[email protected]> |
7343 |
|
|
|
7344 |
bh |
1038 |
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
7345 |
|
|
implementation. Mark parts of the file format strings for |
7346 |
|
|
localization. |
7347 |
|
|
|
7348 |
|
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
7349 |
|
|
file and add the table to the tables managed by the session |
7350 |
|
|
|
7351 |
bh |
1040 |
* test/test_session.py (TestSessionSimple.test_open_table_file): |
7352 |
|
|
New. test case for OpenTableFile |
7353 |
|
|
|
7354 |
jan |
1033 |
2003-05-26 Jan-Oliver Wagner <[email protected]> |
7355 |
|
|
|
7356 |
jan |
1035 |
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
7357 |
|
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
7358 |
|
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
7359 |
|
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
7360 |
|
|
|
7361 |
|
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
7362 |
|
|
|
7363 |
bh |
1038 |
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
7364 |
|
|
already a selection present, update the grid accordingly. |
7365 |
jan |
1033 |
|
7366 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
7367 |
|
|
resizeable and increase its initial size. |
7368 |
|
|
|
7369 |
frank |
1030 |
2003-05-26 Frank Koormann <[email protected]> |
7370 |
|
|
|
7371 |
|
|
Table export functionality |
7372 |
|
|
|
7373 |
|
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
7374 |
|
|
Return width (in characters) for a column. |
7375 |
|
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
7376 |
|
|
(table_to_dbf): Write table to dbf file. |
7377 |
|
|
(table_to_csv): Write table to csv file. |
7378 |
|
|
|
7379 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
7380 |
|
|
TransientTableBase.Precision): Return column width and precision. |
7381 |
|
|
|
7382 |
|
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
7383 |
|
|
or table_to_csv depending on file selection. |
7384 |
|
|
|
7385 |
|
|
* test/test_dbf_table.py: |
7386 |
|
|
Test table_to_dbf (extension of former part of test). |
7387 |
|
|
|
7388 |
|
|
* test/test_csv_table.py: |
7389 |
|
|
Test table_to_csv. |
7390 |
|
|
|
7391 |
jan |
1021 |
2003-05-23 Jan-Oliver Wagner <[email protected]> |
7392 |
|
|
|
7393 |
jan |
1024 |
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
7394 |
|
|
Use QueryTableFrame instead of TableFrame. |
7395 |
jan |
1021 |
|
7396 |
jan |
1024 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
7397 |
|
|
table window with 'Layer Table:' instead of 'Table:'. |
7398 |
|
|
|
7399 |
|
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
7400 |
|
|
|
7401 |
|
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
7402 |
|
|
|
7403 |
jan |
1021 |
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
7404 |
|
|
only if it exists. |
7405 |
|
|
|
7406 |
|
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
7407 |
|
|
and call its init-method with a default title. Remove Title() method. |
7408 |
|
|
|
7409 |
|
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
7410 |
|
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
7411 |
|
|
a default title. Remove Title() method. |
7412 |
|
|
|
7413 |
bh |
1017 |
2003-05-23 Bernhard Herzog <[email protected]> |
7414 |
|
|
|
7415 |
|
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
7416 |
|
|
AddShapeStore analogously to AddTable. |
7417 |
|
|
|
7418 |
|
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
7419 |
|
|
New. Test for AddShapeStore |
7420 |
|
|
|
7421 |
jan |
1015 |
2003-05-23 Jan-Oliver Wagner <[email protected]> |
7422 |
|
|
|
7423 |
|
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
7424 |
|
|
|
7425 |
|
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
7426 |
|
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
7427 |
|
|
The latter implements the selection GUI without dependency on a layer. |
7428 |
|
|
LayerTableFrame now is derived from QueryTableFrame and connects |
7429 |
|
|
to a layer. |
7430 |
|
|
|
7431 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
7432 |
|
|
implementation that still needs work. |
7433 |
|
|
|
7434 |
|
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
7435 |
|
|
|
7436 |
frank |
1011 |
2003-05-22 Frank Koormann <[email protected]> |
7437 |
|
|
|
7438 |
|
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
7439 |
|
|
Added "outer_join = False" as optional parameter. |
7440 |
|
|
(TransientJoinedTable.create): If outer join is true, perform a |
7441 |
|
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
7442 |
|
|
the left table. Records not matching are filled with 0 / None. |
7443 |
|
|
|
7444 |
|
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
7445 |
|
|
(JoinDialog.OnJoin): Consider outer join check box. |
7446 |
|
|
|
7447 |
bh |
1006 |
2003-05-22 Bernhard Herzog <[email protected]> |
7448 |
|
|
|
7449 |
bh |
1008 |
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
7450 |
|
|
somewhat safer way. Storing the traceback in a local variable can |
7451 |
|
|
lead to memory leaks |
7452 |
|
|
|
7453 |
|
|
2003-05-22 Bernhard Herzog <[email protected]> |
7454 |
|
|
|
7455 |
bh |
1006 |
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
7456 |
|
|
the wxMessageDialog's Destroy() method. |
7457 |
|
|
|
7458 |
frank |
1004 |
2003-05-22 Frank Koormann <[email protected]> |
7459 |
|
|
|
7460 |
|
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
7461 |
|
|
TransientTable.Title() |
7462 |
|
|
|
7463 |
|
|
2003-05-22 Frank Koormann <[email protected]> |
7464 |
|
|
|
7465 |
|
|
Join Dialog, initial version. |
7466 |
|
|
|
7467 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
7468 |
|
|
|
7469 |
|
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
7470 |
|
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
7471 |
|
|
in all occurences. |
7472 |
|
|
|
7473 |
|
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
7474 |
|
|
Typo fixed. |
7475 |
|
|
|
7476 |
bh |
995 |
2003-05-22 Bernhard Herzog <[email protected]> |
7477 |
|
|
|
7478 |
bh |
999 |
Give the tables titles so that the GUI can display more meaningful |
7479 |
|
|
names. For now the titles are fixed but depend on e.g. filenames |
7480 |
|
|
or the titles of the joined tables. |
7481 |
|
|
|
7482 |
|
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
7483 |
|
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
7484 |
|
|
|
7485 |
|
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
7486 |
|
|
|
7487 |
|
|
* test/test_transientdb.py |
7488 |
|
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
7489 |
|
|
for the Title method |
7490 |
|
|
(TestTransientTable.test_transient_joined_table) |
7491 |
|
|
(TestTransientTable.test_transient_table): Add test for the Title |
7492 |
|
|
methods |
7493 |
|
|
|
7494 |
|
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
7495 |
|
|
Test for the Title method |
7496 |
|
|
|
7497 |
|
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
7498 |
|
|
the Title method |
7499 |
|
|
|
7500 |
|
|
2003-05-22 Bernhard Herzog <[email protected]> |
7501 |
|
|
|
7502 |
bh |
997 |
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
7503 |
|
|
Provide a better way to destroy the layers |
7504 |
|
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
7505 |
|
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
7506 |
|
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
7507 |
|
|
the new way to destroy the layers. |
7508 |
|
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
7509 |
|
|
DerivedShapeStore |
7510 |
|
|
|
7511 |
|
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
7512 |
|
|
filename if the shape store actually has one. |
7513 |
|
|
|
7514 |
|
|
2003-05-22 Bernhard Herzog <[email protected]> |
7515 |
|
|
|
7516 |
bh |
995 |
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
7517 |
|
|
for the filename |
7518 |
|
|
|
7519 |
|
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
7520 |
|
|
for the FileName method |
7521 |
|
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
7522 |
|
|
|
7523 |
tkoester |
993 |
2003-05-22 Thomas Koester <[email protected]> |
7524 |
|
|
|
7525 |
|
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
7526 |
|
|
from SciParam that now really is immutable. |
7527 |
|
|
|
7528 |
frank |
992 |
2003-05-22 Frank Koormann <[email protected]> |
7529 |
|
|
|
7530 |
|
|
Layer Top/Bottom placement added to legend. |
7531 |
|
|
|
7532 |
|
|
* Thuban/UI/legend.py |
7533 |
|
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
7534 |
|
|
bound to tool events. |
7535 |
|
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
7536 |
|
|
New, methods binding the event methods with the map methods. |
7537 |
|
|
|
7538 |
|
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
7539 |
|
|
layer at top/bottom of layer stack. |
7540 |
|
|
|
7541 |
|
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
7542 |
|
|
|
7543 |
|
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
7544 |
|
|
|
7545 |
bh |
988 |
2003-05-22 Bernhard Herzog <[email protected]> |
7546 |
|
|
|
7547 |
|
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
7548 |
|
|
remove tables |
7549 |
|
|
|
7550 |
|
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
7551 |
|
|
Test for RemoveTable |
7552 |
|
|
|
7553 |
tkoester |
986 |
2003-05-22 Thomas Koester <[email protected]> |
7554 |
|
|
|
7555 |
|
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
7556 |
|
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
7557 |
|
|
|
7558 |
bh |
983 |
2003-05-22 Bernhard Herzog <[email protected]> |
7559 |
|
|
|
7560 |
bh |
985 |
Implement a way to discover dependencies between tables and |
7561 |
|
|
shapestores. |
7562 |
|
|
|
7563 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
7564 |
|
|
(TransientJoinedTable.Dependencies) |
7565 |
|
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
7566 |
|
|
interface |
7567 |
|
|
(TransientJoinedTable.__init__): Keep tack of the original table |
7568 |
|
|
objects in addition to the corresponding transient tables. |
7569 |
|
|
|
7570 |
|
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
7571 |
|
|
(MemoryTable.Dependencies): New. Implement the dependencies |
7572 |
|
|
interface |
7573 |
|
|
|
7574 |
|
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
7575 |
|
|
ShapefileStore |
7576 |
|
|
(ShapefileStore.__init__): Use ShapeTable instead of |
7577 |
|
|
AutoTransientTable |
7578 |
|
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
7579 |
|
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
7580 |
|
|
methods for filename and type |
7581 |
|
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
7582 |
|
|
interface |
7583 |
|
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
7584 |
|
|
difference to SimpleStore is that it depends not on a shapefile |
7585 |
|
|
but another shapestore which expresses the dependencies a bit |
7586 |
|
|
better |
7587 |
|
|
(SimpleStore.__init__): Add deprecation warning. |
7588 |
|
|
|
7589 |
|
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
7590 |
|
|
Test for the Dependencies method. |
7591 |
|
|
|
7592 |
|
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
7593 |
|
|
New. Test for the Dependencies method. |
7594 |
|
|
|
7595 |
|
|
* test/test_transientdb.py |
7596 |
|
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
7597 |
|
|
Test for the Dependencies method. |
7598 |
|
|
(TestTransientTable.test_transient_joined_table): Add test for the |
7599 |
|
|
Dependencies method. |
7600 |
|
|
|
7601 |
|
|
* test/test_session.py (TestSessionSimple.setUp) |
7602 |
|
|
(TestSessionSimple.tearDown): New. Implement a better way to |
7603 |
|
|
destroy the sessions. |
7604 |
|
|
(TestSessionSimple.test_initial_state) |
7605 |
|
|
(TestSessionSimple.test_add_table): Bind session to self.session |
7606 |
|
|
so that it's destroyed by tearDown |
7607 |
|
|
(TestSessionSimple.test_open_shapefile): New. Test for |
7608 |
|
|
OpenShapefile and the object it returns |
7609 |
|
|
|
7610 |
|
|
2003-05-22 Bernhard Herzog <[email protected]> |
7611 |
|
|
|
7612 |
bh |
983 |
* Thuban/Model/session.py (Session.AddTable): New method to |
7613 |
|
|
register tables with the session. |
7614 |
|
|
(Session.Tables): Return the tables registered with AddTable too. |
7615 |
|
|
|
7616 |
|
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
7617 |
|
|
Test case for the AddTable method |
7618 |
|
|
|
7619 |
frank |
981 |
2003-05-22 Frank Koormann <[email protected]> |
7620 |
|
|
|
7621 |
|
|
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
7622 |
|
|
lower right corner, center labels for selections, initialize controls |
7623 |
|
|
in reasonable order for keyboard navigation. |
7624 |
|
|
|
7625 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout) |
7626 |
|
|
(ProjFrame.__DoOnProjAvail): Determine position of current projection |
7627 |
|
|
using the wxListBox.FindString() method. Still a problem (#1886) |
7628 |
|
|
|
7629 |
|
|
* Thuban/UI/classifier.py |
7630 |
|
|
(Classifier.__init__, SelectPropertiesDialog.__init__) |
7631 |
|
|
|
7632 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__, |
7633 |
|
|
(ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the |
7634 |
|
|
different classification types from here to __init__. |
7635 |
|
|
(GenUniquePanel.__init__): Set the column width of the first field |
7636 |
|
|
in the Field ListCtrl to the full width. |
7637 |
|
|
|
7638 |
|
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As' |
7639 |
|
|
Button to 'Export'. Center Buttons in Selection Box, set Focus to |
7640 |
|
|
Grid. |
7641 |
|
|
(LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN, |
7642 |
|
|
changes focus to the Selection when pressing "Alt-S". |
7643 |
|
|
|
7644 |
|
|
* Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out |
7645 |
|
|
the text if not visible. The italic font sometimes exceeds the |
7646 |
|
|
rendering area. |
7647 |
|
|
|
7648 |
jonathan |
972 |
2003-05-21 Jonathan Coles <[email protected]> |
7649 |
jonathan |
971 |
|
7650 |
jonathan |
975 |
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
7651 |
|
|
to OnClose so that Thuban closes correctly. |
7652 |
|
|
|
7653 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
7654 |
|
|
DockFrame.OnClose, not DockFrame._OnClose. |
7655 |
|
|
|
7656 |
|
|
2003-05-21 Jonathan Coles <[email protected]> |
7657 |
|
|
|
7658 |
jonathan |
971 |
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
7659 |
|
|
references to 'inf' and use new Range __init__ to pass floats |
7660 |
|
|
directly rather than converting them to strings first. |
7661 |
|
|
Fixes RTBug #1876. |
7662 |
|
|
|
7663 |
|
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
7664 |
|
|
Use new Range ___init__ to pass floats. |
7665 |
|
|
|
7666 |
|
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
7667 |
|
|
filename is a valid image file. Throw IOError otherwise. |
7668 |
|
|
|
7669 |
|
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
7670 |
|
|
is immutable and has an __init__ which can accept floats. |
7671 |
|
|
|
7672 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
7673 |
|
|
into try block. AddLayer doesn't throw any exceptions anymore. |
7674 |
|
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
7675 |
|
|
try block. |
7676 |
|
|
|
7677 |
|
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
7678 |
|
|
the first item in choices. Fixes RTBug #1882. |
7679 |
|
|
|
7680 |
|
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
7681 |
|
|
has gone to 0 which is a serious problem. abort. |
7682 |
|
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
7683 |
|
|
print the error from GDAL. |
7684 |
|
|
|
7685 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
7686 |
|
|
ToggleEventListeners to turn on listening. |
7687 |
|
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
7688 |
|
|
and off so as to prevent excessive messages. |
7689 |
|
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
7690 |
|
|
to suppress excessive messages when selecting many rows. |
7691 |
|
|
Fixes RTBug #1880. |
7692 |
|
|
|
7693 |
|
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
7694 |
|
|
is a serious problem that can occur when an image without |
7695 |
|
|
geo data is loading and causes the map projection bounds to |
7696 |
|
|
go to infinity. Right now, the solution is to simply try |
7697 |
|
|
to recover. |
7698 |
|
|
|
7699 |
|
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
7700 |
|
|
to set the MFILEReceiver attributes even if the data is NULL. |
7701 |
|
|
|
7702 |
|
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
7703 |
|
|
and passed GDAL messages back up to the Python layer. Also |
7704 |
|
|
tried to fix some memory leaks that were present in the original |
7705 |
|
|
utility but didn't matter because the program aborted. |
7706 |
|
|
|
7707 |
|
|
* test/test_range.py: Copied over tests from SciParam. Removed |
7708 |
|
|
tests against importing. Fixes RTBug #1867. |
7709 |
|
|
|
7710 |
bh |
958 |
2003-05-21 Bernhard Herzog <[email protected]> |
7711 |
|
|
|
7712 |
|
|
* test/test_load.py: Remove unused imports and restructure the |
7713 |
|
|
test code |
7714 |
|
|
(LoadSessionTest): Split into one class for each test and turn |
7715 |
|
|
LoadSessionTest itself into the base class for all such session |
7716 |
|
|
tests. |
7717 |
|
|
(ClassificationTest): New base class for load tests that test |
7718 |
|
|
classifications |
7719 |
|
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
7720 |
|
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
7721 |
|
|
for the individual tests |
7722 |
|
|
|
7723 |
|
|
* test/support.py (FileLoadTestCase.filename): New base class for |
7724 |
|
|
file loading tests |
7725 |
|
|
|
7726 |
jan |
955 |
2003-05-21 Jan-Oliver Wagner <[email protected]> |
7727 |
|
|
|
7728 |
|
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
7729 |
|
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
7730 |
|
|
Added 'Gauss Krueger Zone 6'. |
7731 |
|
|
|
7732 |
|
|
* Data/iceland_sample_raster.thuban: political polygon now |
7733 |
|
|
filled transparent to have the raster image visible at once. |
7734 |
|
|
|
7735 |
frank |
952 |
2003-05-21 Frank Koormann <[email protected]> |
7736 |
|
|
|
7737 |
|
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
7738 |
|
|
OnClose() to keep in sync with extensions. Internally Thuban |
7739 |
|
|
still uses "underscored" names. |
7740 |
|
|
|
7741 |
jonathan |
949 |
2003-05-20 Jonathan Coles <[email protected]> |
7742 |
|
|
|
7743 |
|
|
This puts back Raster layer support. These layers support projections |
7744 |
|
|
through the GDAL library. Currently, the CVS version is being used. |
7745 |
|
|
There are no Debian packages available although this may change soon. |
7746 |
|
|
A GDAL driver was extended to support writing to memory rather to |
7747 |
|
|
files. |
7748 |
|
|
|
7749 |
|
|
There is still some work that needs to be done, such as some error |
7750 |
|
|
handling when loading invalid images or when there is a problem |
7751 |
|
|
projecting the image. This putback simply checks in the majority |
7752 |
|
|
of the work. |
7753 |
|
|
|
7754 |
|
|
* setup.py: Add gdalwarp library extension. |
7755 |
|
|
|
7756 |
|
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
7757 |
|
|
Defaults to False, but can be overridden by subclasses if they |
7758 |
|
|
support classification. |
7759 |
|
|
(RasterLayer): New. Defines a new layer that represents an |
7760 |
|
|
image. |
7761 |
|
|
|
7762 |
|
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
7763 |
|
|
tag handler. |
7764 |
|
|
(SessionLoader.start_layer): Encode the filename. |
7765 |
|
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
7766 |
|
|
New. Supports reading a rasterlayer tag. |
7767 |
|
|
|
7768 |
|
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
7769 |
|
|
|
7770 |
|
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
7771 |
|
|
get a string in Latin1. If we get such as string convert it to |
7772 |
|
|
unicode first, otherwise leave if alone before encoding. |
7773 |
|
|
(SessionSaver.write_layer): Add support for writing both Layers |
7774 |
|
|
and RasterLayers. |
7775 |
|
|
|
7776 |
|
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
7777 |
|
|
The right argument may not be a string, it could also be a Column. |
7778 |
|
|
|
7779 |
|
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
7780 |
|
|
Make initial window size 600x400. Fixes RTBug #1872. |
7781 |
|
|
|
7782 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
7783 |
|
|
the dialog is constructed so that we can support layers that |
7784 |
|
|
do not have classifications. |
7785 |
|
|
(Classifier._OnTry): Only build a classification if the layer |
7786 |
|
|
supports one. |
7787 |
|
|
|
7788 |
|
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
7789 |
|
|
instance of Layer into checks against BaseLayer. |
7790 |
|
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
7791 |
|
|
the layer supports classification. |
7792 |
|
|
|
7793 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
7794 |
|
|
MainWindow.OpenSession): Don't proceed with an action if the |
7795 |
|
|
user chooses Cancel when they are asked to save changes. |
7796 |
|
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
7797 |
|
|
user to select an image file. Create a new RasterLayer and add |
7798 |
|
|
it to the map. |
7799 |
|
|
|
7800 |
|
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
7801 |
|
|
for rendering RasterLayer layers. |
7802 |
|
|
(MapRenderer.draw_raster_layer): Actually method that calls |
7803 |
|
|
the GDALWarp python wrapper and constructs an image from the |
7804 |
|
|
data returned. |
7805 |
|
|
|
7806 |
|
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
7807 |
|
|
Choices symbols to match those used in the table query method. |
7808 |
|
|
Replace deprecated method calls on table with new method names. |
7809 |
|
|
|
7810 |
|
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
7811 |
|
|
how small the scale can get. This still needs more testing. |
7812 |
|
|
|
7813 |
|
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
7814 |
|
|
Provides a driver to output in .bmp format. |
7815 |
|
|
|
7816 |
|
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
7817 |
|
|
New. Provides IO routines which write to memory, rather than a file. |
7818 |
|
|
|
7819 |
|
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
7820 |
|
|
of the gdalwarp utility provided in GDAL. Added function calls |
7821 |
|
|
that can be accessed from python. |
7822 |
|
|
|
7823 |
|
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
7824 |
|
|
a raster layer. |
7825 |
|
|
|
7826 |
|
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
7827 |
|
|
layer image data. |
7828 |
|
|
|
7829 |
|
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
7830 |
|
|
|
7831 |
|
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
7832 |
|
|
tests associated with the raster layer code. |
7833 |
|
|
|
7834 |
|
|
* test/test_transientdb.py |
7835 |
|
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
7836 |
|
|
for using a Column object as the "right" parameter to a query. |
7837 |
|
|
|
7838 |
frank |
924 |
2003-05-19 Frank Koormann <[email protected]> |
7839 |
|
|
|
7840 |
frank |
927 |
* Thuban/version.py (get_changelog_date): |
7841 |
|
|
Catch exceptions if ChangeLog does not exist. |
7842 |
|
|
|
7843 |
|
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
7844 |
|
|
|
7845 |
|
|
2003-05-19 Frank Koormann <[email protected]> |
7846 |
|
|
|
7847 |
frank |
924 |
Extended version information for Thuban |
7848 |
|
|
|
7849 |
|
|
* Thuban/version.py: New, version information for Thuban: Last |
7850 |
|
|
modification date and last ChangeLog entry date. |
7851 |
|
|
|
7852 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
7853 |
|
|
information: Display Thuban, wxPython and Python version. |
7854 |
|
|
|
7855 |
bh |
919 |
2003-05-16 Bernhard Herzog <[email protected]> |
7856 |
|
|
|
7857 |
bh |
921 |
* Thuban/Model/save.py: Remove some unused imports including the |
7858 |
|
|
__future__ import for nested_scopes as Thuban relies on Python 2.2 |
7859 |
|
|
now. |
7860 |
|
|
(XMLWriter.encode): Remove the special case for a None argument. |
7861 |
|
|
In the saver encode is always called with a string argument. |
7862 |
|
|
|
7863 |
|
|
2003-05-16 Bernhard Herzog <[email protected]> |
7864 |
|
|
|
7865 |
bh |
919 |
* Thuban/UI/__init__.py: Remove the work-around for the locale bug |
7866 |
|
|
in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom |
7867 |
|
|
of the bug was that e.g. float("1.2") would fail. Thuban now |
7868 |
|
|
requires 2.4.x. |
7869 |
|
|
|
7870 |
frank |
917 |
2003-05-16 Frank Koormann <[email protected]> |
7871 |
|
|
|
7872 |
|
|
Printing enhancement and WMF export (under Win32) |
7873 |
|
|
|
7874 |
|
|
* Thuban/UI/renderer.py (ExportRenderer): New, derived from |
7875 |
|
|
ScreenRenderer. Renders Map, Legend and Scalebar for export. |
7876 |
|
|
(PrinterRenderer): New, derived from ExportRenderer. Replaces the old |
7877 |
|
|
PrintRender. |
7878 |
|
|
|
7879 |
|
|
* Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set |
7880 |
|
|
to fullfil information needed for PrinterRenderer. |
7881 |
|
|
(MapCanvas.Export): New. Export Map (currently only to WMF on Win32). |
7882 |
|
|
(MapCanvas.Print): Adapted to new MapPrintout. |
7883 |
|
|
(OutputTransform): General calculations to transform from canvas |
7884 |
|
|
coordinates to export/printing devices. |
7885 |
|
|
|
7886 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also |
7887 |
|
|
new method_command to call ExportMap, with platform dependency (only |
7888 |
|
|
__WXMSW__) |
7889 |
|
|
|
7890 |
|
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size |
7891 |
|
|
of scalebar drawing area as new parameters. |
7892 |
|
|
|
7893 |
|
|
* Thuban/Model/scalebar.py (roundInterval): round long instead of int |
7894 |
|
|
|
7895 |
|
|
* Thuban/UI/legend.py (ScalebarBitmap.__SetScale): |
7896 |
|
|
Update to extended scalebar.DrawScalebar header. |
7897 |
|
|
|
7898 |
|
|
* test/test_export.py: New, test Thuban.UI.view.OutputTransform() |
7899 |
|
|
|
7900 |
|
|
* test/test_scalebar.py: Made test executable as standalone. |
7901 |
|
|
|
7902 |
bh |
908 |
2003-05-16 Bernhard Herzog <[email protected]> |
7903 |
|
|
|
7904 |
|
|
* Thuban/Model/table.py (Table): Remove this compatibility alias |
7905 |
|
|
for DBFTable. |
7906 |
|
|
|
7907 |
|
|
* test/test_table.py: Import DBFTable as Table because that alias |
7908 |
|
|
doesn't exist anymore. |
7909 |
|
|
|
7910 |
|
|
* Thuban/UI/classgen.py: Remove some unused imports |
7911 |
|
|
|
7912 |
jonathan |
906 |
2003-05-14 Jonathan Coles <[email protected]> |
7913 |
|
|
|
7914 |
|
|
* Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList): |
7915 |
|
|
Fix docstring. |
7916 |
|
|
(ClassGenerator.GenUniformDistribution): Fix spelling of method name. |
7917 |
|
|
(ClassGenerator.GenQuantiles): Use the left/right brackets and min/max |
7918 |
|
|
values of the supplied range to determine the beginning and end |
7919 |
|
|
bounds of the generated classes. |
7920 |
|
|
|
7921 |
|
|
* Thuban/Model/range.py (Range.number_re): Now accepts floats that |
7922 |
|
|
do not have a leading 0 (.5 is now accepted as well as 0.5). |
7923 |
|
|
|
7924 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method |
7925 |
|
|
call to ClassGenerator.GenUniformDistribution. |
7926 |
|
|
|
7927 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows |
7928 |
|
|
layout bug with the 'Projection' label. |
7929 |
|
|
|
7930 |
|
|
* test/support.py (FloatTestCase): New. Needed for the Range tests. |
7931 |
|
|
|
7932 |
|
|
* test/test_range.py: New. Imported from SciParam. |
7933 |
|
|
|
7934 |
jonathan |
897 |
2003-05-12 Jonathan Coles <[email protected]> |
7935 |
|
|
|
7936 |
jonathan |
899 |
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
7937 |
|
|
to table.UniqueValues() with calls that retrieve all the values |
7938 |
|
|
from the table. This will need to be replaced by a method on table |
7939 |
|
|
which can simply return the list (perhaps more efficiently). |
7940 |
|
|
|
7941 |
|
|
2003-05-12 Jonathan Coles <[email protected]> |
7942 |
|
|
|
7943 |
jonathan |
897 |
The return value of ClassGenerator.CalculateQuantiles has changed. |
7944 |
|
|
Refer to the documentation for details. |
7945 |
|
|
|
7946 |
|
|
* test/test_classgen.py: Modified Quantile tests to use the |
7947 |
|
|
new return values. |
7948 |
|
|
|
7949 |
|
|
* Thuban/Model/classgen.py |
7950 |
|
|
(ClassGenerator.GenQuantiles): Add comments describing the parameters, |
7951 |
|
|
use new return values from CalculateQuantiles to produce the correct |
7952 |
|
|
range bounds in the Classification. |
7953 |
|
|
(ClassGenerator.CalculateQuantiles): Add more comments describing |
7954 |
|
|
the return values and parameters. Make minor adjustments to improve |
7955 |
|
|
the legibility of the code. Fix problem with adjusted not being set |
7956 |
|
|
in most cases. |
7957 |
|
|
|
7958 |
frank |
893 |
2003-05-12 Frank Koormann <[email protected]> |
7959 |
|
|
|
7960 |
|
|
* Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode |
7961 |
|
|
and latin1. Fixes #1851 finally. |
7962 |
|
|
|
7963 |
jonathan |
889 |
2003-05-09 Jonathan Coles <[email protected]> |
7964 |
|
|
|
7965 |
jonathan |
897 |
* test/test_classgen.py: New. Tests the Quantile algorithm. |
7966 |
|
|
|
7967 |
|
|
* Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles): |
7968 |
|
|
Clean up debugging statement, add comments, fix a small bug in the |
7969 |
|
|
returned adjusted percentiles. |
7970 |
|
|
|
7971 |
|
|
2003-05-09 Jonathan Coles <[email protected]> |
7972 |
|
|
|
7973 |
jonathan |
889 |
Introduces Range class from SciParam into the ClassGroupRange class, |
7974 |
|
|
and such ranges can now be saved and loaded from disk. |
7975 |
|
|
|
7976 |
|
|
Quantiles are now available in the Classification Generator. |
7977 |
|
|
|
7978 |
|
|
Initial support for building Queries on a table. Doesn't do anything |
7979 |
|
|
but run some tests. |
7980 |
|
|
|
7981 |
|
|
* Thuban/Model/classification.py: Explicit imports. |
7982 |
|
|
(ClassGroupRange): Use the Range class to store the underlying |
7983 |
|
|
range information. The interface remains the same, except for |
7984 |
|
|
GetRange(), and you can also supply a Range object as the min |
7985 |
|
|
parameter to SetRange or __init__. |
7986 |
|
|
|
7987 |
|
|
* Thuban/Model/load.py (XMLReader.encode): New. Encodes the given |
7988 |
|
|
string appropriately for use in Thuban. Fixes RTbug #1851. |
7989 |
|
|
(SessionLoader.end_projection): Handle the context of the |
7990 |
|
|
projection tag a bit better by looking at what objects are not |
7991 |
|
|
None. There was an assumption that a projection tag for a map |
7992 |
|
|
could occur before any layers. |
7993 |
|
|
(SessionLoader.start_clrange): Provide backward compatibility for |
7994 |
|
|
reading min/max values as well as the new range parameter. |
7995 |
|
|
|
7996 |
|
|
* Thuban/Model/map.py: Explicit imports. |
7997 |
|
|
|
7998 |
|
|
* Thuban/Model/resource.py: Import _. |
7999 |
|
|
(ProjFileSaver.write): write header using projfile.dtd. |
8000 |
|
|
|
8001 |
|
|
* Thuban/Model/save.py: Explicit imports. |
8002 |
|
|
(XMLWriter.encode): New. Encode the given string from a format |
8003 |
|
|
used by Thuban into UTF-8. Fixes RTbug #1851. |
8004 |
|
|
|
8005 |
|
|
* Thuban/UI/classgen.py: Explicit imports. |
8006 |
|
|
(ClassGenDialog.__init__): Clean up the code and add support |
8007 |
|
|
for Quantiles. |
8008 |
|
|
(ClassGenDialog.OnOK): Add support for Quantiles. |
8009 |
|
|
(GenQuantilesPanel): New. Input panel for Quantiles. |
8010 |
|
|
(ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, |
8011 |
|
|
GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py |
8012 |
|
|
|
8013 |
|
|
* Thuban/Model/classgen.py: New. Contains all the classes named above. |
8014 |
|
|
|
8015 |
|
|
* Thuban/UI/classifier.py: Explicit imports. |
8016 |
|
|
(ClassTable.GetValueAsCust, ClassTable.__ParseInput, |
8017 |
|
|
ClassTable.SetValueAsCustom): Reworked to use new Range class. |
8018 |
|
|
|
8019 |
|
|
* Thuban/UI/legend.py: Explicit imports. |
8020 |
|
|
|
8021 |
|
|
* Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added |
8022 |
|
|
a Table menu and associated method calls. |
8023 |
|
|
(MainWindow.choose_color): Removed. No longer needed. |
8024 |
|
|
|
8025 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button |
8026 |
|
|
should be disabled if no projection is selected in the available |
8027 |
|
|
list. |
8028 |
|
|
|
8029 |
|
|
* Thuban/UI/renderer.py: Explicit imports. |
8030 |
|
|
|
8031 |
|
|
* Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues |
8032 |
|
|
with correctly selecting the rows and issuing the right events. |
8033 |
|
|
Be sure to call Skip() to allow the grid to do some of its own |
8034 |
|
|
handling which allows the rows to actually be selected. |
8035 |
|
|
(LayerTableGrid.select_shapes): Rename from select_shape. Supports |
8036 |
|
|
selecting multiple shapes. |
8037 |
|
|
(LayerTableFrame): Support for building Queries. |
8038 |
|
|
(LayerTableFrame.select_shapes): Allow multiple shapes to be selected. |
8039 |
|
|
|
8040 |
|
|
* Thuban/UI/tree.py: Explicit imports. |
8041 |
|
|
|
8042 |
|
|
* Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the |
8043 |
|
|
table view can call it. |
8044 |
|
|
|
8045 |
|
|
* test/test_classification.py: Explicit imports. |
8046 |
|
|
(TestClassification.test_ClassGroupRange): Fix test for new |
8047 |
|
|
Range class. |
8048 |
|
|
|
8049 |
|
|
* Doc/thuban.dtd: Add range parameter for clrange. |
8050 |
|
|
|
8051 |
|
|
* Thuban/Model/range.py: Taken from SciParam. Used as the underlying |
8052 |
|
|
object in ClassGroupRange, and also uesd for inputting ranges in |
8053 |
|
|
the classifer table and elsewhere. |
8054 |
|
|
|
8055 |
|
|
* Thuban/UI/join.py: New. Initial Join dialog. No real functionality |
8056 |
|
|
yet. |
8057 |
|
|
|
8058 |
frank |
872 |
2003-05-09 Frank Koormann <[email protected]> |
8059 |
|
|
|
8060 |
|
|
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |
8061 |
|
|
|
8062 |
frank |
860 |
2003-05-08 Frank Koormann <[email protected]> |
8063 |
|
|
|
8064 |
frank |
870 |
Coding style updates |
8065 |
|
|
|
8066 |
|
|
* test/test_scalebar.py: Replaced tab indentation by spaces. |
8067 |
|
|
|
8068 |
|
|
* Thuban/UI/scalebar.py: Explicit imports. |
8069 |
|
|
|
8070 |
|
|
2003-05-08 Frank Koormann <[email protected]> |
8071 |
|
|
|
8072 |
frank |
867 |
* Thuban/UI/scalebar.py |
8073 |
|
|
(ScaleBar.DrawScalebar): Format string bug fixed. |
8074 |
|
|
|
8075 |
|
|
2003-05-08 Frank Koormann <[email protected]> |
8076 |
|
|
|
8077 |
frank |
865 |
Reorganization of scalebar component (no wx in Thuban/Model) |
8078 |
|
|
|
8079 |
|
|
* Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py |
8080 |
|
|
(deriveInterval): |
8081 |
|
|
Calculate scalebar interval and unit which fits in width for scale. |
8082 |
|
|
(roundInterval): Round float. |
8083 |
|
|
|
8084 |
|
|
* Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering |
8085 |
|
|
|
8086 |
|
|
* test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods. |
8087 |
|
|
|
8088 |
|
|
* Thuban/UI/legend.py: Import Thuban.UI.scalebar |
8089 |
|
|
|
8090 |
|
|
2003-05-08 Frank Koormann <[email protected]> |
8091 |
|
|
|
8092 |
frank |
860 |
* Thuban/UI/legend.py (ScalebarBitmap.SetCanvas): |
8093 |
|
|
Initialize ScaleBar with canvas.map |
8094 |
|
|
|
8095 |
|
|
* Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New, |
8096 |
|
|
round intervals to display smarter lengths |
8097 |
|
|
(ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a |
8098 |
|
|
layer. If the maps has no projection applied grey the scalebar. |
8099 |
|
|
|
8100 |
frank |
857 |
2003-05-07 Frank Koormann <[email protected]> |
8101 |
|
|
|
8102 |
|
|
Basic Scalebar features added. |
8103 |
|
|
|
8104 |
|
|
* Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering. |
8105 |
|
|
|
8106 |
|
|
* Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap |
8107 |
|
|
(ScaleBarBitmap): New, links the scalebar bitmap with view messages |
8108 |
|
|
and the renderer. |
8109 |
|
|
|
8110 |
|
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED. |
8111 |
|
|
|
8112 |
|
|
* Thuban/UI/messages.py: SCALE_CHANGED added. |
8113 |
|
|
|
8114 |
bh |
850 |
2003-05-07 Bernhard Herzog <[email protected]> |
8115 |
|
|
|
8116 |
bh |
852 |
* Thuban/Model/session.py (Session.__init__): New instance |
8117 |
|
|
variable shapestores to hold a list of all open shapestore objects |
8118 |
|
|
(Session.ShapeStores): New. Accessor method for the shapestores |
8119 |
|
|
list. |
8120 |
|
|
(Session._add_shapestore, Session._clean_weak_store_refs): New. |
8121 |
|
|
Internal methods to maintain the shapestores list. |
8122 |
|
|
(Session.Tables): New. Return all tables open in the session. |
8123 |
|
|
(Session.OpenShapefile): Insert the new ShapeStore into the |
8124 |
|
|
shapestores list. |
8125 |
|
|
|
8126 |
|
|
* test/test_session.py (TestSessionSimple.test_initial_state): Add |
8127 |
|
|
tests for ShapeStores and Tables |
8128 |
|
|
(TestSessionWithContent.test_shape_stores) |
8129 |
|
|
(TestSessionWithContent.test_tables): New. Test cases for |
8130 |
|
|
ShapeStores and Tables |
8131 |
|
|
|
8132 |
|
|
2003-05-07 Bernhard Herzog <[email protected]> |
8133 |
|
|
|
8134 |
bh |
850 |
* Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict): |
8135 |
|
|
Add comments about the optimizations used. |
8136 |
|
|
(AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New. |
8137 |
|
|
Implement the ReadValue table interface method. |
8138 |
|
|
|
8139 |
|
|
* test/test_transientdb.py |
8140 |
|
|
(TestTransientTable.run_iceland_political_tests) |
8141 |
|
|
(TestTransientTable.test_transient_joined_table): Add tests for |
8142 |
|
|
ReadValue |
8143 |
|
|
|
8144 |
frank |
848 |
2003-05-07 Frank Koormann <[email protected]> |
8145 |
|
|
|
8146 |
|
|
* Resources/Bitmaps/fulllayerextent.xpm, |
8147 |
|
|
Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with |
8148 |
|
|
new icons. |
8149 |
|
|
|
8150 |
bh |
840 |
2003-05-06 Bernhard Herzog <[email protected]> |
8151 |
|
|
|
8152 |
bh |
846 |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
8153 |
|
|
New. Simply delegate to the transient table's version. |
8154 |
|
|
|
8155 |
|
|
* test/test_transientdb.py |
8156 |
|
|
(TestTransientTable.test_auto_transient_table_query): New. Test |
8157 |
|
|
case for AutoTransientTable's SimpleQuery |
8158 |
|
|
|
8159 |
|
|
2003-05-06 Bernhard Herzog <[email protected]> |
8160 |
|
|
|
8161 |
bh |
843 |
* Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery): |
8162 |
|
|
Implement a simple query method for the query dialog |
8163 |
|
|
(TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds |
8164 |
|
|
the row index or shapeid. |
8165 |
|
|
(TransientTable.create): Insert the right value of the row index |
8166 |
|
|
(TransientJoinedTable.create): Copy the row index of the left |
8167 |
|
|
table to the joined result table |
8168 |
|
|
|
8169 |
|
|
* test/test_transientdb.py |
8170 |
|
|
(TestTransientTable.test_transient_table_read_twice): Fix |
8171 |
|
|
doc-string |
8172 |
|
|
(TestTransientTable.test_transient_table_query): New. Test for the |
8173 |
|
|
SimpleQuery method |
8174 |
|
|
|
8175 |
|
|
2003-05-06 Bernhard Herzog <[email protected]> |
8176 |
|
|
|
8177 |
bh |
840 |
Convert all table users to use the new table interface. This only |
8178 |
|
|
covers Thuban itself, not GREAT-ER or other applications built on |
8179 |
|
|
Thuban yet, so the compatibility interface stays in place for the |
8180 |
|
|
time being but it now issues DeprecationWarnings. |
8181 |
|
|
|
8182 |
|
|
Finally, the new Table interface has a new method, HasColumn. |
8183 |
|
|
|
8184 |
|
|
* Thuban/Model/table.py (OldTableInterfaceMixin): All methods |
8185 |
|
|
issue deprecation warnings when they're. The warnings refer to the |
8186 |
|
|
caller of the method. |
8187 |
|
|
(OldTableInterfaceMixin.__deprecation_warning): New. Helper method |
8188 |
|
|
for the deprecation warnings |
8189 |
|
|
|
8190 |
|
|
* test/test_table.py: Ignore the deprecation warnings for the old |
8191 |
|
|
table in the tests in this module. The purpose of the tests is to |
8192 |
|
|
test the old interface, after all. |
8193 |
|
|
|
8194 |
|
|
* test/test_transientdb.py |
8195 |
|
|
(TestTransientTable.run_iceland_political_tests): Use the |
8196 |
|
|
constants for the types. Add a test for HasColumn |
8197 |
|
|
(TestTransientTable.test_transient_joined_table): Adapt to new |
8198 |
|
|
table interface. Add a test for HasColumn |
8199 |
|
|
(TestTransientTable.test_transient_table_read_twice): Adapt to new |
8200 |
|
|
table interface |
8201 |
|
|
|
8202 |
|
|
* Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue): |
8203 |
|
|
Adapt to new table interface |
8204 |
|
|
|
8205 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to |
8206 |
|
|
new table interface |
8207 |
|
|
|
8208 |
|
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list) |
8209 |
|
|
(RecordTable.SetTable): Adapt to new table interface |
8210 |
|
|
|
8211 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__) |
8212 |
|
|
(Classifier.__init__): Adapt to new table interface |
8213 |
|
|
|
8214 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
8215 |
|
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt |
8216 |
|
|
to new table interface |
8217 |
|
|
|
8218 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase.HasColumn) |
8219 |
|
|
(AutoTransientTable.HasColumn): Implement the new table interface |
8220 |
|
|
method |
8221 |
|
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange) |
8222 |
|
|
(AutoTransientTable.UniqueValues): Adapt to new table interface |
8223 |
|
|
|
8224 |
|
|
* Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType): |
8225 |
|
|
Adapt to new table interface |
8226 |
|
|
|
8227 |
|
|
* test/test_layer.py (TestLayer.open_shapefile): Helper method to |
8228 |
|
|
simplify opening shapefiles a bit easier. |
8229 |
|
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
8230 |
|
|
(TestLayer.test_point_layer): Use the new helper method |
8231 |
|
|
(TestLayer.test_get_field_type): New. Test for the GetFieldType |
8232 |
|
|
method |
8233 |
|
|
|
8234 |
|
|
* test/test_dbf_table.py (TestDBFTable.test_has_column): Test for |
8235 |
|
|
the new table method |
8236 |
|
|
|
8237 |
|
|
* test/test_memory_table.py (TestMemoryTable.test_has_column): |
8238 |
|
|
Test for the new table method HasColumn |
8239 |
|
|
|
8240 |
jonathan |
833 |
2003-05-06 Jonathan Coles <[email protected]> |
8241 |
|
|
|
8242 |
|
|
Addresses the "Selection Extent" wish of RTbug #1787. |
8243 |
|
|
|
8244 |
|
|
* Resources/Bitmaps/fulllayerextent.xpm, |
8245 |
|
|
Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection |
8246 |
|
|
extent. These are just place holders for the real bitmaps. |
8247 |
|
|
|
8248 |
|
|
* Thuban/Model/layer.py (Shape): Since a Shape is immutable only |
8249 |
|
|
calculate the bounding box once (the first time compute_bbox() is |
8250 |
|
|
called). |
8251 |
|
|
(Layer.ShapesBoundingBox): New. Given a list of shape ids, return |
8252 |
|
|
the bounding box for the shapes in lat/long coordinates. |
8253 |
|
|
|
8254 |
|
|
* Thuban/UI/mainwindow.py: Added new "Full selection extent" menu |
8255 |
|
|
option. |
8256 |
|
|
(MainWindow.has_selected_shapes): New. Returns true if there are |
8257 |
|
|
any selected shapes. |
8258 |
|
|
(MainWindow.FullSelectionExtent): New. Calls |
8259 |
|
|
MapCanvas.FitSelectedToWindow() when the user selects the menu option. |
8260 |
|
|
(_has_selected_shapes): New. Returns true if there are any |
8261 |
|
|
selected shapes. |
8262 |
|
|
|
8263 |
|
|
* Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns |
8264 |
|
|
true if there are any selected shapes. |
8265 |
|
|
|
8266 |
|
|
* Thuban/UI/view.py (MapCanvas): Added delegated method |
8267 |
|
|
HasSelectedShapes. |
8268 |
|
|
(MapCanvas.FitSelectedToWindow): New. Centers and scales any selected |
8269 |
|
|
shapes on the canvas using the map projection (if any). |
8270 |
|
|
|
8271 |
|
|
* test/test_layer.py (TestLayer.test_arc_layer): Add some tests |
8272 |
|
|
for Layer.ShapesBoundingBox(). |
8273 |
|
|
|
8274 |
bh |
826 |
2003-05-06 Bernhard Herzog <[email protected]> |
8275 |
|
|
|
8276 |
|
|
* Resources/Projections/defaults.proj: Fix spelling of Mercator |
8277 |
|
|
|
8278 |
jonathan |
823 |
2003-05-05 Jonathan Coles <[email protected]> |
8279 |
|
|
|
8280 |
|
|
Addresses the "Full Layer Extent" wish of RTbug #1787. |
8281 |
|
|
|
8282 |
|
|
* Resources/Projections/defaults.proj: Added UK National Grid. |
8283 |
|
|
|
8284 |
|
|
* Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option. |
8285 |
|
|
(MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow() |
8286 |
|
|
when the user selects the menu option. |
8287 |
|
|
|
8288 |
|
|
* Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and |
8289 |
|
|
scales the given layer on the canvas using the map projection. |
8290 |
|
|
|
8291 |
bh |
819 |
2003-05-05 Bernhard Herzog <[email protected]> |
8292 |
|
|
|
8293 |
|
|
Convert the table implementations to a new table interface. All |
8294 |
|
|
tables use a common mixin class to provide backwards compatibility |
8295 |
|
|
until all table users have been updated. |
8296 |
|
|
|
8297 |
|
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to |
8298 |
|
|
provide backwards compatibility for table classes implementing the |
8299 |
|
|
new interface |
8300 |
|
|
(DBFTable, MemoryTable): Implement the new table interface. Use |
8301 |
|
|
OldTableInterfaceMixin as base for compatibility |
8302 |
|
|
(DBFColumn, MemoryColumn): New. Column description for DBFTable |
8303 |
|
|
and MemoryTable resp. |
8304 |
|
|
|
8305 |
|
|
* test/test_dbf_table.py: New. Test cases for the DBFTable with |
8306 |
|
|
the new table interface. |
8307 |
|
|
|
8308 |
|
|
* test/test_memory_table.py: New. Test cases for the MemoryTable |
8309 |
|
|
with the new table interface. |
8310 |
|
|
|
8311 |
|
|
* test/test_table.py: Document the all tests in this file as only |
8312 |
|
|
for backwards compatibility. The equivalent tests for the new |
8313 |
|
|
interface are in test_memory_table.py and test_dbf_table.py |
8314 |
|
|
(MemoryTableTest.test_read): field_info should be returning tuples |
8315 |
|
|
with four items |
8316 |
|
|
(MemoryTableTest.test_write): Make doc-string a more precise. |
8317 |
|
|
|
8318 |
|
|
* Thuban/Model/transientdb.py (TransientTableBase): Convert to new |
8319 |
|
|
table interface. Derive from from OldTableInterfaceMixin for |
8320 |
|
|
compatibility. |
8321 |
|
|
(TransientTableBase.create): New intance variable column_map to |
8322 |
|
|
map from names and indices to column objects |
8323 |
|
|
(TransientTable.create): Use the new table interface of the input |
8324 |
|
|
table |
8325 |
|
|
(AutoTransientTable): Convert to new table interface. Derive from |
8326 |
|
|
from OldTableInterfaceMixin for compatibility. |
8327 |
|
|
(AutoTransientTable.write_record): Removed. It's not implemented |
8328 |
|
|
yet and we still have to decide how to handle writing with the new |
8329 |
|
|
table and data framework. |
8330 |
|
|
|
8331 |
|
|
* test/test_transientdb.py |
8332 |
|
|
(TestTransientTable.run_iceland_political_tests) |
8333 |
|
|
(TestTransientTable.test_transient_joined_table): Use the new |
8334 |
|
|
table interface |
8335 |
|
|
|
8336 |
jonathan |
817 |
2003-05-05 Jonathan Coles <[email protected]> |
8337 |
|
|
|
8338 |
|
|
This is namely a collection of UI updates to improve user interactivity. |
8339 |
|
|
Tabbing between controls now exists and you can use ESC to close dialog |
8340 |
|
|
boxes; ENTER will active the default button. |
8341 |
|
|
|
8342 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the |
8343 |
|
|
order that the controls are created so that tabbing works correctly. |
8344 |
|
|
(ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the |
8345 |
|
|
wxDialog can handle the default button correctly. |
8346 |
|
|
(ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the |
8347 |
|
|
same reasons as for OnOK. |
8348 |
|
|
(GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor |
8349 |
|
|
when we ask the table for the maximum/minimum values of a field |
8350 |
|
|
which could take a very long time. |
8351 |
|
|
|
8352 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange the |
8353 |
|
|
order that the controls are created so that tabbing works correctly. |
8354 |
|
|
(SelectPropertiesDialog.__init__): Rearrange the order that the |
8355 |
|
|
controls are created so that tabbing works correctly. |
8356 |
|
|
|
8357 |
|
|
* Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it |
8358 |
|
|
to derive from a wxDialog but behave like the original implementation |
8359 |
|
|
which was derived from a wxFrame. wxDialog provides useful key |
8360 |
|
|
handling functionality like ESC calling OnCancel and ENTER calling |
8361 |
|
|
OnOK which is lost with wxFrame. |
8362 |
|
|
|
8363 |
|
|
* Thuban/UI/mainwindow.py: Add "..." to menu items that will open |
8364 |
|
|
new dialogs. |
8365 |
|
|
|
8366 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the |
8367 |
|
|
order that the controls are created so that tabbing works correctly. |
8368 |
|
|
(ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour. |
8369 |
|
|
(ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour. |
8370 |
|
|
(ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour. |
8371 |
|
|
(ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we |
8372 |
|
|
can provide the "UK National Grid" as a default projection. |
8373 |
|
|
(UTMPanel.__init__): Rearrange the order that the controls are |
8374 |
|
|
created so that tabbing works correctly. |
8375 |
|
|
|
8376 |
bh |
809 |
2003-05-05 Bernhard Herzog <[email protected]> |
8377 |
|
|
|
8378 |
bh |
811 |
* extensions/thuban/wxproj.cpp: Fix some of the comments. |
8379 |
|
|
(project_point): If a map projection but no layer projection is |
8380 |
|
|
given, convert degrees to radians before applying the map |
8381 |
|
|
projection. |
8382 |
|
|
|
8383 |
bh |
809 |
* Thuban/UI/tableview.py (TableGrid.disallow_messages) |
8384 |
|
|
(TableGrid.allow_messages): New methods to make it possible to |
8385 |
|
|
inhibit message sending. |
8386 |
|
|
(TableGrid.issue): Only send the message if not inhibited. |
8387 |
|
|
(LayerTableGrid.select_shape): Use the new methods to make sure |
8388 |
|
|
that no ROW_SELECTED message is sent while we're updating the |
8389 |
|
|
selected rows to match the selected shapes. |
8390 |
|
|
|
8391 |
jan |
807 |
2003-05-02 Jan-Oliver Wagner <[email protected]> |
8392 |
|
|
|
8393 |
|
|
Implementation of MemoryTable. |
8394 |
|
|
|
8395 |
|
|
* Thuban/Model/table.py (MemoryTable): New. Quite simple table |
8396 |
|
|
implementation that operates on a list of tuples. All of the data |
8397 |
|
|
are kept in the memory. |
8398 |
|
|
|
8399 |
|
|
* test/test_table.py (MemoryTableTest): New. |
8400 |
|
|
|
8401 |
|
|
* test/test_transientdb.py (SimpleTable): Removed. |
8402 |
|
|
(TestTransientTable.test_transient_joined_table, |
8403 |
|
|
(TestTransientTable.test_transient_table_read_twice): Replaced |
8404 |
|
|
SimpleTable by MemoryTable. |
8405 |
|
|
|
8406 |
jonathan |
793 |
2003-04-30 Jonathan Coles <[email protected]> |
8407 |
|
|
|
8408 |
jonathan |
803 |
* Data/iceland_sample.thuban: Now contains correct projections |
8409 |
|
|
for each of the layers. |
8410 |
|
|
|
8411 |
|
|
* Resources/Projections/defaults.proj: Geographic projection |
8412 |
|
|
contains unit conversion parameter. |
8413 |
|
|
|
8414 |
|
|
2003-04-30 Jonathan Coles <[email protected]> |
8415 |
|
|
|
8416 |
jonathan |
793 |
The most important part of this putback is the projection changes. |
8417 |
|
|
It should now be possible to specify the projection that a layer |
8418 |
|
|
is in and then specify a different projection for the map. The |
8419 |
|
|
projection dialog has an extra parameter for a geographic projection |
8420 |
|
|
which lets the user select if the input is in degrees or radians. |
8421 |
|
|
|
8422 |
|
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring |
8423 |
|
|
to say that the parameter is a tuple of unprojected |
8424 |
|
|
points (which is what the callers to this method were assuming). |
8425 |
|
|
Also, since the points are unprojected we need to projected them. |
8426 |
|
|
|
8427 |
|
|
* Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp, |
8428 |
|
|
LegendTree.MoveCurrentItemDown): If the layer or any of the layer's |
8429 |
|
|
groups are selected, move the layer up/down. Fixes RTbug #1833. |
8430 |
|
|
|
8431 |
|
|
* Thuban/UI/mainwindow.py: Move menu item map_rename up. |
8432 |
|
|
|
8433 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing |
8434 |
|
|
parameter in call to SetClientData. |
8435 |
|
|
(GeoPanel): Add support for selecting the units that the |
8436 |
|
|
source data is in (Radians or Degrees). |
8437 |
|
|
|
8438 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize |
8439 |
|
|
the rendering loop by reducing the number of if's, removing the |
8440 |
|
|
unnecessary try/except block, and checking if the old group |
8441 |
|
|
is the same as the new one (which happens a lot if there is |
8442 |
|
|
no classification, or lots of shapes are in the same group). |
8443 |
|
|
|
8444 |
|
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block |
8445 |
|
|
around the redraw routine to try to catch problems that the user |
8446 |
|
|
may create by selecting invalid projections for the data set and |
8447 |
|
|
map. Clears the display if there are any problems and prints the |
8448 |
|
|
error. |
8449 |
|
|
(MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled |
8450 |
|
|
rectangle. |
8451 |
|
|
|
8452 |
|
|
* extensions/thuban/wxproj.cpp (project_point): First invert the |
8453 |
|
|
supplied point (which should be in projected coordinates) using |
8454 |
|
|
the layer's projection and then project the point using the |
8455 |
|
|
map's projection. |
8456 |
|
|
(project_points): Use project_point() to project each point. |
8457 |
|
|
|
8458 |
jan |
792 |
2003-04-30 Jan-Oliver Wagner <[email protected]> |
8459 |
|
|
|
8460 |
|
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug: |
8461 |
|
|
don't set the Classification to None if the classfication field |
8462 |
|
|
is None (ie only a DEFAULT). |
8463 |
|
|
|
8464 |
bh |
786 |
2003-04-30 Bernhard Herzog <[email protected]> |
8465 |
|
|
|
8466 |
bh |
790 |
* Thuban/UI/view.py: Fix some typos. |
8467 |
|
|
|
8468 |
bh |
788 |
* Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do |
8469 |
|
|
not pop up the dialog if the selection becomes empty (this could |
8470 |
|
|
happen if e.g. a new selection is opened while the identify tool |
8471 |
|
|
is active and dialog had been closed) |
8472 |
|
|
|
8473 |
|
|
2003-04-30 Bernhard Herzog <[email protected]> |
8474 |
|
|
|
8475 |
bh |
786 |
* Thuban/Model/transientdb.py (TransientTableBase.__init__): New |
8476 |
|
|
instance variable read_record_last_result |
8477 |
|
|
(TransientTableBase.read_record): Make sure reading the same |
8478 |
|
|
record twice works. The implementation uses the new instance |
8479 |
|
|
variable read_record_last_result |
8480 |
|
|
|
8481 |
|
|
* test/test_transientdb.py |
8482 |
|
|
(TestTransientTable.test_transient_table_read_twice): New test |
8483 |
|
|
case for the above bug-fix. |
8484 |
|
|
|
8485 |
jonathan |
793 |
2003-04-29 Jonathan Coles <[email protected]> |
8486 |
|
|
|
8487 |
|
|
* Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832. |
8488 |
|
|
|
8489 |
|
|
* Thuban/UI/classgen.py: Remove all uses of Str2Num. |
8490 |
|
|
|
8491 |
|
|
* Thuban/UI/classifier.py: Remove all uses of Str2Num. |
8492 |
|
|
(ClassTable.SetValueAsCustom): Rename keyword argument in |
8493 |
|
|
ClassGroup* constructors to match argument name. |
8494 |
|
|
|
8495 |
bh |
779 |
2003-04-29 Bernhard Herzog <[email protected]> |
8496 |
|
|
|
8497 |
|
|
* Thuban/Model/session.py (Session.Destroy): Explicitly close the |
8498 |
|
|
transient DB if it exists to make sure it doesn't leave a journal |
8499 |
|
|
file in the temp directory. |
8500 |
|
|
|
8501 |
|
|
* Thuban/Model/transientdb.py (TransientDatabase.close): Set |
8502 |
|
|
self.conn to None after closing the connection to make sure it's |
8503 |
|
|
not closed twice |
8504 |
|
|
|
8505 |
jonathan |
767 |
2003-04-29 Jonathan Coles <[email protected]> |
8506 |
|
|
|
8507 |
jonathan |
769 |
Add a visible parameter in the layer XML tag. The default value is |
8508 |
|
|
"true". If anything other than "false" is specified we also assume |
8509 |
jonathan |
776 |
"true". Addresses RTbug #1025. |
8510 |
jonathan |
769 |
|
8511 |
|
|
* Doc/thuban.dtd: Add visible parameter to a layer. |
8512 |
|
|
|
8513 |
|
|
* Thuban/Model/layer.py (BaseLayer.__init__): Change default value |
8514 |
|
|
of visible from 1 to True. |
8515 |
|
|
(Layer.__init__): Change default value of visible from 1 to True. |
8516 |
|
|
|
8517 |
|
|
* Thuban/Model/load.py (SessionLoader.start_layer): Read visible |
8518 |
|
|
parameter. |
8519 |
|
|
|
8520 |
|
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save visible |
8521 |
|
|
parameter. |
8522 |
|
|
|
8523 |
|
|
* test/test_load.py: Add new test data contents_test_visible. |
8524 |
|
|
(LoadSessionTest.setUp): save test data. |
8525 |
|
|
(LoadSessionTest.testLayerVisibility): Test if the visible flag |
8526 |
|
|
is loaded correctly. |
8527 |
|
|
|
8528 |
|
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Add test |
8529 |
|
|
for saving an invisible layer. |
8530 |
|
|
|
8531 |
|
|
2003-04-29 Jonathan Coles <[email protected]> |
8532 |
|
|
|
8533 |
jonathan |
767 |
* Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the |
8534 |
|
|
legend dialog box and tell it to change its map to the one |
8535 |
|
|
supplied to SetMap(). Fixes RTbug #1770. |
8536 |
|
|
|
8537 |
bh |
764 |
2003-04-29 Bernhard Herzog <[email protected]> |
8538 |
|
|
|
8539 |
bh |
766 |
Next step of table implementation. Introduce a transient database |
8540 |
|
|
using SQLite that some of the data is copied to on demand. This |
8541 |
|
|
allows us to do joins and other operations that require an index |
8542 |
|
|
for good performance with reasonable efficiency. Thuban now needs |
8543 |
|
|
SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I |
8544 |
|
|
haven't tested that. |
8545 |
|
|
|
8546 |
|
|
* Thuban/Model/transientdb.py: New. Transient database |
8547 |
|
|
implementation. |
8548 |
|
|
|
8549 |
|
|
* test/test_transientdb.py: New. Tests for the transient DB |
8550 |
|
|
classes. |
8551 |
|
|
|
8552 |
|
|
* Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New |
8553 |
|
|
classes to help automatically remove temporary files and |
8554 |
|
|
directories. |
8555 |
|
|
(Session.__init__): New instance variables temp_dir for the |
8556 |
|
|
temporary directory and transient_db for the SQLite database |
8557 |
|
|
(Session.temp_directory): New. Create a temporary directory if not |
8558 |
|
|
yet done and return its name. Use AutoRemoveDir to have it |
8559 |
|
|
automatically deleted |
8560 |
|
|
(Session.TransientDB): Instantiate the transient database if not |
8561 |
|
|
done yet and return it. |
8562 |
|
|
|
8563 |
|
|
* Thuban/Model/data.py (ShapefileStore.__init__): Use an |
8564 |
|
|
AutoTransientTable so that data is copied to the transient DB on |
8565 |
|
|
demand. |
8566 |
|
|
(SimpleStore): New class that simply combines a table and a |
8567 |
|
|
shapefile |
8568 |
|
|
|
8569 |
|
|
* Thuban/Model/table.py (Table, DBFTable): Rename Table into |
8570 |
|
|
DBFTable and update its doc-string to reflect the fact that this |
8571 |
|
|
is only the table interface to a DBF file. Table is now an alias |
8572 |
|
|
for DBFTable for temporary backwards compatibility. |
8573 |
|
|
|
8574 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Make sure |
8575 |
|
|
the last reference to the session goes away so that the temporary |
8576 |
|
|
files are removed properly. |
8577 |
|
|
|
8578 |
|
|
* test/test_load.py (LoadSessionTest.tearDown): Remove the |
8579 |
|
|
reference to the session to make sure the temporary files are |
8580 |
|
|
removed. |
8581 |
|
|
|
8582 |
|
|
2003-04-29 Bernhard Herzog <[email protected]> |
8583 |
|
|
|
8584 |
bh |
764 |
* Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn |
8585 |
|
|
the __parser instance variable into a normal local variable in |
8586 |
|
|
read. It's only used there and read will never be called more than |
8587 |
|
|
once. Plus it introduces a reference cycle that keeps can keep the |
8588 |
|
|
session object alive for a long time. |
8589 |
|
|
|
8590 |
jonathan |
767 |
2003-04-29 Jonathan Coles <[email protected]> |
8591 |
jonathan |
735 |
|
8592 |
jonathan |
762 |
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
8593 |
|
|
Projection an immutable item. Fixes RTbug #1825. |
8594 |
|
|
(Projection.__init__): Initialize instance variables here. |
8595 |
|
|
(ProjFile.Replace): New. Replace the given projection object with |
8596 |
|
|
the new projection object. This solves the problem of needing the |
8597 |
|
|
mutator Projection.SetProjection() in the ProjFrame class and |
8598 |
|
|
allows a projection to change parameters without changing its |
8599 |
|
|
location in the file. |
8600 |
|
|
|
8601 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should |
8602 |
|
|
be of type wxSAVE and should verify overwriting a file. |
8603 |
|
|
|
8604 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new |
8605 |
|
|
ProjFile.Replace() method instead of the mutator |
8606 |
|
|
Projection.SetProjection(). Also requires that we reassign the |
8607 |
|
|
client data to the new projection. |
8608 |
|
|
|
8609 |
|
|
* test/test_proj.py (TestProjection.test): Test GetName() and |
8610 |
|
|
GetAllParameters() |
8611 |
|
|
(TestProjFile.test): Remove tests for Set*() methods. Add tests |
8612 |
|
|
for Replace(). |
8613 |
|
|
|
8614 |
|
|
2003-04-25 Jonathan Coles <[email protected]> |
8615 |
|
|
|
8616 |
jonathan |
756 |
* Thuban/Model/save.py (SessionSaver.write_projection): Make sure |
8617 |
|
|
to save the name of the projection. |
8618 |
|
|
|
8619 |
|
|
* test/test_save.py (SaveSessionTest.testLayerProjection): New |
8620 |
|
|
test to verify layer projections are saved correctly. |
8621 |
|
|
|
8622 |
|
|
2003-04-25 Jonathan Coles <[email protected]> |
8623 |
|
|
|
8624 |
jonathan |
753 |
* Thuban/Model/proj.py (Projection.SetName): Set the name |
8625 |
|
|
to "Unknown" if name is None. |
8626 |
|
|
(Projection.SetAllParameters): New. Set the projection's |
8627 |
|
|
parameter list to the one supplied. |
8628 |
|
|
(Projection.SetProjection): New. Set the projection's |
8629 |
|
|
properties to those of the supplied Projection. |
8630 |
|
|
|
8631 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set |
8632 |
|
|
the dialog title to include the map's title. |
8633 |
|
|
(MainWindow.LayerProjection): Set the dialog title to include |
8634 |
|
|
the layer's title. |
8635 |
|
|
|
8636 |
|
|
* Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate |
8637 |
|
|
error dialogs into a single method call. |
8638 |
|
|
(ProjFrame.__VerifyButtons): Add more states to check. |
8639 |
|
|
(ProjFrame.__GetProjection): Return the current state of an |
8640 |
|
|
edited projection or None. |
8641 |
|
|
(ProjFrame.__FillAvailList): Remove checks for states that |
8642 |
|
|
shouldn't exist. |
8643 |
|
|
(ProjFrame._OnNew): Clear all selected items and supply |
8644 |
|
|
a projection panel if necessary. |
8645 |
|
|
|
8646 |
|
|
* test/test_proj.py (TestProjFile.test): Add tests for |
8647 |
|
|
ProjFile.SetAllParameters, ProjFile.SetProjection, |
8648 |
|
|
ProjFile.SetName. |
8649 |
|
|
|
8650 |
|
|
2003-04-25 Jonathan Coles <[email protected]> |
8651 |
|
|
|
8652 |
jonathan |
748 |
* Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now |
8653 |
|
|
takes an optional argument to select the current projection. |
8654 |
|
|
This does not guarantee that the item is visible due to |
8655 |
|
|
limited wxWindows functionality. Fixes RTBug #1821. |
8656 |
|
|
|
8657 |
|
|
2003-04-25 Jonathan Coles <[email protected]> |
8658 |
|
|
|
8659 |
jonathan |
743 |
* Thuban/Model/load.py (SessionLoader.start_projection): Remember |
8660 |
|
|
the projection name and use it when constructing the Projection |
8661 |
|
|
object. |
8662 |
|
|
|
8663 |
|
|
* Thuban/Model/proj.py (Projection.__init__): Change the default |
8664 |
|
|
value for 'name' to None and then test if name is equal to None |
8665 |
|
|
in the body of the constructor. This way the caller doesn't have to |
8666 |
|
|
know what the default value should be. Namely, useful in load.py |
8667 |
|
|
where we have to pick a default value if the 'name' parameter |
8668 |
|
|
doesn't exist in the XML file. |
8669 |
|
|
|
8670 |
|
|
* test/test_load.py (LoadSessionTest.testLayerProjection): New. |
8671 |
|
|
Tests a file where a layer has a projection. |
8672 |
|
|
|
8673 |
|
|
2003-04-25 Jonathan Coles <[email protected]> |
8674 |
|
|
|
8675 |
jonathan |
735 |
* Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the |
8676 |
|
|
tree for projection information. |
8677 |
|
|
|
8678 |
|
|
* Thuban/Model/load.py (XMLReader.GetFilename): Renamed from |
8679 |
|
|
XMLReader.GetFileName. |
8680 |
|
|
(SessionLoader): Added support for loading projection tags that |
8681 |
|
|
appear inside a layer. |
8682 |
|
|
|
8683 |
|
|
* Thuban/Model/proj.py (ProjFile): Document the class. Move |
8684 |
|
|
back to using a list because the order of the projections in |
8685 |
|
|
the file is important to maintain. Fixes RTbug #1817. |
8686 |
|
|
|
8687 |
|
|
* Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName |
8688 |
|
|
to ProjFile.GetFilename. |
8689 |
|
|
|
8690 |
|
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save projection |
8691 |
|
|
information. |
8692 |
|
|
|
8693 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from |
8694 |
|
|
ProjFrame._OnSaveAs. Removed old dead code from previous |
8695 |
|
|
implementation. |
8696 |
|
|
(ProjFrame._OnExport): Add support for exporting more than one |
8697 |
|
|
projection to a single file. |
8698 |
|
|
(ProjFrame.__FillAvailList): use string formatting (% operator) |
8699 |
|
|
to build strings that are (partly) translated. Fixes RTbug #1818. |
8700 |
|
|
|
8701 |
|
|
* test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile |
8702 |
|
|
class. |
8703 |
|
|
|
8704 |
bh |
734 |
2003-04-24 Bernhard Herzog <[email protected]> |
8705 |
|
|
|
8706 |
|
|
* po/es.po: Updated Spanish translation by Daniel Calvelo Aros |
8707 |
|
|
|
8708 |
|
|
* po/fr.po: New. French translation by Daniel Calvelo Aros |
8709 |
|
|
|
8710 |
|
|
* Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate |
8711 |
|
|
empty strings. |
8712 |
|
|
|
8713 |
jonathan |
735 |
2003-04-24 Jonathan Coles <[email protected]> |
8714 |
jonathan |
724 |
|
8715 |
|
|
* Thuban/Model/layer.py (Layer.GetProjection): New. Needed to |
8716 |
|
|
implement the interface that the ProjFrame dialog expects. |
8717 |
|
|
|
8718 |
|
|
* Thuban/Model/proj.py (Projection.SetName): New. Allows the |
8719 |
|
|
name of the projection to be changed. |
8720 |
|
|
(ProjFile): Use a dictionary instead of a list so that removing |
8721 |
|
|
projections is easier and we are sure about uniqueness. |
8722 |
|
|
(ProjFile.Remove): Remove the given projection object. |
8723 |
|
|
|
8724 |
|
|
* Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles): |
8725 |
|
|
Return a list with only one projection file instead of searching for |
8726 |
|
|
any projection file. This simplifies many things if the user can |
8727 |
|
|
only have one system file and one user file. |
8728 |
|
|
|
8729 |
|
|
* Thuban/UI/classgen.py: Change all references to |
8730 |
|
|
genCombo to genChoice. |
8731 |
|
|
|
8732 |
|
|
* Thuban/UI/mainwindow.py: Add a Projection option under the |
8733 |
|
|
layer menu. |
8734 |
|
|
(MainWindow.LayerProjection): New. Open up a projection window |
8735 |
|
|
for a layer. |
8736 |
|
|
|
8737 |
|
|
* Thuban/UI/projdialog.py: Large changes to how the dialog is |
8738 |
|
|
laid out. Use three panels instead of one. One for the list of |
8739 |
|
|
projections, one for the edit controls, and one for the buttons. |
8740 |
|
|
Fixed resizing problems so that the dialog resizes correctly |
8741 |
|
|
when the projection panel changes. Added import/export, save, and |
8742 |
|
|
new buttons/functionality. |
8743 |
|
|
|
8744 |
bh |
723 |
2003-04-24 Bernhard Herzog <[email protected]> |
8745 |
|
|
|
8746 |
|
|
First step towards table management. Introduce a simple data |
8747 |
|
|
abstraction so that we replace the data a layer uses more easily |
8748 |
|
|
in the next step. |
8749 |
|
|
|
8750 |
|
|
* Thuban/Model/data.py: New file with a simple data abstraction |
8751 |
|
|
that bundles shapefile and dbffile into one object. |
8752 |
|
|
|
8753 |
|
|
* Thuban/Model/session.py (Session.OpenShapefile): New method to |
8754 |
|
|
open shapefiles and return a shape store object |
8755 |
|
|
|
8756 |
|
|
* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store |
8757 |
|
|
object instead of a shapefile filename. This introduces a new |
8758 |
|
|
instance variable store holding the datastore. For intermediate |
8759 |
|
|
backwards compatibility keep the old instance variables. |
8760 |
|
|
(open_shapefile): Removed. No longer needed with the shape store. |
8761 |
|
|
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and |
8762 |
|
|
get the shape store used by a layer. |
8763 |
|
|
(Layer.Destroy): No need to explicitly destroy the shapefile or |
8764 |
|
|
table anymore. |
8765 |
|
|
|
8766 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer) |
8767 |
|
|
(MainWindow.AddLayer): Use the session's OpenShapefile method to |
8768 |
|
|
open shapefiles |
8769 |
|
|
|
8770 |
|
|
* Thuban/Model/load.py (ProcessSession.start_layer): Use the |
8771 |
|
|
session's OpenShapefile method to open shapefiles |
8772 |
|
|
|
8773 |
|
|
* test/test_classification.py |
8774 |
|
|
(TestClassification.test_classification): Use the session's |
8775 |
|
|
OpenShapefile method to open shapefiles and build the filename in |
8776 |
|
|
a more platform independed way |
8777 |
|
|
|
8778 |
|
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
8779 |
|
|
Implement to have a session to use in the tests |
8780 |
|
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
8781 |
|
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the |
8782 |
|
|
session's OpenShapefile method to open shapefiles |
8783 |
|
|
(TestLayerLegend.setUp): Instantiate a session so that we can use |
8784 |
|
|
it to open shapefiles. |
8785 |
|
|
(TestLayerLegend.tearDown): Make sure that all references to |
8786 |
|
|
layers and session are removed otherwise we may get a resource |
8787 |
|
|
leak |
8788 |
|
|
|
8789 |
|
|
* test/test_map.py (TestMapAddLayer.test_add_layer) |
8790 |
|
|
(TestMapWithContents.setUp): Instantiate a session so that we can |
8791 |
|
|
use it to open shapefiles. |
8792 |
|
|
(TestMapWithContents.tearDown): Make sure that all references to |
8793 |
|
|
layers, maps and sessions are removed otherwise we may get a |
8794 |
|
|
resource leak |
8795 |
|
|
("__main__"): use support.run_tests() so that more info about |
8796 |
|
|
uncollected garbage is printed |
8797 |
|
|
|
8798 |
|
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Use the |
8799 |
|
|
session's OpenShapefile method to open shapefiles |
8800 |
|
|
("__main__"): use support.run_tests() so that more info about |
8801 |
|
|
uncollected garbage is printed |
8802 |
|
|
|
8803 |
|
|
* test/test_selection.py (TestSelection.tearDown): Make sure that |
8804 |
|
|
all references to the session and the selection are removed |
8805 |
|
|
otherwise we may get a resource leak |
8806 |
|
|
(TestSelection.get_layer): Instantiate a session so that we can |
8807 |
|
|
use it to open shapefiles. |
8808 |
|
|
("__main__"): use support.run_tests() so that more info about |
8809 |
|
|
uncollected garbage is printed |
8810 |
|
|
|
8811 |
|
|
* test/test_session.py (TestSessionBase.tearDown) |
8812 |
|
|
(TestSessionWithContent.tearDown): Make sure that all references |
8813 |
|
|
to the session and layers are removed otherwise we may get a |
8814 |
|
|
resource leak |
8815 |
|
|
(TestSessionWithContent.setUp): Use the session's OpenShapefile |
8816 |
|
|
method to open shapefiles |
8817 |
|
|
|
8818 |
jonathan |
721 |
2003-04-24 Jonathan Coles <[email protected]> |
8819 |
|
|
|
8820 |
|
|
* Thuban/Model/load.py (XMLReader.read): Should have been checking |
8821 |
|
|
if the file_or_filename object had the 'read' attribute. |
8822 |
|
|
|
8823 |
jonathan |
715 |
2003-04-23 Jonathan Coles <[email protected]> |
8824 |
|
|
|
8825 |
jonathan |
720 |
* Thuban/Model/resource.py: Fixes RTbug #1813. |
8826 |
|
|
(ReadProjFile): Add documentation about which exceptions are raised. |
8827 |
|
|
Always pass the exceptions up to the caller. |
8828 |
|
|
(GetProjFiles): If the directory can't be read return an empty list. |
8829 |
|
|
If any of the proj files can't be read skip that file and go |
8830 |
|
|
on to the next one. |
8831 |
|
|
|
8832 |
|
|
* test/test_proj.py: Added test cases to handle nonexistent files, |
8833 |
|
|
unreadable files, and files that don't parse correctly. |
8834 |
|
|
|
8835 |
|
|
2003-04-23 Jonathan Coles <[email protected]> |
8836 |
|
|
|
8837 |
jonathan |
716 |
Projection dialog. Allows the user to select from a list |
8838 |
|
|
of projection templates and optionally edit them and save new ones. |
8839 |
|
|
|
8840 |
|
|
* Thuban/UI/projdialog.py (ProjFrame): New. Main dialog. |
8841 |
|
|
(ProjPanel): Base class for projection specific panels. |
8842 |
|
|
(TMPanel): Projection panel for Transverse Mercartor. |
8843 |
|
|
(UTMPanel): Projection panel for Universal Transverse Mercartor. |
8844 |
|
|
(LCCPanel): Projection panel for Lambert Conic Conformal. |
8845 |
|
|
(GeoPanel): Projetion panel for Geographic Projection. |
8846 |
|
|
|
8847 |
|
|
2003-04-23 Jonathan Coles <[email protected]> |
8848 |
|
|
|
8849 |
jonathan |
715 |
* Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to |
8850 |
|
|
promote symmetry. There now exists XMLReader and XMLWriter. |
8851 |
|
|
(XMLReader.read): New. Call to read the given file descriptor or |
8852 |
|
|
filename. |
8853 |
|
|
(XMLReader.close): New. Make sure the file is closed. |
8854 |
|
|
(XMLReader.GetFileName): New. Return just the file name that is being |
8855 |
|
|
read from. |
8856 |
|
|
(XMLReader.GetDirectory): New. Return just the directory of the file |
8857 |
|
|
that is being read. |
8858 |
|
|
(XMLReader.AddDispatchers): New. Take a dictionary which contains |
8859 |
|
|
the names of functions to call as the XML tree is parsed. |
8860 |
|
|
(XMLReader.startElementNS): Updated to use new dispatcher dictionary. |
8861 |
|
|
(XMLReader.endElementNS): Updated to use new dispatcher dictionary. |
8862 |
|
|
(SessionLoader): Removed class variables start_dispatcher and |
8863 |
|
|
end_dispatcher since this functionality is now part of a class |
8864 |
|
|
instance. Fixes RTbug #1808. |
8865 |
|
|
(SessionLoader.__init__): Add dispatcher functions. |
8866 |
|
|
(load_xmlfile): Code was moved into the XMLReader.read(). |
8867 |
|
|
(load_session): Use modified SessionLoader. |
8868 |
|
|
|
8869 |
|
|
* Thuban/Model/map.py (Map.GetProjection): New. Returns the |
8870 |
|
|
map's projection. |
8871 |
|
|
|
8872 |
|
|
* Thuban/Model/proj.py (Projection.GetParameters): Renamed to |
8873 |
|
|
GetAllParameters. |
8874 |
|
|
(Projection.GetParameter): Returns the value for the given parameter. |
8875 |
|
|
|
8876 |
|
|
* Thuban/Model/resource.py: Use XMLReader and XMLWriter. |
8877 |
|
|
(GetProjFiles): Renamed from GetProjections. Now returns a list |
8878 |
|
|
of ProjFile objects. |
8879 |
|
|
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns |
8880 |
|
|
a list of ProjFile objects whose files are not user defined. |
8881 |
|
|
(GetUserProjFiles): Renamed from GetUserProjections. Returns a |
8882 |
|
|
list of ProjFile objects whose files are user defined. |
8883 |
|
|
(ProjFileReader): Extend new XMLReader. |
8884 |
|
|
|
8885 |
|
|
* Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to |
8886 |
|
|
promote symmetry. |
8887 |
|
|
|
8888 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice |
8889 |
|
|
control instead of a wxComboBox. wxChoice controls do not generate |
8890 |
|
|
events as the uses highlights possible choices which fixes problems |
8891 |
|
|
with resizing the dialog when the use selects an option. |
8892 |
|
|
|
8893 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice |
8894 |
|
|
control instead of a wxComboBox. |
8895 |
|
|
|
8896 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection |
8897 |
|
|
dialog. |
8898 |
|
|
|
8899 |
|
|
* test/test_proj.py (TestProjection.test): New tests for GetParameter |
8900 |
|
|
method. |
8901 |
|
|
|
8902 |
bh |
703 |
2003-04-22 Bernhard Herzog <[email protected]> |
8903 |
|
|
|
8904 |
bh |
705 |
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
8905 |
|
|
constants |
8906 |
|
|
|
8907 |
bh |
703 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
8908 |
|
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
8909 |
|
|
|
8910 |
bh |
700 |
2003-04-17 Bernhard Herzog <[email protected]> |
8911 |
|
|
|
8912 |
bh |
701 |
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
8913 |
|
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
8914 |
|
|
anymore. |
8915 |
|
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
8916 |
|
|
(Layer.ShapeType, Layer.Shape): No need to call |
8917 |
|
|
self.open_shapefile since it's always called in __init__ |
8918 |
|
|
|
8919 |
bh |
700 |
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
8920 |
|
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
8921 |
|
|
wxPython itself makes sure OnExit is called. |
8922 |
|
|
|
8923 |
jonathan |
688 |
2003-04-16 Jonathan Coles <[email protected]> |
8924 |
|
|
|
8925 |
jonathan |
693 |
Initial putback of projection management code. Includes new |
8926 |
|
|
classes to read and write projection files. The current load |
8927 |
|
|
and save classes were abstracted a bit so they could be reused. |
8928 |
|
|
The Projection class was extended to provide new methods and |
8929 |
|
|
have a name. |
8930 |
|
|
|
8931 |
|
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
8932 |
|
|
general XML reading methods that were part of ProcessSession. |
8933 |
|
|
|
8934 |
|
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
8935 |
|
|
name. |
8936 |
|
|
(ProjFile): New. Represents a file that contains projection |
8937 |
|
|
information. |
8938 |
|
|
|
8939 |
|
|
* Thuban/Model/resource.py: New. Contains general utilities |
8940 |
|
|
for read and writing projection files. |
8941 |
|
|
|
8942 |
|
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
8943 |
|
|
general XML writing methods that were part of SessionSaver. |
8944 |
|
|
(SessionSaver): Renamed from Saver. |
8945 |
|
|
|
8946 |
|
|
* test/test_proj.py: New test cases for the projection |
8947 |
|
|
file read and write functions. |
8948 |
|
|
|
8949 |
|
|
2003-04-16 Jonathan Coles <[email protected]> |
8950 |
|
|
|
8951 |
jonathan |
688 |
* Thuban/Model/classification.py: Use repr() around values |
8952 |
|
|
in the ClassGroup*.__repr__() methods so it is clearer when |
8953 |
|
|
a value is a string and when it is a number. |
8954 |
|
|
|
8955 |
|
|
* test/test_load.py: Rework the classification test to test |
8956 |
|
|
that we can load old files. |
8957 |
|
|
(testLabels): Test a file where the groups have labels. |
8958 |
|
|
|
8959 |
bh |
687 |
2003-04-16 Bernhard Herzog <[email protected]> |
8960 |
|
|
|
8961 |
|
|
Safer implementation of the performance enhancements of the |
8962 |
|
|
low-level renderer: |
8963 |
|
|
|
8964 |
|
|
* extensions/thuban/wxproj.cpp (extract_projection) |
8965 |
|
|
(extract_pointer): Rename extract_projection to extract_pointer |
8966 |
|
|
and redefine its purpose to return the pointer stored in a CObject |
8967 |
|
|
returned by the object's cobject method. Update all callers. |
8968 |
|
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
8969 |
|
|
handling of these low-level parameters so that each s_draw_info |
8970 |
|
|
instance is handled as a CObject at python level that also |
8971 |
|
|
contains real references to the actual python objects which |
8972 |
|
|
contain the values in the struct. Add free_draw_info as the |
8973 |
|
|
destructor. |
8974 |
|
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
8975 |
|
|
cobject containing an s_draw_info pointer. |
8976 |
|
|
|
8977 |
|
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
8978 |
|
|
method to instantiat the low-level render parameter |
8979 |
|
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
8980 |
|
|
commented out code. |
8981 |
|
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
8982 |
|
|
layer but the low-level render parameter |
8983 |
|
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
8984 |
|
|
parameter. |
8985 |
|
|
|
8986 |
jonathan |
673 |
2003-04-15 Jonathan Coles <[email protected]> |
8987 |
|
|
|
8988 |
jonathan |
680 |
* Thuban/Model/classification.py: Implemented __repr__ for |
8989 |
|
|
the ClassGroup* classes to make debugging a bit easier. |
8990 |
|
|
(ClassGroup.SetLabel): Check that the string is an instance |
8991 |
|
|
of StringTypes not StringType. Accounts for Unicode strings. |
8992 |
|
|
|
8993 |
|
|
* Thuban/Model/color.py: Implemented __repr__ to make |
8994 |
|
|
debugging a bit easier. |
8995 |
|
|
|
8996 |
|
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
8997 |
|
|
save the group label. |
8998 |
|
|
|
8999 |
|
|
* test/test_load.py (testClassification): New. Loads the |
9000 |
|
|
iceland_sample_test.thuban file and checks if it was loaded |
9001 |
|
|
correctly. |
9002 |
|
|
|
9003 |
|
|
2003-04-15 Jonathan Coles <[email protected]> |
9004 |
|
|
|
9005 |
jonathan |
673 |
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
9006 |
|
|
to improve rendering performance by initializing the variables |
9007 |
|
|
that are not change each time draw_polygon_shape() is called. |
9008 |
|
|
The values are stored in a global struct draw_info. |
9009 |
|
|
(draw_polygon_shape): Removed initialization code that is |
9010 |
|
|
now in draw_polygon_init(). |
9011 |
|
|
|
9012 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
9013 |
jonathan |
674 |
drawing initialization call to draw_polygon_init() |
9014 |
|
|
(MapRenderer.draw_polygon_shape): Use new signature of |
9015 |
|
|
draw_polygon_shape. |
9016 |
jonathan |
673 |
|
9017 |
jonathan |
674 |
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
9018 |
|
|
weirdness by setting the range to (1, maxint). |
9019 |
jonathan |
673 |
|
9020 |
jonathan |
674 |
* Thuban/Model/classification.py (ClassGroupProperties): Make |
9021 |
|
|
instance variables private and optimize comparison operator |
9022 |
|
|
by first checking if the color references are the same. |
9023 |
|
|
(ClassGroupSingleton): Make instance variables private. |
9024 |
|
|
(ClassGroupRange): Make instance variables private. |
9025 |
jonathan |
673 |
|
9026 |
jonathan |
674 |
* HOWTO-Release: Filled in missing steps for releasing packages. |
9027 |
|
|
|
9028 |
bh |
672 |
2003-04-15 Bernhard Herzog <[email protected]> |
9029 |
|
|
|
9030 |
|
|
First stab at internationalized messages: |
9031 |
|
|
|
9032 |
|
|
* Thuban/__init__.py (_): Implement the translation function for |
9033 |
|
|
real using the python gettext module. |
9034 |
|
|
|
9035 |
|
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
9036 |
|
|
translate empty strings. |
9037 |
|
|
|
9038 |
|
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
9039 |
|
|
Add a missing space to a warning message |
9040 |
|
|
|
9041 |
|
|
* po/README: New. Notes about the management of the translation |
9042 |
|
|
files. |
9043 |
|
|
|
9044 |
|
|
* po/Makefile: New. Makefile to help manage the translation files. |
9045 |
|
|
|
9046 |
|
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
9047 |
|
|
|
9048 |
|
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
9049 |
|
|
translations and support files in po/ |
9050 |
|
|
|
9051 |
|
|
* setup.py (data_files): Add the *.mo files to the data_files too |
9052 |
|
|
|
9053 |
|
|
* README: Add note about the translations when building from CVS |
9054 |
|
|
|
9055 |
jonathan |
669 |
2003-04-14 Jonathan Coles <[email protected]> |
9056 |
|
|
|
9057 |
|
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
9058 |
|
|
noticable under windows. Always assume the button bitmaps will |
9059 |
|
|
be there. Code clean up. |
9060 |
|
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
9061 |
|
|
images for the dock/undock button to the same images. |
9062 |
|
|
Work around for RTbug #1801. |
9063 |
|
|
|
9064 |
|
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
9065 |
|
|
be allowed to grow within the sizer. Fixes a bug under Windows |
9066 |
|
|
where the toolbar wasn't being drawn. |
9067 |
|
|
|
9068 |
frank |
664 |
2003-04-14 Frank Koormann <[email protected]> |
9069 |
|
|
|
9070 |
|
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
9071 |
|
|
Updated design to try to make the button functionality more |
9072 |
|
|
transparent. |
9073 |
|
|
|
9074 |
jonathan |
662 |
2003-04-14 Jonathan Coles <[email protected]> |
9075 |
|
|
|
9076 |
|
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
9077 |
|
|
finalize the intialization of the panel. |
9078 |
|
|
|
9079 |
|
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
9080 |
|
|
creation of the panel. Should be the last thing called in the |
9081 |
|
|
initializer of a subclass. |
9082 |
|
|
|
9083 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
9084 |
|
|
set the current selections in the combo boxes. This is needed |
9085 |
|
|
under Windows. |
9086 |
|
|
|
9087 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
9088 |
|
|
level panel to the dialog so that the background colors are |
9089 |
|
|
consistent under Windows. |
9090 |
|
|
|
9091 |
jonathan |
646 |
2003-04-11 Jonathan Coles <[email protected]> |
9092 |
|
|
|
9093 |
jonathan |
662 |
* Thuban/UI/classgen.py: Change color ramps to start at white |
9094 |
|
|
not black. |
9095 |
|
|
|
9096 |
|
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
9097 |
|
|
the legend changes. Fixes RTbug #1793. |
9098 |
|
|
|
9099 |
|
|
* test/test_classification.py: Added test for copying of |
9100 |
|
|
classifications. |
9101 |
|
|
|
9102 |
|
|
2003-04-11 Jonathan Coles <[email protected]> |
9103 |
|
|
|
9104 |
jonathan |
647 |
* Thuban/UI/resource.py: New. Centralize the loading of resources |
9105 |
|
|
such as bitmaps. |
9106 |
|
|
|
9107 |
|
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
9108 |
|
|
added images to the move buttons, added 'reverse' button. |
9109 |
|
|
(CustomRampPanel.__init__): Added images to the move buttons. |
9110 |
|
|
(GreyRamp): New. Generates a ramp from white to black. |
9111 |
|
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
9112 |
|
|
|
9113 |
|
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
9114 |
|
|
ID_PROPERTY_*. |
9115 |
|
|
(Classifier.__init__): Minor changes to the layout. |
9116 |
|
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
9117 |
|
|
title and update the dialog's title and the layer's title. |
9118 |
|
|
|
9119 |
|
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
9120 |
|
|
|
9121 |
|
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
9122 |
|
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
9123 |
|
|
if the layer's title changes. |
9124 |
|
|
|
9125 |
|
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
9126 |
|
|
to open a dialog to rename the map. |
9127 |
|
|
(MainWindow): Use new resource class to import bitmaps. |
9128 |
|
|
|
9129 |
|
|
2003-04-11 Jonathan Coles <[email protected]> |
9130 |
|
|
|
9131 |
jonathan |
646 |
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
9132 |
jonathan |
647 |
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
9133 |
|
|
Resources/Bitmaps/group_use_none.xpm, |
9134 |
|
|
Resources/Bitmaps/group_use_not.xpm, |
9135 |
|
|
Resources/Bitmaps/hide_layer.xpm, |
9136 |
|
|
Resources/Bitmaps/layer_properties.xpm, |
9137 |
|
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
9138 |
|
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
9139 |
|
|
New. |
9140 |
jonathan |
646 |
|
9141 |
jonathan |
636 |
2003-04-10 Jonathan Coles <[email protected]> |
9142 |
|
|
|
9143 |
jonathan |
644 |
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
9144 |
|
|
Should pass group to ClassGroup constructor. |
9145 |
|
|
|
9146 |
|
|
2003-04-10 Jonathan Coles <[email protected]> |
9147 |
|
|
|
9148 |
jonathan |
636 |
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
9149 |
|
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
9150 |
|
|
here. Implement SetVisible(), IsVisible(). |
9151 |
|
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
9152 |
|
|
constructor. |
9153 |
|
|
|
9154 |
|
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
9155 |
|
|
"Visible" check boxes. |
9156 |
|
|
(Classifier): Rename the buttons and refactor the code to match |
9157 |
|
|
the new labels. |
9158 |
|
|
|
9159 |
|
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
9160 |
|
|
Refactored the code to change variable names. |
9161 |
|
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
9162 |
|
|
|
9163 |
|
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
9164 |
|
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
9165 |
|
|
renamed to MainWindow.LayerEditProperties. |
9166 |
|
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
9167 |
|
|
(MainWindow.SetMap): Added the map name to the window title. |
9168 |
|
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
9169 |
|
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
9170 |
|
|
Functionality is found in the layer properties dialog. |
9171 |
|
|
|
9172 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
9173 |
|
|
draw visible groups. |
9174 |
|
|
|
9175 |
jonathan |
626 |
2003-04-09 Jonathan Coles <[email protected]> |
9176 |
|
|
|
9177 |
jonathan |
634 |
* Thuban/UI/classgen.py: Modifications to allow simple |
9178 |
|
|
addition and selection of new color schemes. |
9179 |
|
|
(MonochromaticRamp): New. Generates a ramp between two colors. |
9180 |
|
|
(RedRamp): New. Generates a ramp of all red. |
9181 |
|
|
(GreenRamp): New. Generates a ramp of all green. |
9182 |
|
|
(BlueRamp): New. Generates a ramp of all blue. |
9183 |
|
|
|
9184 |
|
|
2003-04-09 Jonathan Coles <[email protected]> |
9185 |
|
|
|
9186 |
jonathan |
626 |
* Thuban/Model/classification.py (Classification.__deepcopy__): |
9187 |
|
|
Need to copy over field and fieldType attributes. |
9188 |
|
|
|
9189 |
|
|
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
9190 |
|
|
maximum and minimum values over the entire table for a given |
9191 |
|
|
field. |
9192 |
|
|
(Table.GetUniqueValues): New. Retrieve all the unique values |
9193 |
|
|
in the table for a given field. |
9194 |
|
|
|
9195 |
|
|
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
9196 |
|
|
(GenUniquePanel): New. Controls to allow the user to select |
9197 |
|
|
which unique field values they would like in the classification. |
9198 |
|
|
(CustomRampPanel): Code that was in ClassGenDialog that allows |
9199 |
|
|
the user to select the properties for a custom ramp. |
9200 |
|
|
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
9201 |
|
|
|
9202 |
|
|
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
9203 |
|
|
(Classifier._SetClassification): Callback method so that the |
9204 |
|
|
class generator can set the classification in the grid. |
9205 |
|
|
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
9206 |
|
|
editing of a group properties class into a wxWindows control. |
9207 |
|
|
|
9208 |
|
|
* Thuban/UI/dock.py: It was decided that if the user closes |
9209 |
|
|
a dockable window the window should simply hide itself. That |
9210 |
|
|
way if the user wants to show the dock again it appears in the |
9211 |
|
|
same place as it was when it was closed. |
9212 |
|
|
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
9213 |
|
|
(DockableWindow._OnButtonClose): Hide the window instead of |
9214 |
|
|
destroying it. |
9215 |
|
|
(DockableWindow._OnClose): Hide the window instead of |
9216 |
|
|
destroying it. |
9217 |
|
|
|
9218 |
|
|
* Thuban/UI/legend.py (LegendTree): Use a private method to |
9219 |
|
|
consistently set the font and style of the text. Fixes RTbug #1786. |
9220 |
|
|
|
9221 |
|
|
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
9222 |
|
|
|
9223 |
bh |
623 |
2003-04-07 Bernhard Herzog <[email protected]> |
9224 |
|
|
|
9225 |
bh |
625 |
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
9226 |
|
|
to the map module |
9227 |
|
|
|
9228 |
|
|
2003-04-07 Bernhard Herzog <[email protected]> |
9229 |
|
|
|
9230 |
bh |
623 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
9231 |
|
|
favor of ToggleSessionTree |
9232 |
|
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
9233 |
|
|
the session tree. |
9234 |
|
|
(MainWindow.SessionTreeShown): New method to return whether the |
9235 |
|
|
session tree is currently shown. |
9236 |
|
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
9237 |
|
|
legend |
9238 |
|
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
9239 |
|
|
LegendShown |
9240 |
|
|
(MainWindow.LegendShown): New method to return whether the legend |
9241 |
|
|
is currently shown. |
9242 |
|
|
(_method_command): Add checked parameter so we can define check |
9243 |
|
|
menu items |
9244 |
|
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
9245 |
|
|
mainwindow methods. |
9246 |
|
|
(show_session_tree, show_legend commands): Removed. |
9247 |
|
|
(toggle_session_tree, toggle_legend commands): New commands to |
9248 |
|
|
toggle the visibility of the dialogs |
9249 |
|
|
|
9250 |
jonathan |
612 |
2003-04-07 Jonathan Coles <[email protected]> |
9251 |
|
|
|
9252 |
jonathan |
619 |
* Thuban/UI/classgen.py: Fix Windows problem. |
9253 |
|
|
|
9254 |
|
|
* Thuban/UI/dock.py: Fix Windows problem. |
9255 |
|
|
|
9256 |
|
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
9257 |
|
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
9258 |
|
|
|
9259 |
|
|
2003-04-07 Jonathan Coles <[email protected]> |
9260 |
|
|
|
9261 |
jonathan |
612 |
Since we now say that the order of the groups in a classification |
9262 |
|
|
matters, it makes sense to be able to manipulate that order. Most |
9263 |
|
|
of the changes to Thuban/Model/classification.py are to that end. |
9264 |
|
|
|
9265 |
|
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
9266 |
|
|
Classification.InsertGroup, Classification.ReplaceGroup, |
9267 |
|
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
9268 |
|
|
names imply. |
9269 |
|
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
9270 |
|
|
takes an index, while FindGroup takes a value. |
9271 |
|
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
9272 |
|
|
REFERENCE. Currently there is a cyclic reference between the layer |
9273 |
|
|
and its classification. If the classification doesn't need to know |
9274 |
|
|
its owning layer we can change this, since it may make sense to be |
9275 |
|
|
able to use the same classification with different layers. |
9276 |
|
|
|
9277 |
|
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
9278 |
|
|
|
9279 |
|
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
9280 |
|
|
not AddGroup() |
9281 |
|
|
|
9282 |
|
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
9283 |
|
|
a Classification and have methods to manipulate that order we don't |
9284 |
|
|
need to use our own data structures in the grid. We can simply make |
9285 |
|
|
the grid/table access the information they need from a copy of |
9286 |
|
|
the classification object. |
9287 |
|
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
9288 |
|
|
'Close'. This is needed so if the user applies changes and then |
9289 |
|
|
continues to change the table the user has the option of discarding |
9290 |
|
|
the most recent changes and keeping what they applied. |
9291 |
|
|
|
9292 |
|
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
9293 |
|
|
into the same group. |
9294 |
|
|
|
9295 |
|
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
9296 |
|
|
with a really old version of proj, PJ_VERSION won't even be defined. |
9297 |
|
|
If it isn't defined then just compile so that the function always |
9298 |
|
|
returns Py_False. |
9299 |
|
|
|
9300 |
|
|
* test/test_classification.py: Fix tests to use the renamed methods. |
9301 |
|
|
Still need to write tests for the new methods. |
9302 |
|
|
|
9303 |
jonathan |
601 |
2003-04-04 Jonathan Coles <[email protected]> |
9304 |
jonathan |
608 |
|
9305 |
jonathan |
612 |
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
9306 |
|
|
call to SetSelection out of the method and before the call |
9307 |
|
|
to __SelectField in __init__. This prevents a recursion of events |
9308 |
|
|
when _OnFieldSelect is triggered by the user. |
9309 |
|
|
|
9310 |
|
|
2003-04-04 Jonathan Coles <[email protected]> |
9311 |
|
|
|
9312 |
jonathan |
608 |
* Thuban/Model/classification.py: Rename Color.None to |
9313 |
|
|
Color.Transparent. |
9314 |
|
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
9315 |
|
|
Don't bother copying the color, since Colors are immutable. |
9316 |
|
|
|
9317 |
|
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
9318 |
|
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
9319 |
|
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
9320 |
|
|
Rename Color.None to Color.Transparent. |
9321 |
|
|
|
9322 |
|
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
9323 |
|
|
to Color.Transparent. |
9324 |
|
|
|
9325 |
|
|
2003-04-04 Jonathan Coles <[email protected]> |
9326 |
jonathan |
603 |
|
9327 |
|
|
* Thuban/Model/classification.py: Fix assert calls. |
9328 |
|
|
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
9329 |
|
|
Copy the color parameter rather than hold onto a reference. |
9330 |
jonathan |
601 |
|
9331 |
jonathan |
603 |
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
9332 |
|
|
the color object. |
9333 |
|
|
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
9334 |
|
|
are sure there exists only one refernce to Color.None in the system. |
9335 |
|
|
This allows us to use 'is' rather than the comparision functions. |
9336 |
|
|
|
9337 |
|
|
* Thuban/Model/save.py: Fix assert calls. |
9338 |
|
|
|
9339 |
|
|
* Thuban/UI/classifier.py: Fix assert calls. |
9340 |
|
|
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
9341 |
|
|
dialog to edit the groups properties. |
9342 |
|
|
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
9343 |
|
|
correctly if a cell is resized. |
9344 |
|
|
(ClassTable.SetClassification): New. Changes the classification |
9345 |
|
|
that is in the table. |
9346 |
|
|
(ClassTable.__SetRow): Allow groups to be prepended. |
9347 |
|
|
(Classifier): New code for opening the EditProperties and |
9348 |
|
|
GenerateRanges dialogs. |
9349 |
|
|
(SelectPropertiesDialog.__GetColor): Only set the color in the |
9350 |
|
|
color dialog if the current color is not None. |
9351 |
|
|
|
9352 |
|
|
* Thuban/UI/dock.py: Fix assert calls. |
9353 |
|
|
|
9354 |
|
|
* Thuban/UI/legend.py: Fix assert calls. |
9355 |
|
|
|
9356 |
|
|
* Thuban/UI/renderer.py: Fix assert calls. |
9357 |
|
|
|
9358 |
|
|
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
9359 |
|
|
classifications. |
9360 |
|
|
(GenRangePanel): Panel specific to range generation. |
9361 |
|
|
(GenSingletonPanel): Panel specific to singleton generation. |
9362 |
|
|
(ClassGenerator): Class responsible for actually generating |
9363 |
|
|
the classification from the data gathered in the dialog box. |
9364 |
|
|
(PropertyRamp): Generates properties whose values range from |
9365 |
|
|
a starting property to an ending property. |
9366 |
jonathan |
601 |
|
9367 |
bh |
600 |
2003-04-03 Bernhard Herzog <[email protected]> |
9368 |
|
|
|
9369 |
|
|
* test/support.py (print_garbage_information): New function that |
9370 |
|
|
prints information about still connected messages and memory |
9371 |
|
|
leaks. |
9372 |
|
|
(run_suite): Removed. |
9373 |
|
|
(run_tests): New function for use as a replacement of |
9374 |
|
|
unittest.main in the test_* files. This one calls |
9375 |
|
|
print_garbage_information at the end. |
9376 |
|
|
|
9377 |
|
|
* test/runtests.py (main): Use support.print_garbage_information |
9378 |
|
|
|
9379 |
|
|
* test/test_layer.py: Use support.run_tests instead of |
9380 |
|
|
unittest.main so we get memory leak information |
9381 |
|
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
9382 |
|
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
9383 |
|
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
9384 |
|
|
to fix a memory leak. |
9385 |
|
|
|
9386 |
|
|
* test/test_classification.py: Use support.run_tests instead of |
9387 |
|
|
unittest.main so we get memory leak information |
9388 |
|
|
(TestClassification.test_classification): Call the layer's Destroy |
9389 |
|
|
method to fix a memory leak. |
9390 |
|
|
|
9391 |
bh |
591 |
2003-04-02 Bernhard Herzog <[email protected]> |
9392 |
|
|
|
9393 |
bh |
595 |
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
9394 |
|
|
Handle the reference counts of the return value and errors in |
9395 |
|
|
PyArg_ParseTuple correctly. |
9396 |
|
|
|
9397 |
bh |
593 |
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
9398 |
|
|
sure the filename is absolute to avoid problems when saving the |
9399 |
|
|
session again |
9400 |
|
|
|
9401 |
bh |
591 |
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
9402 |
|
|
|
9403 |
jonathan |
587 |
2003-04-01 Jonathan Coles <[email protected]> |
9404 |
|
|
|
9405 |
jonathan |
589 |
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
9406 |
jonathan |
587 |
that there actually are points in the returned list of points |
9407 |
|
|
before trying to index into the list. The list may be empty if |
9408 |
|
|
the shape is a Null Shape. |
9409 |
|
|
|
9410 |
bh |
586 |
2003-04-01 Bernhard Herzog <[email protected]> |
9411 |
|
|
|
9412 |
|
|
* test/test_map.py: Don't use from <module> import * |
9413 |
|
|
|
9414 |
jonathan |
581 |
2003-04-01 Jonathan Coles <[email protected]> |
9415 |
|
|
|
9416 |
|
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
9417 |
|
|
LAYER_LEGEND_CHANGED |
9418 |
|
|
|
9419 |
|
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
9420 |
|
|
self.Destroy() to close the window after yesterday's changes. |
9421 |
|
|
|
9422 |
|
|
* test/test_map.py, test/test_session.py: Fix messages that |
9423 |
|
|
are sent from maps and layers. |
9424 |
|
|
|
9425 |
jonathan |
575 |
2003-03-31 Jonathan Coles <[email protected]> |
9426 |
|
|
|
9427 |
|
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
9428 |
|
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
9429 |
|
|
RTbug #1769. |
9430 |
|
|
|
9431 |
|
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
9432 |
|
|
position (although position doesn't work yet under GTK). |
9433 |
|
|
(DockableWindow.Destroy): New. Called when the window must be |
9434 |
|
|
closed. Namely needed when the DockFrame closes and must close |
9435 |
|
|
its children. |
9436 |
|
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
9437 |
|
|
|
9438 |
|
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
9439 |
|
|
when then window is told to close. |
9440 |
|
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
9441 |
|
|
comment in source for more info. |
9442 |
|
|
|
9443 |
|
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
9444 |
|
|
|
9445 |
|
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
9446 |
|
|
symmetry with other such methods. |
9447 |
|
|
(MainWindow.ShowLegend): Show the legend docked by default. |
9448 |
|
|
|
9449 |
jonathan |
569 |
2003-03-28 Jonathan Coles <[email protected]> |
9450 |
|
|
|
9451 |
|
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
9452 |
|
|
group within the grid when the classification dialog is opened. |
9453 |
|
|
Also contains a lot of debugging printouts which will later |
9454 |
|
|
be removed. |
9455 |
|
|
|
9456 |
|
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
9457 |
|
|
that it is fairly removed from the rest of the Thuban application. |
9458 |
|
|
It is easy to add new docks which the rest of the program having |
9459 |
|
|
to be aware of them. |
9460 |
|
|
|
9461 |
|
|
* Thuban/UI/legend.py: Modifications to support selecting a |
9462 |
|
|
specific group in the classification dialog. Changed how layers |
9463 |
|
|
are drawn when the layer is visible/invisible. |
9464 |
|
|
|
9465 |
|
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
9466 |
|
|
replaced it with calls to the new dock code. |
9467 |
|
|
|
9468 |
|
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
9469 |
|
|
to check if scale > 0. Trying to track down a divide by zero. |
9470 |
|
|
|
9471 |
jonathan |
557 |
2003-03-26 Jonathan Coles <[email protected]> |
9472 |
|
|
|
9473 |
jonathan |
567 |
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
9474 |
|
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
9475 |
|
|
now part of DockableWindow. |
9476 |
|
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
9477 |
|
|
map. |
9478 |
|
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
9479 |
|
|
with the selected layer and/or group. |
9480 |
|
|
|
9481 |
|
|
2003-03-26 Jonathan Coles <[email protected]> |
9482 |
|
|
|
9483 |
jonathan |
557 |
This putback contains the code for dockable windows. There is |
9484 |
|
|
no support in wxWindows as of this date for windows that can |
9485 |
|
|
attach themselves to other windows. |
9486 |
|
|
|
9487 |
|
|
The current model contains a DockableWindow which has a parent |
9488 |
|
|
window for when it is detached and a dock window that it puts |
9489 |
|
|
its contents in when it is docked. The contents of a DockableWindow |
9490 |
|
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
9491 |
|
|
|
9492 |
|
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
9493 |
|
|
message, not a LAYER_LEGEND_CHANGED message. |
9494 |
|
|
|
9495 |
|
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
9496 |
|
|
|
9497 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
9498 |
|
|
as one of the style properties for the fieldTypeText item to |
9499 |
|
|
be sure that its size is correct when the text changes. |
9500 |
|
|
|
9501 |
|
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
9502 |
|
|
DockableWindow. |
9503 |
|
|
|
9504 |
|
|
* Thuban/UI/legend.py: Added some more buttons and made the |
9505 |
|
|
LegendPanel a DockPanel. |
9506 |
|
|
|
9507 |
|
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
9508 |
|
|
and supporting functions for manipulating the sashes. |
9509 |
|
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
9510 |
|
|
LegendPanel as the contents. |
9511 |
|
|
|
9512 |
|
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
9513 |
|
|
|
9514 |
|
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
9515 |
|
|
not LAYER_LEGEND_CHANGED, messages. |
9516 |
|
|
|
9517 |
jonathan |
554 |
2003-03-25 Jonathan Coles <[email protected]> |
9518 |
|
|
|
9519 |
|
|
* setup.py: Added custom script bdist_rpm_build_script so that |
9520 |
|
|
when the rpm is built the path to wx-config is correct. |
9521 |
|
|
|
9522 |
|
|
* setup.cfg: Added line saying to use the custom build script |
9523 |
|
|
|
9524 |
jonathan |
552 |
2003-03-20 Jonathan Coles <[email protected]> |
9525 |
|
|
|
9526 |
|
|
Initial implementation of the Legend. |
9527 |
|
|
|
9528 |
|
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
9529 |
|
|
Legend information and allows the user to add/modify classifications |
9530 |
|
|
and how the layers are drawn on the map. |
9531 |
|
|
|
9532 |
|
|
* setup.py: New command 'build_docs' which currently uses |
9533 |
|
|
happydoc to generate html documentation for Thuban. |
9534 |
|
|
|
9535 |
|
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
9536 |
|
|
Returns a string which is appropriately describes the group. |
9537 |
|
|
|
9538 |
|
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
9539 |
|
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
9540 |
|
|
|
9541 |
|
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
9542 |
|
|
specific, messages. |
9543 |
|
|
|
9544 |
|
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
9545 |
|
|
data has changed (LAYER_CHANGED). New map messages to indicate |
9546 |
|
|
when layers have been added/removed/changed or if the stacking order |
9547 |
|
|
of the layers has changed. |
9548 |
|
|
|
9549 |
|
|
* Thuban/Model/session.py: Rename and use new messages. |
9550 |
|
|
|
9551 |
|
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
9552 |
|
|
been applied so that if the dialog is cancelled without an application |
9553 |
|
|
of changes we don't have to set a new classification. |
9554 |
|
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
9555 |
|
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
9556 |
|
|
symbols on any DC. |
9557 |
|
|
|
9558 |
|
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
9559 |
|
|
|
9560 |
|
|
* Thuban/UI/view.py: Use new message names. |
9561 |
|
|
|
9562 |
jonathan |
541 |
2003-03-19 Jonathan Coles <[email protected]> |
9563 |
|
|
|
9564 |
|
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
9565 |
|
|
of Python, wxPython, and some other libraries. |
9566 |
|
|
|
9567 |
|
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
9568 |
|
|
version against what wxproj was compiled with. |
9569 |
|
|
(check_version_gtk): If wxproj was compiled with gtk then check |
9570 |
|
|
the given version against the version of the gtk library |
9571 |
|
|
currently being used. |
9572 |
|
|
|
9573 |
bh |
538 |
2003-03-14 Bernhard Herzog <[email protected]> |
9574 |
|
|
|
9575 |
|
|
* test/test_command.py: Run the tests when the module is run as a |
9576 |
|
|
script |
9577 |
|
|
|
9578 |
|
|
2003-03-14 Bernhard Herzog <[email protected]> |
9579 |
|
|
|
9580 |
|
|
Implement selection of multiple selected shapes in the same layer: |
9581 |
|
|
|
9582 |
|
|
- Introduce a new class to hold the selection. This basically |
9583 |
|
|
replaces the interactor which was nothing more than the |
9584 |
|
|
selection anyway. A major difference is of course that the new |
9585 |
|
|
selection class supports multiple selected shapes in one layer |
9586 |
|
|
|
9587 |
|
|
- Move the object that represents the selection from the |
9588 |
|
|
application to the canvas. The canvas is a better place than the |
9589 |
|
|
application because the selection represents which shapes and |
9590 |
|
|
layer of the map displayed by the canvas are selected and |
9591 |
|
|
affects how the map is drawn. |
9592 |
|
|
|
9593 |
|
|
- Make the selection and its messages publicly available through |
9594 |
|
|
the mainwindow. |
9595 |
|
|
|
9596 |
|
|
- The non-modal dialogs do not get a reference to the interactor |
9597 |
|
|
anymore as they can simply refer to their parent, the |
9598 |
|
|
mainwindow, for the what the interactor had to offer. |
9599 |
|
|
|
9600 |
|
|
* Thuban/UI/selection.py: New module with a class to represent the |
9601 |
|
|
selection. |
9602 |
|
|
|
9603 |
|
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
9604 |
|
|
these unused messages |
9605 |
|
|
|
9606 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
9607 |
|
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
9608 |
|
|
interactor is gone now. |
9609 |
|
|
(ThubanApplication.CreateMainWindow): There is no interactor |
9610 |
|
|
anymore so we pass None as the interactor argument for now for |
9611 |
|
|
compatibility. |
9612 |
|
|
|
9613 |
|
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
9614 |
|
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
9615 |
|
|
Unsubscribe, delegate messages according to the delegated_messages |
9616 |
|
|
class variable. |
9617 |
|
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
9618 |
|
|
attributes from instance variables as described with the |
9619 |
|
|
delegated_methods class variable. |
9620 |
|
|
(MapCanvas.__init__): New instance variable selection holding the |
9621 |
|
|
current selection |
9622 |
|
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
9623 |
|
|
pass them on to the renderer |
9624 |
|
|
(MapCanvas.SetMap): Clear the selection when a different map is |
9625 |
|
|
selected. |
9626 |
|
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
9627 |
|
|
selection class now takes care of only issueing SHAPES_SELECTED |
9628 |
|
|
messages when the set of selected shapes actually does change. |
9629 |
|
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
9630 |
|
|
self.selection |
9631 |
|
|
|
9632 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
9633 |
|
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
9634 |
|
|
Unsubscribe, delegate messages according to the delegated_messages |
9635 |
|
|
class variable. |
9636 |
|
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
9637 |
|
|
attributes from instance variables as described with the |
9638 |
|
|
delegated_methods class variable. |
9639 |
|
|
(MainWindow.__init__): The interactor as ivar is gone. The |
9640 |
|
|
parameter is still there for compatibility. The selection messages |
9641 |
|
|
now come from the canvas. |
9642 |
|
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
9643 |
|
|
Delegate to the the canvas. |
9644 |
|
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
9645 |
|
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
9646 |
|
|
interactor parameter anymore. |
9647 |
|
|
|
9648 |
|
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
9649 |
|
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
9650 |
|
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
9651 |
|
|
from the dialog's point of view is now done by the mainwindow, |
9652 |
|
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
9653 |
|
|
of SELECTED_SHAPE |
9654 |
|
|
|
9655 |
|
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
9656 |
|
|
is gone. It's job from the dialog's point of view is now done by |
9657 |
|
|
the mainwindow, i.e. the parent. |
9658 |
|
|
|
9659 |
|
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
9660 |
|
|
gone. It's job from the dialog's point of view is now done by the |
9661 |
|
|
mainwindow, i.e. the parent. |
9662 |
|
|
|
9663 |
|
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
9664 |
|
|
gone. It's job from the dialog's point of view is now done by the |
9665 |
|
|
mainwindow, i.e. the parent. |
9666 |
|
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
9667 |
|
|
stored as self.mainwindow. The mainwindow is need so that the tree |
9668 |
|
|
can still subscribe to the selection messages. |
9669 |
|
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
9670 |
|
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
9671 |
|
|
selection is now accessible through the mainwindow. Subscribe to |
9672 |
|
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
9673 |
|
|
|
9674 |
|
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
9675 |
|
|
SHAPES_SELECTED message now. |
9676 |
|
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
9677 |
|
|
so deal with multiple shapes |
9678 |
|
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
9679 |
|
|
gone. It's job from the dialog's point of view is now done by the |
9680 |
|
|
mainwindow, i.e. the parent. |
9681 |
|
|
|
9682 |
|
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
9683 |
|
|
parameter is now a list of shape ids. |
9684 |
|
|
(RecordTable.SetTable): The second parameter is now a list of |
9685 |
|
|
indices. |
9686 |
|
|
|
9687 |
|
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
9688 |
|
|
selected_shape parameter and ivar to selected_shapes. It's now a |
9689 |
|
|
list of shape ids. |
9690 |
|
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
9691 |
|
|
shapes. Rearrange the code a bit so that the setup and shape type |
9692 |
|
|
distinctions are only executed once. |
9693 |
|
|
|
9694 |
|
|
* test/test_selection.py: Test cases for the selection class |
9695 |
|
|
|
9696 |
jonathan |
527 |
2003-03-11 Jonathan Coles <[email protected]> |
9697 |
|
|
|
9698 |
|
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
9699 |
|
|
doesn't cause Thuban to crash. |
9700 |
|
|
|
9701 |
|
|
* Thuban/Model/layer.py: Handle the cyclic references between |
9702 |
|
|
a layer and its classification better, and be sure to disconnect |
9703 |
|
|
the classification from the layer when the layer is destroyed |
9704 |
|
|
so that we don't maintain a cyclic reference that may not be |
9705 |
|
|
garbage collected. |
9706 |
|
|
|
9707 |
|
|
* Thuban/Model/classification.py: See comment for layer.py. |
9708 |
|
|
|
9709 |
jan |
523 |
2003-03-12 Jan-Oliver Wagner <[email protected]> |
9710 |
|
|
|
9711 |
|
|
* HOWTO-Release: New. Information on the steps for releasing |
9712 |
|
|
a new version of Thuban. |
9713 |
|
|
|
9714 |
jonathan |
514 |
2003-03-11 Jonathan Coles <[email protected]> |
9715 |
|
|
|
9716 |
|
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
9717 |
|
|
Use True instead of true. |
9718 |
|
|
(Classifier): Should have a single panel in which all the controls lie. |
9719 |
|
|
|
9720 |
|
|
* Thuban/UI/proj4dialog.py: Add normal border. |
9721 |
|
|
|
9722 |
|
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
9723 |
|
|
|
9724 |
|
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
9725 |
|
|
|
9726 |
|
|
* setup.py: Update some definitions to use wxWindows2.4 files |
9727 |
|
|
|
9728 |
|
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
9729 |
|
|
field_type information is present. |
9730 |
|
|
|
9731 |
jonathan |
490 |
2003-03-10 Jonathan Coles <[email protected]> |
9732 |
|
|
|
9733 |
jonathan |
505 |
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
9734 |
|
|
field type label grow so that when the text changes the |
9735 |
|
|
size is updated correctly. This may be a wxWindows bug. |
9736 |
|
|
|
9737 |
|
|
2003-03-10 Jonathan Coles <[email protected]> |
9738 |
|
|
|
9739 |
jonathan |
499 |
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
9740 |
|
|
SESSION_REPLACED. |
9741 |
|
|
|
9742 |
|
|
* Thuban/UI/classifier.py: Wrap text with _(). |
9743 |
|
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
9744 |
|
|
instead of in Reset, so we only set the size once. |
9745 |
|
|
|
9746 |
|
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
9747 |
|
|
|
9748 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
9749 |
|
|
Call Close() instead of Shutdown(). |
9750 |
|
|
|
9751 |
|
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
9752 |
|
|
|
9753 |
|
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
9754 |
|
|
Go back to using OnClose() instead of Shutdown(). |
9755 |
|
|
|
9756 |
|
|
2003-03-10 Jonathan Coles <[email protected]> |
9757 |
|
|
|
9758 |
jonathan |
497 |
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
9759 |
|
|
to know the old field index as well as the new one. |
9760 |
|
|
|
9761 |
|
|
2003-03-10 Jonathan Coles <[email protected]> |
9762 |
|
|
|
9763 |
jonathan |
495 |
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
9764 |
|
|
to correctly set the table information and call this from |
9765 |
|
|
__init__ and from _OnFieldSelect so that all the information |
9766 |
|
|
is up to date when the dialog opens and when a field is changed. |
9767 |
|
|
|
9768 |
|
|
2003-03-10 Jonathan Coles <[email protected]> |
9769 |
|
|
|
9770 |
jonathan |
490 |
* Thuban/Model/classification.py (Classification): Don't use |
9771 |
|
|
layer's message function directly, use the ClassChanged() method |
9772 |
|
|
when then classification changes. SetField/SetFieldType/SetLayer |
9773 |
|
|
must keep the information about field name and field type in |
9774 |
|
|
sync when an owning layer is set or removed. |
9775 |
|
|
|
9776 |
|
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
9777 |
|
|
classification can tell the layer when its data has changed. |
9778 |
|
|
(Layer.SetClassification): Accepts None as an arguement to |
9779 |
|
|
remove the current classification and correctly handles |
9780 |
|
|
adding a new classification. |
9781 |
|
|
|
9782 |
|
|
* Thuban/Model/load.py: Comment out print statement |
9783 |
|
|
|
9784 |
|
|
* test/test_classification.py, test/test_save.py: New and |
9785 |
|
|
improved tests. |
9786 |
|
|
|
9787 |
jonathan |
483 |
2003-03-07 Jonathan Coles <[email protected]> |
9788 |
|
|
|
9789 |
|
|
* Thuban/Model/classification.py: Implemented __copy__ and |
9790 |
|
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
9791 |
|
|
they can easily be copied by the classifier dialog. |
9792 |
|
|
(ClassGroupProperites.__init__): The default line color should |
9793 |
|
|
have been Color.Black. |
9794 |
|
|
|
9795 |
|
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
9796 |
|
|
uses a consistent set of functions. |
9797 |
|
|
(Classifier): Now non-modal. Has field type label which changes |
9798 |
|
|
as the field changes. Keep track of buttons in a list so that |
9799 |
|
|
we can enable/disable the buttons when the None field is selected. |
9800 |
|
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
9801 |
|
|
|
9802 |
|
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
9803 |
|
|
does what OnClose did, but can be called by the application to |
9804 |
|
|
close a window. Needed when a session changes, and we have to |
9805 |
|
|
close the classifier windows. |
9806 |
|
|
|
9807 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
9808 |
|
|
Shuts down open dialogs. Used when a new session is created |
9809 |
|
|
or a session is opened. |
9810 |
|
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
9811 |
|
|
if we don't call SaveSessionAs first. |
9812 |
|
|
(MainWindow.Classify): Allow different classifier dialogs for |
9813 |
|
|
different layers. |
9814 |
|
|
|
9815 |
|
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
9816 |
|
|
the parent class handle it. Add Shutdown() to unsubscibe from |
9817 |
|
|
event notification and call the parent Shutdown(). This was |
9818 |
|
|
necessary so the application can close the tree window. |
9819 |
|
|
|
9820 |
jonathan |
478 |
2003-03-06 Jonathan Coles <[email protected]> |
9821 |
|
|
|
9822 |
|
|
* Thuban/Model/classification.py: Minor documentation changes, |
9823 |
|
|
Addition of __eq__ and __ne__ methods. |
9824 |
|
|
(Classification.SetLayer): prevent recursion between this method |
9825 |
|
|
and Layer.SetClassification(). |
9826 |
|
|
|
9827 |
|
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
9828 |
|
|
|
9829 |
|
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
9830 |
|
|
between this method and Classification.SetLayer(). |
9831 |
|
|
|
9832 |
|
|
* test/test_classification.py, test/test_load.py, |
9833 |
|
|
test/test_session.py: Fixed and added tests for the classification |
9834 |
|
|
classes. |
9835 |
|
|
|
9836 |
bh |
477 |
2003-03-06 Bernhard Herzog <[email protected]> |
9837 |
|
|
|
9838 |
|
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
9839 |
|
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
9840 |
|
|
CreateTable because otherwise it triggers an assertion in |
9841 |
|
|
wxPython/wxGTK 2.4. |
9842 |
|
|
|
9843 |
jonathan |
459 |
2003-03-05 Jonathan Coles <[email protected]> |
9844 |
|
|
|
9845 |
jonathan |
475 |
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
9846 |
jonathan |
471 |
|
9847 |
jonathan |
475 |
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
9848 |
jonathan |
471 |
|
9849 |
jonathan |
475 |
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
9850 |
jonathan |
471 |
|
9851 |
jonathan |
475 |
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
9852 |
jonathan |
471 |
|
9853 |
|
|
2003-03-05 Jonathan Coles <[email protected]> |
9854 |
|
|
|
9855 |
jonathan |
459 |
* Thuban/UI/classifier.py: Added class documentation. |
9856 |
|
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
9857 |
|
|
Store just the groups in the table and generate the other |
9858 |
|
|
column information when it is requested. Add "None" field |
9859 |
|
|
to pull-down to select no classification. |
9860 |
|
|
|
9861 |
|
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
9862 |
|
|
(Str2Num): Only catch ValueError exceptions. |
9863 |
|
|
|
9864 |
|
|
* Thuban/Model/classification.py: Class documentation. Renaming |
9865 |
|
|
of methods with Stroke to Line. Groups are stored in a single |
9866 |
|
|
list with the default as the first element. Groups are searched |
9867 |
|
|
in the order they appear in the list. |
9868 |
|
|
|
9869 |
|
|
* Thuban/Model/color.py: Documentation. |
9870 |
|
|
|
9871 |
|
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
9872 |
|
|
the kind of data represented by a field. |
9873 |
|
|
|
9874 |
|
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
9875 |
|
|
conversion function; fixes RTbug #1713. |
9876 |
|
|
|
9877 |
|
|
* Thuban/Model/save.py (Saver): Store field type information. |
9878 |
|
|
|
9879 |
|
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
9880 |
|
|
(Table): Add field_info_by_name() to retrieve field information |
9881 |
|
|
by specifying the field name, not the number. |
9882 |
|
|
|
9883 |
|
|
* Thuban/UI/mainwindow.py: Function name changes. |
9884 |
|
|
|
9885 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
9886 |
|
|
get the layer classification once. Don't try to classify |
9887 |
|
|
values when the field is None: just use the default properties. |
9888 |
|
|
|
9889 |
|
|
* Thuban/UI/view.py: Function name changes. |
9890 |
|
|
|
9891 |
|
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
9892 |
|
|
|
9893 |
bh |
456 |
2003-03-04 Bernhard Herzog <[email protected]> |
9894 |
|
|
|
9895 |
bh |
458 |
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
9896 |
|
|
the fill and stroke layer attributes optional with suitable |
9897 |
|
|
default values. Add the stroke_width layer attribute. Use correct |
9898 |
|
|
syntax for empty elements. Make the attribute list for labels |
9899 |
|
|
refer to the label element. |
9900 |
|
|
|
9901 |
|
|
2003-03-04 Bernhard Herzog <[email protected]> |
9902 |
|
|
|
9903 |
bh |
456 |
* setup.py (thuban_build_py.build): Add a comment about distutils in |
9904 |
|
|
Python 2.3 containing some of the functionality we implement in |
9905 |
|
|
setup.py ourselves. |
9906 |
|
|
|
9907 |
|
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
9908 |
|
|
before the selection mode. Doing it the other way round triggers |
9909 |
|
|
an assertion in wxWindows. |
9910 |
|
|
|
9911 |
|
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
9912 |
|
|
|
9913 |
|
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
9914 |
|
|
import |
9915 |
|
|
|
9916 |
jonathan |
448 |
2003-03-04 Jonathan Coles <[email protected]> |
9917 |
|
|
|
9918 |
|
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
9919 |
|
|
Parameter 'value' should default to None. |
9920 |
|
|
|
9921 |
|
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
9922 |
|
|
the class attribute __classification is now private. |
9923 |
|
|
|
9924 |
|
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
9925 |
|
|
Classifier to ClassGrid. Added support for removing selected rows, |
9926 |
|
|
which including code for keeping track of when cells are selected, |
9927 |
|
|
and deselected. |
9928 |
|
|
(ClassTable): Support for added/removing rows. Fixed a problem |
9929 |
|
|
with __ParseInput whereby it would not allow strings (only numbers) |
9930 |
|
|
to be entered. |
9931 |
|
|
(Classifier): Added button and supporting code for removing |
9932 |
|
|
selected rows. |
9933 |
|
|
|
9934 |
jonathan |
445 |
2003-02-27 Jonathan Coles <[email protected]> |
9935 |
jonathan |
434 |
|
9936 |
|
|
* Thuban/common.py: Moved color conversion functions into |
9937 |
|
|
Thuban/UI/common.py. |
9938 |
|
|
(Str2Num): Now converts the float (not the string) to a long/int |
9939 |
|
|
so that an exception isn't thrown. |
9940 |
|
|
|
9941 |
|
|
* Thuban/UI/common.py: Common functions used in several UI modules |
9942 |
|
|
|
9943 |
|
|
* Thuban/Model/classification.py: Changed the class hierarchy |
9944 |
|
|
so that a Classification consists of Groups which return |
9945 |
|
|
Properties when a value matches a Group. |
9946 |
|
|
|
9947 |
|
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
9948 |
|
|
|
9949 |
|
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
9950 |
|
|
|
9951 |
|
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
9952 |
|
|
failure. |
9953 |
|
|
(Saver.write_classification): Use new Classification and Group |
9954 |
|
|
functions. |
9955 |
|
|
|
9956 |
|
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
9957 |
jonathan |
445 |
functions. Fix to create a tuple with a single value instead of |
9958 |
|
|
simply returning the value. |
9959 |
jonathan |
434 |
|
9960 |
|
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
9961 |
|
|
Use common.py functions. |
9962 |
|
|
|
9963 |
jonathan |
445 |
* Thuban/UI/tree.py: Use common.py functions. |
9964 |
jonathan |
447 |
|
9965 |
|
|
* test/test_classification.py: Use new Classification and Group |
9966 |
|
|
classes. |
9967 |
jonathan |
434 |
|
9968 |
jonathan |
426 |
2003-02-24 Jonathan Coles <[email protected]> |
9969 |
|
|
|
9970 |
|
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
9971 |
|
|
functions from Thuban color objects to wxWindow colour objects. |
9972 |
|
|
|
9973 |
|
|
* Thuban/Model/classification.py (Classification): Renamed |
9974 |
|
|
GetProperties() to GetClassData(). Used the new iterator |
9975 |
|
|
in TreeInfo(). |
9976 |
|
|
(ClassIterator): Iterator implementation to iterate over the |
9977 |
|
|
ClassData objects in a classification object. |
9978 |
|
|
|
9979 |
|
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
9980 |
|
|
the new iterator to save the classification information. |
9981 |
|
|
|
9982 |
|
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
9983 |
|
|
for changing the stroke and fill colors and previewing the |
9984 |
|
|
changes. |
9985 |
|
|
|
9986 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
9987 |
|
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
9988 |
|
|
have more meaningful titles. |
9989 |
|
|
|
9990 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
9991 |
|
|
Classification method name from GetProperties to GetClassData. |
9992 |
|
|
|
9993 |
|
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
9994 |
|
|
instead of accessing now non-existent class variables. |
9995 |
|
|
|
9996 |
bh |
425 |
2003-02-24 Bernhard Herzog <[email protected]> |
9997 |
|
|
|
9998 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
9999 |
|
|
unneeded Shape() call. Rendering is substantially faster without |
10000 |
|
|
it and it avoids some problems with broken shape files. |
10001 |
|
|
|
10002 |
frank |
423 |
2003-02-20 Frank Koormann <[email protected]> |
10003 |
|
|
|
10004 |
|
|
Force minimal size of identify and label dialogs. The autosizing |
10005 |
|
|
looked too ugly. |
10006 |
|
|
|
10007 |
|
|
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
10008 |
|
|
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
10009 |
|
|
Set size of listctrl. |
10010 |
|
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
10011 |
|
|
Set size of dialog. |
10012 |
|
|
|
10013 |
jonathan |
408 |
2003-02-19 Jonathan Coles <[email protected]> |
10014 |
|
|
|
10015 |
|
|
* test/test_classification.py, test/test_layer.py, |
10016 |
|
|
test/test_load.py, test/test_map.py, test/test_session.py: |
10017 |
|
|
Updated the tests to use the new functions that are in the |
10018 |
|
|
respective classes. |
10019 |
|
|
|
10020 |
|
|
* Thuban/Model/classification.py (Classification): |
10021 |
|
|
Uses the new ClassData* classes. Modification messages are |
10022 |
|
|
passed up to the parent layer (if it exists). |
10023 |
|
|
(ClassData): New class to encapsulate the common data in each |
10024 |
|
|
classification property. |
10025 |
|
|
(ClassDataDefault): Represents the Default class. data. |
10026 |
|
|
(ClassDataPoint): Represents a single class. data point |
10027 |
|
|
(ClassDataRange): Represents a class. range |
10028 |
|
|
(ClassDataMap): Represents a class. map (unused). |
10029 |
|
|
|
10030 |
|
|
* Thuban/Model/color.py: Added Color.None to represent something |
10031 |
|
|
with no color. Color.Black represents the color black. |
10032 |
|
|
(NoColor): Helper class derived from Color to represent something |
10033 |
|
|
with no color. |
10034 |
|
|
|
10035 |
|
|
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
10036 |
|
|
stroke_width attributes. Made the 'classification' attribute private. |
10037 |
|
|
New methods for setting/getting the classification. |
10038 |
|
|
|
10039 |
|
|
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
10040 |
|
|
to get the classifcation and use the new ClassData* classes to |
10041 |
|
|
hold the classification data. Use Str2Num to convert numbers |
10042 |
|
|
properly. |
10043 |
|
|
|
10044 |
|
|
* Thuban/Model/save.py (Saver): Use new Color and Classification |
10045 |
|
|
methods |
10046 |
|
|
|
10047 |
|
|
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
10048 |
|
|
custom grid. |
10049 |
|
|
(ClassTable): Support for editing Values and Labels and for |
10050 |
|
|
changing what type (point or range) of data is stored in each |
10051 |
|
|
property based on how the user enters the data. |
10052 |
|
|
(Classifier): Support for saving the new classifications and |
10053 |
|
|
launching the dialog to edit a property. |
10054 |
|
|
(SelectPropertiesDialog): New class for editing the visual |
10055 |
|
|
properties of a classification (stroke color, width, and fill color) |
10056 |
|
|
(ClassPreviewer): Took the Draw method from ClassRenderer and |
10057 |
|
|
made most of it into this new class. Intend to use this class in |
10058 |
|
|
the SelectPropertiesDialog for previewing changes. |
10059 |
|
|
|
10060 |
|
|
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
10061 |
|
|
|
10062 |
|
|
* Thuban/UI/tree.py: Formatting changes. |
10063 |
|
|
|
10064 |
|
|
* Doc/thuban.dtd: Add 'label' element |
10065 |
|
|
|
10066 |
|
|
* Thuban/common.py: New. Contains common routines used throughout |
10067 |
|
|
the code. |
10068 |
|
|
(Str2Num): Takes a string and converts it to the "best" type of |
10069 |
|
|
number. |
10070 |
|
|
|
10071 |
bh |
405 |
2003-02-14 Bernhard Herzog <[email protected]> |
10072 |
|
|
|
10073 |
|
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
10074 |
|
|
dragging flag is always set to 0 even when the tool implementation |
10075 |
|
|
raises an exception |
10076 |
|
|
|
10077 |
bh |
402 |
2003-02-11 Bernhard Herzog <[email protected]> |
10078 |
|
|
|
10079 |
|
|
* Thuban/UI/application.py (ThubanApplication.splash_screen): New |
10080 |
|
|
method to create a splash screen. |
10081 |
|
|
(ThubanApplication.ShowMainWindow): New. Show the main window. |
10082 |
|
|
Needed so the splash screen can display the mainwindow |
10083 |
|
|
(ThubanApplication.OnInit): Call the |
10084 |
|
|
new splash_screen method to determine whether the application |
10085 |
|
|
should display a splash screen. If it displays a splash screen do |
10086 |
|
|
not immediately show the main window. |
10087 |
|
|
|
10088 |
jonathan |
399 |
2003-02-11 Jonathan Coles <[email protected]> |
10089 |
|
|
|
10090 |
|
|
* Thuban/Model/classification.py: Added import line to fix |
10091 |
|
|
feature conflicts between running on python2.2 and python2.1. |
10092 |
|
|
|
10093 |
|
|
* Thuban/UI/classifier.py (ClassTable): Didn't need to hang |
10094 |
|
|
onto the clinfo parameter, so removed the deepcopy(). |
10095 |
|
|
|
10096 |
jonathan |
396 |
2003-02-10 Jonathan Coles <[email protected]> |
10097 |
|
|
|
10098 |
tkoester |
403 |
* Thuban/Model/save.py (Saver.open_element, Saver.close_element): |
10099 |
jonathan |
396 |
Added element_open variable to track opening and closing of tags |
10100 |
|
|
so that tags that don't span more than one line are closed with |
10101 |
|
|
/> instead of </tag_name>. Use the GetDefault*() methods of |
10102 |
|
|
the Classification class. |
10103 |
|
|
|
10104 |
|
|
* Thuban/Model/classification.py (Classificaton): Added set and |
10105 |
|
|
get methods for the default data. The class also takes a layer |
10106 |
|
|
reference so that modification messages can be sent. Fixed the |
10107 |
|
|
methods to use the new ClassData class. |
10108 |
|
|
(ClassData): New class to encapsulate the classification data |
10109 |
|
|
|
10110 |
|
|
* Thuban/Model/layer.py (Layer): Remove the |
10111 |
tkoester |
403 |
Set[Fill|Stroke|StrokeWidth]() methods. Code should call the |
10112 |
jonathan |
396 |
SetDefault*() methods on the layer's classification object. |
10113 |
tkoester |
403 |
(Layer.__init__): Use the new SetDefault*() methods in the |
10114 |
jonathan |
396 |
Classification class. |
10115 |
|
|
|
10116 |
|
|
* Thuban/Model/load.py (ProcessSession): Use the new ClassData |
10117 |
|
|
object instead of a dictionary. |
10118 |
|
|
|
10119 |
tkoester |
403 |
* Thuban/UI/classifier.py (ClassRenderer): New class to |
10120 |
jonathan |
396 |
draw the classifications in the dialog box's table. |
10121 |
|
|
(Classifier): Modified to use the ClassRenderer class. |
10122 |
|
|
|
10123 |
tkoester |
403 |
* Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*() |
10124 |
|
|
methods of the Classification class. |
10125 |
jonathan |
396 |
|
10126 |
|
|
* Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods |
10127 |
|
|
of the ClassData class. |
10128 |
|
|
|
10129 |
|
|
* test/test_classification.py, test/test_layer.py, |
10130 |
|
|
test/test_map.py, test/test_session.py: Fix the tests to work |
10131 |
|
|
with the above code changes. |
10132 |
|
|
|
10133 |
jonathan |
387 |
2003-02-03 Jonathan Coles <[email protected]> |
10134 |
|
|
|
10135 |
|
|
* Thuban/Model/classification.py (Classification): Added getNull() |
10136 |
|
|
to return the NullData reference |
10137 |
|
|
|
10138 |
|
|
* Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke, |
10139 |
|
|
Layer.SetStrokeWidth): Modified these functions to change the |
10140 |
|
|
null data in the classification rather than keep these values |
10141 |
|
|
directly in the Layer class. Menu options to change these values |
10142 |
|
|
work again. |
10143 |
|
|
|
10144 |
jonathan |
380 |
2003-01-28 Jonathan Coles <[email protected]> |
10145 |
|
|
|
10146 |
jonathan |
384 |
* Thuban/UI/classifier.py (Classifier): Resolved merging conflicts. |
10147 |
tkoester |
403 |
Fixed crashing problem on some systems. Dialog box shows |
10148 |
jonathan |
380 |
classification data. |
10149 |
|
|
|
10150 |
jonathan |
384 |
* Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing |
10151 |
|
|
Colors in the tree view. |
10152 |
|
|
|
10153 |
|
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build |
10154 |
|
|
the tree info for classifications. Commented out unnecessary lines. |
10155 |
|
|
|
10156 |
|
|
* Thuban/Model/classification.py (Classification.TreeInfo): New |
10157 |
|
|
function to add information about the classification into the |
10158 |
|
|
tree view. |
10159 |
|
|
|
10160 |
tkoester |
403 |
2003-01-27 Jan-Oliver Wagner <[email protected]> |
10161 |
jan |
375 |
|
10162 |
tkoester |
403 |
* Thuban/__init__.py (_): New. |
10163 |
jan |
375 |
|
10164 |
|
|
* Thuban/Model/classification.py, Thuban/Model/extension.py, |
10165 |
|
|
Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py, |
10166 |
tkoester |
403 |
Thuban/Model/session.py, Thuban/UI/application.py, |
10167 |
|
|
Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py, |
10168 |
|
|
Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py, |
10169 |
|
|
Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py, |
10170 |
|
|
Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py, |
10171 |
|
|
Thuban/Lib/fileutil.py: Replace user string by _() for i18n. |
10172 |
jan |
375 |
|
10173 |
jonathan |
370 |
2003-01-27 Jonathan Coles <[email protected]> |
10174 |
|
|
|
10175 |
tkoester |
403 |
* Thuban/Model/layer.py: Classification initialization calls. |
10176 |
jonathan |
370 |
|
10177 |
tkoester |
403 |
* Thuban/Model/classification.py: Created class to encapsulate |
10178 |
|
|
a layer classification. Supports specific data points and |
10179 |
|
|
ranges. |
10180 |
jonathan |
370 |
|
10181 |
tkoester |
403 |
* Thuban/Model/load.py: Added support for loading classification |
10182 |
|
|
information. |
10183 |
jonathan |
370 |
|
10184 |
tkoester |
403 |
* Thuban/Model/save.py: Added support for saving classification |
10185 |
|
|
information. |
10186 |
jonathan |
370 |
|
10187 |
tkoester |
403 |
* Thuban/UI/classifier.py: Initial class for a dialog box for |
10188 |
|
|
specifying classification information. |
10189 |
jonathan |
370 |
|
10190 |
tkoester |
403 |
* Thuban/UI/mainwindows.py: Support for opening the classifier |
10191 |
|
|
dialog. |
10192 |
jonathan |
370 |
|
10193 |
tkoester |
403 |
* Thuban/UI/renderer.py: Support for drawing a layer with the |
10194 |
|
|
classification information. |
10195 |
jonathan |
370 |
|
10196 |
tkoester |
403 |
* Data/iceland_sample_class.thuban: iceland_sample with |
10197 |
|
|
classification data. |
10198 |
jonathan |
370 |
|
10199 |
tkoester |
403 |
* test/test_classification: Tests for the Classification class. |
10200 |
jonathan |
370 |
|
10201 |
bh |
359 |
2002-12-09 Bernhard Herzog <[email protected]> |
10202 |
|
|
|
10203 |
bh |
361 |
* test/test_command.py: New. Tests for the command classes. |
10204 |
|
|
|
10205 |
bh |
359 |
* Thuban/UI/command.py (ToolCommand): New class for tool commands. |
10206 |
|
|
(Command.IsTool): New method to distinguish between command |
10207 |
|
|
switching tools and other commands. |
10208 |
|
|
|
10209 |
|
|
* Thuban/UI/view.py (MapCanvas.SelectTool): New method to select |
10210 |
|
|
the tool to avoid direct assignments to instance variables |
10211 |
|
|
(MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool) |
10212 |
|
|
(MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to |
10213 |
|
|
change the tool |
10214 |
|
|
|
10215 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an |
10216 |
|
|
active tool's command turns insensitive, disable the tool. |
10217 |
|
|
(_tool_command): Use the new ToolCommand class |
10218 |
|
|
|
10219 |
|
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Use the |
10220 |
|
|
SelectTool method to change the tool |
10221 |
|
|
(iconfile): Use the ToolCommand class |
10222 |
|
|
|
10223 |
bh |
354 |
2002-12-03 Bernhard Herzog <[email protected]> |
10224 |
|
|
|
10225 |
|
|
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
10226 |
|
|
the case of selected items that are not children of Layers or Maps |
10227 |
|
|
properly. Previously this bug would trigger an assertion in |
10228 |
|
|
wxWindows. |
10229 |
|
|
|
10230 |
frank |
352 |
2002-11-06 Frank Koormann <[email protected]> |
10231 |
|
|
|
10232 |
bh |
354 |
* Thuban/UI/mainwindow.py: Altered the order of tools in the |
10233 |
|
|
toolbar: First now are all navigation tools (Zoom In/Out, Pan, |
10234 |
|
|
Full Extent). |
10235 |
tkoester |
403 |
|
10236 |
bh |
349 |
2002-10-23 Bernhard Herzog <[email protected]> |
10237 |
|
|
|
10238 |
|
|
* setup.py (setup call): version now 0.1.3 |
10239 |
|
|
|
10240 |
|
|
* MANIFEST.in: Add the files in test/ |
10241 |
|
|
|
10242 |
|
|
* test/README: Add note about tests requiring the iceland data |
10243 |
|
|
|
10244 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
10245 |
|
|
copyright notice. |
10246 |
|
|
|
10247 |
bh |
344 |
2002-10-18 Bernhard Herzog <[email protected]> |
10248 |
|
|
|
10249 |
|
|
* test/test_map.py |
10250 |
|
|
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
10251 |
|
|
epsilon. |
10252 |
|
|
|
10253 |
|
|
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
10254 |
|
|
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
10255 |
|
|
message if the assertion fails and don't return the return value |
10256 |
|
|
of self.assert_. In assertFloatSeqEqual the return meant that not |
10257 |
|
|
all items of the sequence were compared. |
10258 |
|
|
|
10259 |
bh |
326 |
2002-09-20 Bernhard Herzog <[email protected]> |
10260 |
|
|
|
10261 |
bh |
341 |
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
10262 |
|
|
|
10263 |
|
|
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
10264 |
|
|
|
10265 |
bh |
338 |
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
10266 |
|
|
the string with the bounding box on the fly because of platform |
10267 |
|
|
differences in the way %g is handled. |
10268 |
|
|
|
10269 |
|
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
10270 |
|
|
DBFfile too because Thuban layers can't yet cope missing DBF |
10271 |
|
|
files. |
10272 |
|
|
|
10273 |
|
|
2002-09-20 Bernhard Herzog <[email protected]> |
10274 |
|
|
|
10275 |
bh |
326 |
* test/test_menu.py: Use initthuban instead of |
10276 |
|
|
add_thuban_dir_to_path to initialize Thuban. |
10277 |
|
|
|
10278 |
|
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
10279 |
|
|
Mixin class for float comparisons |
10280 |
|
|
(SubscriberMixin): New. Mixin class to test messages sent through |
10281 |
|
|
the Connector class |
10282 |
|
|
|
10283 |
|
|
* test/README: Fix a typo and add the -v flag to the command for |
10284 |
|
|
individual tests |
10285 |
|
|
|
10286 |
bh |
335 |
* test/test_session.py: New. Test cases for Thuban.Model.session |
10287 |
|
|
|
10288 |
|
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
10289 |
|
|
|
10290 |
|
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
10291 |
|
|
|
10292 |
|
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
10293 |
|
|
|
10294 |
|
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
10295 |
|
|
|
10296 |
|
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
10297 |
|
|
|
10298 |
|
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
10299 |
|
|
|
10300 |
|
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
10301 |
|
|
|
10302 |
bh |
322 |
2002-09-13 Bernhard Herzog <[email protected]> |
10303 |
|
|
|
10304 |
|
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
10305 |
|
|
the CHANGED channel too. |
10306 |
|
|
|
10307 |
|
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
10308 |
|
|
CHANGED channel too. |
10309 |
|
|
(Map.__init__): Call the Modifiable constructor as well. |
10310 |
|
|
|
10311 |
|
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
10312 |
|
|
event if the modified flag changes. |
10313 |
|
|
(Modifiable.changed): Tweak the doc-string. |
10314 |
|
|
|
10315 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
10316 |
|
|
(MainWindow.set_position_text): Put the code that puts the text |
10317 |
|
|
with the mouse position into the status bar into the new method |
10318 |
|
|
set_position_text so that it can overwritten in derived classes. |
10319 |
|
|
|
10320 |
bh |
317 |
2002-09-12 Bernhard Herzog <[email protected]> |
10321 |
|
|
|
10322 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
10323 |
|
|
message box on the main window. |
10324 |
|
|
|
10325 |
bh |
313 |
2002-09-11 Bernhard Herzog <[email protected]> |
10326 |
|
|
|
10327 |
|
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
10328 |
|
|
the 'E' because it's less likely to interfere with other menu |
10329 |
|
|
entries. |
10330 |
bh |
315 |
(MainWindow.build_menu): remove an incorrect comment. |
10331 |
bh |
313 |
|
10332 |
bh |
311 |
2002-09-10 Bernhard Herzog <[email protected]> |
10333 |
|
|
|
10334 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
10335 |
|
|
(_tool_command): Add sensitive parameter |
10336 |
|
|
(_has_visible_map): Sensitivity callback to tools and other |
10337 |
|
|
commands that require a visible map. Use it in map_zoom_in_tool, |
10338 |
|
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
10339 |
|
|
and map_full_extent |
10340 |
|
|
|
10341 |
bh |
308 |
2002-09-06 Bernhard Herzog <[email protected]> |
10342 |
|
|
|
10343 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
10344 |
|
|
VIEW_POSITION |
10345 |
|
|
|
10346 |
tkoester |
403 |
2002-09-04 Frank Koormann <[email protected]> |
10347 |
frank |
306 |
|
10348 |
|
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
10349 |
|
|
|
10350 |
bh |
302 |
2002-09-02 Bernhard Herzog <[email protected]> |
10351 |
|
|
|
10352 |
bh |
304 |
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
10353 |
|
|
wxWindows already and our implementation doesn't work correctly |
10354 |
|
|
with wxGTK 2.3: |
10355 |
|
|
(MapCanvas.__init__): Remove the instance variable |
10356 |
|
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
10357 |
|
|
be drawin |
10358 |
|
|
(MapCanvas.OnIdle): Removed. |
10359 |
|
|
|
10360 |
bh |
302 |
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
10361 |
|
|
a parameter to determine the size of the rectangle. |
10362 |
|
|
(MapCanvas.find_shape_at): Create the box around the point on a |
10363 |
|
|
layer by layer basis and make the size depend on the shape type. |
10364 |
|
|
This solves a problem with the selection of point shapes at the |
10365 |
|
|
border of the layer's bounding box |
10366 |
|
|
|
10367 |
bh |
292 |
2002-08-30 Bernhard Herzog <[email protected]> |
10368 |
|
|
|
10369 |
bh |
300 |
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
10370 |
|
|
for the sensitivity of remove layer. |
10371 |
|
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
10372 |
|
|
(Command layer_remove): Use _can_remove_layer |
10373 |
|
|
|
10374 |
|
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
10375 |
|
|
determine whether a given layer can be deleted. |
10376 |
|
|
|
10377 |
bh |
297 |
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
10378 |
|
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
10379 |
|
|
instance variable |
10380 |
|
|
|
10381 |
bh |
294 |
* Thuban/UI/view.py: Add/update some doc-strings. |
10382 |
|
|
|
10383 |
bh |
292 |
* test/: new subdirectory with a bunch of unit tests. |
10384 |
|
|
|
10385 |
|
|
* test/README, test/test_table.py, test/test_save.py, |
10386 |
|
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
10387 |
|
|
brief instructions on how to run them |
10388 |
|
|
|
10389 |
bh |
287 |
2002-08-29 Bernhard Herzog <[email protected]> |
10390 |
|
|
|
10391 |
bh |
291 |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
10392 |
|
|
arcs with multiple parts. |
10393 |
|
|
|
10394 |
bh |
289 |
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
10395 |
|
|
Handle degenrate rectangles. |
10396 |
|
|
|
10397 |
bh |
287 |
* Thuban/Model/table.py: Make writing records work correctly: |
10398 |
|
|
(Table.__init__): Keep track of whether the DBF is open for |
10399 |
|
|
writing |
10400 |
|
|
(Table.write_record): Open the DBF file for writing when necessary |
10401 |
|
|
|
10402 |
bh |
285 |
2002-08-27 Bernhard Herzog <[email protected]> |
10403 |
|
|
|
10404 |
|
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
10405 |
|
|
dbf files only for reading by default. Use a new writable dbf |
10406 |
|
|
object for writing. |
10407 |
|
|
|
10408 |
bh |
278 |
2002-08-26 Bernhard Herzog <[email protected]> |
10409 |
|
|
|
10410 |
bh |
282 |
* Thuban/UI/mainwindow.py: Refactor the context creation: |
10411 |
|
|
(MainWindow.Context): New method to return a context |
10412 |
|
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
10413 |
|
|
new method |
10414 |
|
|
|
10415 |
bh |
278 |
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
10416 |
|
|
layer table specific code from TableGrid into LayerTableGrid |
10417 |
|
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
10418 |
|
|
from TableFrame into LayerTableFrame |
10419 |
bh |
280 |
(LayerTableGrid.select_shape): Remove a debug print |
10420 |
bh |
278 |
|
10421 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
10422 |
|
|
LayerTableFrame |
10423 |
|
|
|
10424 |
bh |
277 |
2002-08-23 Bernhard Herzog <[email protected]> |
10425 |
|
|
|
10426 |
|
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
10427 |
|
|
absolute filename. |
10428 |
|
|
|
10429 |
bh |
269 |
2002-08-22 Bernhard Herzog <[email protected]> |
10430 |
|
|
|
10431 |
bh |
275 |
* Thuban/Model/table.py (Table.write_record): New method to write |
10432 |
|
|
records. |
10433 |
tkoester |
403 |
(Table.__init__): Open the DBF file for writing too. |
10434 |
bh |
275 |
|
10435 |
|
|
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
10436 |
|
|
into the underlying table. |
10437 |
|
|
|
10438 |
|
|
* extensions/shapelib/shapefil.h (DBFCommit), |
10439 |
|
|
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
10440 |
|
|
commit any changes made to the DBF file. |
10441 |
|
|
|
10442 |
bh |
271 |
* Thuban/UI/mainwindow.py (make_check_current_tool) |
10443 |
|
|
(_tool_command): Put the code that generates the "checked" |
10444 |
|
|
callback into a separate function so that we can reuse it |
10445 |
|
|
elsewhere |
10446 |
|
|
|
10447 |
bh |
269 |
* Thuban/Model/save.py (Saver): New class to handle serializing a |
10448 |
|
|
session into an XML file. The main reason to introduce a class is |
10449 |
|
|
that applications built on Thuban can derive from it so that they |
10450 |
|
|
can save additional information in a session file. |
10451 |
|
|
(save_session): Delegate almost all the work to the Saver class. |
10452 |
|
|
Rename the filename argument to file because it may be a file like |
10453 |
|
|
object now. |
10454 |
|
|
|
10455 |
|
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
10456 |
|
|
code. Remove the little test code which would be executed when the |
10457 |
|
|
module is run as a script which didn't work anymore since it can't |
10458 |
|
|
import the other Thuban modules. |
10459 |
|
|
(ProcessSession, load_session): Refactor the ProcessSession to |
10460 |
|
|
have one method for each element start and end tag so that derived |
10461 |
|
|
classes can easily override the processing of individual tags. |
10462 |
|
|
Also, always parse with namespaces enabled because applications |
10463 |
|
|
built on top of Thuban will likely use namespaces if they extend |
10464 |
|
|
the session file format. |
10465 |
|
|
|
10466 |
bh |
266 |
2002-08-21 Bernhard Herzog <[email protected]> |
10467 |
|
|
|
10468 |
|
|
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
10469 |
|
|
because thubaninit_contents will do it for us. |
10470 |
|
|
|
10471 |
tkoester |
403 |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
10472 |
jan |
265 |
|
10473 |
|
|
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
10474 |
|
|
tree window already open |
10475 |
|
|
|
10476 |
bh |
259 |
2002-08-15 Bernhard Herzog <[email protected]> |
10477 |
|
|
|
10478 |
bh |
263 |
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
10479 |
|
|
with self. |
10480 |
|
|
|
10481 |
|
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
10482 |
|
|
when we have actually captured it. |
10483 |
|
|
|
10484 |
bh |
259 |
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
10485 |
|
|
shapefile and destroy the table. |
10486 |
|
|
|
10487 |
|
|
* Thuban/Model/table.py (Table.Destroy): New. Close the DBF file. |
10488 |
|
|
|
10489 |
bh |
254 |
2002-08-14 Bernhard Herzog <[email protected]> |
10490 |
|
|
|
10491 |
bh |
256 |
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |
10492 |
|
|
instance variable columns |
10493 |
|
|
(RecordTable.GetTypeName): row and col may be negative in some |
10494 |
|
|
cases. |
10495 |
|
|
|
10496 |
bh |
254 |
* setup.py (InstallLocal.initialize_options) |
10497 |
|
|
(InstallLocal.finalize_options, InstallLocal.user_options): New |
10498 |
|
|
option create-init-file to build a thubaninit.py when running |
10499 |
|
|
install_local |
10500 |
|
|
(InstallLocal.run): Create the thubaninit.py module when requested |
10501 |
|
|
(thubaninit_contents): Split the template into several parts and |
10502 |
|
|
create a new function thubaninit_contents that creates the |
10503 |
|
|
contents of a thubaninit module. |
10504 |
|
|
(ThubanInstall.run): Use the new function to create the thubaninit |
10505 |
|
|
module. |
10506 |
|
|
|
10507 |
bh |
252 |
2002-07-30 Bernhard Herzog <[email protected]> |
10508 |
|
|
|
10509 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Do some |
10510 |
|
|
cleanup. |
10511 |
|
|
(ThubanApplication.MainLoop): Extend to automatically call OnExit. |
10512 |
|
|
|
10513 |
|
|
* Thuban/Model/session.py (Session.Destroy): Don't bypass the |
10514 |
|
|
direct base class' Destroy method. |
10515 |
|
|
|
10516 |
|
|
* Thuban/Model/map.py (Map.ClearLayers): New method to delete all |
10517 |
|
|
layers. |
10518 |
|
|
(Map.Destroy): Destroy the label_layer as well and call the |
10519 |
|
|
inherited Desatroymethod first so that no more messages are |
10520 |
|
|
issued. |
10521 |
|
|
(Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED |
10522 |
|
|
message if the stacking order actually has changed. Add |
10523 |
|
|
doc-strings. |
10524 |
|
|
(Map.BoundingBox): Correct the doc-string. |
10525 |
|
|
(Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) |
10526 |
|
|
(Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings. |
10527 |
|
|
|
10528 |
|
|
* Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete |
10529 |
|
|
all labels. |
10530 |
|
|
|
10531 |
bh |
247 |
2002-07-29 Bernhard Herzog <[email protected]> |
10532 |
|
|
|
10533 |
|
|
* Thuban/Model/map.py (Map.subscribe_layer_channels) |
10534 |
|
|
(Map.unsubscribe_layer_channels): Put the code that (un)subscribes |
10535 |
|
|
to a layer's channels into separate methods. |
10536 |
|
|
(Map.RemoveLayer, Map.AddLayer): Call the new methods |
10537 |
|
|
(Map.Destroy): Unsubscribe from a layer's channels before |
10538 |
|
|
destroying it. |
10539 |
|
|
|
10540 |
|
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Change the |
10541 |
|
|
selected_layer parameter to searched_layer which is the layer to |
10542 |
|
|
search in. |
10543 |
|
|
(MapCanvas.SelectShapeAt): New parameter layer to restrict the |
10544 |
|
|
search to that layer. Return the selected layer and shape. |
10545 |
|
|
|
10546 |
|
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Fix a |
10547 |
|
|
typo |
10548 |
|
|
|
10549 |
bh |
238 |
2002-07-24 Bernhard Herzog <[email protected]> |
10550 |
|
|
|
10551 |
bh |
243 |
* Thuban/UI/application.py (ThubanApplication.create_session): |
10552 |
|
|
Extend the doc string. |
10553 |
|
|
(ThubanApplication.subscribe_session) |
10554 |
|
|
(ThubanApplication.unsubscribe_session): New methods to |
10555 |
|
|
subscribe/unsubscribe to/from session channels. |
10556 |
|
|
(ThubanApplication.SetSession): Call the new methods here. |
10557 |
|
|
(ThubanApplication.maps_changed, ThubanApplication.set_map): |
10558 |
|
|
Renamed set_map to maps_changed. Its now a subscriber for |
10559 |
|
|
MAPS_CHANGED. |
10560 |
|
|
|
10561 |
|
|
* Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct |
10562 |
|
|
x-coordinate in case of simple clicks |
10563 |
|
|
|
10564 |
|
|
* Thuban/Model/base.py (Modifiable.changed): Apply the args tuple, |
10565 |
|
|
don't pass it as a parameter |
10566 |
|
|
|
10567 |
|
|
* Thuban/Model/session.py (Session.RemoveMap): New |
10568 |
|
|
|
10569 |
bh |
238 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
10570 |
|
|
window size into a parameter. |
10571 |
|
|
|
10572 |
bh |
235 |
2002-07-23 Bernhard Herzog <[email protected]> |
10573 |
|
|
|
10574 |
bh |
237 |
* Thuban/UI/menu.py (Menu.item_index): Also search for menus not |
10575 |
|
|
just commands. |
10576 |
|
|
|
10577 |
bh |
235 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the |
10578 |
|
|
parameter list a bit to allow setting the window title and the |
10579 |
|
|
initial message in the status bar. Update the callers. |
10580 |
|
|
|
10581 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
10582 |
|
|
(ThubanApplication.CreateMainWindow): Put the mainwindow |
10583 |
|
|
instantiation into a separate method so that it can be overridden |
10584 |
|
|
by a subclass. |
10585 |
|
|
|
10586 |
bh |
230 |
2002-07-19 Bernhard Herzog <[email protected]> |
10587 |
|
|
|
10588 |
bh |
234 |
* Thuban/Model/session.py: Issue a CHANGED message every time |
10589 |
|
|
another changed message is issued to make it easier to get |
10590 |
|
|
notified of changes. |
10591 |
|
|
(Session): Update the doc string |
10592 |
|
|
(Session.forward): Issue changed-events as CHANGED as well. |
10593 |
|
|
(Session.changed): Overwrite the inherited version to issue |
10594 |
|
|
CHANGED events as well. |
10595 |
|
|
|
10596 |
|
|
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
10597 |
|
|
CHANGED channel to be informed of changes. |
10598 |
|
|
(SessionTreeCtrl.session_channels): Not needed any longer. |
10599 |
tkoester |
403 |
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
10600 |
bh |
234 |
Only have to (un)subscribe CHANGED |
10601 |
|
|
|
10602 |
|
|
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
10603 |
|
|
|
10604 |
bh |
230 |
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
10605 |
|
|
for the wxPython locale bug to __init__.py so that it's |
10606 |
|
|
automatically executed by anybody using UI code from Thuban. |
10607 |
|
|
|
10608 |
bh |
225 |
2002-07-18 Bernhard Herzog <[email protected]> |
10609 |
|
|
|
10610 |
bh |
228 |
* Thuban/UI/main.py (main): app no longer needs to be global |
10611 |
|
|
|
10612 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
10613 |
|
|
as parameter and store it in an instance variable |
10614 |
|
|
(MainWindow.invoke_command, MainWindow.update_command_ui) |
10615 |
|
|
(MainWindow.save_modified_session, MainWindow.NewSession) |
10616 |
|
|
(MainWindow.OpenSession, MainWindow.SaveSession) |
10617 |
|
|
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
10618 |
|
|
application object. |
10619 |
|
|
|
10620 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
10621 |
|
|
the main window with self. |
10622 |
|
|
|
10623 |
bh |
225 |
* Thuban/UI/context.py: New module with the context class |
10624 |
|
|
|
10625 |
|
|
* Thuban/UI/command.py (Command): Update doc string. |
10626 |
|
|
|
10627 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
10628 |
|
|
MainWindow.update_command_ui): Pass an instance of the context |
10629 |
|
|
class to the command's methods |
10630 |
|
|
(check_current_tool, call_method): Handle the new context |
10631 |
|
|
implementation |
10632 |
|
|
|
10633 |
|
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
10634 |
|
|
check_simple_tool): Handle the new context implementation |
10635 |
|
|
|
10636 |
|
|
* Examples/simple_extensions/simple_command.py (simple_command): |
10637 |
|
|
Handle the new context implementation. Update the comments about |
10638 |
|
|
the context. |
10639 |
|
|
|
10640 |
|
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
10641 |
|
|
doc-string |
10642 |
|
|
(ThubanApplication.Session): New method to return the session |
10643 |
|
|
object |
10644 |
|
|
|
10645 |
|
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
10646 |
|
|
interactor's selected_layer may not be a layer of the current |
10647 |
|
|
session when the tree is updated while a new session is being set. |
10648 |
|
|
|
10649 |
bh |
217 |
2002-07-17 Bernhard Herzog <[email protected]> |
10650 |
|
|
|
10651 |
|
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
10652 |
|
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
10653 |
|
|
update_tree into update_tree and add_items. The tree now uses a |
10654 |
|
|
more generic way to display the contents of the tree. |
10655 |
|
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
10656 |
|
|
|
10657 |
|
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
10658 |
|
|
Thuban/Model/extension.py (Extension.TreeInfo), |
10659 |
|
|
Thuban/Model/map.py (Map.TreeInfo), |
10660 |
tkoester |
403 |
Thuban/Model/session.py (Session.TreeInfo): |
10661 |
bh |
217 |
Add TreeInfo methods to implement the new tree view update scheme |
10662 |
|
|
|
10663 |
bh |
216 |
2002-07-16 Bernhard Herzog <[email protected]> |
10664 |
|
|
|
10665 |
|
|
* Thuban/UI/application.py: Don't use "import from" for the |
10666 |
|
|
MainWindow. It can't always be resolved. |
10667 |
|
|
(ThubanApplication.OnInit): change reference to MainWindow |
10668 |
|
|
accordingly. |
10669 |
|
|
|
10670 |
|
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
10671 |
|
|
completely |
10672 |
|
|
|
10673 |
bh |
213 |
2002-07-10 Bernhard Herzog <[email protected]> |
10674 |
|
|
|
10675 |
|
|
* setup.py (create_init_module): New configurable variable whose |
10676 |
|
|
default depends on the platform we're running on. |
10677 |
|
|
(ThubanInstall.initialize_options): Initialize |
10678 |
|
|
self.create_init_module from the global create_init_module |
10679 |
|
|
(ThubanInstall.user_options): indictate that the options |
10680 |
|
|
create-init-module and init-module-dir have arguments. |
10681 |
|
|
|
10682 |
|
|
* setup.py: In the setup call change the version number to include |
10683 |
|
|
cvs. |
10684 |
|
|
|
10685 |
|
|
* MANIFEST.in: Add the files in Examples |
10686 |
|
|
|
10687 |
bh |
205 |
2002-07-09 Bernhard Herzog <[email protected]> |
10688 |
|
|
|
10689 |
bh |
210 |
* setup.py: In the setup call, use the thuban homepage as the |
10690 |
|
|
value of the url parameter. |
10691 |
|
|
|
10692 |
bh |
208 |
* Examples: New subdirectory for examples. |
10693 |
|
|
|
10694 |
|
|
* Examples/simple_extensions/simple_tool.xpm, |
10695 |
|
|
Examples/simple_extensions/simple_tool.py, |
10696 |
|
|
Examples/simple_extensions/simple_command.py, |
10697 |
|
|
Examples/simple_extensions/README: Simple examples showing how to |
10698 |
|
|
add new commands and tools. |
10699 |
|
|
|
10700 |
bh |
207 |
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
10701 |
|
|
bdist_rpm that we also have an install script. |
10702 |
|
|
(bdist_inno): Add 2002 to the copyright notice. |
10703 |
|
|
|
10704 |
bh |
205 |
* setup.py: Create a file in python's site-packages directory to |
10705 |
|
|
make installation of Thuban as a library easier. |
10706 |
|
|
(ThubanInstall.user_options): Add two new options, |
10707 |
|
|
create-init-module and init-module-dir |
10708 |
|
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
10709 |
|
|
filenames for installation in the default directories. |
10710 |
|
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
10711 |
|
|
the inherited methods to capture some filenames before they're |
10712 |
|
|
transformed too much by distutils. |
10713 |
|
|
(ThubanInstall.run): Create the init module if requested. |
10714 |
|
|
(ThubanInstall.thuban_init_filename): New method to return the |
10715 |
|
|
full name of the init module. |
10716 |
|
|
(ThubanInstall.get_outputs): Append the filename of the init |
10717 |
|
|
module. |
10718 |
|
|
|
10719 |
bh |
202 |
2002-07-08 Bernhard Herzog <[email protected]> |
10720 |
|
|
|
10721 |
bh |
205 |
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
10722 |
|
|
handle the prefix properly which means that the default for the |
10723 |
|
|
installation prefix should be /usr for RPMs and /usr/local when |
10724 |
|
|
doing a normal source install. |
10725 |
|
|
(bdist_rpm_install_script): Script to override the default install |
10726 |
|
|
commands in the specfile generated by the bdist_rpm command. |
10727 |
|
|
(thuban_bdist_rpm.user_options): Add a prefix option |
10728 |
|
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
10729 |
|
|
Create the script files for the spec files as empty files here |
10730 |
|
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
10731 |
|
|
to fill the script files with content. |
10732 |
|
|
|
10733 |
bh |
202 |
* Thuban/Model/save.py (relative_filename): Wrapper around |
10734 |
|
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
10735 |
|
|
argument. save_session now automatically uses this version, |
10736 |
|
|
solving a problem when saving to a relative filename. |
10737 |
|
|
|
10738 |
|
|
* setup.py: In the setup call, make sure that the library |
10739 |
|
|
directories are under $prefix/lib not directly under $prefix. |
10740 |
|
|
|
10741 |
tkoester |
403 |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
10742 |
jan |
199 |
|
10743 |
|
|
* Thuban/Model/extension.py: new module to handle extension objects. |
10744 |
|
|
* Thuban/Model/messages.py: new messages for extensions. |
10745 |
|
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
10746 |
|
|
Session.AddExtension): new for handling extensions. |
10747 |
|
|
Also some other minor changes to round up extension handling. |
10748 |
|
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
10749 |
|
|
of Extension titles and title and names of its objects. |
10750 |
|
|
|
10751 |
bh |
194 |
2002-05-29 Bernhard Herzog <[email protected]> |
10752 |
|
|
|
10753 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
10754 |
bh |
202 |
the events for a command. |
10755 |
bh |
194 |
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
10756 |
|
|
Call bind_command_events to bind the events. add_toolbar_command |
10757 |
|
|
can now bind events too so that it's possible to have commands |
10758 |
|
|
that are only available through the toolbar. |
10759 |
|
|
(MainWindow.init_ids): New instance variable events_bound to keep |
10760 |
|
|
track of for which commands events have been bound. |
10761 |
|
|
|
10762 |
bh |
190 |
2002-05-28 Bernhard Herzog <[email protected]> |
10763 |
|
|
|
10764 |
|
|
* Thuban/UI/menu.py: New module to build and manage menus. |
10765 |
|
|
|
10766 |
|
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
10767 |
|
|
(MainWindow.__init__, main_menu): move the definition of the main |
10768 |
|
|
menu from __init__ to the Menu instance main_menu. |
10769 |
|
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
10770 |
|
|
build the menu bar and sub-menus from a menu description. |
10771 |
|
|
|
10772 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
10773 |
|
|
startup file |
10774 |
|
|
(ThubanApplication.read_startup_files): New method to run |
10775 |
|
|
~/.thuban/thubanstart.py |
10776 |
|
|
|
10777 |
bh |
192 |
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
10778 |
|
|
Move the toolbar definition to the Menu instance main_toolbar. |
10779 |
|
|
(MainWindow.build_toolbar): New method to build the toolbar |
10780 |
|
|
similar to the build_menu methods |
10781 |
|
|
|
10782 |
bh |
184 |
2002-05-23 Bernhard Herzog <[email protected]> |
10783 |
|
|
|
10784 |
bh |
186 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
10785 |
|
|
layer_outline_color. Fix it in the definition of the command too. |
10786 |
|
|
|
10787 |
bh |
184 |
* Thuban/UI/command.py (Command): Fix typo in doc string |
10788 |
|
|
|
10789 |
bh |
182 |
2002-05-22 Bernhard Herzog <[email protected]> |
10790 |
|
|
|
10791 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
10792 |
|
|
in the docstring |
10793 |
|
|
|
10794 |
bh |
175 |
2002-05-15 Bernhard Herzog <[email protected]> |
10795 |
|
|
|
10796 |
bh |
180 |
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
10797 |
|
|
when the shapefile is empty. |
10798 |
|
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
10799 |
|
|
now return None for empty shapefiles. Update doc-strings. |
10800 |
|
|
|
10801 |
|
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
10802 |
|
|
the layer's bbox being None. |
10803 |
|
|
|
10804 |
|
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
10805 |
|
|
layer's bbox being None. |
10806 |
|
|
|
10807 |
bh |
175 |
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
10808 |
|
|
necessary. |
10809 |
|
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
10810 |
|
|
and last_selected_shape to determine how the selection has |
10811 |
|
|
changed. |
10812 |
|
|
|
10813 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
10814 |
|
|
AutoSizeColumns because it will cause a traversal of the entire |
10815 |
|
|
table which for large .dbf files will take a very long time. |
10816 |
|
|
|
10817 |
bh |
172 |
2002-05-14 Bernhard Herzog <[email protected]> |
10818 |
|
|
|
10819 |
|
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
10820 |
|
|
maximum depth for the tree than shapelib does by default. |
10821 |
|
|
|
10822 |
bh |
165 |
2002-05-10 Bernhard Herzog <[email protected]> |
10823 |
|
|
|
10824 |
|
|
* setup.py (py_modules): The shptree modules doesn't have a |
10825 |
|
|
wrapper, so don't include it in the py_modules |
10826 |
|
|
|
10827 |
bh |
163 |
2002-05-08 Bernhard Herzog <[email protected]> |
10828 |
|
|
|
10829 |
|
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
10830 |
|
|
const void * as in the qsort prototype |
10831 |
|
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
10832 |
|
|
|
10833 |
|
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
10834 |
|
|
maintains to redraw the window during a drag. |
10835 |
|
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
10836 |
|
|
a small region around a point for hit-testing. |
10837 |
|
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
10838 |
|
|
around the point. |
10839 |
|
|
|
10840 |
|
|
* setup.py: Increment the version to 0.1.2 |
10841 |
|
|
|
10842 |
|
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
10843 |
|
|
debug print and set session to None after unsubscribing |
10844 |
|
|
|
10845 |
bh |
146 |
2002-05-07 Bernhard Herzog <[email protected]> |
10846 |
|
|
|
10847 |
bh |
154 |
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
10848 |
|
|
the file to have a .thuban extension. |
10849 |
|
|
|
10850 |
bh |
152 |
* Thuban/UI/tree.py (session_channels): New class constant with |
10851 |
|
|
all the session channels to subscribe to to update the tree |
10852 |
|
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
10853 |
|
|
can unsubscribe properly. Use the new class constant to |
10854 |
|
|
unsubscribe from the old session and subscribe to the new one. |
10855 |
|
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
10856 |
|
|
subscriptions of the SessionTreeCtrl. |
10857 |
|
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
10858 |
|
|
|
10859 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
10860 |
|
|
Session Tree" command to the file menu. |
10861 |
|
|
|
10862 |
|
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
10863 |
|
|
as update_region to the renderer. |
10864 |
|
|
|
10865 |
|
|
* Thuban/UI/renderer.py |
10866 |
|
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
10867 |
|
|
update box is now directly a tuple, not a wxRect anymore. |
10868 |
|
|
|
10869 |
|
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
10870 |
|
|
prints. |
10871 |
|
|
|
10872 |
|
|
2002-05-07 Bernhard Herzog <[email protected]> |
10873 |
|
|
|
10874 |
bh |
146 |
* setup.py: Add the shptree extension module. See |
10875 |
|
|
extensions/pyshapelib/ChangeLog for more details. |
10876 |
|
|
|
10877 |
|
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
10878 |
|
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
10879 |
|
|
shapelib 1.2.9. For some reason it wasn't really done on |
10880 |
|
|
2002-04-11. |
10881 |
|
|
|
10882 |
|
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
10883 |
|
|
shapelib 1.2.9. The only real difference is the use of qsort |
10884 |
|
|
instead of a bubble sort implementation |
10885 |
|
|
|
10886 |
|
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
10887 |
|
|
shapetree to hold the shapelib quadtree for the shapefile |
10888 |
|
|
(Layer.open_shapefile): Create the quad tree. |
10889 |
|
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
10890 |
|
|
a given region using the quad tree. |
10891 |
|
|
|
10892 |
|
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
10893 |
|
|
comment |
10894 |
|
|
(draw_polygon_shape): Accept both arcs and polygons. |
10895 |
|
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
10896 |
|
|
the api. |
10897 |
|
|
|
10898 |
|
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
10899 |
|
|
return the shape ids to be rendered in a given layer. |
10900 |
|
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
10901 |
|
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
10902 |
|
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
10903 |
|
|
has to be updated |
10904 |
|
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
10905 |
|
|
calling it's ShapesInRegion method. |
10906 |
|
|
|
10907 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
10908 |
|
|
update_region for the update region. |
10909 |
|
|
(MapCanvas.OnPaint): Maintain the update region |
10910 |
|
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
10911 |
|
|
to the renderer when drawing the bitmap. Reset the update_region. |
10912 |
|
|
|
10913 |
bh |
129 |
2002-05-03 Bernhard Herzog <[email protected]> |
10914 |
|
|
|
10915 |
bh |
131 |
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
10916 |
|
|
MainWindow.OpenSession): Change the file extension of the session |
10917 |
|
|
files to .thuban |
10918 |
|
|
|
10919 |
bh |
129 |
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
10920 |
|
|
Move the map channels to be forwarded by the session into the |
10921 |
bh |
146 |
class constant with forwarded_channels. Also add |
10922 |
|
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
10923 |
|
|
forwarded_channels |
10924 |
bh |
129 |
|
10925 |
|
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
10926 |
|
|
typo and some rewording). |
10927 |
|
|
|
10928 |
bh |
126 |
2002-05-02 Bernhard Herzog <[email protected]> |
10929 |
|
|
|
10930 |
|
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
10931 |
|
|
around to speed up most redraws: |
10932 |
|
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
10933 |
|
|
bitmap |
10934 |
|
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
10935 |
|
|
self.bitmap to draw. |
10936 |
|
|
(MapCanvas.full_redraw): New method to force a full redraw |
10937 |
|
|
including the bitmap |
10938 |
|
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
10939 |
|
|
make sure the bitmap is redrawn. |
10940 |
|
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
10941 |
|
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
10942 |
|
|
make sure the bitmap is redrawn. |
10943 |
|
|
(MapCanvas.OnSize): New method to handle size events so that the |
10944 |
|
|
bitmap can be redrawn. |
10945 |
|
|
|
10946 |
bh |
124 |
2002-04-29 Bernhard Herzog <[email protected]> |
10947 |
|
|
|
10948 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
10949 |
|
|
canvas' VIEW_POSITION event |
10950 |
|
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
10951 |
|
|
Update the text in the status-bar accordingly. |
10952 |
|
|
|
10953 |
|
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
10954 |
|
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
10955 |
|
|
called. |
10956 |
|
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
10957 |
|
|
current_position |
10958 |
|
|
(MapCanvas.set_current_position): New method to set |
10959 |
|
|
current_position. Issue a VIEW_POSITION event |
10960 |
|
|
(MapCanvas.CurrentPosition): New public method to return the value |
10961 |
|
|
of current_position. Should be called when the VIEW_POSITION event |
10962 |
|
|
is processed. |
10963 |
|
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
10964 |
|
|
Update the position. |
10965 |
|
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
10966 |
|
|
|
10967 |
|
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
10968 |
|
|
position in the statusbar |
10969 |
|
|
|
10970 |
tkoester |
403 |
2002-04-26 Frank Koormann <[email protected]> |
10971 |
frank |
120 |
|
10972 |
|
|
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
10973 |
|
|
|
10974 |
tkoester |
403 |
2002-04-24 Frank Koormann <[email protected]> |
10975 |
|
|
|
10976 |
frank |
118 |
* Resources/Bitmaps/identify.xpm: shadow added |
10977 |
|
|
|
10978 |
|
|
* Resources/Bitmaps/fullextent.xpm: new |
10979 |
jan |
116 |
|
10980 |
tkoester |
403 |
2002-04-22 Jan-Oliver Wagner <[email protected]> |
10981 |
jan |
116 |
|
10982 |
tkoester |
403 |
* Thuban/UI/tree.py (update_tree): added test for None on map bounding |
10983 |
|
|
box |
10984 |
jan |
114 |
|
10985 |
tkoester |
403 |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
10986 |
|
|
|
10987 |
jan |
114 |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
10988 |
|
|
|
10989 |
|
|
* Thuban/UI/tree.py (update_tree): added added map extent |
10990 |
|
|
|
10991 |
|
|
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
10992 |
tkoester |
403 |
icon; added map_full_extend as tool |
10993 |
jan |
114 |
|
10994 |
tkoester |
403 |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
10995 |
jan |
107 |
|
10996 |
|
|
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
10997 |
|
|
saving _new_ sessions |
10998 |
|
|
|
10999 |
|
|
* Thuban/Model/session.py (create_empty_session): new session |
11000 |
|
|
don't have a filename (set to None) |
11001 |
|
|
|
11002 |
|
|
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
11003 |
|
|
|
11004 |
|
|
* Thuban/Model/load.py (ProcessSession): convert projection |
11005 |
|
|
parameters from unicode to regular string |
11006 |
|
|
|
11007 |
|
|
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
11008 |
|
|
|
11009 |
bh |
100 |
2002-04-11 Bernhard Herzog <[email protected]> |
11010 |
|
|
|
11011 |
|
|
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
11012 |
|
|
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
11013 |
|
|
1.2.9 |
11014 |
|
|
|
11015 |
|
|
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
11016 |
|
|
the pyshapelib directoy into the list of include dirs, so that |
11017 |
|
|
pyshapelib_api.h can be found. |
11018 |
|
|
|
11019 |
|
|
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
11020 |
|
|
holds the pyshapelib C-API |
11021 |
|
|
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
11022 |
|
|
pyshapelib_api to access the shapelib functions. |
11023 |
|
|
(initwxproj): Import the c_api from the shapelib module and |
11024 |
|
|
initialize pyshapelib_api. |
11025 |
|
|
|
11026 |
bh |
89 |
2002-04-04 Bernhard Herzog <[email protected]> |
11027 |
|
|
|
11028 |
bh |
91 |
* setup.py (thuban_bdist_rpm.initialize_options): Use |
11029 |
|
|
initialize_options to create the scripts for the rpm. |
11030 |
|
|
|
11031 |
bh |
89 |
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
11032 |
|
|
|
11033 |
bh |
85 |
2002-04-03 Bernhard Herzog <[email protected]> |
11034 |
|
|
|
11035 |
bh |
87 |
* setup.py: Increment version to 0.1.1 |
11036 |
|
|
|
11037 |
bh |
85 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
11038 |
|
|
Layer" and "Remove Layer" commands from the layer menu to the map |
11039 |
|
|
menu |
11040 |
|
|
|
11041 |
bh |
83 |
2002-02-15 Bernhard Herzog <[email protected]> |
11042 |
|
|
|
11043 |
|
|
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
11044 |
|
|
argument (python <= 1.5.2 erroneously accepted multiuple |
11045 |
|
|
arguments) |
11046 |
|
|
|
11047 |
bh |
81 |
2002-02-04 Bernhard Herzog <[email protected]> |
11048 |
|
|
|
11049 |
|
|
* Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a |
11050 |
|
|
RecordGrid in the identifyview. |
11051 |
|
|
(IdentifyView.__init__): Use IdentifyGridCtrl instead of |
11052 |
|
|
IdentifyListCtrl. The grid allows editing of the values. |
11053 |
|
|
|
11054 |
|
|
* Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes |
11055 |
|
|
implementing a grid for a single row of a thuban table. |
11056 |
|
|
|
11057 |
|
|
* Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all |
11058 |
|
|
layers by default. Easier to use than the previous default of only |
11059 |
|
|
searching through the select layer which meant that if no layer |
11060 |
|
|
was selected, you couldn't select a shape. |
11061 |
|
|
|
11062 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Fix typo |
11063 |
|
|
|
11064 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the |
11065 |
|
|
stroke_width attribute |
11066 |
|
|
|
11067 |
|
|
* Thuban/Model/save.py (save_session): Write the new stroke_width |
11068 |
|
|
attribute |
11069 |
|
|
|
11070 |
|
|
* Thuban/Model/load.py (ProcessSession.startElement): Read the |
11071 |
|
|
stroke_width attribute |
11072 |
|
|
|
11073 |
|
|
* Thuban/Model/layer.py (Layer.__init__): New parameter and |
11074 |
|
|
instance variable stroke_width |
11075 |
|
|
(Layer.SetStrokeWidth): Set the stroke_width. |
11076 |
|
|
|
11077 |
bh |
72 |
2002-02-01 Bernhard Herzog <[email protected]> |
11078 |
|
|
|
11079 |
|
|
* extensions/thuban/wxproj.cpp (project_points): Fix two |
11080 |
|
|
off-by-one errors in the last loop that joins the various parts |
11081 |
|
|
together. |
11082 |
|
|
|
11083 |
bh |
71 |
2002-01-14 Bernhard Herzog <[email protected]> |
11084 |
|
|
|
11085 |
|
|
* setup.py (data_dist.make_distribution): Fix some typos |
11086 |
|
|
|
11087 |
bh |
70 |
2001-09-18 Bernhard Herzog <[email protected]> |
11088 |
|
|
|
11089 |
|
|
* README: Slight tweaking in preparation for the 0.1 release |
11090 |
|
|
|
11091 |
|
|
* setup.cfg: Add section for sdist to create both tgz and zip |
11092 |
|
|
archives |
11093 |
|
|
|
11094 |
|
|
* setup.py: increase version number to 0.1 |
11095 |
|
|
(data_dist): New command class for data distribution |
11096 |
|
|
|
11097 |
bh |
64 |
2001-09-14 Bernhard Herzog <[email protected]> |
11098 |
|
|
|
11099 |
bh |
70 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
11100 |
|
|
Handle the case of no layer (i.e. layer is None) properly. |
11101 |
|
|
|
11102 |
tkoester |
403 |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
11103 |
bh |
70 |
Set the initial selection of the combo boxes to reflect the |
11104 |
|
|
projection we're starting with in a way that works on windows, |
11105 |
|
|
too. |
11106 |
|
|
|
11107 |
bh |
64 |
* Thuban/Lib/connector.py (Connector.print_connections): Print the |
11108 |
|
|
puiblisher's ids in hex to make it easier to compare them to the |
11109 |
|
|
standard repr of python methods |
11110 |
|
|
|
11111 |
|
|
* Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer |
11112 |
|
|
messages |
11113 |
|
|
|
11114 |
bh |
59 |
2001-09-13 Bernhard Herzog <[email protected]> |
11115 |
|
|
|
11116 |
bh |
64 |
* Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to |
11117 |
|
|
deselect the layer if no layer is selected |
11118 |
|
|
|
11119 |
bh |
59 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to |
11120 |
|
|
idle time when there actually is something to draw. If there's |
11121 |
|
|
nothing to draw simply clear the window |
11122 |
|
|
(MapCanvas.do_redraw): Call dc.EndDrawing and add some comments. |
11123 |
|
|
(MapCanvas.SetMap): force a redraw in all cases because |
11124 |
|
|
FitMapToWindow doesn't always do it. |
11125 |
|
|
(MapCanvas.ZoomFactor): Add an optional parameter, center, to |
11126 |
|
|
specify the point to move into the center of the window |
11127 |
|
|
(ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't |
11128 |
|
|
dragged, zoon in/out by a factor of 2 |
11129 |
bh |
64 |
(MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing |
11130 |
|
|
index, i.e. reversed drawing order) so that objects appearing to |
11131 |
|
|
be in from of others are selected first. This is probably mostly |
11132 |
|
|
relevant for point shapes where the symbols used may overlap |
11133 |
bh |
59 |
|
11134 |
|
|
* Thuban/Model/session.py (create_empty_session): Unset the |
11135 |
|
|
modified bit before returning it |
11136 |
|
|
|
11137 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession): Use |
11138 |
|
|
create_empty_session session to create the new, empty session. |
11139 |
|
|
|
11140 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of |
11141 |
|
|
the tool bitmaps. |
11142 |
|
|
(MainWindow.OnClose, MainWindow.save_modified_session): Separate |
11143 |
|
|
the code that asks whether the session should be saved into the |
11144 |
|
|
new method save_modified_session. |
11145 |
|
|
(MainWindow.OpenSession, MainWindow.NewSession): Use the new |
11146 |
|
|
method to save modified session here too. |
11147 |
|
|
|
11148 |
bh |
55 |
2001-09-11 Bernhard Herzog <[email protected]> |
11149 |
|
|
|
11150 |
|
|
* setup.py (InnoIconItem): fix typo |
11151 |
|
|
|
11152 |
|
|
(thuban_bdist_inno.run): |
11153 |
|
|
(bdist_inno.run): Move the decision not to create symlinks on |
11154 |
|
|
non-nt platforms to thuban_bdist_inno and do it unconditinally |
11155 |
|
|
since we never want to create the symlinks here |
11156 |
|
|
|
11157 |
bh |
48 |
2001-09-10 Bernhard Herzog <[email protected]> |
11158 |
|
|
|
11159 |
bh |
53 |
* Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the |
11160 |
|
|
identify view immediately |
11161 |
|
|
|
11162 |
|
|
* Thuban/UI/controls.py: New file with two classes RecordListCtrl |
11163 |
|
|
and SelectableRecordListCtrl that implement the code shared by the |
11164 |
|
|
identify view and the label dialog |
11165 |
|
|
|
11166 |
|
|
* Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the |
11167 |
|
|
new class RecordListCtrl |
11168 |
|
|
|
11169 |
|
|
* Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the |
11170 |
|
|
return value of GetValue is None instead of using it as a boolean |
11171 |
|
|
directly so that Zero numbers are handled properly. |
11172 |
|
|
(LabelListCtrl): Derive from the new class |
11173 |
|
|
SelectableRecordListCtrl |
11174 |
|
|
|
11175 |
bh |
48 |
* Thuban/UI/proj4dialog.py (Proj4Dialog.__init__): |
11176 |
|
|
(Proj4Dialog.dialogLayout): Make the window resizable and set the |
11177 |
|
|
size of the text control explicitly to make the sizers work on |
11178 |
|
|
both Windows and X. |
11179 |
|
|
|
11180 |
bh |
44 |
2001-09-07 Bernhard Herzog <[email protected]> |
11181 |
|
|
|
11182 |
|
|
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
11183 |
|
|
that can limit the search to the currently selected layer. |
11184 |
|
|
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
11185 |
|
|
layer stays selected even when no shape is found |
11186 |
bh |
46 |
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
11187 |
|
|
height do nothing (avoids zero division errors) |
11188 |
bh |
44 |
|
11189 |
bh |
32 |
2001-09-06 Bernhard Herzog <[email protected]> |
11190 |
|
|
|
11191 |
bh |
42 |
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
11192 |
|
|
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
11193 |
|
|
convenient :-) |
11194 |
|
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
11195 |
|
|
a new instvar layer_to_item to map layers to tree items |
11196 |
|
|
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
11197 |
|
|
to match the current selection in the interactor |
11198 |
|
|
|
11199 |
bh |
40 |
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
11200 |
|
|
(Interactor.HasSelectedLayer): New methods to query the current |
11201 |
|
|
selection |
11202 |
|
|
|
11203 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
11204 |
|
|
(MainWindow.has_selected_layer): Simply call the appropriate |
11205 |
|
|
interactor method |
11206 |
|
|
|
11207 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
11208 |
|
|
(MainWindow.LayerShowTable): |
11209 |
|
|
(MainWindow.identify_view_on_demand): Store the interactor in an |
11210 |
|
|
instvar and use that reference instead of going through main.app |
11211 |
|
|
|
11212 |
tkoester |
403 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
11213 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
11214 |
bh |
40 |
* Thuban/UI/main.py (main): Create the session tree view in main |
11215 |
|
|
with the new mainwindow method ShowSessionTree and not directly |
11216 |
|
|
the application's OnInit method |
11217 |
|
|
|
11218 |
|
|
* Thuban/UI/tree.py (myTreeCtrlPanel): |
11219 |
|
|
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
11220 |
|
|
TreeCtrl isntead of a panel. This affects most method since we now |
11221 |
|
|
refer to self instead of self.tree |
11222 |
|
|
(SessionTreeView): New class implementing a non-modal dialog |
11223 |
|
|
showing the session tree. |
11224 |
|
|
|
11225 |
bh |
35 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
11226 |
|
|
layer to the tableview dialog. |
11227 |
|
|
|
11228 |
|
|
* Thuban/UI/tableview.py: Add some doc-strings |
11229 |
tkoester |
403 |
(TableGrid): |
11230 |
bh |
35 |
(TableGrid.OnRangeSelect): |
11231 |
|
|
(TableGrid.OnSelectCell): |
11232 |
|
|
(TableFrame.__init__): |
11233 |
|
|
(TableFrame.row_selected): |
11234 |
|
|
Selecting rows in the grid view now updates the selected shapes |
11235 |
|
|
through the TableFrame. To achieve this we derive TableGrid from |
11236 |
|
|
Publisher and introduce the message type ROW_SELECTED which the |
11237 |
|
|
TableFrame subscribes to and which is issued by OnRangeSelect and |
11238 |
|
|
OnSelectCell |
11239 |
|
|
|
11240 |
|
|
(DataTable.SelectRow): Removed because it's no longer needed in |
11241 |
|
|
the row/shape selection scheme |
11242 |
|
|
|
11243 |
bh |
32 |
* Thuban/UI/dialogs.py: New file implementing common classes for |
11244 |
|
|
dialogs |
11245 |
|
|
|
11246 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
11247 |
|
|
the SELECTED_SHAPE message anymore. This is now handled by the |
11248 |
|
|
parent. |
11249 |
|
|
(TableGrid.select_shape): Only update the selection if the shape |
11250 |
|
|
is not None. |
11251 |
|
|
(TableFrame): Inherit from the new NonModalDialog class. |
11252 |
|
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
11253 |
|
|
SELECT_SHAPE message. |
11254 |
|
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
11255 |
|
|
SELECT_SHAPE |
11256 |
|
|
|
11257 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
11258 |
|
|
(MainWindow.add_dialog): |
11259 |
|
|
(MainWindow.dialog_open): |
11260 |
|
|
(MainWindow.remove_dialog): |
11261 |
|
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
11262 |
|
|
of opened non-modal dialogs. |
11263 |
|
|
|
11264 |
|
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
11265 |
|
|
management code |
11266 |
|
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
11267 |
|
|
table using the non-modal dialog management code to only open a |
11268 |
|
|
view once for each table. |
11269 |
|
|
|
11270 |
|
|
(MainWindow.IdentifyTool): |
11271 |
|
|
(MainWindow.__init__): |
11272 |
|
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
11273 |
|
|
in IdentifyTool anymore. This will be done automatically by the |
11274 |
|
|
new method identify_view_on_demand which handles the |
11275 |
|
|
SELECTED_SHAPE message so that the identify view will be opened on |
11276 |
|
|
demand |
11277 |
|
|
|
11278 |
|
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
11279 |
|
|
the interactor argument. The SELECTED_SHAPE message is now handled |
11280 |
|
|
by the parent. |
11281 |
|
|
(IdentifyView.__init__): Add the interactor argument so that we |
11282 |
|
|
can handle the SELECTED_SHAPE message here |
11283 |
|
|
(IdentifyView.selected_shape): New method to handle the |
11284 |
|
|
SELECTED_SHAPE messages |
11285 |
|
|
|
11286 |
|
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
11287 |
|
|
NonModalDialog class |
11288 |
|
|
(IdentifyView.OnClose): Extend the inherited version to |
11289 |
|
|
unsubscribe SELECT_SHAPE |
11290 |
|
|
|
11291 |
|
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
11292 |
|
|
|
11293 |
bh |
26 |
2001-09-05 Bernhard Herzog <[email protected]> |
11294 |
|
|
|
11295 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
11296 |
tkoester |
403 |
|
11297 |
bh |
26 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
11298 |
|
|
interactor to pass through to the MapCanvas |
11299 |
tkoester |
403 |
|
11300 |
bh |
26 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
11301 |
|
|
argument to the MainWindow constructor to get rid of the ugly hack |
11302 |
|
|
that made main.app available early just so that the mapcanvas |
11303 |
|
|
could access the interactor object. |
11304 |
|
|
|
11305 |
bh |
19 |
2001-09-04 Bernhard Herzog <[email protected]> |
11306 |
|
|
|
11307 |
bh |
22 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
11308 |
|
|
that runs a modal message box |
11309 |
|
|
(MainWindow.OnClose): Use the new method |
11310 |
|
|
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
11311 |
|
|
selected. The command should be grayed out anyway, so there's no |
11312 |
|
|
need to pop up a message box. |
11313 |
|
|
(MainWindow.AddLayer): Pop up a message box with an error message |
11314 |
|
|
if the shape file can't be opened |
11315 |
|
|
|
11316 |
|
|
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
11317 |
|
|
immediately. This will cause an exception in case the file can't |
11318 |
|
|
be opened and we can display an appropriate message. |
11319 |
|
|
|
11320 |
bh |
19 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
11321 |
|
|
|
11322 |
|
|
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
11323 |
|
|
specific bdist_rpm command. |
11324 |
|
|
|
11325 |
|
|
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
11326 |
|
|
the locale module because it may not be available on some |
11327 |
|
|
installations. |
11328 |
|
|
|
11329 |
|
|
* extensions/pyprojection/LICENSE: Copy of the license text in |
11330 |
|
|
Projection.i. Having it in a separate file makes it easier to |
11331 |
|
|
refer to license text in e.g. RPMs |
11332 |
|
|
|
11333 |
bh |
18 |
2001-09-03 Bernhard Herzog <[email protected]> |
11334 |
|
|
|
11335 |
bh |
19 |
* setup.py: use wx-config instead of wxgtk-config because it's |
11336 |
|
|
more generic |
11337 |
|
|
|
11338 |
|
|
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
11339 |
|
|
<prefix>/bin to the outputs |
11340 |
|
|
(ThubanInstall.link_file): New method to link files. We need this |
11341 |
|
|
because the standard copy_files refuses to link non-existing |
11342 |
|
|
files. |
11343 |
|
|
(ThubanInstall.run): Remove the leading install root from the |
11344 |
|
|
script filename if an install root was specified and use the new |
11345 |
|
|
link_file method |
11346 |
tkoester |
403 |
|
11347 |
bh |
18 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
11348 |
|
|
the window when the first layer is added to the map. |
11349 |
|
|
|
11350 |
|
|
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
11351 |
|
|
when linking thuban.py to <prefix>/bin |
11352 |
|
|
|
11353 |
bh |
16 |
2001-08-31 Bernhard Herzog <[email protected]> |
11354 |
|
|
|
11355 |
|
|
* setup.py: In the setup call, the install parameters shouldn't |
11356 |
|
|
have trailing slashes because distutils on non-posix platforms |
11357 |
|
|
doesn't like that. The same applies to other directories like |
11358 |
|
|
"Resources/Bitmaps" |
11359 |
|
|
|
11360 |
|
|
In the configuration section for nt, move the wxWindows directory |
11361 |
|
|
optins into the part clearly marked as editable. |
11362 |
|
|
|
11363 |
|
|
(InstallLocal.initialize_options): |
11364 |
|
|
(InstallLocal.user_options): remove the currently unused debug |
11365 |
|
|
flag |
11366 |
|
|
(thuban_build_py.find_all_modules): Add this method so that it |
11367 |
|
|
works for our case of having packages and modules in one |
11368 |
|
|
distribution as well. |
11369 |
|
|
(ThubanInstall.initialize_options): |
11370 |
|
|
(ThubanInstall.finalize_options): |
11371 |
|
|
(ThubanInstall.user_options): |
11372 |
|
|
(ThubanInstall.boolean_options): Add new options, do-symlink and |
11373 |
|
|
extra files. Since these are the first ThubanInstall specific |
11374 |
|
|
options, override user_options and boolean_options |
11375 |
|
|
(ThubanInstall.run): Honor the new do-symlink and extra-files |
11376 |
|
|
options. |
11377 |
|
|
(ThubanInstall.get_outputs): Add to override the base-class's |
11378 |
|
|
version and add the extra-files to the outputs |
11379 |
|
|
(bdist_inno): New class for windows distributions with Inno Setup |
11380 |
|
|
(InnoIconItem): Helper class for bdist_inno |
11381 |
|
|
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
11382 |
|
|
this together with the appropriate parameters, to the setup call. |
11383 |
tkoester |
403 |
|
11384 |
bh |
16 |
* setup.cfg (bdist_inno): added new section for the inno setup |
11385 |
|
|
installer |
11386 |
|
|
|
11387 |
|
|
* Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var |
11388 |
|
|
changing_selection to avoid recursive selection events when |
11389 |
|
|
modifying the selection in response to a selection event. |
11390 |
|
|
(myTreeCtrlPanel.normalize_selection): Set the new inst var when |
11391 |
|
|
changing the tree's selection. |
11392 |
|
|
(myTreeCtrlPanel.OnSelChanged): Only normalize the selection when |
11393 |
|
|
we're not being called indirectly from normalize_selection. |
11394 |
|
|
|
11395 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call |
11396 |
|
|
event.Check only if the command is actuall checkable. |
11397 |
|
|
(MainWindow.__init__): Call the toolbar's Realize method to make |
11398 |
|
|
sure that the items are actually shown |
11399 |
|
|
|
11400 |
bh |
7 |
2001-08-28 Bernhard Herzog <[email protected]> |
11401 |
|
|
|
11402 |
bh |
9 |
* setup.py: Fix some doc strings |
11403 |
|
|
|
11404 |
bh |
7 |
* ChangeLog: started |
11405 |
|
|
|