/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1657 by bh, Mon Aug 25 18:27:16 2003 UTC revision 2080 by bh, Fri Feb 20 14:29:23 2004 UTC
# Line 1  Line 1 
1    2004-02-20  Bernhard Herzog  <[email protected]>
2    
3            * Extensions/svgexport/test/__init__.py,
4            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
5            suite for svgexport
6    
7            * test/runtests.py (find_test_modules): New. Function with the
8            module finding code from main.
9            (main): Use find_test_modules to figure out the default test
10            modules and take modules from Extensions.svgexport.test too.
11    
12    2004-02-19  Bernhard Herzog  <[email protected]>
13    
14            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
15            the mainwindow has a reference to the map of the initial session.
16            This fixes a bug introduced with the fix for RT#2245
17    
18    2004-02-19  Bernhard Herzog  <[email protected]>
19    
20            * Extensions/svgexport/svgsaver.py,
21            Extensions/svgexport/svgmapwriter.py,
22            Extensions/svgexport/maplegend.py: Added again.  This time in the
23            correct place.
24    
25    2004-02-17  Bernhard Herzog  <[email protected]>
26    
27            Fix for RT#2245
28    
29            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
30            instance variables before trying to create any windows.  Creating
31            windows can start an event loop if e.g. message boxes are popped
32            up for some reason, and event handlers, especially EVT_UPDATE_UI
33            may want to access things from the application.
34            (ThubanApplication.maps_changed): The mainwindow may not have been
35            created yet, so check whether it has been created before calling
36            its methods
37    
38            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
39            have a map
40    
41    2004-02-17  Bernhard Herzog  <[email protected]>
42    
43            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
44            Extensions/svgmapwriter.py, Extensions/maplegend.py,
45            extensions/svgexport/svgsaver.py,
46            extensions/svgexport/svgmapwriter.py,
47            extensions/svgexport/maplegend.py: Removed.  These files were in
48            the wrong places or didn't work at all.
49    
50    2004-02-16  Bernhard Herzog  <[email protected]>
51    
52            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
53            line
54    
55    2004-02-16  Bernhard Herzog  <[email protected]>
56    
57            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
58    
59    2004-02-15  Markus Rechtien  <[email protected]>
60            
61            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
62            to write a session to a file in SVG format.
63            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
64            to write a SVG map of a session.
65            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
66            in SVG format for the current session.
67    
68    2004-02-13  Bernhard Herzog  <[email protected]>
69    
70            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
71            can't be created, return immediately after displaying the error
72            message.
73    
74    2004-02-11  Bernhard Herzog  <[email protected]>
75    
76            Handle postgis tables with more than one geometry column.
77    
78            * Thuban/Model/postgisdb.py
79            (PostGISTable._fetch_table_information): Delegate the creation of
80            column objects to a different method so that we can extend that in
81            derived classes
82            (PostGISTable._create_col_from_description): New. Column object
83            creation part of _fetch_table_information
84            (PostGISShapeStore._create_col_from_description): New. Extend
85            inherited method to handle geometry columns
86            (PostGISShapeStore.__init__): New parameter geometry_column to
87            specify which geometry column to use.  Optional but mandatory for
88            tables with more than one geometry column
89            (PostGISShapeStore._fetch_table_information): Also use the name of
90            the geometry column when looking for the srid
91            (PostGISShapeStore.ShapeType): Also use the name of the geometry
92            column when looking for the shape type
93    
94            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
95            NonConnectionStore to changes in the PostGISShapeStore
96    
97            * test/test_postgis_db.py
98            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
99            PostGISShapeStore with tables having two geometry columns.
100    
101    2004-02-10  Bernhard Herzog  <[email protected]>
102    
103            Fix some postgis problems.  What remains to be done is real
104            handling of SRIDs as they affect how reprojection is done
105    
106            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
107            doc-string
108            (PostGISShapeStore._fetch_table_information): New. Extend
109            inherited method to retrieve srid
110            (PostGISShapeStore.BoundingBox): Handle tables without data.
111            extent yields NULL for those
112            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
113    
114            * test/test_postgis_db.py
115            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
116            for the special case of a table without any data
117            (TestPostGISShapestorePointSRID): New class with tests for a table
118            that uses srids
119            (PolygonTests): Fix a doc-string typo
120    
121            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
122            reference_systems with a specification of spacial reference
123            systems to create in the new db.
124            (PostgreSQLServer.new_postgis_db)
125            (PostgreSQLServer.get_static_data_db): New parameter
126            reference_systems to be passed through ultimately to
127            PostGISDatabase.  In new_postgis_db also check whether an existing
128            db already has the right srids
129            (PostgreSQLServer.get_default_static_data_db): Add srids and a
130            table that uses srids
131            (PostGISDatabase.initdb): Create the entries for the reference
132            systems
133            (PostGISDatabase.has_data): Add reference_systems parameter to
134            check for those too
135            (upload_shapefile): New parameter srid to create tables with a
136            specific srid
137    
138    2004-02-06  Frank Koormann  <[email protected]>
139    
140            * po/pt_BR.po: Fixed charset
141    
142    2004-02-05  Frank Koormann  <[email protected]>
143    
144            * po/pt_BR.po: Fixed format string for error message, missing %s
145            added (Thuban/UI/application.py:273)
146    
147    2004-02-03  Frank Koormann  <[email protected]>
148            
149            First version of Portuguese (Brazilian) translation
150    
151            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
152            Brazilian Portuguese by Eduardo Patto Kanegae.
153    
154            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
155            translators.
156    
157    
158    2004-01-22  Frank Koormann  <[email protected]>
159    
160            * Doc/manual/thuban-manual.xml: Added section on installation of
161            Thuban under Win32 systems. Fixed image path references in the postgis
162            section. Some minor source formattings.
163    
164    2004-01-21  Frank Koormann  <[email protected]>
165    
166            Make Thuban remember path selections (at least for one application run).
167    
168            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
169            attribute of application object. Path is a dictionary of
170            strings, currently with the items "data" and "projection".  
171            (Application.SetPath): New, stores path for the specified item.
172            (Application.Path): New, return path for the specified item.
173    
174            * Thuban/UI/mainwindow.py
175            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
176            MainWindow.AddLayer, MainWindow.AddRasterLayer,
177            MainWindow.TableOpen): Access "data" path information of the
178            application.
179            
180            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
181            Access "projection" path information of the application.
182    
183    2004-01-05  Bernhard Herzog  <[email protected]>
184    
185            * po/ru.po: Updated translations from Alex Shevlakov
186    
187    2004-01-05  Bernhard Herzog  <[email protected]>
188    
189            * po/Makefile, po/README: Move the description of how to generate
190            the translation statistics to the README.
191    
192    2003-12-23  Bernhard Herzog  <[email protected]>
193    
194            * NEWS: Update for 1.0.0
195    
196            * po/it.po: Another update from Maurizio Napolitano
197    
198    2003-12-23  Bernhard Herzog  <[email protected]>
199    
200            * po/it.po: Updated translation from Maurizio Napolitano
201    
202    2003-12-23  Bernhard Herzog  <[email protected]>
203    
204            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
205            for translation
206    
207            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
208            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
209            strings for translation
210    
211            * po/de.po: Update with the newly marked strings.
212    
213    2003-12-22  Bernhard Herzog  <[email protected]>
214    
215            * HOWTO-Release: Fix the places where version numbers have to be
216            updated
217    
218    2003-12-22  Bernhard Herzog  <[email protected]>
219    
220            * setup.py (setup call): 1.0.0, yeah!
221    
222            * Thuban/version.py (longversion): 1.0.0, yeah!
223    
224            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
225            1.0.0 namespace too
226    
227            * Thuban/Model/save.py (SessionSaver.write_session): Save with
228            1.0.0 namespace
229    
230            * test/test_load.py (LoadSessionTest.dtd)
231            (TestSingleLayer.file_contents)
232            (TestNonAsciiColumnName.file_contents)
233            (TestLayerVisibility.file_contents)
234            (TestClassification.file_contents, TestLabels.file_contents)
235            (TestLayerProjection.file_contents)
236            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
237            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
238            (TestPostGISLayerPassword.file_contents)
239            (TestLoadError.file_contents, TestLoadError.test): Update for
240            1.0.0 namespace
241    
242            * test/test_save.py (SaveSessionTest.dtd)
243            (SaveSessionTest.testEmptySession)
244            (SaveSessionTest.testSingleLayer)
245            (SaveSessionTest.testLayerProjection)
246            (SaveSessionTest.testRasterLayer)
247            (SaveSessionTest.testClassifiedLayer)
248            (SaveSessionTest.test_dbf_table)
249            (SaveSessionTest.test_joined_table)
250            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
251    
252    2003-12-22  Bernhard Herzog  <[email protected]>
253    
254            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
255            alignment flags are byte strings not unicode and that they have
256            valid values
257    
258            * test/test_load.py (TestLabelLayer): New. Test loading (and
259            indirectly saving) of maps with labels.
260    
261    2003-12-22  Bernhard Herzog  <[email protected]>
262    
263            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
264            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
265            unsubscribe all subscribers.
266            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
267            self.grid since it may already have been destroyed.
268            Fixes RT #2256
269    
270    2003-12-19  Bernhard Herzog  <[email protected]>
271    
272            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
273    
274    2003-12-16  Bernhard Herzog  <[email protected]>
275            
276            * debian/bitmappath.patch, debian/setup.py.patch:
277                    added to ensure compliance with FHS for debian
278            * debian/rules, debian/changelog:
279                added patches in rules to ensure compliance with FHS for debian
280    
281    2003-12-16  Bernhard Herzog  <[email protected]>
282    
283            * po/Makefile (mo): Make the output a bit nicer so that it prints
284            statistics about the translations. Add a comment how produce even
285            nicer statistics with sed.
286    
287    2003-12-09  Frank Koormann   <[email protected]>
288    
289            * Resources/Projections/defaults.proj:
290            French projection sample with correct accents (UNICODE).
291    
292    2003-12-05  Bernhard Herzog  <[email protected]>
293    
294            * MANIFEST.in: Add the devtools directory
295    
296            * setup.py (setup call): Use license instead of licence. This
297            silences a deprecation warning on Python 2.3
298    
299    2003-12-05  Frank Koormann   <[email protected]>
300    
301            Documentation synced with 1.0rc1
302    
303            * Doc/manual/thuban-manual.xml:
304            Minor formatting changes and references to database layers .
305            Introduction.Internationalization: New section on i18n.
306            MapManagement.AddingandRemovingLayers: Added item on database layers.  
307            MapManagement.TheLegend: Added section and screenshot on popup menu.
308            ProjectionManagement: Updated screenshot and sentence on EPSG.
309            Appendix.SupportedDataSources: Added PostGIS.
310            Appendix.WorkingwithPostGIS: New section.
311    
312            * Doc/manual/images/6_projection.png: Updated screenshot including
313            EPSG checkboxes.
314    
315            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
316    
317            * Doc/manual/images/app_postgis_add_layer.png,
318            Doc/manual/images/app_postgis_db_add.png,
319            Doc/manual/images/app_postgis_db_management.png:
320            New screenshots focussing on database layers
321    
322    2003-12-05  Frank Koormann   <[email protected]>
323    
324            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
325            write warning to stderr instead of rising a warning dialog
326    
327    2003-12-03  Bernhard Herzog  <[email protected]>
328    
329            Fix for RT #2243
330    
331            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
332            New. Like has_selected_layer but for shape layers only
333            (_has_selected_shape_layer): New. Like _has_selected_layer but for
334            shape layers only
335            (layer_show_table command, layer_jointable command): Use these
336            commands should only be available for shape layers
337    
338    2003-12-03  Bernhard Herzog  <[email protected]>
339    
340            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
341            publishers that are wx objects and may have been destroyed by wx
342            already. Fixes RT #2242.
343    
344    2003-12-03  Bernhard Herzog  <[email protected]>
345    
346            * po/ru.po: Updates from Alex Shevlakov
347    
348    2003-12-03  Silke Reimer <silkeintevation.de>
349    
350            * debian/control, debian/changelog: Added gdal-support to
351                    debian package, updated to new thuban version
352    
353    
354    2003-12-03  Bernhard Herzog  <[email protected]>
355    
356            * Thuban/Lib/version.py: New. Module for version number
357            manipulations. The version of make_tuple here also deals better
358            with more unusual version number strings, such as e.g.
359            "1.2+cvs20031111"
360    
361            * Thuban/version.py (make_tuple): Removed. It's now in
362            Thuban.Lib.version. Use that implementation instead.
363    
364            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
365    
366    2003-12-02  Bernhard Herzog  <[email protected]>
367    
368            * MANIFEST.in: Add debian files
369    
370            * setup.py (setup call): Add packages for the Extensions so that
371            they're installed too
372            (data_files): Add READMEs and sample data from some Extensions
373    
374            * NEWS: Add note about the extensions in binary packages
375    
376    2003-12-02  Bernhard Herzog  <[email protected]>
377    
378            * Thuban/Model/save.py (SessionSaver.write_session): Save files
379            with the thuban-1.0rc1
380    
381            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
382            thuban-1.0rc1 namespace too
383    
384            * test/test_save.py (SaveSessionTest.dtd)
385            (SaveSessionTest.testEmptySession)
386            (SaveSessionTest.testSingleLayer)
387            (SaveSessionTest.testLayerProjection)
388            (SaveSessionTest.testRasterLayer)
389            (SaveSessionTest.testClassifiedLayer)
390            (SaveSessionTest.test_dbf_table)
391            (SaveSessionTest.test_joined_table)
392            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
393            namespace
394    
395            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
396            namespace
397            (TestSingleLayer.file_contents)
398            (TestNonAsciiColumnName.file_contents)
399            (TestLayerVisibility.file_contents)
400            (TestClassification.file_contents, TestLabels.file_contents)
401            (TestLayerProjection.file_contents)
402            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
403            (TestPostGISLayer.file_contents)
404            (TestPostGISLayerPassword.file_contents)
405            (TestLoadError.file_contents, TestLoadError.test): Update to
406            thuban-1.0rc1 namespace
407    
408    2003-12-01  Bernhard Herzog  <[email protected]>
409    
410            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
411            nt to better match Intevation's current w32 setup
412    
413            * HOWTO-Release: Add note about updating MANIFEST.in
414    
415            * MANIFEST.in: Add the Extensions
416    
417            * NEWS: Update for 1.0rc1
418    
419    2003-12-01  Bernhard Herzog  <[email protected]>
420    
421            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
422            cards for the dialog so that shapefiles ending in all uppercase
423            SHP are listed too
424    
425    2003-11-28  Bernhard Herzog  <[email protected]>
426    
427            * Thuban/version.py (longversion): Update to 1.0rc1
428    
429            * setup.py (setup call): Update version to 1.0rc1. Use the
430            [email protected] email address as author email instead of my
431            personal one.
432    
433    2003-11-28  Bernhard Herzog  <[email protected]>
434    
435            * po/de.po: Update german translation.
436    
437    2003-11-28  Bernhard Herzog  <[email protected]>
438    
439            Unify the filenames stored in .thuban files so that the .thuban
440            files are more platform independend
441    
442            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
443            that they can be used on both windows and unix
444            (SessionSaver.prepare_filename): New. Handle all filename
445            transformations for filenames stored in the thuban file
446            (SessionSaver.write_data_containers, SessionSaver.write_layer):
447            Use prepare_filename
448    
449            * test/test_save.py (SaveSessionTest.testSingleLayer)
450            (SaveSessionTest.testLayerProjection)
451            (SaveSessionTest.testRasterLayer)
452            (SaveSessionTest.testClassifiedLayer)
453            (SaveSessionTest.test_dbf_table)
454            (SaveSessionTest.test_joined_table): Filenames are always stored
455            with slashes on all currently supported platforms so adapt all
456            tests to this
457    
458            * test/test_load.py (LoadSessionTest.filenames): With the new
459            filename scheme the filenames in the tests should be
460            understandable on all currently supported platforms so we turn
461            this into an empty list because we don't have to normalize them
462            anymore
463    
464    2003-11-28  Bernhard Herzog  <[email protected]>
465    
466            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
467            Add the ellipsoid to the projection since some Proj versions
468            complain if it's missing.
469    
470    2003-11-27  Bernhard Herzog  <[email protected]>
471    
472            Corect some bounding box projection problems
473    
474            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
475            version of ForwardBBox
476            (Projection._transform_bbox): New. common implementation of
477            ForwardBBox and InverseBBox
478            (Projection.ForwardBBox): Use _transform_bbox.
479    
480            * test/test_proj.py (TestProjection.test): Add test for
481            InverseBBox
482    
483            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
484            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
485            new InverseBBox method to determine the unprojected bounding box
486            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
487            bbox.
488    
489            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
490            Removed.
491            (TestLayer.test_arc_layer_with_projection): New. This test is
492            better able to test whether bounding boxes are projected correctly
493            than test_point_layer_with_projection
494    
495            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
496            InverseBBox to unproject bboxes
497    
498    2003-11-25  Bernhard Herzog  <[email protected]>
499    
500            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
501            source code.
502    
503    2003-11-25  Bernhard Herzog  <[email protected]>
504    
505            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
506            there for backwards compatibility and all code relying on that
507            should have been updated by now.
508    
509    2003-11-25  Bernhard Herzog  <[email protected]>
510    
511            * test/test_load.py (TestClassification.test): Add the missing
512            round trip test.
513            (TestClassification.file_contents): Update to the newest file
514            format
515    
516    2003-11-25  Bernhard Herzog  <[email protected]>
517    
518            Add very experimental (and possibly dangerous) extension to draw
519            polygons:
520    
521            * Extensions/drawshape/README: New. Brief installation
522            instructions
523    
524            * Extensions/drawshape/drawshape.py: New. Implementation of the
525            drawshape extensions
526    
527            * Extensions/drawshape/patch.diff: Patch to apply before the
528            extension can be used.
529    
530    2003-11-24  Bernhard Herzog  <[email protected]>
531    
532            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
533            (ShapefileStore.__init__): Factor opening the shapefile into a
534            separate method (the new _open_shapefile). This makes the code a
535            bit more readable but the real reason is that it makes some evil
536            hacks easier. :-)
537    
538    2003-11-24  Bernhard Herzog  <[email protected]>
539    
540            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
541            converter is specified for an attribute assume it's a string
542            containing only Latin1 characters. Update doc-string accordingly.
543            This change should fix many places where unicode objects might
544            accidentally enter Thuban.
545    
546            * test/test_load.py (TestNonAsciiColumnName): New test to check
547            what happens with column names in DBF files that contain non-ascii
548            characters
549    
550    2003-11-21  Bernhard Herzog  <[email protected]>
551    
552            Enable the experimental attribute editing again and introduce a
553            command line switch to actually activate it
554    
555            * Thuban/UI/main.py (options): New. Container for options set on
556            the commmand line
557            (main): Add the --enable-attribute-editing flag.
558    
559            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
560            editing is enabled use the grid ctrl which allows editing of the
561            values
562    
563            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
564            New. Just delegate this to the underlying table.
565    
566    2003-11-20  Bernhard Herzog  <[email protected]>
567    
568            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
569            Skip this test if run under non-posix systems since it only works
570            there
571    
572    2003-11-19  Bernhard Herzog  <[email protected]>
573    
574            * Thuban/Model/resource.py: Rework the way gdal support is
575            determined so that we can give a reason in the about why gdal is
576            not supported.
577            (gdal_support_status): New. Variable holding a string with the
578            reason for no gdal support
579    
580            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
581            not supported to the message
582    
583    2003-11-19  Bernhard Herzog  <[email protected]>
584    
585            Remove the old table interface and its test cases
586    
587            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
588            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
589            anymore
590    
591            * Thuban/Model/transientdb.py (TransientTableBase)
592            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
593            anymore
594    
595            * test/test_table.py: Removed since the old interface it tests is
596            gone.
597    
598            * test/runtests.py (main): The old table interface is gone and
599            with it the deprecation warnings so remove the code that turns
600            these warnings into errors
601    
602    2003-11-19  Bernhard Herzog  <[email protected]>
603    
604            * test/test_table.py: Revert to revision 1.5 again. Changing the
605            tests to use the new table interface is completely wrong since the
606            whole purpose of the tests in this module is to test the old
607            interface.
608    
609    2003-11-18  Bernhard Herzog  <[email protected]>
610    
611            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
612            New. Test whether the connection matches a set of connection
613            parameters
614    
615            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
616            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
617            for existing connections with the same parameters and break out of
618            the loop correctly.
619    
620            * test/test_postgis_db.py (TestBriefDescription)
621            (TestPostGISSimple.test_brief_description): Rename
622            TestBriefDescription to TestPostGISSimple and the test method to
623            test_brief_description so that we can add more test methods.
624            (TestPostGISSimple.test_matches_parameters): New. Test the new
625            MatchesParameters method
626    
627    2003-11-18  Bernhard Herzog  <[email protected]>
628    
629            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
630            _was_destroyed, to indicate whether an publisher instance has
631            already been destroyed.
632            (Publisher.Unsubscribe): Only disconnect if the publisher has not
633            been destroyed yet.
634            (Publisher.Destroy): Set the _was_destroyed flag to true.
635    
636            * test/test_connector.py
637            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
638            calling Unsubscribe after Destroy doesn't raise an exception
639    
640    2003-11-14  Bernhard Herzog  <[email protected]>
641    
642            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
643            typo in doc-string
644    
645    2003-11-13  Bernhard Herzog  <[email protected]>
646    
647            Quote table and column names properly for postgis.
648    
649            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
650            quote an identifier for use in an sql statement
651            (PostGISColumn.__init__): Add the quoted_name attribute
652            (PostGISTable.__init__): New instance variable quoted_tablename
653            (PostGISTable._fetch_table_information): Use the quoted table
654            name. New isntance variable quoted_geo_col with a quoted version
655            of geometry_column
656            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
657            (PostGISTable.RowOrdinalToId): Use the quoted table name
658            (PostGISTable.ReadValue, PostGISTable.ValueRange)
659            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
660            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
661            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
662            Use quoted table and column names
663    
664            * test/test_postgis_db.py (TestPostGISSpecialCases)
665            (TestPostGISIgnoredColumns): Rename the class to
666            TestPostGISSpecialCases because that better describes the new
667            cases
668            (TestPostGISSpecialCases.test_unsupported_types)
669            (TestPostGISSpecialCases.test): Rename the method to
670            test_unsupported_types because we need a more descriptive name now
671            that there are more methods
672            (TestPostGISSpecialCases.test_table_name_quoting)
673            (TestPostGISSpecialCases.test_column_name_quoting)
674            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
675            cases to test quoting of table and column names in PostGISTable
676            and PostGISShapeStore
677    
678            * test/postgissupport.py
679            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
680            AddGeometryColumn desn't support table or column names with sapces
681            or double quotes
682    
683    2003-11-12  Jan-Oliver Wagner <[email protected]>
684    
685            * Extensions/wms/__init__.py: New: Init to make this
686            directory a package.
687    
688            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
689    
690    2003-11-11  Bernhard Herzog  <[email protected]>
691    
692            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
693            Constant for the file woth deprecated epsg projections
694            (get_system_proj_file): Update doc-string
695    
696            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
697            above the EPS widgets, introduce a check box for the deprecated
698            eps projections and a label for the epsg widgets
699            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
700            too
701    
702    2003-11-11  Bernhard Herzog  <[email protected]>
703    
704            Avoid warnings when run under Python 2.3
705    
706            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
707            (BaseRenderer.draw_label_layer): Coordinates must be ints.
708    
709            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
710            real method so that we can convert to int.
711            (MapRenderer.label_font): The font size mist be an int.
712    
713            * Thuban/UI/common.py (Color2wxColour): The color values must be
714            ints. Also, remove the unnecessary asserts.
715    
716            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
717            (TestUnicodeStrings.test): Python source code should not contain
718            non-ascii characters unless an encoding is specified in the file.
719            Therefore use \x escapes in the string literals for non-ascii
720            characters.
721    
722    2003-11-11  Bernhard Herzog  <[email protected]>
723    
724            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
725            parameter so that this function can be used for all proj files in
726            Resource/Projections
727            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
728            get_system_proj_file
729    
730            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
731            ProjFile self.__sysProjFile use a dictionary of system ProjFile
732            objects self._sys_proj_files
733            (ProjFrame.build_dialog): Adapt to the new changes in the
734            ProjectionList constructor. Add a check button to toggle whether
735            EPSG projections are shown
736            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
737            events.
738            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
739            the busy cursor if the files have not yet been loaded by the
740            dialog.
741            (ProjFrame.load_system_proj): Add a parameter for the name of the
742            proj file. Maintain the dictionary of system projections
743            self._sys_proj_files
744    
745            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
746            user_projs parameters into one parameter proj_files which is a
747            list of proj files.
748            (ProjectionList._subscribe_proj_files)
749            (ProjectionList._unsubscribe_proj_files): New. Move
750            subscription/unsubscription of projfile messages to separate
751            methods
752            (ProjectionList.Destroy): The unsubscribe is now done in
753            _unsubscribe_proj_files
754            (ProjectionList.update_projections): We now have a list of proj
755            file objects
756            (ProjectionList.SetProjFiles): New method to set a new list of
757            proj file objects
758    
759            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
760            Specify explicitly which system proj file to load.
761    
762    2003-11-11  Bernhard Herzog  <[email protected]>
763    
764            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
765            instance variables to cut cyclic references. The GC would have
766            collected the loader eventually but it can happen that it doesn't
767            run at all until thuban is closed (2.3 but not 2.2 tries a bit
768            harder and forces a collection when the interpreter terminates)
769            (load_session): Call the handler's Destroy method to make sure
770            that it gets garbage collected early. Otherwise it will be
771            collected very late if at all and it holds some references to e.g.
772            shapestores and the session which can lead to leaks (of e.g. the
773            temporary files)
774    
775            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
776            resource leak in load_session
777    
778    2003-11-10  Bernhard Herzog  <[email protected]>
779    
780            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
781            extensions are to be rendered.
782            (_renderer_extensions): New. List with renderer for layers in
783            extensions
784            (add_renderer_extension): New. Add a renderer extension
785            (init_renderer_extensions): New. Init the renderer extensions
786            (BaseRenderer.render_map_incrementally): Search
787            _renderer_extensions for how to draw unknown layer types
788            (BaseRenderer.draw_raster_data): Add format parameter so that
789            formats other than BMP can be drawn
790            (BaseRenderer.draw_raster_layer): Pass an explicit format to
791            draw_raster_data
792    
793            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
794            strings of the format parameter of draw_raster_data method to wx
795            constants
796            (MapRenderer.draw_raster_data): Add the format parameter and use
797            raster_format_map to map it to the right wxwindows constant for
798            wxImageFromStream
799    
800            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
801            the format parameter and record it
802            (TestBaseRenderer.test_raster_no_projection): check the format
803            paramter of the draw_raster_data method
804            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
805            extension facility
806    
807    2003-11-07  Bernhard Herzog  <[email protected]>
808    
809            Tweak the usage of the sqlite database to make common use cases
810            more responsive. In most cases copying the data to the sqlite
811            database takes so long that using sqlite doesn't have enough
812            advantages.
813    
814            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
815            comments about performance and query the min and max in separate
816            statements because only that way will indexes be used.
817            (TransientTableBase.UniqueValues): Add some comments about
818            performance.
819            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
820            Do not copy the data to the transient DB but use the transient
821            copy if it exists. See the new comments for the performance trade
822            offs
823    
824            * test/test_transientdb.py
825            (TestTransientTable.test_auto_transient_table): Make sure that the
826            data is copied to the transient database at some point.
827    
828    2003-11-03  Bernhard Herzog  <[email protected]>
829    
830            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
831            globals to locals so that it's a bit faster
832    
833    2003-11-03  Bernhard Herzog  <[email protected]>
834    
835            * Thuban/UI/baserenderer.py
836            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
837            method. ReadValue is faster than ReadRowAsDict since it only reads
838            one cell especially now that the dbf file objects actually
839            implement it.
840    
841            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
842            read_attribute method of the dbf objects
843    
844    2003-11-03  Bernhard Herzog  <[email protected]>
845    
846            * Extensions/profiling/profiling.py (popup_dialog_box): New config
847            variable to indicate whether the result should be shown in a
848            dialog box
849            (profile_screen_renderer, time_screen_renderer): Only show a
850            dialog box if popup_dialog_box is true.
851            (profile_screen_renderer): Flush stdout after the printing the
852            first part of the "profiling..." message
853    
854            * Thuban/UI/baserenderer.py
855            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
856            brushes for the groups so that they're not created over and over
857            again
858    
859            * Thuban/Model/classification.py (Classification.__getattr__)
860            (Classification._compile_classification)
861            (Classification._clear_compiled_classification): New. Methods to
862            manage a 'compiled' representation of the classification groups
863            which is created on demand
864            (Classification.InsertGroup, Classification.RemoveGroup)
865            (Classification.ReplaceGroup): reset the compiled representation
866            (Classification.FindGroup): Use the compiled representation to
867            find the matching group
868            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
869    
870    2003-10-31  Bernhard Herzog  <[email protected]>
871    
872            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
873            Send a CLASS_CHANGED message
874            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
875            not return the removed group since it wasn't used.
876    
877            * test/test_classification.py
878            (TestClassification.test_set_default_group): New. Test the
879            SetDefaultGroup method
880            (TestClassification.test_insert_group): New. Test the InsertGroup
881            method
882            (TestClassification.test_remove_group): New. Test the RemoveGroup
883            method
884            (TestClassification.test_replace_group): New. Test the
885            ReplaceGroup method
886    
887    2003-10-31  Bernhard Herzog  <[email protected]>
888    
889            * test/test_classification.py (TestClassification.setUp):
890            Subscribe to the CLASS_CHANGED messages
891            (TestClassification.tearDown): New. Destroy the classification
892            properly
893            (TestClassification.test_defaults): Add tests for the default line
894            width and whether no messages were sent yet
895            (TestClassification.test_set_default_properties): Add tests for
896            messages and setting the default line width
897            (TestClassification.test_add_singleton)
898            (TestClassification.test_add_range)
899            (TestClassification.test_multiple_groups): Add tests for messages
900    
901    2003-10-31  Bernhard Herzog  <[email protected]>
902    
903            Some more refactoring in preparation for new tests:
904    
905            * test/test_classification.py (TestClassification.setUp): New.
906            Instantiate the classification here. Update the test methods
907            accordingly.
908            (TestClassification.test_multiple_groups): Make sure that the two
909            singletons matching 1 are considered different.
910    
911    2003-10-31  Bernhard Herzog  <[email protected]>
912    
913            * test/test_classification.py (red, green, blue): New. These
914            constants were used in several cases. Update the relevant methods.
915            (TestClassification.test_defaults)
916            (TestClassification.test_set_default_properties)
917            (TestClassification.test_add_singleton)
918            (TestClassification.test_add_range)
919            (TestClassification.test_multiple_groups)
920            (TestClassification.test_deepcopy): New. These were formerly all
921            part of the single method test.
922            (TestClassification.test_deepcopy): Removed.
923            (TestClassIterator): Removed. The test case is now a method of
924            TestClassification since it tests part of the public interface of
925            Classification
926            (TestClassification.test_iterator): New. Used to be
927            TestClassIterator effectively
928    
929    2003-10-31  Jan-Oliver Wagner <[email protected]>
930    
931            GUIfied the functions of the profiling extension.
932    
933            * /Extensions/profiling/__init__.py: New: Init to make this
934            directory a package.
935    
936            * Extensions/profiling/profiling.py: Moved menu entries to
937            the Extensions menu. Applied _() for strings.
938            (profile_screen_renderer): Catch the detailed printout and present
939            it in a dialog.
940            (time_screen_renderer): Raise a dialog to present the result instead
941            of printing it to stdout.
942    
943    2003-10-31  Bernhard Herzog  <[email protected]>
944    
945            * test/test_classification.py (TestClassGroupProperties)
946            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
947            (TestClassGroupSingleton, TestClassIterator, TestClassification):
948            Split TestClassification into several classes, one for each class
949            being tested. TestClassification itself now only tests
950            Classification. This split makes changes to the tests a bit easier
951    
952    2003-10-31  Bernhard Herzog  <[email protected]>
953    
954            * Extensions/profiling/profiling.py: New. Extension to measure
955            Thuban performance
956    
957    2003-10-31  Frank Koormann <[email protected]>
958    
959            Added two items to legend popup menu: Remove Layer and Show Layer Table
960    
961            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
962            LegendPanel._OnShowTable): New event handlers, call the corresponding
963            mainwindow methods.
964            (LegendTree._OnRightClick): Added items to popup menu.
965    
966    2003-10-30  Bernhard Herzog  <[email protected]>
967    
968            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
969            EVT_WINDOW_DESTROY
970            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
971            nothing but is convenient for the derived classes.
972    
973            * Thuban/UI/tableview.py
974            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
975            Unsubscribe the messages here not in OnClose because that might
976            get called multiple times. Fixes RT #2196
977            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
978            anymore.
979    
980            * README: Update the minimum requirement for wxPython. Since we
981            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
982            the version in which that was introduced for all platforms
983    
984    2003-10-30  Frank Koormann <[email protected]>
985    
986            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
987            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
988            frame.
989    
990    2003-10-30  Jan-Oliver Wagner <[email protected]>
991    
992            Improved APR import extension, added further EPSG definitions
993            and some cleanup regarding string class.
994    
995            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
996            Added test for alias 'longlat'.
997    
998            * Resources/Projections/epsg-deprecated.proj: New. Contains
999            deprecated EPSG definitions.
1000    
1001            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
1002            the variable names for objects.
1003    
1004            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
1005            Copied from importAPR and provided with documentation.
1006    
1007            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
1008            Moved to apr.py.
1009            (APR_View): Added object ref 'ITheme'.
1010    
1011            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
1012            split function by corresponding use of the string class method.
1013    
1014            * Thuban/Model/xmlwriter.py: Replaced string replace function by
1015            corresponding string method.
1016    
1017    2003-10-29  Bernhard Herzog  <[email protected]>
1018    
1019            * Thuban/UI/baserenderer.py
1020            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
1021            special case of a classification that only has the default group
1022    
1023    2003-10-27  Bernhard Herzog  <[email protected]>
1024    
1025            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1026    
1027            * po/de.po: Update.
1028    
1029            * Thuban/UI/application.py
1030            (ThubanApplication.ShowExceptionDialog): Handle translation of the
1031            dialog message properly
1032    
1033    2003-10-27  Bernhard Herzog  <[email protected]>
1034    
1035            Rework how localization works so that we use wx's translation
1036            functions when running Thuban as a normal application but not when
1037            we don't need any UI, such as in the test suite. See the comment
1038            in Thuban/__init__.py for details
1039    
1040            * Thuban/__init__.py (_): Add one level of indirection to make the
1041            translation handling more flexible and to make it possible to use
1042            either wx's translation services or not.
1043            (gettext_identity, translation_function_installed)
1044            (install_translation_function): New function to help with this
1045    
1046            * Thuban/UI/__init__.py: Install the wx specific translation
1047            function if it's OK to do that
1048    
1049            * test/support.py (initthuban): Install a dummy translation
1050            function so that importing Thuban.UI doesn't install a wx specific
1051            one for which would need to import wxPython
1052    
1053    2003-10-27  Bernhard Herzog  <[email protected]>
1054    
1055            * HOWTO-Release: Source archives should be created first and the
1056            binary packages should be created from the source archives.
1057            There's an official debian package now so there's no need to test
1058            the rpm on debian anymore
1059    
1060    2003-10-27  Bernhard Herzog  <[email protected]>
1061    
1062            Several rendering changes:
1063    
1064             - Render the selection into a separate bitmap so that only that
1065               bitmap needs to be redrawn when the selection changes
1066    
1067             - Render incrementally showing previews and allowing interaction
1068               before rendering is complete
1069    
1070             - Update the renderer interface a bit. Most parameters of
1071               RenderMap are now parameters of the constructor
1072    
1073            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
1074            and the update region as parameters. Update the doc-string
1075            (BaseRenderer.render_map_incrementally): New. Generator function
1076            to renders the map incrementally
1077            (BaseRenderer.render_map): Remove the map argument (it's now in
1078            the constructor) and simply iterate over the
1079            render_map_incrementally generator to draw the map.
1080            (BaseRenderer.draw_shape_layer_incrementally)
1081            (BaseRenderer.draw_shape_layer): Renamed to
1082            draw_shape_layer_incrementally and changed into a generator that
1083            yields True every 500 shapes. Used by render_map_incrementally to
1084            render shape layers incrementally
1085    
1086            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
1087            map and region parameters which are now in the constructor
1088            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
1089            the inherited render_map_incrementally.
1090            (BaseRenderer.draw_shape_layer): Removed.
1091            (ScreenRenderer.draw_selection_incrementally): New. The selection
1092            drawing part of the removed draw_shape_layer as a generator
1093            (ScreenRenderer.layer_shapes): Update because of the region
1094            parameter change
1095            (ExportRenderer.__init__): New. Extend the inherited constructor
1096            with the destination region for the drawing
1097            (ExportRenderer.RenderMap): Removed the map and region parameters
1098            which are now in the constructor
1099    
1100            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
1101            bitmap suitable for a preview in a tool
1102            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
1103            bitmap
1104            (MapPrintout.draw_on_dc): Adapt to new renderer interface
1105            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
1106            exists
1107            (MapCanvas.OnIdle): Update the logic to deal with incremental
1108            rendering and the selection bitmap
1109            (MapCanvas._do_redraw): Handle the instantiation of the render
1110            iterator and the redraws during rendering
1111            (MapCanvas._render_iterator): New. Generator to incrementally
1112            redraw both bitmaps
1113            (MapCanvas.Export): Adapt to new renderer interface.
1114            (MapCanvas.full_redraw): Reset the selection bitmap and the
1115            renderer iterator too
1116            (MapCanvas.redraw_selection): New. Force a redraw of the selection
1117            bitmap
1118            (MapCanvas.shape_selected): Only redraw the selection bitmap
1119    
1120            * test/test_baserenderer.py
1121            (TestBaseRenderer.test_polygon_no_projection)
1122            (TestBaseRenderer.test_raster_no_projection)
1123            (TestBaseRenderer.test_point_map_projection)
1124            (TestBaseRenderer.test_point_layer_and_map_projection)
1125            (TestBaseRenderer.test_point_layer_projection)
1126            (TestBaseRenderer.test_point_with_classification): Adapt to new
1127            renderer interface
1128    
1129    2003-10-24  Bernhard Herzog  <[email protected]>
1130    
1131            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
1132            (point_in_polygon_shape, shape_centroid): Raise an exception if
1133            the shape can't be read. Previously invalid shape ids would lead
1134            to a segfault.
1135    
1136            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
1137            New. test whether an exception is raised for invalid shape ids
1138    
1139    2003-10-24  Jan-Oliver Wagner <[email protected]>
1140    
1141            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
1142            as alias for 'latlong'.
1143    
1144            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
1145            as alias for 'latlong'.
1146    
1147    2003-10-24  Jan-Oliver Wagner <[email protected]>
1148    
1149            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
1150            the projection even for the UnknownPanel.
1151            (UnknownProjPanel.__init__): Define the text and create the textctrl
1152            widget.
1153            (UnknownProjPanel._DoLayout): Replaced static text widget by the
1154            textctrl created in __init__.
1155            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
1156            including the parameters of the projection.
1157            
1158    2003-10-24  Jan-Oliver Wagner <[email protected]>
1159    
1160            * Resources/Projections/epsg.proj: New. This is a list of
1161            EPSG codes with parameters for proj. The list has been
1162            generated using devtools/create_epsg.py based on the
1163            file nad/epsg of the proj 4.4.7 package. Four projection
1164            definitions have been deleted as they are not accepted by proj:
1165            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
1166            and "HD72 / EOV".
1167    
1168    2003-10-22  Bernhard Herzog  <[email protected]>
1169    
1170            Some more tweaks to the projection dialog which should fix RT
1171            #1886.
1172    
1173            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
1174            the ProjFile's messages and call the base class methods correctly
1175            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
1176            flag on the newly selected item too. Otherwise some other item is
1177            focused and the first time the focus is moved with the keyboard
1178            the selection moves in unexpected ways.
1179    
1180            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
1181            focus on the OK button, only on the projection list. That way the
1182            list really has the focus initially
1183            (ProjFrame.OnClose): Call the projection list's Destroy method to
1184            make it unsubscribe all messages
1185    
1186    2003-10-21  Bernhard Herzog  <[email protected]>
1187    
1188            Rework the projection dialog to fix a few bugs, including RT 2166
1189            and most of 2168
1190    
1191            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1192            special wxListCtrl to show a list of projections in a more MVC
1193            fashion
1194    
1195            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1196            throughout the class. The main change is to use the ProjectionList
1197            class instead of a normal wxListBox. Also, add an explicit
1198            "Unknown" projection to the projection choice control.
1199            (ProjPanel.__init__): Add an "unknown" ellipsoid
1200            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1201            instantiation of the panel's controls to make the tab-order more
1202            natural
1203    
1204    2003-10-21  Bernhard Herzog  <[email protected]>
1205    
1206            * test/test_load.py (TestSingleLayer.file_contents)
1207            (TestSingleLayer.test): Add non-ascii characters to the titles of
1208            session, map and layer. This is effectively a port of the
1209            TestUnicodeStrings test in test_load_0_8.py which for some reason
1210            was only added there.
1211    
1212            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1213            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1214            characters to the titles of session, map and layer,.
1215    
1216    2003-10-21  Bernhard Herzog  <[email protected]>
1217    
1218            Add EPSG projection handling to .thuban files
1219    
1220            * test/test_save.py (SaveSessionTest.dtd)
1221            (SaveSessionTest.testEmptySession)
1222            (SaveSessionTest.testLayerProjection)
1223            (SaveSessionTest.testRasterLayer)
1224            (SaveSessionTest.testClassifiedLayer)
1225            (SaveSessionTest.test_dbf_table)
1226            (SaveSessionTest.test_joined_table)
1227            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
1228            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
1229            use a and epsg projection to test saving them
1230    
1231            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
1232            namespace
1233            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1234            (TestLayerProjection.file_contents)
1235            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1236            (TestPostGISLayer.file_contents)
1237            (TestPostGISLayerPassword.file_contents)
1238            (TestLoadError.file_contents, TestLoadError.test): Update to use
1239            1.0-dev namespace
1240            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
1241            use 1.0-dev namespace and use an EPSG projection to test whether
1242            loading it works
1243    
1244            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
1245            as of Thuban 0.9. These are now tests to determine whether Thuban
1246            can still read files generated by Thuban 0.9
1247    
1248            * Thuban/Model/save.py (SessionSaver.write)
1249            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
1250            namespace
1251            (SessionSaver.write_projection): Write the projection's epsg
1252            attribute
1253    
1254            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
1255            thuban-1.0-dev.dtd namespace
1256            (SessionLoader.check_attrs): Allow a callable object as conversion
1257            too
1258            (SessionLoader.start_projection, SessionLoader.end_projection)
1259            (SessionLoader.start_parameter): Handle the epsg attribute and
1260            rename a few instance variables to lower case
1261    
1262            * Resources/XML/thuban-1.0.dtd: New. Only difference to
1263            thuban-0.9.dtd is the epsg attribute for projections.
1264    
1265    2003-10-21  Bernhard Herzog  <[email protected]>
1266    
1267            * test/runtests.py (main): Let the user specify which tests to run
1268            on the command line
1269    
1270            * test/support.py (ThubanTestResult.getDescription): Override to
1271            give a better short description. The description can be used as a
1272            parameter to run_tests to run that particular test in isolation.
1273    
1274    2003-10-21  Frank Koormann   <[email protected]>
1275    
1276            Popup menu for legend. Scheduled for the 1.2 release this was too
1277            simple to implement: The popup menu is bound to the legend tree, while
1278            the events are hanlded by its anchestor, the legend panel. This
1279            allows reuse of all the event handlers already implemented for the
1280            legend toolbar buttons.
1281    
1282            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
1283            to add handlers for the events issued by the popup menu.
1284            (LegendPanel._OnToggleVisibility): Handler for toggling layer
1285            visibility event
1286            (LegendPanel._OnProjection): Handler for layer projection event.
1287            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
1288            (LegendTree._OnRightClick): Event handler for right click, select item
1289            and pop up menu.
1290            (LegendTree.ToggleVisibility): Toggle layer visibility
1291            (LegendTree.LayerProjection): Raise layer projection dialog for
1292            current layer.
1293    
1294    2003-10-21  Bernhard Herzog  <[email protected]>
1295    
1296            * Resources/Projections/defaults.proj: Use correct DOCTYPE
1297            declaration. The top-level element is projectionlist not projfile
1298    
1299    2003-10-20  Bernhard Herzog  <[email protected]>
1300    
1301            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
1302            method to write a projfile and display a busy cursor and error
1303            dialogs.
1304            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
1305            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
1306            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
1307            busy cursor while loading the user and system prj files.
1308    
1309    2003-10-16  Bernhard Herzog  <[email protected]>
1310    
1311            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
1312            ProjFile objects
1313            (clear_proj_file_cache): New function to clear the cache. Mainly
1314            useful for use by the test suite
1315            (read_proj_file): Use the cache.
1316    
1317            * test/test_proj.py (TestProjFile): Clarify the doc-string
1318            (ProjFileReadTests): Update doc-string
1319            (ProjFileReadTests.test_get_system_proj_file): Check whether the
1320            system proj files is cached.
1321            (ProjFileLoadTestCase): New base class for the proj file tests
1322            derived from support.FileLoadTestCase to provide some common
1323            behavior.
1324            (TestLoadingProjFile)
1325            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1326            (TestProjFileWithInvalidParameters.file_contents): Derive from
1327            ProjFileLoadTestCase
1328            (TestLoadingProjFile.test_caching): New. Test whether the cache
1329            works
1330    
1331    2003-10-16      Silke Reimer    <[email protected]>
1332    
1333            * debian/*: New directory with configuration files for building a thuban
1334              deb-package.
1335    
1336    2003-10-14  Bernhard Herzog  <[email protected]>
1337    
1338            * test/test_proj.py: Execute support.run_tests when run as
1339            __main__ so that missing unsubscribes are detected
1340            (TestProjFile.tearDown): Destroy the proj_file properly
1341    
1342    2003-10-14  Bernhard Herzog  <[email protected]>
1343    
1344            * Thuban/Model/messages.py (PROJECTION_ADDED)
1345            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
1346            the ProjFile objects
1347    
1348            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
1349            easily send messages when the projections change
1350            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
1351            when the change was successful
1352    
1353            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
1354            proj file messages
1355            (TestProjFile.test_add_remove)
1356            (TestProjFile.test_remove_non_existing)
1357            (TestProjFile.test_replace)
1358            (TestProjFile.test_replace_non_existing): Test whether the right
1359            messages are sent
1360    
1361    2003-10-14  Bernhard Herzog  <[email protected]>
1362    
1363            * test/test_proj.py (TestProjFile.test): Refactor into several
1364            tests
1365            (TestProjFile.test_add_remove)
1366            (TestProjFile.test_remove_non_existing)
1367            (TestProjFile.test_replace)
1368            (TestProjFile.test_replace_non_existing): Some of the new
1369            individual test cases
1370            (TestProjFileSimple): New class for the rest of the test cases
1371            that came out of the refactoring
1372            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
1373            derived classes don't have to
1374    
1375    2003-10-13  Bernhard Herzog  <[email protected]>
1376    
1377            Add an optional EPSG code to the projection objects and extend the
1378            .proj file format accordingly.
1379    
1380            * Resources/XML/projfile.dtd (element projection): Add epsg
1381            attribute
1382    
1383            * Thuban/Model/proj.py (Projection.__init__): New parameter and
1384            instance variable epsg. Update doc-string
1385            (Projection.EPSGCode, Projection.Label): New methods to provide
1386            access to EPSG code and a label for use in dialogs
1387    
1388            * Thuban/Model/resource.py (ProjFileReader.start_projection)
1389            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
1390            Handle the epsg code attribute when reading or writing proj files
1391    
1392            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
1393            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
1394            (ProjFrame.__FillAvailList): Use the projection's Label method to
1395            get the string for the list box
1396    
1397            * test/test_proj.py (TestProjection.test_label)
1398            (TestProjection.test_label_epsg)
1399            (TestProjection.test_epsgcode_for_non_epsg_projection)
1400            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
1401            for the label and EPSGCode methods
1402            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
1403            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
1404            objects in the test cases and put the expected contents into the
1405            test case methods too. Update doTestWrite accordingly
1406            (TestLoadingProjFile)
1407            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
1408            read tests from TestProjFile.
1409            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
1410            tests are now in the new classes.
1411            (sample_projfile, sample_projfile_data)
1412            (sample_projfile2, sample_projfile_data2): Removed. Not used
1413            anymore.
1414            (TestProjFile.test_read_unreadable_file): No need to reset the
1415            permissions at the end anymore since we use a unique filename
1416    
1417    2003-10-13  Bernhard Herzog  <[email protected]>
1418    
1419            * test/test_proj.py: Some more refactoring of the test cases
1420            (ProjFileTest): New base class for the proj file tests.
1421            (TestProjFile): Derive from ProjFileTest
1422            (TestProjFile.test_read_unreadable_file)
1423            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
1424            the new filename method to get a unique filename
1425            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
1426            (WriteProjFileTests): New class for proj file write tests.
1427            Contains the write test that were in TestProjFile originally.
1428    
1429    2003-10-13  Bernhard Herzog  <[email protected]>
1430    
1431            * test/test_proj.py (TestProjFile.testRead)
1432            (TestProjFile.test_read_non_existing_file)
1433            (TestProjFile.test_read_unreadable_file)
1434            (TestProjFile.test_read_empty_file): Split into several methods.
1435    
1436    2003-10-10  Bernhard Herzog  <[email protected]>
1437    
1438            * Thuban/UI/sizers.py: New file with custom sizers.
1439    
1440            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
1441            all projection type specific panels and put them into a
1442            NotebookLikeSizer. This way the dialog doesn't change its size
1443            when a different projection is selected
1444            (ProjFrame.__init__): Rename projection_panels
1445            projection_panel_defs and reuse projection_panels for a list of
1446            the instantiated panels.
1447            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
1448            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
1449            the panels
1450            (UnknownProjPanel._DoLayout): Place the newlines in the message
1451            differently to make the panel narrower.
1452            (TMPanel._DoLayout): Layout the parameters in one column.
1453    
1454    2003-10-10  Bernhard Herzog  <[email protected]>
1455    
1456            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
1457            that contains all the setup for the dialog's widgets, layout and
1458            event handling.
1459            (__): Call build_dialog to build the dialog.
1460            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
1461            Their functionality is now in build_dialog
1462            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
1463            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
1464            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
1465            different widget names and hierarchy introduced with build_dialog.
1466    
1467    2003-10-10  Bernhard Herzog  <[email protected]>
1468    
1469            * README: Fix typo.
1470    
1471    2003-10-09  Bernhard Herzog  <[email protected]>
1472    
1473            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
1474            projection is already in the list. This is *a lot* faster when
1475            loading files with hundreds of projections since it saves a linear
1476            search. OTOH this will allow adding the same projection to the
1477            user.proj file multiple times in the projection dialog but we'll
1478            deal with that later
1479    
1480    2003-10-09  Jan-Oliver Wagner <[email protected]>
1481    
1482            * devtools: New. Directory for developer tools that are not intended
1483            for the regular user.
1484    
1485            * devtools/create_epsg.py: New. Convert the epsg file of proj into
1486            a python .proj file.
1487    
1488    2003-10-09  Bernhard Herzog  <[email protected]>
1489    
1490            * test/test_proj.py
1491            (TestProjection.test_get_parameter_without_equals_sign): New. Test
1492            whether GetParameter handles parameters without "=" sign correctly
1493    
1494            * Thuban/Model/proj.py (Projection.GetParameter): Handle
1495            parameters that do not contain a "=". Update the doc-string
1496    
1497    2003-10-08  Bernhard Herzog  <[email protected]>
1498    
1499            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
1500            length limit on the projname text control
1501    
1502    2003-10-08  Bernhard Herzog  <[email protected]>
1503    
1504            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
1505            (TestProjection.test_get_projection_units_normal): New. Tests for
1506            the Projection.GetProjectedUnits method
1507    
1508    2003-10-08  Jan-Oliver Wagner <[email protected]>
1509    
1510            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
1511            Added missing 'val' parameter.
1512    
1513    2003-10-08  Bernhard Herzog  <[email protected]>
1514    
1515            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
1516            projection type of the currently selected projection is not known,
1517            i.e. there's no panel for it, use the UnknownProjPanel
1518            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
1519            the actual replacing of the proj panel into the new method
1520            _show_proj_panel.
1521            (UnknownProjPanel): Add doc-string.
1522            (UnknownProjPanel._DoLayout): Insert a newline into the text so
1523            that the panel is not so wide.
1524    
1525    2003-10-08  Bernhard Herzog  <[email protected]>
1526    
1527            * Thuban/Model/resource.py (read_proj_file): Return the warnings
1528            too. Update the doc-string
1529            (get_proj_files): Removed. It wasn't used anywhere
1530            (get_system_proj_files, get_system_proj_file): Rename to
1531            get_system_proj_file and return the ProjFile object and not a list
1532            of ProjFile objects. Update the callers.
1533            (get_user_proj_files, get_user_proj_file): Rename to
1534            get_user_proj_file return the ProjFile object and not a list of
1535            ProjFile objects. Update the callers.
1536            (ProjFileReader.__init__): New instance variable for the warnings.
1537            Rename the __pf ivar to projfile. Update the methods referring to
1538            __pf
1539            (ProjFileReader.end_projection): Catch any errors raised when
1540            instantiating the projection and record that as an error. The
1541            projection will not be in the final ProjFile object.
1542            (ProjFileReader.GetWarnings): New method to return the warnings.
1543    
1544            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
1545            show the warnings from the projfile reader
1546            (ProjFrame._OnImport): Deal with any warnings returned by
1547            read_proj_file
1548            (ProjFrame.__FillAvailList): Deal with any warnings returned by
1549            get_system_proj_file or get_user_proj_file.
1550    
1551            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
1552            (TestProjFileWithInvalidParameters.file_contents): New test cases
1553            to test whether read_proj_file handles invalid projection
1554            parameters correctly
1555            (TestProjFile.test_get_system_proj_file): New. Simple test for
1556            resource.get_system_proj_file
1557    
1558    2003-10-07  Bernhard Herzog  <[email protected]>
1559    
1560            * test/test_derivedshapestore.py
1561            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
1562            properly so that the temporary directories get deleted correctly
1563    
1564    2003-10-06  Bernhard Herzog  <[email protected]>
1565    
1566            Handle the title changes in a proper MVC way.
1567    
1568            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1569            canvas' TITLE_CHANGED messages
1570            (MainWindow.update_title): New. Update the main window's title
1571            (MainWindow.__SetTitle): Removed. Use update_title instead.
1572            (MainWindow.SetMap): Use update_title instead of __SetTitle
1573            (MainWindow.RenameMap): Do change the window title explicitly
1574            here. That's handled in a proper MVC way now.
1575            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
1576            messages
1577    
1578            * Thuban/Lib/connector.py (Conduit): New class to help classes
1579            that forward messages
1580    
1581            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
1582            (ViewPort): Derive from Conduit instead of Publisher
1583            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
1584            when calling the inherited versions
1585            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
1586            methods to subscribe and unsubscribe map messages
1587            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
1588            handle the map subscriptions
1589            (ViewPort.Map, ViewPort.map_projection_changed)
1590            (ViewPort.layer_projection_changed): Add or update doc-strings
1591    
1592            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
1593            typo
1594            (MyConduit): Helper class for the Conduit test.
1595            (TestConduit): Test cases for Conduit
1596    
1597            * test/test_connector.py: Use support.run_tests as main.
1598    
1599            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
1600            the TITLE_CHANGED messages
1601            (ViewPortTest.test_forwarding_title_changed): New test to check
1602            whether the viewport forwards the map's TITLE_CHANGED messages
1603            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
1604            after the port's because the latter may require a still functional
1605            map.
1606    
1607    2003-10-06  Bernhard Herzog  <[email protected]>
1608    
1609            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
1610            doc-string
1611    
1612    2003-10-06  Bernhard Herzog  <[email protected]>
1613    
1614            * test/test_viewport.py (ViewPortTest.setUp)
1615            (SimpleViewPortTest.test_init_with_size): Move the test for the
1616            initial size as a constructor parameter from ViewPortTest.setUp
1617            method to a new separate test in SimpleViewPortTest.
1618    
1619    2003-10-06  Bernhard Herzog  <[email protected]>
1620    
1621            * test/test_viewport.py (MockView): New class derived from
1622            ViewPort with a mock implementation of GetTextExtent to be used in
1623            the test cases
1624            (ViewPortTest.setUp): Use MockView instead of ViewPort
1625    
1626            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
1627            into what would be a "pure virtual function" in C++: always raise
1628            NotImplementedError. Mock implementations for test cases don't
1629            belong into the real code
1630    
1631    2003-10-02  Bernhard Herzog  <[email protected]>
1632    
1633            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
1634            close the dbf file we create so that it's contents have been
1635            written properly.
1636    
1637            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
1638            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
1639            Update to shapelib 1.2.10
1640    
1641    2003-10-01  Jan-Oliver Wagner <[email protected]>
1642    
1643            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
1644            it annoys lintian which warns about these files not being
1645            executable. The #! isn't necessary here since if you absolutely
1646            must execute them you can always say "python <filename>".
1647    
1648    2003-09-26  Bernhard Herzog  <[email protected]>
1649    
1650            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
1651            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
1652            is ported to a newer the import will fail, so it should be noticed
1653            immediately that this function is gone.
1654            Fixes RT#1919
1655    
1656    2003-09-26  Bernhard Herzog  <[email protected]>
1657    
1658            Add a DTD for the projection files and make thuban write valid
1659            projection files
1660    
1661            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
1662            files
1663    
1664            * Thuban/Model/resource.py (ProjFileSaver.write): Use
1665            'projectionlist' as the name in the document type declaration so
1666            that it matches the element type of the root element.
1667    
1668            * test/test_proj.py (sample_projfile, sample_projfile2): Use
1669            'projectionlist' as the name in the document type declaration just
1670            as it is done now in the files thuban would write
1671            (sample_projfile, sample_projfile_data): Fix spelling of
1672            "Mercator"
1673            (TestProjFile.doTestWrite): Validate the written and the expected
1674            XML data
1675            (TestProjFile): Derive from ValidationTest so that we can run xml
1676            validation tests
1677    
1678    2003-09-24  Bernhard Herzog  <[email protected]>
1679    
1680            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
1681            modify the list returned by map.Layers() in place since it is the
1682            actual list of layers used by the map.
1683    
1684    2003-09-23  Jan-Oliver Wagner <[email protected]>
1685    
1686            * Doc/manual/thuban-manual.xml: Added subsection to chapter
1687            Extensions to describe the extensions coming with the Thuban
1688            standard package (gns2shp and importAPR).
1689    
1690    2003-09-23  Bernhard Herzog  <[email protected]>
1691    
1692            * libraries/thuban/wxproj.cpp (project_point): if there's an
1693            inverse but no forward projection, convert to degrees after
1694            applying the inverse projection. Fixes RT#2096
1695    
1696            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
1697            implicitly tests for the fix to RT#2096
1698    
1699            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
1700            Check that the sequences have the same lengths
1701    
1702            * Resources/Projections/defaults.proj (Geographic projection): Use
1703            a much more precise value for the to_meter attribute.
1704    
1705    2003-09-22  Bernhard Herzog  <[email protected]>
1706    
1707            * test/support.py (initthuban): Make sure to unset the LANG env.
1708            var. so that tests that compare translated strings work. Solves RT
1709            #2094
1710    
1711    2003-09-22  Jan-Oliver Wagner <[email protected]>
1712    
1713            Small improvement of APR import.
1714    
1715            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
1716            Added tests for text-ranges.
1717    
1718            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
1719            returns a string object if the range is based on text.
1720    
1721            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
1722            range retrieval.
1723    
1724    2003-09-22  Jan-Oliver Wagner <[email protected]>
1725    
1726            Initial version of the importAPR extension which is in
1727            experimental state.
1728    
1729            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
1730            /Extensions/importAPR/test/: New directories.
1731    
1732            * /Extensions/importAPR/samples/README: New: Howto load the samples.
1733    
1734            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
1735            file which refers to the Thuban Iceland demo data.
1736    
1737            * /Extensions/importAPR/test/README: New: Howto execute the tests.
1738    
1739            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
1740    
1741            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
1742            as in '.apr'-files.
1743    
1744            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
1745            ODB Objects as in '.apr', '.avl' and other files.
1746    
1747            * /Extensions/importAPR/__init__.py: New: Init to make this
1748            directory a package.
1749    
1750            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
1751            project file (.apr) and convert it to Thuban.
1752    
1753    2003-09-22  Jan-Oliver Wagner <[email protected]>
1754    
1755            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
1756    
1757    2003-09-19  Jan-Oliver Wagner <[email protected]>
1758    
1759            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
1760            with description on RPM installation and RPM binary package
1761            creation.
1762    
1763    2003-09-18  Bernhard Herzog  <[email protected]>
1764    
1765            * setup.py (data_files): Only add the mo files if the Locales
1766            directory actually exists, so that setup.py works with a fresh CVS
1767            checkout
1768    
1769    2003-09-12  Jan-Oliver Wagner <[email protected]>
1770    
1771            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
1772            in viewport, not anymore in view
1773    
1774    2003-09-04  Jan-Oliver Wagner <[email protected]>
1775    
1776            Introducing first Extension (gns2shp).
1777    
1778            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
1779    
1780            * Extensions/__init__.py: New. init to make this dir a package.
1781    
1782            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
1783    
1784            * Extensions/gns2shp/test/README: New. some info on this test directory.
1785    
1786            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
1787    
1788            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
1789            of Shapefile from GNS text file format
1790    
1791    2003-09-03  Jan-Oliver Wagner <[email protected]>
1792    
1793            Fix/workaround for bug #2019:
1794            https://intevation.de/rt/webrt?serial_num=2019
1795    
1796            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
1797            (IdentifyView.__init__): Added another button that allows to
1798            stop the identify mode.
1799            (IdentifyView.OnStop): New. Stops the identify mode.
1800    
1801    2003-09-03  Jan-Oliver Wagner <[email protected]>
1802    
1803            Introducing a new exception dialog that allows to exit the
1804            application immediately.
1805            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
1806    
1807            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
1808    
1809            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1810            Made strings available to translations. Exchanged the simple
1811            ScrolledMessageDialog by the new ExceptionDialog.
1812    
1813    2003-09-01  Bernhard Herzog  <[email protected]>
1814    
1815            * NEWS: New. Summary of changes and release notes.
1816    
1817            * MANIFEST.in: Add NEWS
1818    
1819    2003-09-01  Bernhard Herzog  <[email protected]>
1820    
1821            * MANIFEST.in: Correct the include statement for the mo-files and
1822            include the documentation too.
1823    
1824            * setup.py (data_files): Add the .mo files
1825            (setup call): Up to version 0.9.0
1826    
1827    2003-09-01  Bernhard Herzog  <[email protected]>
1828    
1829            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
1830            parameter list to just parent and session
1831            (ChooseDBTableDialog.__set_properties): Removed. Setting the
1832            selection of empty list boxes is not allowed (and produces C++
1833            assertion errors) and the rest of the setup is better done in
1834            __init__ anyway.
1835            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
1836            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
1837            builtins True/False for booleans to avoid warnings from wxPython
1838    
1839            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
1840            ChooseDBTableDialog constructor parameters.
1841    
1842    2003-09-01  Bernhard Herzog  <[email protected]>
1843    
1844            * Thuban/Model/postgisdb.py
1845            (PostGISTable): Extend doc-string
1846            (PostGISTable._fetch_table_information): Set the column index
1847            correctly, pretending ignored columns don't exist.
1848    
1849            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
1850            for postgis tables with data types not yet supported by thuban.
1851    
1852    2003-08-29  Bernhard Herzog  <[email protected]>
1853    
1854            * HOWTO-Release: Tweak item about running the tests.
1855    
1856    2003-08-29  Jan-Oliver Wagner <[email protected]>
1857    
1858            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
1859    
1860    2003-08-29  Bernhard Herzog  <[email protected]>
1861    
1862            Add some missing parameters to projections. Proj complains about
1863            them on windows but for some reason not on Linux.
1864    
1865            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
1866            missing required projection parameters
1867    
1868            * test/test_proj.py (TestProjFile.test): Add missing required
1869            projection parameters
1870    
1871            * test/test_load_0_8.py (TestLayerProjection.file_contents)
1872            (TestLayerProjection.test): Add missing required projection
1873            parameters and tests for them
1874    
1875            * test/test_load.py (TestLayerProjection.file_contents)
1876            (TestLayerProjection.test): Add missing required projection
1877            parameters and tests for them
1878    
1879            * test/test_layer.py (TestLayer.test_base_layer): Add missing
1880            required projection parameters
1881    
1882    2003-08-29  Bernhard Herzog  <[email protected]>
1883    
1884            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
1885            access the pj_errno because directly accessing pj_errno doesn't
1886            work on windows if the proj library is in a DLL
1887    
1888            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
1889    
1890    2003-08-28  Bernhard Herzog  <[email protected]>
1891    
1892            * test/test_proj.py: Import things from Thuban after calling
1893            initthuban
1894    
1895            * test/test_load.py (LoadSessionTest.filenames): New class
1896            variable with the filename attributes to normalize
1897            (LoadSessionTest.check_format): Pass self.filenames to
1898            sax_eventlist to normalize the filename attributes
1899    
1900            * test/xmlsupport.py: Add cvs keywords
1901            (SaxEventLister.__init__): New parameter filenames which indicates
1902            attributes that contain filenames
1903            (SaxEventLister.startElementNS): Normalize the filename attributes
1904            with os.path.normpath
1905            (sax_eventlist): New parameter filenames to pass through to
1906            SaxEventLister
1907    
1908            * test/test_derivedshapestore.py: Make this file callable as a
1909            program to execute the tests
1910            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
1911            the session to self.session so that it gets destroyed properly
1912    
1913            * test/test_layer.py (TestLayer.tearDown): Call the session's
1914            Destroy method
1915    
1916            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
1917            too if it exists
1918            (TestMapAddLayer.test_add_layer): Bind the session to self.session
1919            so that it gets destroyed properly
1920    
1921            * test/postgissupport.py (reason_for_not_running_tests): Add a
1922            test for the existence of popen2.Popen4.
1923    
1924            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
1925            reliable way to destroy the sessions created in the test cases
1926            (SaveSessionTest.test_dbf_table): Bind the session to self.session
1927            so that it gets destroyed properly
1928            (SaveSessionTest.testLayerProjection): Bind the session to
1929            self.session so that it gets destroyed properly
1930    
1931            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
1932            sure that the session is destroyed properly
1933    
1934            * test/test_shapefilestore.py: Make this callable as a program to
1935            execute the tests
1936    
1937            * test/test_scalebar.py: Remove unnecessary import of _ from
1938            Thuban
1939    
1940            * test/support.py (print_garbage_information): Call initthuban
1941            here because it may be called indirectly from test cases that test
1942            test support modules which do not use anything from thuban itself
1943            (ThubanTestProgram.runTests): Remove unnecessary debug print
1944    
1945    2003-08-28  Bernhard Herzog  <[email protected]>
1946    
1947            * Thuban/version.py (longversion): Update to 0.9
1948    
1949            * Thuban/UI/mainwindow.py: Remove some unused imports
1950    
1951            * README: Add section about required additional software. Add date
1952            and revision CVS keywords
1953    
1954            * HOWTO-Release: Add item about the translations. Add date and
1955            revision CVs keywords and change formatting to match README a bit
1956            better
1957    
1958            * po/de.po: Update for 0.9
1959    
1960            * test/README: Tweak the wording a little because many tests are
1961            not really unittest.
1962    
1963    2003-08-27  Bernhard Herzog  <[email protected]>
1964    
1965            As preparation for the 0.9 release, switch thuban files to a
1966            non-dev namespace
1967    
1968            * Thuban/Model/save.py (SessionSaver.write_session): Write files
1969            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
1970            namespace
1971    
1972            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
1973            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
1974    
1975            * test/test_save.py (SaveSessionTest.dtd)
1976            (SaveSessionTest.testEmptySession)
1977            (SaveSessionTest.testSingleLayer)
1978            (SaveSessionTest.testLayerProjection)
1979            (SaveSessionTest.testRasterLayer)
1980            (SaveSessionTest.testClassifiedLayer)
1981            (SaveSessionTest.test_dbf_table)
1982            (SaveSessionTest.test_joined_table)
1983            (SaveSessionTest.test_save_postgis): Update for new namespace
1984    
1985            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
1986            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1987            (TestLayerProjection.file_contents)
1988            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1989            (TestPostGISLayer.file_contents)
1990            (TestPostGISLayerPassword.file_contents)
1991            (TestLoadError.file_contents, TestLoadError.test): Update for new
1992            namespace
1993    
1994    2003-08-27  Bernhard Herzog  <[email protected]>
1995    
1996            Make the table interface distinguish between row ids (an integer
1997            that uniquely identifies a row) and row ordinals (a simple row
1998            count from 0 to NumRows() - 1)
1999    
2000            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
2001            (PostGISTable.RowOrdinalToId): New methods to conver between row
2002            ids and row ordinals
2003            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
2004            parameter row_is_ordinal to indicate whether the row parameter is
2005            the row id or the ordinal
2006    
2007            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
2008            (TransientTableBase.RowOrdinalToId)
2009            (AutoTransientTable.RowIdToOrdinal)
2010            (AutoTransientTable.RowOrdinalToId): Same new methods as in
2011            PostGISTable.
2012            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
2013            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
2014            Same new parameter as in PostGISTable.
2015    
2016            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
2017            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
2018            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
2019            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
2020            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
2021            parameter as in PostGISTable.
2022    
2023            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
2024            (DataTable.RowOrdinalToId): New methods to convert between row ids
2025            and row ordinals.
2026            (TableGrid.SelectRowById): New method to select a row based on its
2027            ID as opposed to its ordinal
2028            (DataTable.GetValue, TableGrid.OnRangeSelect)
2029            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
2030            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
2031            (LayerTableFrame.__init__): Convert between row ids and row
2032            ordinals as appropriate
2033    
2034            * test/postgissupport.py (PostGISDatabase.__init__): Add
2035            doc-string.
2036            (PostGISDatabase.initdb): The optional third item in a tuple in
2037            tables is now a (key, value) list with additional arguments to
2038            pass to upload_shapefile
2039            (upload_shapefile): New parameter gid_offset to allow gids that
2040            are not the same as the shapeids in the shapefile
2041            (PostgreSQLServer.get_default_static_data_db): Use the new
2042            gid_offset to make the gids in landmarks 1000 higher than the
2043            shapeids in the shapefile
2044    
2045            * test/test_viewport.py
2046            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
2047            new shapeids in the landmarks table
2048    
2049            * test/test_transientdb.py
2050            (TestTransientTable.run_iceland_political_tests)
2051            (TestTransientTable.test_transient_joined_table): Add tests for
2052            the new table methods and new keywords arguments.
2053    
2054            * test/test_postgis_db.py
2055            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
2056            (TestPostGISTable.test_read_value_row_count_mode)
2057            (TestPostGISTable.test_row_id_to_ordinal)
2058            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
2059            table methods and the new arguments
2060            (TestPostGISShapestorePoint.test_shapes_in_region)
2061            (TestPostGISShapestorePoint.test_shape_raw_data)
2062            (TestPostGISShapestorePoint.test_shape_points)
2063            (TestPostGISShapestorePoint.test_shape_shapeid)
2064            (TestPostGISShapestorePoint.test_all_shapes)
2065            (TestPostGISTable.test_simple_query)
2066            (TestPostGISTable.test_simple_query)
2067            (TestPostGISTable.test_simple_query)
2068            (TestPostGISTable.test_read_value)
2069            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
2070            shapeids in the landmarks table
2071    
2072            * test/test_memory_table.py
2073            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
2074            (TestMemoryTable.test_read_value_row_count_mode)
2075            (TestMemoryTable.test_row_id_to_ordinal)
2076            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
2077            table methods and the new arguments
2078    
2079            * test/test_dbf_table.py
2080            (TestDBFTable.test_read_row_as_dict_row_count_mode)
2081            (TestDBFTable.test_read_value_row_count_mode)
2082            (TestDBFTable.test_row_id_to_ordinal)
2083            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
2084            methods and the new arguments
2085    
2086    2003-08-26  Bernhard Herzog  <[email protected]>
2087    
2088            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
2089            more postgis specific but much faster method to get the bounding
2090            box
2091    
2092    2003-08-26  Bernhard Herzog  <[email protected]>
2093    
2094            * Thuban/Model/postgisdb.py (PostGISTable.Title)
2095            (PostGISShapeStore.AllShapes): Add these missing methods.
2096            (PostGISShapeStore.ShapesInRegion): No need to raise
2097            StopIteration. We can simply return
2098    
2099            * test/test_postgis_db.py (TestPostGISTable.test_title)
2100            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
2101            new methods
2102    
2103  2003-08-25  Bernhard Herzog  <[email protected]>  2003-08-25  Bernhard Herzog  <[email protected]>
2104    
2105          * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.          * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
# Line 966  Line 3068 
3068    
3069          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
3070          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
3071          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
3072          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
3073    
3074          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove

Legend:
Removed from v.1657  
changed lines
  Added in v.2080

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26