1 |
|
2004-01-05 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* po/ru.po: Updated translations from Alex Shevlakov |
4 |
|
|
5 |
|
2004-01-05 Bernhard Herzog <[email protected]> |
6 |
|
|
7 |
|
* po/Makefile, po/README: Move the description of how to generate |
8 |
|
the translation statistics to the README. |
9 |
|
|
10 |
|
2003-12-23 Bernhard Herzog <[email protected]> |
11 |
|
|
12 |
|
* NEWS: Update for 1.0.0 |
13 |
|
|
14 |
|
* po/it.po: Another update from Maurizio Napolitano |
15 |
|
|
16 |
|
2003-12-23 Bernhard Herzog <[email protected]> |
17 |
|
|
18 |
|
* po/it.po: Updated translation from Maurizio Napolitano |
19 |
|
|
20 |
|
2003-12-23 Bernhard Herzog <[email protected]> |
21 |
|
|
22 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Mark one more string |
23 |
|
for translation |
24 |
|
|
25 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableRename) |
26 |
|
(MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more |
27 |
|
strings for translation |
28 |
|
|
29 |
|
* po/de.po: Update with the newly marked strings. |
30 |
|
|
31 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
32 |
|
|
33 |
|
* HOWTO-Release: Fix the places where version numbers have to be |
34 |
|
updated |
35 |
|
|
36 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
37 |
|
|
38 |
|
* setup.py (setup call): 1.0.0, yeah! |
39 |
|
|
40 |
|
* Thuban/version.py (longversion): 1.0.0, yeah! |
41 |
|
|
42 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
43 |
|
1.0.0 namespace too |
44 |
|
|
45 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Save with |
46 |
|
1.0.0 namespace |
47 |
|
|
48 |
|
* test/test_load.py (LoadSessionTest.dtd) |
49 |
|
(TestSingleLayer.file_contents) |
50 |
|
(TestNonAsciiColumnName.file_contents) |
51 |
|
(TestLayerVisibility.file_contents) |
52 |
|
(TestClassification.file_contents, TestLabels.file_contents) |
53 |
|
(TestLayerProjection.file_contents) |
54 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
55 |
|
(TestLabelLayer.file_contents, TestPostGISLayer.file_contents) |
56 |
|
(TestPostGISLayerPassword.file_contents) |
57 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for |
58 |
|
1.0.0 namespace |
59 |
|
|
60 |
|
* test/test_save.py (SaveSessionTest.dtd) |
61 |
|
(SaveSessionTest.testEmptySession) |
62 |
|
(SaveSessionTest.testSingleLayer) |
63 |
|
(SaveSessionTest.testLayerProjection) |
64 |
|
(SaveSessionTest.testRasterLayer) |
65 |
|
(SaveSessionTest.testClassifiedLayer) |
66 |
|
(SaveSessionTest.test_dbf_table) |
67 |
|
(SaveSessionTest.test_joined_table) |
68 |
|
(SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace |
69 |
|
|
70 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
71 |
|
|
72 |
|
* Thuban/Model/load.py (SessionLoader.start_label): Make sure the |
73 |
|
alignment flags are byte strings not unicode and that they have |
74 |
|
valid values |
75 |
|
|
76 |
|
* test/test_load.py (TestLabelLayer): New. Test loading (and |
77 |
|
indirectly saving) of maps with labels. |
78 |
|
|
79 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/tableview.py (TableGrid.OnDestroy) |
82 |
|
(TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to |
83 |
|
unsubscribe all subscribers. |
84 |
|
(LayerTableFrame.OnDestroy): Do not unsubscribe any messages from |
85 |
|
self.grid since it may already have been destroyed. |
86 |
|
Fixes RT #2256 |
87 |
|
|
88 |
|
2003-12-19 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
91 |
|
|
92 |
|
2003-12-16 Bernhard Herzog <[email protected]> |
93 |
|
|
94 |
|
* debian/bitmappath.patch, debian/setup.py.patch: |
95 |
|
added to ensure compliance with FHS for debian |
96 |
|
* debian/rules, debian/changelog: |
97 |
|
added patches in rules to ensure compliance with FHS for debian |
98 |
|
|
99 |
|
2003-12-16 Bernhard Herzog <[email protected]> |
100 |
|
|
101 |
|
* po/Makefile (mo): Make the output a bit nicer so that it prints |
102 |
|
statistics about the translations. Add a comment how produce even |
103 |
|
nicer statistics with sed. |
104 |
|
|
105 |
|
2003-12-09 Frank Koormann <[email protected]> |
106 |
|
|
107 |
|
* Resources/Projections/defaults.proj: |
108 |
|
French projection sample with correct accents (UNICODE). |
109 |
|
|
110 |
|
2003-12-05 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
|
* MANIFEST.in: Add the devtools directory |
113 |
|
|
114 |
|
* setup.py (setup call): Use license instead of licence. This |
115 |
|
silences a deprecation warning on Python 2.3 |
116 |
|
|
117 |
|
2003-12-05 Frank Koormann <[email protected]> |
118 |
|
|
119 |
|
Documentation synced with 1.0rc1 |
120 |
|
|
121 |
|
* Doc/manual/thuban-manual.xml: |
122 |
|
Minor formatting changes and references to database layers . |
123 |
|
Introduction.Internationalization: New section on i18n. |
124 |
|
MapManagement.AddingandRemovingLayers: Added item on database layers. |
125 |
|
MapManagement.TheLegend: Added section and screenshot on popup menu. |
126 |
|
ProjectionManagement: Updated screenshot and sentence on EPSG. |
127 |
|
Appendix.SupportedDataSources: Added PostGIS. |
128 |
|
Appendix.WorkingwithPostGIS: New section. |
129 |
|
|
130 |
|
* Doc/manual/images/6_projection.png: Updated screenshot including |
131 |
|
EPSG checkboxes. |
132 |
|
|
133 |
|
* Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot. |
134 |
|
|
135 |
|
* Doc/manual/images/app_postgis_add_layer.png, |
136 |
|
Doc/manual/images/app_postgis_db_add.png, |
137 |
|
Doc/manual/images/app_postgis_db_management.png: |
138 |
|
New screenshots focussing on database layers |
139 |
|
|
140 |
|
2003-12-05 Frank Koormann <[email protected]> |
141 |
|
|
142 |
|
* Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing |
143 |
|
write warning to stderr instead of rising a warning dialog |
144 |
|
|
145 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
146 |
|
|
147 |
|
Fix for RT #2243 |
148 |
|
|
149 |
|
* Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer): |
150 |
|
New. Like has_selected_layer but for shape layers only |
151 |
|
(_has_selected_shape_layer): New. Like _has_selected_layer but for |
152 |
|
shape layers only |
153 |
|
(layer_show_table command, layer_jointable command): Use these |
154 |
|
commands should only be available for shape layers |
155 |
|
|
156 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
|
* Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with |
159 |
|
publishers that are wx objects and may have been destroyed by wx |
160 |
|
already. Fixes RT #2242. |
161 |
|
|
162 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
163 |
|
|
164 |
|
* po/ru.po: Updates from Alex Shevlakov |
165 |
|
|
166 |
|
2003-12-03 Silke Reimer <silkeintevation.de> |
167 |
|
|
168 |
|
* debian/control, debian/changelog: Added gdal-support to |
169 |
|
debian package, updated to new thuban version |
170 |
|
|
171 |
|
|
172 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
|
* Thuban/Lib/version.py: New. Module for version number |
175 |
|
manipulations. The version of make_tuple here also deals better |
176 |
|
with more unusual version number strings, such as e.g. |
177 |
|
"1.2+cvs20031111" |
178 |
|
|
179 |
|
* Thuban/version.py (make_tuple): Removed. It's now in |
180 |
|
Thuban.Lib.version. Use that implementation instead. |
181 |
|
|
182 |
|
* test/test_lib_version.py: New. Tests for Thuban/Lib/version.py |
183 |
|
|
184 |
|
2003-12-02 Bernhard Herzog <[email protected]> |
185 |
|
|
186 |
|
* MANIFEST.in: Add debian files |
187 |
|
|
188 |
|
* setup.py (setup call): Add packages for the Extensions so that |
189 |
|
they're installed too |
190 |
|
(data_files): Add READMEs and sample data from some Extensions |
191 |
|
|
192 |
|
* NEWS: Add note about the extensions in binary packages |
193 |
|
|
194 |
|
2003-12-02 Bernhard Herzog <[email protected]> |
195 |
|
|
196 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Save files |
197 |
|
with the thuban-1.0rc1 |
198 |
|
|
199 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Recognize the |
200 |
|
thuban-1.0rc1 namespace too |
201 |
|
|
202 |
|
* test/test_save.py (SaveSessionTest.dtd) |
203 |
|
(SaveSessionTest.testEmptySession) |
204 |
|
(SaveSessionTest.testSingleLayer) |
205 |
|
(SaveSessionTest.testLayerProjection) |
206 |
|
(SaveSessionTest.testRasterLayer) |
207 |
|
(SaveSessionTest.testClassifiedLayer) |
208 |
|
(SaveSessionTest.test_dbf_table) |
209 |
|
(SaveSessionTest.test_joined_table) |
210 |
|
(SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1 |
211 |
|
namespace |
212 |
|
|
213 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1 |
214 |
|
namespace |
215 |
|
(TestSingleLayer.file_contents) |
216 |
|
(TestNonAsciiColumnName.file_contents) |
217 |
|
(TestLayerVisibility.file_contents) |
218 |
|
(TestClassification.file_contents, TestLabels.file_contents) |
219 |
|
(TestLayerProjection.file_contents) |
220 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
221 |
|
(TestPostGISLayer.file_contents) |
222 |
|
(TestPostGISLayerPassword.file_contents) |
223 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to |
224 |
|
thuban-1.0rc1 namespace |
225 |
|
|
226 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
227 |
|
|
228 |
|
* setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for |
229 |
|
nt to better match Intevation's current w32 setup |
230 |
|
|
231 |
|
* HOWTO-Release: Add note about updating MANIFEST.in |
232 |
|
|
233 |
|
* MANIFEST.in: Add the Extensions |
234 |
|
|
235 |
|
* NEWS: Update for 1.0rc1 |
236 |
|
|
237 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
238 |
|
|
239 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild |
240 |
|
cards for the dialog so that shapefiles ending in all uppercase |
241 |
|
SHP are listed too |
242 |
|
|
243 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
244 |
|
|
245 |
|
* Thuban/version.py (longversion): Update to 1.0rc1 |
246 |
|
|
247 |
|
* setup.py (setup call): Update version to 1.0rc1. Use the |
248 |
|
[email protected] email address as author email instead of my |
249 |
|
personal one. |
250 |
|
|
251 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
252 |
|
|
253 |
|
* po/de.po: Update german translation. |
254 |
|
|
255 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
256 |
|
|
257 |
|
Unify the filenames stored in .thuban files so that the .thuban |
258 |
|
files are more platform independend |
259 |
|
|
260 |
|
* Thuban/Model/save.py (unify_filename): New. Unify filenames so |
261 |
|
that they can be used on both windows and unix |
262 |
|
(SessionSaver.prepare_filename): New. Handle all filename |
263 |
|
transformations for filenames stored in the thuban file |
264 |
|
(SessionSaver.write_data_containers, SessionSaver.write_layer): |
265 |
|
Use prepare_filename |
266 |
|
|
267 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer) |
268 |
|
(SaveSessionTest.testLayerProjection) |
269 |
|
(SaveSessionTest.testRasterLayer) |
270 |
|
(SaveSessionTest.testClassifiedLayer) |
271 |
|
(SaveSessionTest.test_dbf_table) |
272 |
|
(SaveSessionTest.test_joined_table): Filenames are always stored |
273 |
|
with slashes on all currently supported platforms so adapt all |
274 |
|
tests to this |
275 |
|
|
276 |
|
* test/test_load.py (LoadSessionTest.filenames): With the new |
277 |
|
filename scheme the filenames in the tests should be |
278 |
|
understandable on all currently supported platforms so we turn |
279 |
|
this into an empty list because we don't have to normalize them |
280 |
|
anymore |
281 |
|
|
282 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
283 |
|
|
284 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
285 |
|
Add the ellipsoid to the projection since some Proj versions |
286 |
|
complain if it's missing. |
287 |
|
|
288 |
|
2003-11-27 Bernhard Herzog <[email protected]> |
289 |
|
|
290 |
|
Corect some bounding box projection problems |
291 |
|
|
292 |
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
293 |
|
version of ForwardBBox |
294 |
|
(Projection._transform_bbox): New. common implementation of |
295 |
|
ForwardBBox and InverseBBox |
296 |
|
(Projection.ForwardBBox): Use _transform_bbox. |
297 |
|
|
298 |
|
* test/test_proj.py (TestProjection.test): Add test for |
299 |
|
InverseBBox |
300 |
|
|
301 |
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
302 |
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
303 |
|
new InverseBBox method to determine the unprojected bounding box |
304 |
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
305 |
|
bbox. |
306 |
|
|
307 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
308 |
|
Removed. |
309 |
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
310 |
|
better able to test whether bounding boxes are projected correctly |
311 |
|
than test_point_layer_with_projection |
312 |
|
|
313 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use |
314 |
|
InverseBBox to unproject bboxes |
315 |
|
|
316 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
317 |
|
|
318 |
|
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
319 |
|
source code. |
320 |
|
|
321 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
322 |
|
|
323 |
|
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
324 |
|
there for backwards compatibility and all code relying on that |
325 |
|
should have been updated by now. |
326 |
|
|
327 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
328 |
|
|
329 |
|
* test/test_load.py (TestClassification.test): Add the missing |
330 |
|
round trip test. |
331 |
|
(TestClassification.file_contents): Update to the newest file |
332 |
|
format |
333 |
|
|
334 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
335 |
|
|
336 |
|
Add very experimental (and possibly dangerous) extension to draw |
337 |
|
polygons: |
338 |
|
|
339 |
|
* Extensions/drawshape/README: New. Brief installation |
340 |
|
instructions |
341 |
|
|
342 |
|
* Extensions/drawshape/drawshape.py: New. Implementation of the |
343 |
|
drawshape extensions |
344 |
|
|
345 |
|
* Extensions/drawshape/patch.diff: Patch to apply before the |
346 |
|
extension can be used. |
347 |
|
|
348 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
349 |
|
|
350 |
|
* Thuban/Model/data.py (ShapefileStore._open_shapefile) |
351 |
|
(ShapefileStore.__init__): Factor opening the shapefile into a |
352 |
|
separate method (the new _open_shapefile). This makes the code a |
353 |
|
bit more readable but the real reason is that it makes some evil |
354 |
|
hacks easier. :-) |
355 |
|
|
356 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
357 |
|
|
358 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): If no |
359 |
|
converter is specified for an attribute assume it's a string |
360 |
|
containing only Latin1 characters. Update doc-string accordingly. |
361 |
|
This change should fix many places where unicode objects might |
362 |
|
accidentally enter Thuban. |
363 |
|
|
364 |
|
* test/test_load.py (TestNonAsciiColumnName): New test to check |
365 |
|
what happens with column names in DBF files that contain non-ascii |
366 |
|
characters |
367 |
|
|
368 |
|
2003-11-21 Bernhard Herzog <[email protected]> |
369 |
|
|
370 |
|
Enable the experimental attribute editing again and introduce a |
371 |
|
command line switch to actually activate it |
372 |
|
|
373 |
|
* Thuban/UI/main.py (options): New. Container for options set on |
374 |
|
the commmand line |
375 |
|
(main): Add the --enable-attribute-editing flag. |
376 |
|
|
377 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute |
378 |
|
editing is enabled use the grid ctrl which allows editing of the |
379 |
|
values |
380 |
|
|
381 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.write_record): |
382 |
|
New. Just delegate this to the underlying table. |
383 |
|
|
384 |
|
2003-11-20 Bernhard Herzog <[email protected]> |
385 |
|
|
386 |
|
* test/test_proj.py (ProjFileReadTests.test_read_unreadable_file): |
387 |
|
Skip this test if run under non-posix systems since it only works |
388 |
|
there |
389 |
|
|
390 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
391 |
|
|
392 |
|
* Thuban/Model/resource.py: Rework the way gdal support is |
393 |
|
determined so that we can give a reason in the about why gdal is |
394 |
|
not supported. |
395 |
|
(gdal_support_status): New. Variable holding a string with the |
396 |
|
reason for no gdal support |
397 |
|
|
398 |
|
* Thuban/UI/about.py (About.__init__): Add the reason why gdal is |
399 |
|
not supported to the message |
400 |
|
|
401 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
402 |
|
|
403 |
|
Remove the old table interface and its test cases |
404 |
|
|
405 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Removed. |
406 |
|
(DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin |
407 |
|
anymore |
408 |
|
|
409 |
|
* Thuban/Model/transientdb.py (TransientTableBase) |
410 |
|
(AutoTransientTable): Do not derive from OldTableInterfaceMixin |
411 |
|
anymore |
412 |
|
|
413 |
|
* test/test_table.py: Removed since the old interface it tests is |
414 |
|
gone. |
415 |
|
|
416 |
|
* test/runtests.py (main): The old table interface is gone and |
417 |
|
with it the deprecation warnings so remove the code that turns |
418 |
|
these warnings into errors |
419 |
|
|
420 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
421 |
|
|
422 |
|
* test/test_table.py: Revert to revision 1.5 again. Changing the |
423 |
|
tests to use the new table interface is completely wrong since the |
424 |
|
whole purpose of the tests in this module is to test the old |
425 |
|
interface. |
426 |
|
|
427 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
428 |
|
|
429 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
430 |
|
New. Test whether the connection matches a set of connection |
431 |
|
parameters |
432 |
|
|
433 |
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
434 |
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
435 |
|
for existing connections with the same parameters and break out of |
436 |
|
the loop correctly. |
437 |
|
|
438 |
|
* test/test_postgis_db.py (TestBriefDescription) |
439 |
|
(TestPostGISSimple.test_brief_description): Rename |
440 |
|
TestBriefDescription to TestPostGISSimple and the test method to |
441 |
|
test_brief_description so that we can add more test methods. |
442 |
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
443 |
|
MatchesParameters method |
444 |
|
|
445 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
446 |
|
|
447 |
|
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
448 |
|
_was_destroyed, to indicate whether an publisher instance has |
449 |
|
already been destroyed. |
450 |
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
451 |
|
been destroyed yet. |
452 |
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
453 |
|
|
454 |
|
* test/test_connector.py |
455 |
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
456 |
|
calling Unsubscribe after Destroy doesn't raise an exception |
457 |
|
|
458 |
|
2003-11-14 Bernhard Herzog <[email protected]> |
459 |
|
|
460 |
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
461 |
|
typo in doc-string |
462 |
|
|
463 |
|
2003-11-13 Bernhard Herzog <[email protected]> |
464 |
|
|
465 |
|
Quote table and column names properly for postgis. |
466 |
|
|
467 |
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
468 |
|
quote an identifier for use in an sql statement |
469 |
|
(PostGISColumn.__init__): Add the quoted_name attribute |
470 |
|
(PostGISTable.__init__): New instance variable quoted_tablename |
471 |
|
(PostGISTable._fetch_table_information): Use the quoted table |
472 |
|
name. New isntance variable quoted_geo_col with a quoted version |
473 |
|
of geometry_column |
474 |
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
475 |
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
476 |
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
477 |
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
478 |
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
479 |
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
480 |
|
Use quoted table and column names |
481 |
|
|
482 |
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
483 |
|
(TestPostGISIgnoredColumns): Rename the class to |
484 |
|
TestPostGISSpecialCases because that better describes the new |
485 |
|
cases |
486 |
|
(TestPostGISSpecialCases.test_unsupported_types) |
487 |
|
(TestPostGISSpecialCases.test): Rename the method to |
488 |
|
test_unsupported_types because we need a more descriptive name now |
489 |
|
that there are more methods |
490 |
|
(TestPostGISSpecialCases.test_table_name_quoting) |
491 |
|
(TestPostGISSpecialCases.test_column_name_quoting) |
492 |
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
493 |
|
cases to test quoting of table and column names in PostGISTable |
494 |
|
and PostGISShapeStore |
495 |
|
|
496 |
|
* test/postgissupport.py |
497 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
498 |
|
AddGeometryColumn desn't support table or column names with sapces |
499 |
|
or double quotes |
500 |
|
|
501 |
|
2003-11-12 Jan-Oliver Wagner <[email protected]> |
502 |
|
|
503 |
|
* Extensions/wms/__init__.py: New: Init to make this |
504 |
|
directory a package. |
505 |
|
|
506 |
|
* Extensions/wms/wms.py: New: Provide layers via OGC WMS. |
507 |
|
|
508 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
509 |
|
|
510 |
|
* Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New. |
511 |
|
Constant for the file woth deprecated epsg projections |
512 |
|
(get_system_proj_file): Update doc-string |
513 |
|
|
514 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space |
515 |
|
above the EPS widgets, introduce a check box for the deprecated |
516 |
|
eps projections and a label for the epsg widgets |
517 |
|
(ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections |
518 |
|
too |
519 |
|
|
520 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
521 |
|
|
522 |
|
Avoid warnings when run under Python 2.3 |
523 |
|
|
524 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape) |
525 |
|
(BaseRenderer.draw_label_layer): Coordinates must be ints. |
526 |
|
|
527 |
|
* Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a |
528 |
|
real method so that we can convert to int. |
529 |
|
(MapRenderer.label_font): The font size mist be an int. |
530 |
|
|
531 |
|
* Thuban/UI/common.py (Color2wxColour): The color values must be |
532 |
|
ints. Also, remove the unnecessary asserts. |
533 |
|
|
534 |
|
* test/test_load_0_8.py (TestUnicodeStrings.file_contents) |
535 |
|
(TestUnicodeStrings.test): Python source code should not contain |
536 |
|
non-ascii characters unless an encoding is specified in the file. |
537 |
|
Therefore use \x escapes in the string literals for non-ascii |
538 |
|
characters. |
539 |
|
|
540 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
541 |
|
|
542 |
|
* Thuban/Model/resource.py (get_system_proj_file): Add a filename |
543 |
|
parameter so that this function can be used for all proj files in |
544 |
|
Resource/Projections |
545 |
|
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for |
546 |
|
get_system_proj_file |
547 |
|
|
548 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one |
549 |
|
ProjFile self.__sysProjFile use a dictionary of system ProjFile |
550 |
|
objects self._sys_proj_files |
551 |
|
(ProjFrame.build_dialog): Adapt to the new changes in the |
552 |
|
ProjectionList constructor. Add a check button to toggle whether |
553 |
|
EPSG projections are shown |
554 |
|
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button |
555 |
|
events. |
556 |
|
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show |
557 |
|
the busy cursor if the files have not yet been loaded by the |
558 |
|
dialog. |
559 |
|
(ProjFrame.load_system_proj): Add a parameter for the name of the |
560 |
|
proj file. Maintain the dictionary of system projections |
561 |
|
self._sys_proj_files |
562 |
|
|
563 |
|
* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs, |
564 |
|
user_projs parameters into one parameter proj_files which is a |
565 |
|
list of proj files. |
566 |
|
(ProjectionList._subscribe_proj_files) |
567 |
|
(ProjectionList._unsubscribe_proj_files): New. Move |
568 |
|
subscription/unsubscription of projfile messages to separate |
569 |
|
methods |
570 |
|
(ProjectionList.Destroy): The unsubscribe is now done in |
571 |
|
_unsubscribe_proj_files |
572 |
|
(ProjectionList.update_projections): We now have a list of proj |
573 |
|
file objects |
574 |
|
(ProjectionList.SetProjFiles): New method to set a new list of |
575 |
|
proj file objects |
576 |
|
|
577 |
|
* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file): |
578 |
|
Specify explicitly which system proj file to load. |
579 |
|
|
580 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
581 |
|
|
582 |
|
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |
583 |
|
instance variables to cut cyclic references. The GC would have |
584 |
|
collected the loader eventually but it can happen that it doesn't |
585 |
|
run at all until thuban is closed (2.3 but not 2.2 tries a bit |
586 |
|
harder and forces a collection when the interpreter terminates) |
587 |
|
(load_session): Call the handler's Destroy method to make sure |
588 |
|
that it gets garbage collected early. Otherwise it will be |
589 |
|
collected very late if at all and it holds some references to e.g. |
590 |
|
shapestores and the session which can lead to leaks (of e.g. the |
591 |
|
temporary files) |
592 |
|
|
593 |
|
* test/test_load.py (TestSingleLayer.test_leak): New. test for the |
594 |
|
resource leak in load_session |
595 |
|
|
596 |
|
2003-11-10 Bernhard Herzog <[email protected]> |
597 |
|
|
598 |
|
* Thuban/UI/baserenderer.py: Add a way to specify how layers in |
599 |
|
extensions are to be rendered. |
600 |
|
(_renderer_extensions): New. List with renderer for layers in |
601 |
|
extensions |
602 |
|
(add_renderer_extension): New. Add a renderer extension |
603 |
|
(init_renderer_extensions): New. Init the renderer extensions |
604 |
|
(BaseRenderer.render_map_incrementally): Search |
605 |
|
_renderer_extensions for how to draw unknown layer types |
606 |
|
(BaseRenderer.draw_raster_data): Add format parameter so that |
607 |
|
formats other than BMP can be drawn |
608 |
|
(BaseRenderer.draw_raster_layer): Pass an explicit format to |
609 |
|
draw_raster_data |
610 |
|
|
611 |
|
* Thuban/UI/renderer.py (raster_format_map): New. Mapping form the |
612 |
|
strings of the format parameter of draw_raster_data method to wx |
613 |
|
constants |
614 |
|
(MapRenderer.draw_raster_data): Add the format parameter and use |
615 |
|
raster_format_map to map it to the right wxwindows constant for |
616 |
|
wxImageFromStream |
617 |
|
|
618 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add |
619 |
|
the format parameter and record it |
620 |
|
(TestBaseRenderer.test_raster_no_projection): check the format |
621 |
|
paramter of the draw_raster_data method |
622 |
|
(TestBaseRenderer.test_renderer_extension): New. Test the renderer |
623 |
|
extension facility |
624 |
|
|
625 |
|
2003-11-07 Bernhard Herzog <[email protected]> |
626 |
|
|
627 |
|
Tweak the usage of the sqlite database to make common use cases |
628 |
|
more responsive. In most cases copying the data to the sqlite |
629 |
|
database takes so long that using sqlite doesn't have enough |
630 |
|
advantages. |
631 |
|
|
632 |
|
* Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add |
633 |
|
comments about performance and query the min and max in separate |
634 |
|
statements because only that way will indexes be used. |
635 |
|
(TransientTableBase.UniqueValues): Add some comments about |
636 |
|
performance. |
637 |
|
(AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues): |
638 |
|
Do not copy the data to the transient DB but use the transient |
639 |
|
copy if it exists. See the new comments for the performance trade |
640 |
|
offs |
641 |
|
|
642 |
|
* test/test_transientdb.py |
643 |
|
(TestTransientTable.test_auto_transient_table): Make sure that the |
644 |
|
data is copied to the transient database at some point. |
645 |
|
|
646 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
647 |
|
|
648 |
|
* Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some |
649 |
|
globals to locals so that it's a bit faster |
650 |
|
|
651 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
652 |
|
|
653 |
|
* Thuban/UI/baserenderer.py |
654 |
|
(BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue |
655 |
|
method. ReadValue is faster than ReadRowAsDict since it only reads |
656 |
|
one cell especially now that the dbf file objects actually |
657 |
|
implement it. |
658 |
|
|
659 |
|
* Thuban/Model/table.py (DBFTable.ReadValue): Use the new |
660 |
|
read_attribute method of the dbf objects |
661 |
|
|
662 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
663 |
|
|
664 |
|
* Extensions/profiling/profiling.py (popup_dialog_box): New config |
665 |
|
variable to indicate whether the result should be shown in a |
666 |
|
dialog box |
667 |
|
(profile_screen_renderer, time_screen_renderer): Only show a |
668 |
|
dialog box if popup_dialog_box is true. |
669 |
|
(profile_screen_renderer): Flush stdout after the printing the |
670 |
|
first part of the "profiling..." message |
671 |
|
|
672 |
|
* Thuban/UI/baserenderer.py |
673 |
|
(BaseRenderer.draw_shape_layer_incrementally): Cache the pens and |
674 |
|
brushes for the groups so that they're not created over and over |
675 |
|
again |
676 |
|
|
677 |
|
* Thuban/Model/classification.py (Classification.__getattr__) |
678 |
|
(Classification._compile_classification) |
679 |
|
(Classification._clear_compiled_classification): New. Methods to |
680 |
|
manage a 'compiled' representation of the classification groups |
681 |
|
which is created on demand |
682 |
|
(Classification.InsertGroup, Classification.RemoveGroup) |
683 |
|
(Classification.ReplaceGroup): reset the compiled representation |
684 |
|
(Classification.FindGroup): Use the compiled representation to |
685 |
|
find the matching group |
686 |
|
(ClassGroupRange.GetRangeTuple): New. Return the range as a tuple |
687 |
|
|
688 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
689 |
|
|
690 |
|
* Thuban/Model/classification.py (Classification.SetDefaultGroup): |
691 |
|
Send a CLASS_CHANGED message |
692 |
|
(Classification.RemoveGroup): Send a CLASS_CHANGED message and do |
693 |
|
not return the removed group since it wasn't used. |
694 |
|
|
695 |
|
* test/test_classification.py |
696 |
|
(TestClassification.test_set_default_group): New. Test the |
697 |
|
SetDefaultGroup method |
698 |
|
(TestClassification.test_insert_group): New. Test the InsertGroup |
699 |
|
method |
700 |
|
(TestClassification.test_remove_group): New. Test the RemoveGroup |
701 |
|
method |
702 |
|
(TestClassification.test_replace_group): New. Test the |
703 |
|
ReplaceGroup method |
704 |
|
|
705 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
706 |
|
|
707 |
|
* test/test_classification.py (TestClassification.setUp): |
708 |
|
Subscribe to the CLASS_CHANGED messages |
709 |
|
(TestClassification.tearDown): New. Destroy the classification |
710 |
|
properly |
711 |
|
(TestClassification.test_defaults): Add tests for the default line |
712 |
|
width and whether no messages were sent yet |
713 |
|
(TestClassification.test_set_default_properties): Add tests for |
714 |
|
messages and setting the default line width |
715 |
|
(TestClassification.test_add_singleton) |
716 |
|
(TestClassification.test_add_range) |
717 |
|
(TestClassification.test_multiple_groups): Add tests for messages |
718 |
|
|
719 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
720 |
|
|
721 |
|
Some more refactoring in preparation for new tests: |
722 |
|
|
723 |
|
* test/test_classification.py (TestClassification.setUp): New. |
724 |
|
Instantiate the classification here. Update the test methods |
725 |
|
accordingly. |
726 |
|
(TestClassification.test_multiple_groups): Make sure that the two |
727 |
|
singletons matching 1 are considered different. |
728 |
|
|
729 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
730 |
|
|
731 |
|
* test/test_classification.py (red, green, blue): New. These |
732 |
|
constants were used in several cases. Update the relevant methods. |
733 |
|
(TestClassification.test_defaults) |
734 |
|
(TestClassification.test_set_default_properties) |
735 |
|
(TestClassification.test_add_singleton) |
736 |
|
(TestClassification.test_add_range) |
737 |
|
(TestClassification.test_multiple_groups) |
738 |
|
(TestClassification.test_deepcopy): New. These were formerly all |
739 |
|
part of the single method test. |
740 |
|
(TestClassification.test_deepcopy): Removed. |
741 |
|
(TestClassIterator): Removed. The test case is now a method of |
742 |
|
TestClassification since it tests part of the public interface of |
743 |
|
Classification |
744 |
|
(TestClassification.test_iterator): New. Used to be |
745 |
|
TestClassIterator effectively |
746 |
|
|
747 |
|
2003-10-31 Jan-Oliver Wagner <[email protected]> |
748 |
|
|
749 |
|
GUIfied the functions of the profiling extension. |
750 |
|
|
751 |
|
* /Extensions/profiling/__init__.py: New: Init to make this |
752 |
|
directory a package. |
753 |
|
|
754 |
|
* Extensions/profiling/profiling.py: Moved menu entries to |
755 |
|
the Extensions menu. Applied _() for strings. |
756 |
|
(profile_screen_renderer): Catch the detailed printout and present |
757 |
|
it in a dialog. |
758 |
|
(time_screen_renderer): Raise a dialog to present the result instead |
759 |
|
of printing it to stdout. |
760 |
|
|
761 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
762 |
|
|
763 |
|
* test/test_classification.py (TestClassGroupProperties) |
764 |
|
(TestClassGroup, TestClassGroupDefault, TestClassGroupRange) |
765 |
|
(TestClassGroupSingleton, TestClassIterator, TestClassification): |
766 |
|
Split TestClassification into several classes, one for each class |
767 |
|
being tested. TestClassification itself now only tests |
768 |
|
Classification. This split makes changes to the tests a bit easier |
769 |
|
|
770 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
771 |
|
|
772 |
|
* Extensions/profiling/profiling.py: New. Extension to measure |
773 |
|
Thuban performance |
774 |
|
|
775 |
|
2003-10-31 Frank Koormann <[email protected]> |
776 |
|
|
777 |
|
Added two items to legend popup menu: Remove Layer and Show Layer Table |
778 |
|
|
779 |
|
* Thuban/UI/legend.py (LegendPanel._OnRemoveLayer, |
780 |
|
LegendPanel._OnShowTable): New event handlers, call the corresponding |
781 |
|
mainwindow methods. |
782 |
|
(LegendTree._OnRightClick): Added items to popup menu. |
783 |
|
|
784 |
|
2003-10-30 Bernhard Herzog <[email protected]> |
785 |
|
|
786 |
|
* Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle |
787 |
|
EVT_WINDOW_DESTROY |
788 |
|
(ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does |
789 |
|
nothing but is convenient for the derived classes. |
790 |
|
|
791 |
|
* Thuban/UI/tableview.py |
792 |
|
(TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New. |
793 |
|
Unsubscribe the messages here not in OnClose because that might |
794 |
|
get called multiple times. Fixes RT #2196 |
795 |
|
(TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed |
796 |
|
anymore. |
797 |
|
|
798 |
|
* README: Update the minimum requirement for wxPython. Since we |
799 |
|
now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4, |
800 |
|
the version in which that was introduced for all platforms |
801 |
|
|
802 |
|
2003-10-30 Frank Koormann <[email protected]> |
803 |
|
|
804 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of |
805 |
|
the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor |
806 |
|
frame. |
807 |
|
|
808 |
|
2003-10-30 Jan-Oliver Wagner <[email protected]> |
809 |
|
|
810 |
|
Improved APR import extension, added further EPSG definitions |
811 |
|
and some cleanup regarding string class. |
812 |
|
|
813 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo): |
814 |
|
Added test for alias 'longlat'. |
815 |
|
|
816 |
|
* Resources/Projections/epsg-deprecated.proj: New. Contains |
817 |
|
deprecated EPSG definitions. |
818 |
|
|
819 |
|
* Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added |
820 |
|
the variable names for objects. |
821 |
|
|
822 |
|
* Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New. |
823 |
|
Copied from importAPR and provided with documentation. |
824 |
|
|
825 |
|
* Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym): |
826 |
|
Moved to apr.py. |
827 |
|
(APR_View): Added object ref 'ITheme'. |
828 |
|
|
829 |
|
* Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string |
830 |
|
split function by corresponding use of the string class method. |
831 |
|
|
832 |
|
* Thuban/Model/xmlwriter.py: Replaced string replace function by |
833 |
|
corresponding string method. |
834 |
|
|
835 |
2003-10-29 Bernhard Herzog <[email protected]> |
2003-10-29 Bernhard Herzog <[email protected]> |
836 |
|
|
837 |
* Thuban/UI/baserenderer.py |
* Thuban/UI/baserenderer.py |