/[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 311 by bh, Tue Sep 10 16:45:32 2002 UTC revision 2060 by bh, Wed Feb 11 09:35:26 2004 UTC
# Line 1  Line 1 
1    2004-02-11  Bernhard Herzog  <[email protected]>
2    
3            Handle postgis tables with more than one geometry column.
4    
5            * Thuban/Model/postgisdb.py
6            (PostGISTable._fetch_table_information): Delegate the creation of
7            column objects to a different method so that we can extend that in
8            derived classes
9            (PostGISTable._create_col_from_description): New. Column object
10            creation part of _fetch_table_information
11            (PostGISShapeStore._create_col_from_description): New. Extend
12            inherited method to handle geometry columns
13            (PostGISShapeStore.__init__): New parameter geometry_column to
14            specify which geometry column to use.  Optional but mandatory for
15            tables with more than one geometry column
16            (PostGISShapeStore._fetch_table_information): Also use the name of
17            the geometry column when looking for the srid
18            (PostGISShapeStore.ShapeType): Also use the name of the geometry
19            column when looking for the shape type
20    
21            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
22            NonConnectionStore to changes in the PostGISShapeStore
23    
24            * test/test_postgis_db.py
25            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
26            PostGISShapeStore with tables having two geometry columns.
27    
28    2004-02-10  Bernhard Herzog  <[email protected]>
29    
30            Fix some postgis problems.  What remains to be done is real
31            handling of SRIDs as they affect how reprojection is done
32    
33            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
34            doc-string
35            (PostGISShapeStore._fetch_table_information): New. Extend
36            inherited method to retrieve srid
37            (PostGISShapeStore.BoundingBox): Handle tables without data.
38            extent yields NULL for those
39            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
40    
41            * test/test_postgis_db.py
42            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
43            for the special case of a table without any data
44            (TestPostGISShapestorePointSRID): New class with tests for a table
45            that uses srids
46            (PolygonTests): Fix a doc-string typo
47    
48            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
49            reference_systems with a specification of spacial reference
50            systems to create in the new db.
51            (PostgreSQLServer.new_postgis_db)
52            (PostgreSQLServer.get_static_data_db): New parameter
53            reference_systems to be passed through ultimately to
54            PostGISDatabase.  In new_postgis_db also check whether an existing
55            db already has the right srids
56            (PostgreSQLServer.get_default_static_data_db): Add srids and a
57            table that uses srids
58            (PostGISDatabase.initdb): Create the entries for the reference
59            systems
60            (PostGISDatabase.has_data): Add reference_systems parameter to
61            check for those too
62            (upload_shapefile): New parameter srid to create tables with a
63            specific srid
64    
65    2004-02-06  Frank Koormann  <[email protected]>
66    
67            * po/pt_BR.po: Fixed charset
68    
69    2004-02-05  Frank Koormann  <[email protected]>
70    
71            * po/pt_BR.po: Fixed format string for error message, missing %s
72            added (Thuban/UI/application.py:273)
73    
74    2004-02-03  Frank Koormann  <[email protected]>
75            
76            First version of Portuguese (Brazilian) translation
77    
78            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
79            Brazilian Portuguese by Eduardo Patto Kanegae.
80    
81            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
82            translators.
83    
84    
85    2004-01-22  Frank Koormann  <[email protected]>
86    
87            * Doc/manual/thuban-manual.xml: Added section on installation of
88            Thuban under Win32 systems. Fixed image path references in the postgis
89            section. Some minor source formattings.
90    
91    2004-01-21  Frank Koormann  <[email protected]>
92    
93            Make Thuban remember path selections (at least for one application run).
94    
95            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
96            attribute of application object. Path is a dictionary of
97            strings, currently with the items "data" and "projection".  
98            (Application.SetPath): New, stores path for the specified item.
99            (Application.Path): New, return path for the specified item.
100    
101            * Thuban/UI/mainwindow.py
102            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
103            MainWindow.AddLayer, MainWindow.AddRasterLayer,
104            MainWindow.TableOpen): Access "data" path information of the
105            application.
106            
107            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
108            Access "projection" path information of the application.
109    
110    2004-01-05  Bernhard Herzog  <[email protected]>
111    
112            * po/ru.po: Updated translations from Alex Shevlakov
113    
114    2004-01-05  Bernhard Herzog  <[email protected]>
115    
116            * po/Makefile, po/README: Move the description of how to generate
117            the translation statistics to the README.
118    
119    2003-12-23  Bernhard Herzog  <[email protected]>
120    
121            * NEWS: Update for 1.0.0
122    
123            * po/it.po: Another update from Maurizio Napolitano
124    
125    2003-12-23  Bernhard Herzog  <[email protected]>
126    
127            * po/it.po: Updated translation from Maurizio Napolitano
128    
129    2003-12-23  Bernhard Herzog  <[email protected]>
130    
131            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
132            for translation
133    
134            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
135            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
136            strings for translation
137    
138            * po/de.po: Update with the newly marked strings.
139    
140    2003-12-22  Bernhard Herzog  <[email protected]>
141    
142            * HOWTO-Release: Fix the places where version numbers have to be
143            updated
144    
145    2003-12-22  Bernhard Herzog  <[email protected]>
146    
147            * setup.py (setup call): 1.0.0, yeah!
148    
149            * Thuban/version.py (longversion): 1.0.0, yeah!
150    
151            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
152            1.0.0 namespace too
153    
154            * Thuban/Model/save.py (SessionSaver.write_session): Save with
155            1.0.0 namespace
156    
157            * test/test_load.py (LoadSessionTest.dtd)
158            (TestSingleLayer.file_contents)
159            (TestNonAsciiColumnName.file_contents)
160            (TestLayerVisibility.file_contents)
161            (TestClassification.file_contents, TestLabels.file_contents)
162            (TestLayerProjection.file_contents)
163            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
164            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
165            (TestPostGISLayerPassword.file_contents)
166            (TestLoadError.file_contents, TestLoadError.test): Update for
167            1.0.0 namespace
168    
169            * test/test_save.py (SaveSessionTest.dtd)
170            (SaveSessionTest.testEmptySession)
171            (SaveSessionTest.testSingleLayer)
172            (SaveSessionTest.testLayerProjection)
173            (SaveSessionTest.testRasterLayer)
174            (SaveSessionTest.testClassifiedLayer)
175            (SaveSessionTest.test_dbf_table)
176            (SaveSessionTest.test_joined_table)
177            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
178    
179    2003-12-22  Bernhard Herzog  <[email protected]>
180    
181            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
182            alignment flags are byte strings not unicode and that they have
183            valid values
184    
185            * test/test_load.py (TestLabelLayer): New. Test loading (and
186            indirectly saving) of maps with labels.
187    
188    2003-12-22  Bernhard Herzog  <[email protected]>
189    
190            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
191            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
192            unsubscribe all subscribers.
193            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
194            self.grid since it may already have been destroyed.
195            Fixes RT #2256
196    
197    2003-12-19  Bernhard Herzog  <[email protected]>
198    
199            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
200    
201    2003-12-16  Bernhard Herzog  <[email protected]>
202            
203            * debian/bitmappath.patch, debian/setup.py.patch:
204                    added to ensure compliance with FHS for debian
205            * debian/rules, debian/changelog:
206                added patches in rules to ensure compliance with FHS for debian
207    
208    2003-12-16  Bernhard Herzog  <[email protected]>
209    
210            * po/Makefile (mo): Make the output a bit nicer so that it prints
211            statistics about the translations. Add a comment how produce even
212            nicer statistics with sed.
213    
214    2003-12-09  Frank Koormann   <[email protected]>
215    
216            * Resources/Projections/defaults.proj:
217            French projection sample with correct accents (UNICODE).
218    
219    2003-12-05  Bernhard Herzog  <[email protected]>
220    
221            * MANIFEST.in: Add the devtools directory
222    
223            * setup.py (setup call): Use license instead of licence. This
224            silences a deprecation warning on Python 2.3
225    
226    2003-12-05  Frank Koormann   <[email protected]>
227    
228            Documentation synced with 1.0rc1
229    
230            * Doc/manual/thuban-manual.xml:
231            Minor formatting changes and references to database layers .
232            Introduction.Internationalization: New section on i18n.
233            MapManagement.AddingandRemovingLayers: Added item on database layers.  
234            MapManagement.TheLegend: Added section and screenshot on popup menu.
235            ProjectionManagement: Updated screenshot and sentence on EPSG.
236            Appendix.SupportedDataSources: Added PostGIS.
237            Appendix.WorkingwithPostGIS: New section.
238    
239            * Doc/manual/images/6_projection.png: Updated screenshot including
240            EPSG checkboxes.
241    
242            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
243    
244            * Doc/manual/images/app_postgis_add_layer.png,
245            Doc/manual/images/app_postgis_db_add.png,
246            Doc/manual/images/app_postgis_db_management.png:
247            New screenshots focussing on database layers
248    
249    2003-12-05  Frank Koormann   <[email protected]>
250    
251            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
252            write warning to stderr instead of rising a warning dialog
253    
254    2003-12-03  Bernhard Herzog  <[email protected]>
255    
256            Fix for RT #2243
257    
258            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
259            New. Like has_selected_layer but for shape layers only
260            (_has_selected_shape_layer): New. Like _has_selected_layer but for
261            shape layers only
262            (layer_show_table command, layer_jointable command): Use these
263            commands should only be available for shape layers
264    
265    2003-12-03  Bernhard Herzog  <[email protected]>
266    
267            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
268            publishers that are wx objects and may have been destroyed by wx
269            already. Fixes RT #2242.
270    
271    2003-12-03  Bernhard Herzog  <[email protected]>
272    
273            * po/ru.po: Updates from Alex Shevlakov
274    
275    2003-12-03  Silke Reimer <silkeintevation.de>
276    
277            * debian/control, debian/changelog: Added gdal-support to
278                    debian package, updated to new thuban version
279    
280    
281    2003-12-03  Bernhard Herzog  <[email protected]>
282    
283            * Thuban/Lib/version.py: New. Module for version number
284            manipulations. The version of make_tuple here also deals better
285            with more unusual version number strings, such as e.g.
286            "1.2+cvs20031111"
287    
288            * Thuban/version.py (make_tuple): Removed. It's now in
289            Thuban.Lib.version. Use that implementation instead.
290    
291            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
292    
293    2003-12-02  Bernhard Herzog  <[email protected]>
294    
295            * MANIFEST.in: Add debian files
296    
297            * setup.py (setup call): Add packages for the Extensions so that
298            they're installed too
299            (data_files): Add READMEs and sample data from some Extensions
300    
301            * NEWS: Add note about the extensions in binary packages
302    
303    2003-12-02  Bernhard Herzog  <[email protected]>
304    
305            * Thuban/Model/save.py (SessionSaver.write_session): Save files
306            with the thuban-1.0rc1
307    
308            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
309            thuban-1.0rc1 namespace too
310    
311            * test/test_save.py (SaveSessionTest.dtd)
312            (SaveSessionTest.testEmptySession)
313            (SaveSessionTest.testSingleLayer)
314            (SaveSessionTest.testLayerProjection)
315            (SaveSessionTest.testRasterLayer)
316            (SaveSessionTest.testClassifiedLayer)
317            (SaveSessionTest.test_dbf_table)
318            (SaveSessionTest.test_joined_table)
319            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
320            namespace
321    
322            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
323            namespace
324            (TestSingleLayer.file_contents)
325            (TestNonAsciiColumnName.file_contents)
326            (TestLayerVisibility.file_contents)
327            (TestClassification.file_contents, TestLabels.file_contents)
328            (TestLayerProjection.file_contents)
329            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
330            (TestPostGISLayer.file_contents)
331            (TestPostGISLayerPassword.file_contents)
332            (TestLoadError.file_contents, TestLoadError.test): Update to
333            thuban-1.0rc1 namespace
334    
335    2003-12-01  Bernhard Herzog  <[email protected]>
336    
337            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
338            nt to better match Intevation's current w32 setup
339    
340            * HOWTO-Release: Add note about updating MANIFEST.in
341    
342            * MANIFEST.in: Add the Extensions
343    
344            * NEWS: Update for 1.0rc1
345    
346    2003-12-01  Bernhard Herzog  <[email protected]>
347    
348            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
349            cards for the dialog so that shapefiles ending in all uppercase
350            SHP are listed too
351    
352    2003-11-28  Bernhard Herzog  <[email protected]>
353    
354            * Thuban/version.py (longversion): Update to 1.0rc1
355    
356            * setup.py (setup call): Update version to 1.0rc1. Use the
357            [email protected] email address as author email instead of my
358            personal one.
359    
360    2003-11-28  Bernhard Herzog  <[email protected]>
361    
362            * po/de.po: Update german translation.
363    
364    2003-11-28  Bernhard Herzog  <[email protected]>
365    
366            Unify the filenames stored in .thuban files so that the .thuban
367            files are more platform independend
368    
369            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
370            that they can be used on both windows and unix
371            (SessionSaver.prepare_filename): New. Handle all filename
372            transformations for filenames stored in the thuban file
373            (SessionSaver.write_data_containers, SessionSaver.write_layer):
374            Use prepare_filename
375    
376            * test/test_save.py (SaveSessionTest.testSingleLayer)
377            (SaveSessionTest.testLayerProjection)
378            (SaveSessionTest.testRasterLayer)
379            (SaveSessionTest.testClassifiedLayer)
380            (SaveSessionTest.test_dbf_table)
381            (SaveSessionTest.test_joined_table): Filenames are always stored
382            with slashes on all currently supported platforms so adapt all
383            tests to this
384    
385            * test/test_load.py (LoadSessionTest.filenames): With the new
386            filename scheme the filenames in the tests should be
387            understandable on all currently supported platforms so we turn
388            this into an empty list because we don't have to normalize them
389            anymore
390    
391    2003-11-28  Bernhard Herzog  <[email protected]>
392    
393            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
394            Add the ellipsoid to the projection since some Proj versions
395            complain if it's missing.
396    
397    2003-11-27  Bernhard Herzog  <[email protected]>
398    
399            Corect some bounding box projection problems
400    
401            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
402            version of ForwardBBox
403            (Projection._transform_bbox): New. common implementation of
404            ForwardBBox and InverseBBox
405            (Projection.ForwardBBox): Use _transform_bbox.
406    
407            * test/test_proj.py (TestProjection.test): Add test for
408            InverseBBox
409    
410            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
411            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
412            new InverseBBox method to determine the unprojected bounding box
413            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
414            bbox.
415    
416            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
417            Removed.
418            (TestLayer.test_arc_layer_with_projection): New. This test is
419            better able to test whether bounding boxes are projected correctly
420            than test_point_layer_with_projection
421    
422            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
423            InverseBBox to unproject bboxes
424    
425    2003-11-25  Bernhard Herzog  <[email protected]>
426    
427            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
428            source code.
429    
430    2003-11-25  Bernhard Herzog  <[email protected]>
431    
432            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
433            there for backwards compatibility and all code relying on that
434            should have been updated by now.
435    
436    2003-11-25  Bernhard Herzog  <[email protected]>
437    
438            * test/test_load.py (TestClassification.test): Add the missing
439            round trip test.
440            (TestClassification.file_contents): Update to the newest file
441            format
442    
443    2003-11-25  Bernhard Herzog  <[email protected]>
444    
445            Add very experimental (and possibly dangerous) extension to draw
446            polygons:
447    
448            * Extensions/drawshape/README: New. Brief installation
449            instructions
450    
451            * Extensions/drawshape/drawshape.py: New. Implementation of the
452            drawshape extensions
453    
454            * Extensions/drawshape/patch.diff: Patch to apply before the
455            extension can be used.
456    
457    2003-11-24  Bernhard Herzog  <[email protected]>
458    
459            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
460            (ShapefileStore.__init__): Factor opening the shapefile into a
461            separate method (the new _open_shapefile). This makes the code a
462            bit more readable but the real reason is that it makes some evil
463            hacks easier. :-)
464    
465    2003-11-24  Bernhard Herzog  <[email protected]>
466    
467            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
468            converter is specified for an attribute assume it's a string
469            containing only Latin1 characters. Update doc-string accordingly.
470            This change should fix many places where unicode objects might
471            accidentally enter Thuban.
472    
473            * test/test_load.py (TestNonAsciiColumnName): New test to check
474            what happens with column names in DBF files that contain non-ascii
475            characters
476    
477    2003-11-21  Bernhard Herzog  <[email protected]>
478    
479            Enable the experimental attribute editing again and introduce a
480            command line switch to actually activate it
481    
482            * Thuban/UI/main.py (options): New. Container for options set on
483            the commmand line
484            (main): Add the --enable-attribute-editing flag.
485    
486            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
487            editing is enabled use the grid ctrl which allows editing of the
488            values
489    
490            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
491            New. Just delegate this to the underlying table.
492    
493    2003-11-20  Bernhard Herzog  <[email protected]>
494    
495            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
496            Skip this test if run under non-posix systems since it only works
497            there
498    
499    2003-11-19  Bernhard Herzog  <[email protected]>
500    
501            * Thuban/Model/resource.py: Rework the way gdal support is
502            determined so that we can give a reason in the about why gdal is
503            not supported.
504            (gdal_support_status): New. Variable holding a string with the
505            reason for no gdal support
506    
507            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
508            not supported to the message
509    
510    2003-11-19  Bernhard Herzog  <[email protected]>
511    
512            Remove the old table interface and its test cases
513    
514            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
515            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
516            anymore
517    
518            * Thuban/Model/transientdb.py (TransientTableBase)
519            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
520            anymore
521    
522            * test/test_table.py: Removed since the old interface it tests is
523            gone.
524    
525            * test/runtests.py (main): The old table interface is gone and
526            with it the deprecation warnings so remove the code that turns
527            these warnings into errors
528    
529    2003-11-19  Bernhard Herzog  <[email protected]>
530    
531            * test/test_table.py: Revert to revision 1.5 again. Changing the
532            tests to use the new table interface is completely wrong since the
533            whole purpose of the tests in this module is to test the old
534            interface.
535    
536    2003-11-18  Bernhard Herzog  <[email protected]>
537    
538            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
539            New. Test whether the connection matches a set of connection
540            parameters
541    
542            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
543            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
544            for existing connections with the same parameters and break out of
545            the loop correctly.
546    
547            * test/test_postgis_db.py (TestBriefDescription)
548            (TestPostGISSimple.test_brief_description): Rename
549            TestBriefDescription to TestPostGISSimple and the test method to
550            test_brief_description so that we can add more test methods.
551            (TestPostGISSimple.test_matches_parameters): New. Test the new
552            MatchesParameters method
553    
554    2003-11-18  Bernhard Herzog  <[email protected]>
555    
556            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
557            _was_destroyed, to indicate whether an publisher instance has
558            already been destroyed.
559            (Publisher.Unsubscribe): Only disconnect if the publisher has not
560            been destroyed yet.
561            (Publisher.Destroy): Set the _was_destroyed flag to true.
562    
563            * test/test_connector.py
564            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
565            calling Unsubscribe after Destroy doesn't raise an exception
566    
567    2003-11-14  Bernhard Herzog  <[email protected]>
568    
569            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
570            typo in doc-string
571    
572    2003-11-13  Bernhard Herzog  <[email protected]>
573    
574            Quote table and column names properly for postgis.
575    
576            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
577            quote an identifier for use in an sql statement
578            (PostGISColumn.__init__): Add the quoted_name attribute
579            (PostGISTable.__init__): New instance variable quoted_tablename
580            (PostGISTable._fetch_table_information): Use the quoted table
581            name. New isntance variable quoted_geo_col with a quoted version
582            of geometry_column
583            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
584            (PostGISTable.RowOrdinalToId): Use the quoted table name
585            (PostGISTable.ReadValue, PostGISTable.ValueRange)
586            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
587            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
588            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
589            Use quoted table and column names
590    
591            * test/test_postgis_db.py (TestPostGISSpecialCases)
592            (TestPostGISIgnoredColumns): Rename the class to
593            TestPostGISSpecialCases because that better describes the new
594            cases
595            (TestPostGISSpecialCases.test_unsupported_types)
596            (TestPostGISSpecialCases.test): Rename the method to
597            test_unsupported_types because we need a more descriptive name now
598            that there are more methods
599            (TestPostGISSpecialCases.test_table_name_quoting)
600            (TestPostGISSpecialCases.test_column_name_quoting)
601            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
602            cases to test quoting of table and column names in PostGISTable
603            and PostGISShapeStore
604    
605            * test/postgissupport.py
606            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
607            AddGeometryColumn desn't support table or column names with sapces
608            or double quotes
609    
610    2003-11-12  Jan-Oliver Wagner <[email protected]>
611    
612            * Extensions/wms/__init__.py: New: Init to make this
613            directory a package.
614    
615            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
616    
617    2003-11-11  Bernhard Herzog  <[email protected]>
618    
619            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
620            Constant for the file woth deprecated epsg projections
621            (get_system_proj_file): Update doc-string
622    
623            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
624            above the EPS widgets, introduce a check box for the deprecated
625            eps projections and a label for the epsg widgets
626            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
627            too
628    
629    2003-11-11  Bernhard Herzog  <[email protected]>
630    
631            Avoid warnings when run under Python 2.3
632    
633            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
634            (BaseRenderer.draw_label_layer): Coordinates must be ints.
635    
636            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
637            real method so that we can convert to int.
638            (MapRenderer.label_font): The font size mist be an int.
639    
640            * Thuban/UI/common.py (Color2wxColour): The color values must be
641            ints. Also, remove the unnecessary asserts.
642    
643            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
644            (TestUnicodeStrings.test): Python source code should not contain
645            non-ascii characters unless an encoding is specified in the file.
646            Therefore use \x escapes in the string literals for non-ascii
647            characters.
648    
649    2003-11-11  Bernhard Herzog  <[email protected]>
650    
651            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
652            parameter so that this function can be used for all proj files in
653            Resource/Projections
654            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
655            get_system_proj_file
656    
657            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
658            ProjFile self.__sysProjFile use a dictionary of system ProjFile
659            objects self._sys_proj_files
660            (ProjFrame.build_dialog): Adapt to the new changes in the
661            ProjectionList constructor. Add a check button to toggle whether
662            EPSG projections are shown
663            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
664            events.
665            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
666            the busy cursor if the files have not yet been loaded by the
667            dialog.
668            (ProjFrame.load_system_proj): Add a parameter for the name of the
669            proj file. Maintain the dictionary of system projections
670            self._sys_proj_files
671    
672            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
673            user_projs parameters into one parameter proj_files which is a
674            list of proj files.
675            (ProjectionList._subscribe_proj_files)
676            (ProjectionList._unsubscribe_proj_files): New. Move
677            subscription/unsubscription of projfile messages to separate
678            methods
679            (ProjectionList.Destroy): The unsubscribe is now done in
680            _unsubscribe_proj_files
681            (ProjectionList.update_projections): We now have a list of proj
682            file objects
683            (ProjectionList.SetProjFiles): New method to set a new list of
684            proj file objects
685    
686            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
687            Specify explicitly which system proj file to load.
688    
689    2003-11-11  Bernhard Herzog  <[email protected]>
690    
691            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
692            instance variables to cut cyclic references. The GC would have
693            collected the loader eventually but it can happen that it doesn't
694            run at all until thuban is closed (2.3 but not 2.2 tries a bit
695            harder and forces a collection when the interpreter terminates)
696            (load_session): Call the handler's Destroy method to make sure
697            that it gets garbage collected early. Otherwise it will be
698            collected very late if at all and it holds some references to e.g.
699            shapestores and the session which can lead to leaks (of e.g. the
700            temporary files)
701    
702            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
703            resource leak in load_session
704    
705    2003-11-10  Bernhard Herzog  <[email protected]>
706    
707            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
708            extensions are to be rendered.
709            (_renderer_extensions): New. List with renderer for layers in
710            extensions
711            (add_renderer_extension): New. Add a renderer extension
712            (init_renderer_extensions): New. Init the renderer extensions
713            (BaseRenderer.render_map_incrementally): Search
714            _renderer_extensions for how to draw unknown layer types
715            (BaseRenderer.draw_raster_data): Add format parameter so that
716            formats other than BMP can be drawn
717            (BaseRenderer.draw_raster_layer): Pass an explicit format to
718            draw_raster_data
719    
720            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
721            strings of the format parameter of draw_raster_data method to wx
722            constants
723            (MapRenderer.draw_raster_data): Add the format parameter and use
724            raster_format_map to map it to the right wxwindows constant for
725            wxImageFromStream
726    
727            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
728            the format parameter and record it
729            (TestBaseRenderer.test_raster_no_projection): check the format
730            paramter of the draw_raster_data method
731            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
732            extension facility
733    
734    2003-11-07  Bernhard Herzog  <[email protected]>
735    
736            Tweak the usage of the sqlite database to make common use cases
737            more responsive. In most cases copying the data to the sqlite
738            database takes so long that using sqlite doesn't have enough
739            advantages.
740    
741            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
742            comments about performance and query the min and max in separate
743            statements because only that way will indexes be used.
744            (TransientTableBase.UniqueValues): Add some comments about
745            performance.
746            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
747            Do not copy the data to the transient DB but use the transient
748            copy if it exists. See the new comments for the performance trade
749            offs
750    
751            * test/test_transientdb.py
752            (TestTransientTable.test_auto_transient_table): Make sure that the
753            data is copied to the transient database at some point.
754    
755    2003-11-03  Bernhard Herzog  <[email protected]>
756    
757            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
758            globals to locals so that it's a bit faster
759    
760    2003-11-03  Bernhard Herzog  <[email protected]>
761    
762            * Thuban/UI/baserenderer.py
763            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
764            method. ReadValue is faster than ReadRowAsDict since it only reads
765            one cell especially now that the dbf file objects actually
766            implement it.
767    
768            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
769            read_attribute method of the dbf objects
770    
771    2003-11-03  Bernhard Herzog  <[email protected]>
772    
773            * Extensions/profiling/profiling.py (popup_dialog_box): New config
774            variable to indicate whether the result should be shown in a
775            dialog box
776            (profile_screen_renderer, time_screen_renderer): Only show a
777            dialog box if popup_dialog_box is true.
778            (profile_screen_renderer): Flush stdout after the printing the
779            first part of the "profiling..." message
780    
781            * Thuban/UI/baserenderer.py
782            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
783            brushes for the groups so that they're not created over and over
784            again
785    
786            * Thuban/Model/classification.py (Classification.__getattr__)
787            (Classification._compile_classification)
788            (Classification._clear_compiled_classification): New. Methods to
789            manage a 'compiled' representation of the classification groups
790            which is created on demand
791            (Classification.InsertGroup, Classification.RemoveGroup)
792            (Classification.ReplaceGroup): reset the compiled representation
793            (Classification.FindGroup): Use the compiled representation to
794            find the matching group
795            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
796    
797    2003-10-31  Bernhard Herzog  <[email protected]>
798    
799            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
800            Send a CLASS_CHANGED message
801            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
802            not return the removed group since it wasn't used.
803    
804            * test/test_classification.py
805            (TestClassification.test_set_default_group): New. Test the
806            SetDefaultGroup method
807            (TestClassification.test_insert_group): New. Test the InsertGroup
808            method
809            (TestClassification.test_remove_group): New. Test the RemoveGroup
810            method
811            (TestClassification.test_replace_group): New. Test the
812            ReplaceGroup method
813    
814    2003-10-31  Bernhard Herzog  <[email protected]>
815    
816            * test/test_classification.py (TestClassification.setUp):
817            Subscribe to the CLASS_CHANGED messages
818            (TestClassification.tearDown): New. Destroy the classification
819            properly
820            (TestClassification.test_defaults): Add tests for the default line
821            width and whether no messages were sent yet
822            (TestClassification.test_set_default_properties): Add tests for
823            messages and setting the default line width
824            (TestClassification.test_add_singleton)
825            (TestClassification.test_add_range)
826            (TestClassification.test_multiple_groups): Add tests for messages
827    
828    2003-10-31  Bernhard Herzog  <[email protected]>
829    
830            Some more refactoring in preparation for new tests:
831    
832            * test/test_classification.py (TestClassification.setUp): New.
833            Instantiate the classification here. Update the test methods
834            accordingly.
835            (TestClassification.test_multiple_groups): Make sure that the two
836            singletons matching 1 are considered different.
837    
838    2003-10-31  Bernhard Herzog  <[email protected]>
839    
840            * test/test_classification.py (red, green, blue): New. These
841            constants were used in several cases. Update the relevant methods.
842            (TestClassification.test_defaults)
843            (TestClassification.test_set_default_properties)
844            (TestClassification.test_add_singleton)
845            (TestClassification.test_add_range)
846            (TestClassification.test_multiple_groups)
847            (TestClassification.test_deepcopy): New. These were formerly all
848            part of the single method test.
849            (TestClassification.test_deepcopy): Removed.
850            (TestClassIterator): Removed. The test case is now a method of
851            TestClassification since it tests part of the public interface of
852            Classification
853            (TestClassification.test_iterator): New. Used to be
854            TestClassIterator effectively
855    
856    2003-10-31  Jan-Oliver Wagner <[email protected]>
857    
858            GUIfied the functions of the profiling extension.
859    
860            * /Extensions/profiling/__init__.py: New: Init to make this
861            directory a package.
862    
863            * Extensions/profiling/profiling.py: Moved menu entries to
864            the Extensions menu. Applied _() for strings.
865            (profile_screen_renderer): Catch the detailed printout and present
866            it in a dialog.
867            (time_screen_renderer): Raise a dialog to present the result instead
868            of printing it to stdout.
869    
870    2003-10-31  Bernhard Herzog  <[email protected]>
871    
872            * test/test_classification.py (TestClassGroupProperties)
873            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
874            (TestClassGroupSingleton, TestClassIterator, TestClassification):
875            Split TestClassification into several classes, one for each class
876            being tested. TestClassification itself now only tests
877            Classification. This split makes changes to the tests a bit easier
878    
879    2003-10-31  Bernhard Herzog  <[email protected]>
880    
881            * Extensions/profiling/profiling.py: New. Extension to measure
882            Thuban performance
883    
884    2003-10-31  Frank Koormann <[email protected]>
885    
886            Added two items to legend popup menu: Remove Layer and Show Layer Table
887    
888            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
889            LegendPanel._OnShowTable): New event handlers, call the corresponding
890            mainwindow methods.
891            (LegendTree._OnRightClick): Added items to popup menu.
892    
893    2003-10-30  Bernhard Herzog  <[email protected]>
894    
895            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
896            EVT_WINDOW_DESTROY
897            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
898            nothing but is convenient for the derived classes.
899    
900            * Thuban/UI/tableview.py
901            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
902            Unsubscribe the messages here not in OnClose because that might
903            get called multiple times. Fixes RT #2196
904            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
905            anymore.
906    
907            * README: Update the minimum requirement for wxPython. Since we
908            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
909            the version in which that was introduced for all platforms
910    
911    2003-10-30  Frank Koormann <[email protected]>
912    
913            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
914            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
915            frame.
916    
917    2003-10-30  Jan-Oliver Wagner <[email protected]>
918    
919            Improved APR import extension, added further EPSG definitions
920            and some cleanup regarding string class.
921    
922            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
923            Added test for alias 'longlat'.
924    
925            * Resources/Projections/epsg-deprecated.proj: New. Contains
926            deprecated EPSG definitions.
927    
928            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
929            the variable names for objects.
930    
931            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
932            Copied from importAPR and provided with documentation.
933    
934            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
935            Moved to apr.py.
936            (APR_View): Added object ref 'ITheme'.
937    
938            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
939            split function by corresponding use of the string class method.
940    
941            * Thuban/Model/xmlwriter.py: Replaced string replace function by
942            corresponding string method.
943    
944    2003-10-29  Bernhard Herzog  <[email protected]>
945    
946            * Thuban/UI/baserenderer.py
947            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
948            special case of a classification that only has the default group
949    
950    2003-10-27  Bernhard Herzog  <[email protected]>
951    
952            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
953    
954            * po/de.po: Update.
955    
956            * Thuban/UI/application.py
957            (ThubanApplication.ShowExceptionDialog): Handle translation of the
958            dialog message properly
959    
960    2003-10-27  Bernhard Herzog  <[email protected]>
961    
962            Rework how localization works so that we use wx's translation
963            functions when running Thuban as a normal application but not when
964            we don't need any UI, such as in the test suite. See the comment
965            in Thuban/__init__.py for details
966    
967            * Thuban/__init__.py (_): Add one level of indirection to make the
968            translation handling more flexible and to make it possible to use
969            either wx's translation services or not.
970            (gettext_identity, translation_function_installed)
971            (install_translation_function): New function to help with this
972    
973            * Thuban/UI/__init__.py: Install the wx specific translation
974            function if it's OK to do that
975    
976            * test/support.py (initthuban): Install a dummy translation
977            function so that importing Thuban.UI doesn't install a wx specific
978            one for which would need to import wxPython
979    
980    2003-10-27  Bernhard Herzog  <[email protected]>
981    
982            * HOWTO-Release: Source archives should be created first and the
983            binary packages should be created from the source archives.
984            There's an official debian package now so there's no need to test
985            the rpm on debian anymore
986    
987    2003-10-27  Bernhard Herzog  <[email protected]>
988    
989            Several rendering changes:
990    
991             - Render the selection into a separate bitmap so that only that
992               bitmap needs to be redrawn when the selection changes
993    
994             - Render incrementally showing previews and allowing interaction
995               before rendering is complete
996    
997             - Update the renderer interface a bit. Most parameters of
998               RenderMap are now parameters of the constructor
999    
1000            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
1001            and the update region as parameters. Update the doc-string
1002            (BaseRenderer.render_map_incrementally): New. Generator function
1003            to renders the map incrementally
1004            (BaseRenderer.render_map): Remove the map argument (it's now in
1005            the constructor) and simply iterate over the
1006            render_map_incrementally generator to draw the map.
1007            (BaseRenderer.draw_shape_layer_incrementally)
1008            (BaseRenderer.draw_shape_layer): Renamed to
1009            draw_shape_layer_incrementally and changed into a generator that
1010            yields True every 500 shapes. Used by render_map_incrementally to
1011            render shape layers incrementally
1012    
1013            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
1014            map and region parameters which are now in the constructor
1015            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
1016            the inherited render_map_incrementally.
1017            (BaseRenderer.draw_shape_layer): Removed.
1018            (ScreenRenderer.draw_selection_incrementally): New. The selection
1019            drawing part of the removed draw_shape_layer as a generator
1020            (ScreenRenderer.layer_shapes): Update because of the region
1021            parameter change
1022            (ExportRenderer.__init__): New. Extend the inherited constructor
1023            with the destination region for the drawing
1024            (ExportRenderer.RenderMap): Removed the map and region parameters
1025            which are now in the constructor
1026    
1027            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
1028            bitmap suitable for a preview in a tool
1029            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
1030            bitmap
1031            (MapPrintout.draw_on_dc): Adapt to new renderer interface
1032            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
1033            exists
1034            (MapCanvas.OnIdle): Update the logic to deal with incremental
1035            rendering and the selection bitmap
1036            (MapCanvas._do_redraw): Handle the instantiation of the render
1037            iterator and the redraws during rendering
1038            (MapCanvas._render_iterator): New. Generator to incrementally
1039            redraw both bitmaps
1040            (MapCanvas.Export): Adapt to new renderer interface.
1041            (MapCanvas.full_redraw): Reset the selection bitmap and the
1042            renderer iterator too
1043            (MapCanvas.redraw_selection): New. Force a redraw of the selection
1044            bitmap
1045            (MapCanvas.shape_selected): Only redraw the selection bitmap
1046    
1047            * test/test_baserenderer.py
1048            (TestBaseRenderer.test_polygon_no_projection)
1049            (TestBaseRenderer.test_raster_no_projection)
1050            (TestBaseRenderer.test_point_map_projection)
1051            (TestBaseRenderer.test_point_layer_and_map_projection)
1052            (TestBaseRenderer.test_point_layer_projection)
1053            (TestBaseRenderer.test_point_with_classification): Adapt to new
1054            renderer interface
1055    
1056    2003-10-24  Bernhard Herzog  <[email protected]>
1057    
1058            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
1059            (point_in_polygon_shape, shape_centroid): Raise an exception if
1060            the shape can't be read. Previously invalid shape ids would lead
1061            to a segfault.
1062    
1063            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
1064            New. test whether an exception is raised for invalid shape ids
1065    
1066    2003-10-24  Jan-Oliver Wagner <[email protected]>
1067    
1068            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
1069            as alias for 'latlong'.
1070    
1071            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
1072            as alias for 'latlong'.
1073    
1074    2003-10-24  Jan-Oliver Wagner <[email protected]>
1075    
1076            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
1077            the projection even for the UnknownPanel.
1078            (UnknownProjPanel.__init__): Define the text and create the textctrl
1079            widget.
1080            (UnknownProjPanel._DoLayout): Replaced static text widget by the
1081            textctrl created in __init__.
1082            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
1083            including the parameters of the projection.
1084            
1085    2003-10-24  Jan-Oliver Wagner <[email protected]>
1086    
1087            * Resources/Projections/epsg.proj: New. This is a list of
1088            EPSG codes with parameters for proj. The list has been
1089            generated using devtools/create_epsg.py based on the
1090            file nad/epsg of the proj 4.4.7 package. Four projection
1091            definitions have been deleted as they are not accepted by proj:
1092            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
1093            and "HD72 / EOV".
1094    
1095    2003-10-22  Bernhard Herzog  <[email protected]>
1096    
1097            Some more tweaks to the projection dialog which should fix RT
1098            #1886.
1099    
1100            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
1101            the ProjFile's messages and call the base class methods correctly
1102            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
1103            flag on the newly selected item too. Otherwise some other item is
1104            focused and the first time the focus is moved with the keyboard
1105            the selection moves in unexpected ways.
1106    
1107            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
1108            focus on the OK button, only on the projection list. That way the
1109            list really has the focus initially
1110            (ProjFrame.OnClose): Call the projection list's Destroy method to
1111            make it unsubscribe all messages
1112    
1113    2003-10-21  Bernhard Herzog  <[email protected]>
1114    
1115            Rework the projection dialog to fix a few bugs, including RT 2166
1116            and most of 2168
1117    
1118            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1119            special wxListCtrl to show a list of projections in a more MVC
1120            fashion
1121    
1122            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1123            throughout the class. The main change is to use the ProjectionList
1124            class instead of a normal wxListBox. Also, add an explicit
1125            "Unknown" projection to the projection choice control.
1126            (ProjPanel.__init__): Add an "unknown" ellipsoid
1127            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1128            instantiation of the panel's controls to make the tab-order more
1129            natural
1130    
1131    2003-10-21  Bernhard Herzog  <[email protected]>
1132    
1133            * test/test_load.py (TestSingleLayer.file_contents)
1134            (TestSingleLayer.test): Add non-ascii characters to the titles of
1135            session, map and layer. This is effectively a port of the
1136            TestUnicodeStrings test in test_load_0_8.py which for some reason
1137            was only added there.
1138    
1139            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1140            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1141            characters to the titles of session, map and layer,.
1142    
1143    2003-10-21  Bernhard Herzog  <[email protected]>
1144    
1145            Add EPSG projection handling to .thuban files
1146    
1147            * test/test_save.py (SaveSessionTest.dtd)
1148            (SaveSessionTest.testEmptySession)
1149            (SaveSessionTest.testLayerProjection)
1150            (SaveSessionTest.testRasterLayer)
1151            (SaveSessionTest.testClassifiedLayer)
1152            (SaveSessionTest.test_dbf_table)
1153            (SaveSessionTest.test_joined_table)
1154            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
1155            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
1156            use a and epsg projection to test saving them
1157    
1158            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
1159            namespace
1160            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1161            (TestLayerProjection.file_contents)
1162            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1163            (TestPostGISLayer.file_contents)
1164            (TestPostGISLayerPassword.file_contents)
1165            (TestLoadError.file_contents, TestLoadError.test): Update to use
1166            1.0-dev namespace
1167            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
1168            use 1.0-dev namespace and use an EPSG projection to test whether
1169            loading it works
1170    
1171            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
1172            as of Thuban 0.9. These are now tests to determine whether Thuban
1173            can still read files generated by Thuban 0.9
1174    
1175            * Thuban/Model/save.py (SessionSaver.write)
1176            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
1177            namespace
1178            (SessionSaver.write_projection): Write the projection's epsg
1179            attribute
1180    
1181            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
1182            thuban-1.0-dev.dtd namespace
1183            (SessionLoader.check_attrs): Allow a callable object as conversion
1184            too
1185            (SessionLoader.start_projection, SessionLoader.end_projection)
1186            (SessionLoader.start_parameter): Handle the epsg attribute and
1187            rename a few instance variables to lower case
1188    
1189            * Resources/XML/thuban-1.0.dtd: New. Only difference to
1190            thuban-0.9.dtd is the epsg attribute for projections.
1191    
1192    2003-10-21  Bernhard Herzog  <[email protected]>
1193    
1194            * test/runtests.py (main): Let the user specify which tests to run
1195            on the command line
1196    
1197            * test/support.py (ThubanTestResult.getDescription): Override to
1198            give a better short description. The description can be used as a
1199            parameter to run_tests to run that particular test in isolation.
1200    
1201    2003-10-21  Frank Koormann   <[email protected]>
1202    
1203            Popup menu for legend. Scheduled for the 1.2 release this was too
1204            simple to implement: The popup menu is bound to the legend tree, while
1205            the events are hanlded by its anchestor, the legend panel. This
1206            allows reuse of all the event handlers already implemented for the
1207            legend toolbar buttons.
1208    
1209            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
1210            to add handlers for the events issued by the popup menu.
1211            (LegendPanel._OnToggleVisibility): Handler for toggling layer
1212            visibility event
1213            (LegendPanel._OnProjection): Handler for layer projection event.
1214            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
1215            (LegendTree._OnRightClick): Event handler for right click, select item
1216            and pop up menu.
1217            (LegendTree.ToggleVisibility): Toggle layer visibility
1218            (LegendTree.LayerProjection): Raise layer projection dialog for
1219            current layer.
1220    
1221    2003-10-21  Bernhard Herzog  <[email protected]>
1222    
1223            * Resources/Projections/defaults.proj: Use correct DOCTYPE
1224            declaration. The top-level element is projectionlist not projfile
1225    
1226    2003-10-20  Bernhard Herzog  <[email protected]>
1227    
1228            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
1229            method to write a projfile and display a busy cursor and error
1230            dialogs.
1231            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
1232            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
1233            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
1234            busy cursor while loading the user and system prj files.
1235    
1236    2003-10-16  Bernhard Herzog  <[email protected]>
1237    
1238            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
1239            ProjFile objects
1240            (clear_proj_file_cache): New function to clear the cache. Mainly
1241            useful for use by the test suite
1242            (read_proj_file): Use the cache.
1243    
1244            * test/test_proj.py (TestProjFile): Clarify the doc-string
1245            (ProjFileReadTests): Update doc-string
1246            (ProjFileReadTests.test_get_system_proj_file): Check whether the
1247            system proj files is cached.
1248            (ProjFileLoadTestCase): New base class for the proj file tests
1249            derived from support.FileLoadTestCase to provide some common
1250            behavior.
1251            (TestLoadingProjFile)
1252            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1253            (TestProjFileWithInvalidParameters.file_contents): Derive from
1254            ProjFileLoadTestCase
1255            (TestLoadingProjFile.test_caching): New. Test whether the cache
1256            works
1257    
1258    2003-10-16      Silke Reimer    <[email protected]>
1259    
1260            * debian/*: New directory with configuration files for building a thuban
1261              deb-package.
1262    
1263    2003-10-14  Bernhard Herzog  <[email protected]>
1264    
1265            * test/test_proj.py: Execute support.run_tests when run as
1266            __main__ so that missing unsubscribes are detected
1267            (TestProjFile.tearDown): Destroy the proj_file properly
1268    
1269    2003-10-14  Bernhard Herzog  <[email protected]>
1270    
1271            * Thuban/Model/messages.py (PROJECTION_ADDED)
1272            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
1273            the ProjFile objects
1274    
1275            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
1276            easily send messages when the projections change
1277            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
1278            when the change was successful
1279    
1280            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
1281            proj file messages
1282            (TestProjFile.test_add_remove)
1283            (TestProjFile.test_remove_non_existing)
1284            (TestProjFile.test_replace)
1285            (TestProjFile.test_replace_non_existing): Test whether the right
1286            messages are sent
1287    
1288    2003-10-14  Bernhard Herzog  <[email protected]>
1289    
1290            * test/test_proj.py (TestProjFile.test): Refactor into several
1291            tests
1292            (TestProjFile.test_add_remove)
1293            (TestProjFile.test_remove_non_existing)
1294            (TestProjFile.test_replace)
1295            (TestProjFile.test_replace_non_existing): Some of the new
1296            individual test cases
1297            (TestProjFileSimple): New class for the rest of the test cases
1298            that came out of the refactoring
1299            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
1300            derived classes don't have to
1301    
1302    2003-10-13  Bernhard Herzog  <[email protected]>
1303    
1304            Add an optional EPSG code to the projection objects and extend the
1305            .proj file format accordingly.
1306    
1307            * Resources/XML/projfile.dtd (element projection): Add epsg
1308            attribute
1309    
1310            * Thuban/Model/proj.py (Projection.__init__): New parameter and
1311            instance variable epsg. Update doc-string
1312            (Projection.EPSGCode, Projection.Label): New methods to provide
1313            access to EPSG code and a label for use in dialogs
1314    
1315            * Thuban/Model/resource.py (ProjFileReader.start_projection)
1316            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
1317            Handle the epsg code attribute when reading or writing proj files
1318    
1319            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
1320            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
1321            (ProjFrame.__FillAvailList): Use the projection's Label method to
1322            get the string for the list box
1323    
1324            * test/test_proj.py (TestProjection.test_label)
1325            (TestProjection.test_label_epsg)
1326            (TestProjection.test_epsgcode_for_non_epsg_projection)
1327            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
1328            for the label and EPSGCode methods
1329            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
1330            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
1331            objects in the test cases and put the expected contents into the
1332            test case methods too. Update doTestWrite accordingly
1333            (TestLoadingProjFile)
1334            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
1335            read tests from TestProjFile.
1336            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
1337            tests are now in the new classes.
1338            (sample_projfile, sample_projfile_data)
1339            (sample_projfile2, sample_projfile_data2): Removed. Not used
1340            anymore.
1341            (TestProjFile.test_read_unreadable_file): No need to reset the
1342            permissions at the end anymore since we use a unique filename
1343    
1344    2003-10-13  Bernhard Herzog  <[email protected]>
1345    
1346            * test/test_proj.py: Some more refactoring of the test cases
1347            (ProjFileTest): New base class for the proj file tests.
1348            (TestProjFile): Derive from ProjFileTest
1349            (TestProjFile.test_read_unreadable_file)
1350            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
1351            the new filename method to get a unique filename
1352            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
1353            (WriteProjFileTests): New class for proj file write tests.
1354            Contains the write test that were in TestProjFile originally.
1355    
1356    2003-10-13  Bernhard Herzog  <[email protected]>
1357    
1358            * test/test_proj.py (TestProjFile.testRead)
1359            (TestProjFile.test_read_non_existing_file)
1360            (TestProjFile.test_read_unreadable_file)
1361            (TestProjFile.test_read_empty_file): Split into several methods.
1362    
1363    2003-10-10  Bernhard Herzog  <[email protected]>
1364    
1365            * Thuban/UI/sizers.py: New file with custom sizers.
1366    
1367            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
1368            all projection type specific panels and put them into a
1369            NotebookLikeSizer. This way the dialog doesn't change its size
1370            when a different projection is selected
1371            (ProjFrame.__init__): Rename projection_panels
1372            projection_panel_defs and reuse projection_panels for a list of
1373            the instantiated panels.
1374            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
1375            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
1376            the panels
1377            (UnknownProjPanel._DoLayout): Place the newlines in the message
1378            differently to make the panel narrower.
1379            (TMPanel._DoLayout): Layout the parameters in one column.
1380    
1381    2003-10-10  Bernhard Herzog  <[email protected]>
1382    
1383            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
1384            that contains all the setup for the dialog's widgets, layout and
1385            event handling.
1386            (__): Call build_dialog to build the dialog.
1387            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
1388            Their functionality is now in build_dialog
1389            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
1390            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
1391            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
1392            different widget names and hierarchy introduced with build_dialog.
1393    
1394    2003-10-10  Bernhard Herzog  <[email protected]>
1395    
1396            * README: Fix typo.
1397    
1398    2003-10-09  Bernhard Herzog  <[email protected]>
1399    
1400            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
1401            projection is already in the list. This is *a lot* faster when
1402            loading files with hundreds of projections since it saves a linear
1403            search. OTOH this will allow adding the same projection to the
1404            user.proj file multiple times in the projection dialog but we'll
1405            deal with that later
1406    
1407    2003-10-09  Jan-Oliver Wagner <[email protected]>
1408    
1409            * devtools: New. Directory for developer tools that are not intended
1410            for the regular user.
1411    
1412            * devtools/create_epsg.py: New. Convert the epsg file of proj into
1413            a python .proj file.
1414    
1415    2003-10-09  Bernhard Herzog  <[email protected]>
1416    
1417            * test/test_proj.py
1418            (TestProjection.test_get_parameter_without_equals_sign): New. Test
1419            whether GetParameter handles parameters without "=" sign correctly
1420    
1421            * Thuban/Model/proj.py (Projection.GetParameter): Handle
1422            parameters that do not contain a "=". Update the doc-string
1423    
1424    2003-10-08  Bernhard Herzog  <[email protected]>
1425    
1426            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
1427            length limit on the projname text control
1428    
1429    2003-10-08  Bernhard Herzog  <[email protected]>
1430    
1431            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
1432            (TestProjection.test_get_projection_units_normal): New. Tests for
1433            the Projection.GetProjectedUnits method
1434    
1435    2003-10-08  Jan-Oliver Wagner <[email protected]>
1436    
1437            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
1438            Added missing 'val' parameter.
1439    
1440    2003-10-08  Bernhard Herzog  <[email protected]>
1441    
1442            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
1443            projection type of the currently selected projection is not known,
1444            i.e. there's no panel for it, use the UnknownProjPanel
1445            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
1446            the actual replacing of the proj panel into the new method
1447            _show_proj_panel.
1448            (UnknownProjPanel): Add doc-string.
1449            (UnknownProjPanel._DoLayout): Insert a newline into the text so
1450            that the panel is not so wide.
1451    
1452    2003-10-08  Bernhard Herzog  <[email protected]>
1453    
1454            * Thuban/Model/resource.py (read_proj_file): Return the warnings
1455            too. Update the doc-string
1456            (get_proj_files): Removed. It wasn't used anywhere
1457            (get_system_proj_files, get_system_proj_file): Rename to
1458            get_system_proj_file and return the ProjFile object and not a list
1459            of ProjFile objects. Update the callers.
1460            (get_user_proj_files, get_user_proj_file): Rename to
1461            get_user_proj_file return the ProjFile object and not a list of
1462            ProjFile objects. Update the callers.
1463            (ProjFileReader.__init__): New instance variable for the warnings.
1464            Rename the __pf ivar to projfile. Update the methods referring to
1465            __pf
1466            (ProjFileReader.end_projection): Catch any errors raised when
1467            instantiating the projection and record that as an error. The
1468            projection will not be in the final ProjFile object.
1469            (ProjFileReader.GetWarnings): New method to return the warnings.
1470    
1471            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
1472            show the warnings from the projfile reader
1473            (ProjFrame._OnImport): Deal with any warnings returned by
1474            read_proj_file
1475            (ProjFrame.__FillAvailList): Deal with any warnings returned by
1476            get_system_proj_file or get_user_proj_file.
1477    
1478            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
1479            (TestProjFileWithInvalidParameters.file_contents): New test cases
1480            to test whether read_proj_file handles invalid projection
1481            parameters correctly
1482            (TestProjFile.test_get_system_proj_file): New. Simple test for
1483            resource.get_system_proj_file
1484    
1485    2003-10-07  Bernhard Herzog  <[email protected]>
1486    
1487            * test/test_derivedshapestore.py
1488            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
1489            properly so that the temporary directories get deleted correctly
1490    
1491    2003-10-06  Bernhard Herzog  <[email protected]>
1492    
1493            Handle the title changes in a proper MVC way.
1494    
1495            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1496            canvas' TITLE_CHANGED messages
1497            (MainWindow.update_title): New. Update the main window's title
1498            (MainWindow.__SetTitle): Removed. Use update_title instead.
1499            (MainWindow.SetMap): Use update_title instead of __SetTitle
1500            (MainWindow.RenameMap): Do change the window title explicitly
1501            here. That's handled in a proper MVC way now.
1502            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
1503            messages
1504    
1505            * Thuban/Lib/connector.py (Conduit): New class to help classes
1506            that forward messages
1507    
1508            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
1509            (ViewPort): Derive from Conduit instead of Publisher
1510            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
1511            when calling the inherited versions
1512            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
1513            methods to subscribe and unsubscribe map messages
1514            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
1515            handle the map subscriptions
1516            (ViewPort.Map, ViewPort.map_projection_changed)
1517            (ViewPort.layer_projection_changed): Add or update doc-strings
1518    
1519            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
1520            typo
1521            (MyConduit): Helper class for the Conduit test.
1522            (TestConduit): Test cases for Conduit
1523    
1524            * test/test_connector.py: Use support.run_tests as main.
1525    
1526            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
1527            the TITLE_CHANGED messages
1528            (ViewPortTest.test_forwarding_title_changed): New test to check
1529            whether the viewport forwards the map's TITLE_CHANGED messages
1530            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
1531            after the port's because the latter may require a still functional
1532            map.
1533    
1534    2003-10-06  Bernhard Herzog  <[email protected]>
1535    
1536            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
1537            doc-string
1538    
1539    2003-10-06  Bernhard Herzog  <[email protected]>
1540    
1541            * test/test_viewport.py (ViewPortTest.setUp)
1542            (SimpleViewPortTest.test_init_with_size): Move the test for the
1543            initial size as a constructor parameter from ViewPortTest.setUp
1544            method to a new separate test in SimpleViewPortTest.
1545    
1546    2003-10-06  Bernhard Herzog  <[email protected]>
1547    
1548            * test/test_viewport.py (MockView): New class derived from
1549            ViewPort with a mock implementation of GetTextExtent to be used in
1550            the test cases
1551            (ViewPortTest.setUp): Use MockView instead of ViewPort
1552    
1553            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
1554            into what would be a "pure virtual function" in C++: always raise
1555            NotImplementedError. Mock implementations for test cases don't
1556            belong into the real code
1557    
1558    2003-10-02  Bernhard Herzog  <[email protected]>
1559    
1560            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
1561            close the dbf file we create so that it's contents have been
1562            written properly.
1563    
1564            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
1565            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
1566            Update to shapelib 1.2.10
1567    
1568    2003-10-01  Jan-Oliver Wagner <[email protected]>
1569    
1570            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
1571            it annoys lintian which warns about these files not being
1572            executable. The #! isn't necessary here since if you absolutely
1573            must execute them you can always say "python <filename>".
1574    
1575    2003-09-26  Bernhard Herzog  <[email protected]>
1576    
1577            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
1578            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
1579            is ported to a newer the import will fail, so it should be noticed
1580            immediately that this function is gone.
1581            Fixes RT#1919
1582    
1583    2003-09-26  Bernhard Herzog  <[email protected]>
1584    
1585            Add a DTD for the projection files and make thuban write valid
1586            projection files
1587    
1588            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
1589            files
1590    
1591            * Thuban/Model/resource.py (ProjFileSaver.write): Use
1592            'projectionlist' as the name in the document type declaration so
1593            that it matches the element type of the root element.
1594    
1595            * test/test_proj.py (sample_projfile, sample_projfile2): Use
1596            'projectionlist' as the name in the document type declaration just
1597            as it is done now in the files thuban would write
1598            (sample_projfile, sample_projfile_data): Fix spelling of
1599            "Mercator"
1600            (TestProjFile.doTestWrite): Validate the written and the expected
1601            XML data
1602            (TestProjFile): Derive from ValidationTest so that we can run xml
1603            validation tests
1604    
1605    2003-09-24  Bernhard Herzog  <[email protected]>
1606    
1607            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
1608            modify the list returned by map.Layers() in place since it is the
1609            actual list of layers used by the map.
1610    
1611    2003-09-23  Jan-Oliver Wagner <[email protected]>
1612    
1613            * Doc/manual/thuban-manual.xml: Added subsection to chapter
1614            Extensions to describe the extensions coming with the Thuban
1615            standard package (gns2shp and importAPR).
1616    
1617    2003-09-23  Bernhard Herzog  <[email protected]>
1618    
1619            * libraries/thuban/wxproj.cpp (project_point): if there's an
1620            inverse but no forward projection, convert to degrees after
1621            applying the inverse projection. Fixes RT#2096
1622    
1623            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
1624            implicitly tests for the fix to RT#2096
1625    
1626            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
1627            Check that the sequences have the same lengths
1628    
1629            * Resources/Projections/defaults.proj (Geographic projection): Use
1630            a much more precise value for the to_meter attribute.
1631    
1632    2003-09-22  Bernhard Herzog  <[email protected]>
1633    
1634            * test/support.py (initthuban): Make sure to unset the LANG env.
1635            var. so that tests that compare translated strings work. Solves RT
1636            #2094
1637    
1638    2003-09-22  Jan-Oliver Wagner <[email protected]>
1639    
1640            Small improvement of APR import.
1641    
1642            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
1643            Added tests for text-ranges.
1644    
1645            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
1646            returns a string object if the range is based on text.
1647    
1648            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
1649            range retrieval.
1650    
1651    2003-09-22  Jan-Oliver Wagner <[email protected]>
1652    
1653            Initial version of the importAPR extension which is in
1654            experimental state.
1655    
1656            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
1657            /Extensions/importAPR/test/: New directories.
1658    
1659            * /Extensions/importAPR/samples/README: New: Howto load the samples.
1660    
1661            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
1662            file which refers to the Thuban Iceland demo data.
1663    
1664            * /Extensions/importAPR/test/README: New: Howto execute the tests.
1665    
1666            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
1667    
1668            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
1669            as in '.apr'-files.
1670    
1671            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
1672            ODB Objects as in '.apr', '.avl' and other files.
1673    
1674            * /Extensions/importAPR/__init__.py: New: Init to make this
1675            directory a package.
1676    
1677            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
1678            project file (.apr) and convert it to Thuban.
1679    
1680    2003-09-22  Jan-Oliver Wagner <[email protected]>
1681    
1682            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
1683    
1684    2003-09-19  Jan-Oliver Wagner <[email protected]>
1685    
1686            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
1687            with description on RPM installation and RPM binary package
1688            creation.
1689    
1690    2003-09-18  Bernhard Herzog  <[email protected]>
1691    
1692            * setup.py (data_files): Only add the mo files if the Locales
1693            directory actually exists, so that setup.py works with a fresh CVS
1694            checkout
1695    
1696    2003-09-12  Jan-Oliver Wagner <[email protected]>
1697    
1698            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
1699            in viewport, not anymore in view
1700    
1701    2003-09-04  Jan-Oliver Wagner <[email protected]>
1702    
1703            Introducing first Extension (gns2shp).
1704    
1705            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
1706    
1707            * Extensions/__init__.py: New. init to make this dir a package.
1708    
1709            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
1710    
1711            * Extensions/gns2shp/test/README: New. some info on this test directory.
1712    
1713            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
1714    
1715            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
1716            of Shapefile from GNS text file format
1717    
1718    2003-09-03  Jan-Oliver Wagner <[email protected]>
1719    
1720            Fix/workaround for bug #2019:
1721            https://intevation.de/rt/webrt?serial_num=2019
1722    
1723            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
1724            (IdentifyView.__init__): Added another button that allows to
1725            stop the identify mode.
1726            (IdentifyView.OnStop): New. Stops the identify mode.
1727    
1728    2003-09-03  Jan-Oliver Wagner <[email protected]>
1729    
1730            Introducing a new exception dialog that allows to exit the
1731            application immediately.
1732            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
1733    
1734            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
1735    
1736            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1737            Made strings available to translations. Exchanged the simple
1738            ScrolledMessageDialog by the new ExceptionDialog.
1739    
1740    2003-09-01  Bernhard Herzog  <[email protected]>
1741    
1742            * NEWS: New. Summary of changes and release notes.
1743    
1744            * MANIFEST.in: Add NEWS
1745    
1746    2003-09-01  Bernhard Herzog  <[email protected]>
1747    
1748            * MANIFEST.in: Correct the include statement for the mo-files and
1749            include the documentation too.
1750    
1751            * setup.py (data_files): Add the .mo files
1752            (setup call): Up to version 0.9.0
1753    
1754    2003-09-01  Bernhard Herzog  <[email protected]>
1755    
1756            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
1757            parameter list to just parent and session
1758            (ChooseDBTableDialog.__set_properties): Removed. Setting the
1759            selection of empty list boxes is not allowed (and produces C++
1760            assertion errors) and the rest of the setup is better done in
1761            __init__ anyway.
1762            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
1763            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
1764            builtins True/False for booleans to avoid warnings from wxPython
1765    
1766            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
1767            ChooseDBTableDialog constructor parameters.
1768    
1769    2003-09-01  Bernhard Herzog  <[email protected]>
1770    
1771            * Thuban/Model/postgisdb.py
1772            (PostGISTable): Extend doc-string
1773            (PostGISTable._fetch_table_information): Set the column index
1774            correctly, pretending ignored columns don't exist.
1775    
1776            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
1777            for postgis tables with data types not yet supported by thuban.
1778    
1779    2003-08-29  Bernhard Herzog  <[email protected]>
1780    
1781            * HOWTO-Release: Tweak item about running the tests.
1782    
1783    2003-08-29  Jan-Oliver Wagner <[email protected]>
1784    
1785            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
1786    
1787    2003-08-29  Bernhard Herzog  <[email protected]>
1788    
1789            Add some missing parameters to projections. Proj complains about
1790            them on windows but for some reason not on Linux.
1791    
1792            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
1793            missing required projection parameters
1794    
1795            * test/test_proj.py (TestProjFile.test): Add missing required
1796            projection parameters
1797    
1798            * test/test_load_0_8.py (TestLayerProjection.file_contents)
1799            (TestLayerProjection.test): Add missing required projection
1800            parameters and tests for them
1801    
1802            * test/test_load.py (TestLayerProjection.file_contents)
1803            (TestLayerProjection.test): Add missing required projection
1804            parameters and tests for them
1805    
1806            * test/test_layer.py (TestLayer.test_base_layer): Add missing
1807            required projection parameters
1808    
1809    2003-08-29  Bernhard Herzog  <[email protected]>
1810    
1811            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
1812            access the pj_errno because directly accessing pj_errno doesn't
1813            work on windows if the proj library is in a DLL
1814    
1815            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
1816    
1817    2003-08-28  Bernhard Herzog  <[email protected]>
1818    
1819            * test/test_proj.py: Import things from Thuban after calling
1820            initthuban
1821    
1822            * test/test_load.py (LoadSessionTest.filenames): New class
1823            variable with the filename attributes to normalize
1824            (LoadSessionTest.check_format): Pass self.filenames to
1825            sax_eventlist to normalize the filename attributes
1826    
1827            * test/xmlsupport.py: Add cvs keywords
1828            (SaxEventLister.__init__): New parameter filenames which indicates
1829            attributes that contain filenames
1830            (SaxEventLister.startElementNS): Normalize the filename attributes
1831            with os.path.normpath
1832            (sax_eventlist): New parameter filenames to pass through to
1833            SaxEventLister
1834    
1835            * test/test_derivedshapestore.py: Make this file callable as a
1836            program to execute the tests
1837            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
1838            the session to self.session so that it gets destroyed properly
1839    
1840            * test/test_layer.py (TestLayer.tearDown): Call the session's
1841            Destroy method
1842    
1843            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
1844            too if it exists
1845            (TestMapAddLayer.test_add_layer): Bind the session to self.session
1846            so that it gets destroyed properly
1847    
1848            * test/postgissupport.py (reason_for_not_running_tests): Add a
1849            test for the existence of popen2.Popen4.
1850    
1851            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
1852            reliable way to destroy the sessions created in the test cases
1853            (SaveSessionTest.test_dbf_table): Bind the session to self.session
1854            so that it gets destroyed properly
1855            (SaveSessionTest.testLayerProjection): Bind the session to
1856            self.session so that it gets destroyed properly
1857    
1858            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
1859            sure that the session is destroyed properly
1860    
1861            * test/test_shapefilestore.py: Make this callable as a program to
1862            execute the tests
1863    
1864            * test/test_scalebar.py: Remove unnecessary import of _ from
1865            Thuban
1866    
1867            * test/support.py (print_garbage_information): Call initthuban
1868            here because it may be called indirectly from test cases that test
1869            test support modules which do not use anything from thuban itself
1870            (ThubanTestProgram.runTests): Remove unnecessary debug print
1871    
1872    2003-08-28  Bernhard Herzog  <[email protected]>
1873    
1874            * Thuban/version.py (longversion): Update to 0.9
1875    
1876            * Thuban/UI/mainwindow.py: Remove some unused imports
1877    
1878            * README: Add section about required additional software. Add date
1879            and revision CVS keywords
1880    
1881            * HOWTO-Release: Add item about the translations. Add date and
1882            revision CVs keywords and change formatting to match README a bit
1883            better
1884    
1885            * po/de.po: Update for 0.9
1886    
1887            * test/README: Tweak the wording a little because many tests are
1888            not really unittest.
1889    
1890    2003-08-27  Bernhard Herzog  <[email protected]>
1891    
1892            As preparation for the 0.9 release, switch thuban files to a
1893            non-dev namespace
1894    
1895            * Thuban/Model/save.py (SessionSaver.write_session): Write files
1896            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
1897            namespace
1898    
1899            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
1900            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
1901    
1902            * test/test_save.py (SaveSessionTest.dtd)
1903            (SaveSessionTest.testEmptySession)
1904            (SaveSessionTest.testSingleLayer)
1905            (SaveSessionTest.testLayerProjection)
1906            (SaveSessionTest.testRasterLayer)
1907            (SaveSessionTest.testClassifiedLayer)
1908            (SaveSessionTest.test_dbf_table)
1909            (SaveSessionTest.test_joined_table)
1910            (SaveSessionTest.test_save_postgis): Update for new namespace
1911    
1912            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
1913            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1914            (TestLayerProjection.file_contents)
1915            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1916            (TestPostGISLayer.file_contents)
1917            (TestPostGISLayerPassword.file_contents)
1918            (TestLoadError.file_contents, TestLoadError.test): Update for new
1919            namespace
1920    
1921    2003-08-27  Bernhard Herzog  <[email protected]>
1922    
1923            Make the table interface distinguish between row ids (an integer
1924            that uniquely identifies a row) and row ordinals (a simple row
1925            count from 0 to NumRows() - 1)
1926    
1927            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
1928            (PostGISTable.RowOrdinalToId): New methods to conver between row
1929            ids and row ordinals
1930            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
1931            parameter row_is_ordinal to indicate whether the row parameter is
1932            the row id or the ordinal
1933    
1934            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
1935            (TransientTableBase.RowOrdinalToId)
1936            (AutoTransientTable.RowIdToOrdinal)
1937            (AutoTransientTable.RowOrdinalToId): Same new methods as in
1938            PostGISTable.
1939            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
1940            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
1941            Same new parameter as in PostGISTable.
1942    
1943            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
1944            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
1945            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
1946            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
1947            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
1948            parameter as in PostGISTable.
1949    
1950            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
1951            (DataTable.RowOrdinalToId): New methods to convert between row ids
1952            and row ordinals.
1953            (TableGrid.SelectRowById): New method to select a row based on its
1954            ID as opposed to its ordinal
1955            (DataTable.GetValue, TableGrid.OnRangeSelect)
1956            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
1957            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
1958            (LayerTableFrame.__init__): Convert between row ids and row
1959            ordinals as appropriate
1960    
1961            * test/postgissupport.py (PostGISDatabase.__init__): Add
1962            doc-string.
1963            (PostGISDatabase.initdb): The optional third item in a tuple in
1964            tables is now a (key, value) list with additional arguments to
1965            pass to upload_shapefile
1966            (upload_shapefile): New parameter gid_offset to allow gids that
1967            are not the same as the shapeids in the shapefile
1968            (PostgreSQLServer.get_default_static_data_db): Use the new
1969            gid_offset to make the gids in landmarks 1000 higher than the
1970            shapeids in the shapefile
1971    
1972            * test/test_viewport.py
1973            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
1974            new shapeids in the landmarks table
1975    
1976            * test/test_transientdb.py
1977            (TestTransientTable.run_iceland_political_tests)
1978            (TestTransientTable.test_transient_joined_table): Add tests for
1979            the new table methods and new keywords arguments.
1980    
1981            * test/test_postgis_db.py
1982            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
1983            (TestPostGISTable.test_read_value_row_count_mode)
1984            (TestPostGISTable.test_row_id_to_ordinal)
1985            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
1986            table methods and the new arguments
1987            (TestPostGISShapestorePoint.test_shapes_in_region)
1988            (TestPostGISShapestorePoint.test_shape_raw_data)
1989            (TestPostGISShapestorePoint.test_shape_points)
1990            (TestPostGISShapestorePoint.test_shape_shapeid)
1991            (TestPostGISShapestorePoint.test_all_shapes)
1992            (TestPostGISTable.test_simple_query)
1993            (TestPostGISTable.test_simple_query)
1994            (TestPostGISTable.test_simple_query)
1995            (TestPostGISTable.test_read_value)
1996            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
1997            shapeids in the landmarks table
1998    
1999            * test/test_memory_table.py
2000            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
2001            (TestMemoryTable.test_read_value_row_count_mode)
2002            (TestMemoryTable.test_row_id_to_ordinal)
2003            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
2004            table methods and the new arguments
2005    
2006            * test/test_dbf_table.py
2007            (TestDBFTable.test_read_row_as_dict_row_count_mode)
2008            (TestDBFTable.test_read_value_row_count_mode)
2009            (TestDBFTable.test_row_id_to_ordinal)
2010            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
2011            methods and the new arguments
2012    
2013    2003-08-26  Bernhard Herzog  <[email protected]>
2014    
2015            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
2016            more postgis specific but much faster method to get the bounding
2017            box
2018    
2019    2003-08-26  Bernhard Herzog  <[email protected]>
2020    
2021            * Thuban/Model/postgisdb.py (PostGISTable.Title)
2022            (PostGISShapeStore.AllShapes): Add these missing methods.
2023            (PostGISShapeStore.ShapesInRegion): No need to raise
2024            StopIteration. We can simply return
2025    
2026            * test/test_postgis_db.py (TestPostGISTable.test_title)
2027            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
2028            new methods
2029    
2030    2003-08-25  Bernhard Herzog  <[email protected]>
2031    
2032            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
2033    
2034            * test/test_postgis_db.py (PolygonTests): New class containing
2035            those tests from TestPostGISShapestorePolygon that can also be
2036            used to test MUTLIPOLYGON tables
2037            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
2038            so derive from that
2039            (TestPostGISShapestoreMultiPolygon): New class with tests for
2040            MUTLIPOLYGON tables
2041    
2042            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
2043            tables argument to have tuples with three items to override the
2044            WKT type used.
2045            (PostgreSQLServer.get_default_static_data_db): Use the above to
2046            create a polygon table with MUTLIPOLYGONs
2047            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
2048            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
2049            coords_to*
2050            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
2051            (wkt_converter): New. Map WKT types to converters
2052            (upload_shapefile): New parameter force_wkt_type to use a
2053            different WKT type than the default
2054    
2055    2003-08-25  Bernhard Herzog  <[email protected]>
2056    
2057            * Thuban/UI/application.py
2058            (ThubanApplication.run_db_param_dialog): New. Suitable as a
2059            db_connection_callback. Main difference is that the dialog run
2060            from this method doesn't have a parent so it can be used even when
2061            there is no main window
2062            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
2063            no db_connection_callback was given. This way the dialog pops up
2064            even when the .thuban file was given as a command line parameter.
2065    
2066    2003-08-25  Bernhard Herzog  <[email protected]>
2067    
2068            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
2069            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
2070            which leads to an effectively frozen X session because the user
2071            can only interact with the dialog but the mouse is still grabbed
2072            by the canvas.
2073            Also, call the tool's Hide method before MouseLeftUp because
2074            MouseLeftUp may change the tool's coordinates.
2075    
2076    2003-08-25  Bernhard Herzog  <[email protected]>
2077    
2078            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
2079            LoadCancelled exceptions and handle them by returning immediately.
2080    
2081    2003-08-25  Bernhard Herzog  <[email protected]>
2082    
2083            GUI part of loading sessions with postgis connections which may
2084            require user interaction to get passwords or updated parameters
2085    
2086            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
2087            bit nucer and be more generic.
2088            (DBFrame.OnAdd): Adapt to new DBDialog interface
2089    
2090            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
2091            optional parameter db_connection_callback which is passed to
2092            load_session.
2093    
2094            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
2095            Suitable as a db_connection_callback
2096            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
2097            db_connection_callback of the application's OpenSession method
2098    
2099    
2100    2003-08-25  Bernhard Herzog  <[email protected]>
2101    
2102            Basic loading of sessions containing postgis connections:
2103    
2104            * Thuban/Model/load.py (LoadError): Add doc-string
2105            (LoadCancelled): New exception class to indicate a cancelled load
2106            (SessionLoader.__init__): Add the db_connection_callback parameter
2107            which will be used by the loader to get updated parameters and a
2108            password for a database connection
2109            (SessionLoader.__init__): Add the new XML elements to the
2110            dispatchers dictionary
2111            (SessionLoader.check_attrs): Two new conversions, ascii to convert
2112            to a byte-string object and idref as a generic id reference
2113            (SessionLoader.start_dbconnection)
2114            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
2115            elements
2116            (load_session): Add the db_connection_callback to pass through the
2117            SessionLoader
2118    
2119            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
2120            New classes to test loading of sessions with postgis database
2121            connections.
2122    
2123    2003-08-25  Bernhard Herzog  <[email protected]>
2124    
2125            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
2126            replace it and the comment with __BuildDate__ by the Source: and
2127            Id: cvs keywords as used in the other files.
2128    
2129    2003-08-25  Bernhard Herzog  <[email protected]>
2130    
2131            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
2132            LoadError when a required attribute is missing. The code used to
2133            be commented out for some reason, but probably should have been
2134            active.
2135    
2136            * test/test_load.py (TestLoadError.test): Test the message in the
2137            LoadError too to make sure it really is about the missing
2138            attribute
2139    
2140    2003-08-22  Bernhard Herzog  <[email protected]>
2141    
2142            * test/test_save.py (SaveSessionTest.test_dbf_table)
2143            (SaveSessionTest.test_joined_table): Add XML validation tests.
2144    
2145    2003-08-22  Bernhard Herzog  <[email protected]>
2146    
2147            Implement saving a session with a postgis connection
2148    
2149            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
2150            elements for database connections and shapestores using db
2151            connections
2152            (session): Add the dbconnections to the content model
2153    
2154            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
2155            Write the db connections
2156            (SessionSaver.write_session): Call write_db_connections to write
2157            the connection before the data sources
2158            (SessionSaver.write_data_containers): Handle postgis shapestores
2159    
2160            * test/test_save.py (SaveSessionTest.thubanids)
2161            (SaveSessionTest.thubanidrefs): Update for new DTD
2162            (SaveSessionTest.test_save_postgis): New. Test saving a session
2163            with postgis connections
2164    
2165            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
2166            (PostGISTable.TableName): New accessor methods for the connection
2167            and table name
2168    
2169            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
2170            (TestPostGISTable.test_dbname): New methods to test the new
2171            PostGISConnection methods
2172    
2173    2003-08-22  Bernhard Herzog  <[email protected]>
2174    
2175            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
2176            for exceptions occurring when establishing a Database connection
2177            (PostGISConnection.connect): Catch psycopg.OperationalError during
2178            connects and raise ConnectionError.
2179    
2180            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
2181            tests for database exceptions
2182    
2183    2003-08-22  Bernhard Herzog  <[email protected]>
2184    
2185            Prepare the test suite for tests with required authentication
2186    
2187            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
2188            variables with two predefined users/passwords, one for the admin
2189            and one for a non-privileged user.
2190            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
2191            the non-privileged user to the database and set the admin password
2192            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
2193            Better error reporting
2194            (PostgreSQLServer.connection_params)
2195            (PostgreSQLServer.connection_string): New methods to return
2196            information about how to connect to the server
2197            (PostgreSQLServer.execute_sql): New. Convenience method to execute
2198            SQL statements
2199            (PostgreSQLServer.require_authentication): Toggle whether the
2200            server requires authentication
2201            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
2202            Add or alter users
2203            (PostGISDatabase.initdb): Pass the admin name one the
2204            subprocesses' command lines. Grant select rights on
2205            geometry_columns to everybody.
2206            (upload_shapefile): Use the admin name and password when
2207            connecting. Grant select rights on the new table to everybody.
2208    
2209            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
2210            server's new methods to get the connection parameters.
2211    
2212            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
2213            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
2214            server's new methods to get the connection parameters.
2215    
2216            * test/test_postgis_db.py
2217            (TestPostGISConnection.test_gis_tables_empty)
2218            (TestPostGISConnection.test_gis_tables_non_empty)
2219            (PostGISStaticTests.setUp): Use the server's new methods to get
2220            the connection parameters.
2221    
2222    2003-08-22  Bernhard Herzog  <[email protected]>
2223    
2224            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
2225    
2226            * Thuban/version.py: Add psycopg version
2227    
2228            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
2229            version of the psycopg module
2230    
2231    2003-08-22  Bernhard Herzog  <[email protected]>
2232    
2233            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
2234            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
2235            at the moment. The functionality should probably be implemented
2236            some time, though.
2237            (DBFrame.OnRemove): Display a message if the connection can't be
2238            removed because it's still in use.
2239    
2240    2003-08-22  Jan-Oliver Wagner <[email protected]>
2241    
2242            * Thuban/UI/about.py (About.__init__): split up the huge about
2243            text into elements/lists for easier translation. This fixes bug
2244            https://intevation.de/rt/webrt?serial_num=2058
2245            Also, made some forgotten string available for the i18n.
2246    
2247    2003-08-21  Bernhard Herzog  <[email protected]>
2248    
2249            Make postgis support really optional including insensitive menu
2250            items.
2251    
2252            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
2253            whether the postgis is supported.
2254    
2255            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
2256            to make postgis support optional
2257    
2258            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
2259            version of Thuban.Model.postgisdb.has_postgis_support
2260            (database_management command): Make it only sensitive if postgis
2261            is supported.
2262    
2263    2003-08-21  Jan-Oliver Wagner <[email protected]>
2264    
2265            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
2266            (section Adding and Removing Layers): Added text and described
2267            multi-selection.
2268            (chapter Extensions): New.
2269    
2270    2003-08-21  Jan-Oliver Wagner <[email protected]>
2271    
2272            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
2273            settings to allow multiple files to load into the map.
2274            Also reduced selection to *.shp as a default.
2275    
2276    2003-08-20  Bernhard Herzog  <[email protected]>
2277    
2278            Add dialogs and commands to open database connections and add
2279            database layers.
2280    
2281            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
2282            method to open the database connection management dialog
2283            (MainWindow.AddDBLayer): New method to add a layer from a database
2284            (_has_dbconnections): New helper function to use for sensitivity
2285            (database_management command, layer_add_db command): New commands
2286            that call the above new methods.
2287            (main_menu): Add the new commands to the menu.
2288    
2289            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
2290            (PostGISConnection.connect): Establish the actual connection in a
2291            separate method and call it in __init__. This makes it easier to
2292            override the behavior in test cases
2293            (PostGISConnection.BriefDescription): New method to return a brief
2294            description for use in dialogs.
2295    
2296            * test/test_postgis_db.py (NonConnection): DB connection that
2297            doesn't actually connect
2298            (TestBriefDescription): New class with tests for the new
2299            BriefDescription method
2300    
2301    2003-08-19  Jan-Oliver Wagner <[email protected]>
2302    
2303            Moved anything from extensions to libraries.
2304    
2305            * libraries: New.
2306    
2307            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
2308    
2309            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
2310            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
2311            been moved here from thuban/extensions/pyprojection/
2312            See there in the Attic for the older history.
2313    
2314            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
2315            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
2316            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
2317            have been moved here from thuban/extensions/pyshapelib/
2318            See there in the Attic for the older history.
2319    
2320            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
2321            files have been moved here from thuban/extensions/shapelib/
2322            See there in the Attic for the older history.
2323    
2324            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
2325            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
2326            thuban/extensions/thuban/
2327            See there in the Attic for the older history.
2328    
2329            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
2330    
2331            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
2332            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
2333    
2334            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
2335            Moved to libraries/shapelib.
2336    
2337            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
2338            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
2339            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
2340            Moved to libraries/pyshapelib.
2341    
2342            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
2343            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
2344            Moved to libraries/pyprojection.
2345    
2346            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
2347    
2348            * extensions: Removed.
2349    
2350    2003-08-19  Bernhard Herzog  <[email protected]>
2351    
2352            * test/test_viewport.py (ViewPortTest): We don't use the
2353            facilities of FileTestMixin so don't derive from it.
2354            (TestViewportWithPostGIS): New class with tests for using a
2355            viewport on a map with postgis layers.
2356    
2357    2003-08-19  Bernhard Herzog  <[email protected]>
2358    
2359            Add the db connection management to the session.
2360    
2361            * Thuban/Model/session.py (Session.__init__): New instance
2362            variable db_connections
2363            (Session.AddDBConnection, Session.DBConnections)
2364            (Session.HasDBConnections, Session.CanRemoveDBConnection)
2365            (Session.RemoveDBConnection): New methods to manage and query the
2366            db connections managed by the session
2367            (Session.OpenDBShapeStore): New method to open a shapestore from a
2368            db connection
2369    
2370            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
2371            messages for the db connection handling in the session
2372    
2373            * test/test_postgis_session.py: New. test cases for the session's
2374            db connection handling with postgis connections
2375    
2376    2003-08-19  Bernhard Herzog  <[email protected]>
2377    
2378            Add very basic postgis database support and the corresponding test
2379            cases. The test cases require a PostgreSQL + postgis installation
2380            but no existing database. The database will be created
2381            automatically by the test cases
2382    
2383            * test/README: Add note about skipped tests and the requirements
2384            of the postgis tests.
2385    
2386            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
2387    
2388            * test/test_postgis_db.py: New. Test cases for the postgis
2389            support.
2390    
2391            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
2392            format
2393    
2394            * test/test_wellknowntext.py: New. Test cases for the
2395            wellknowntext parser
2396    
2397            * test/postgissupport.py: New. Support module for tests involving
2398            a postgis database.
2399    
2400            * test/support.py (execute_as_testsuite): Shut down the postmaster
2401            if it's still running after the tests
2402    
2403            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
2404            well known text format
2405    
2406    2003-08-19  Jan-Oliver Wagner <[email protected]>
2407    
2408            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
2409            message dialog.
2410    
2411    2003-08-18  Bernhard Herzog  <[email protected]>
2412    
2413            * test/support.py (ThubanTestResult.printErrors): Indent the
2414            reason for the skips in the output to make it a bit more readable.
2415            (execute_as_testsuite): New helper function to run a test suite
2416            and print some more information.
2417            (run_tests): Use execute_as_testsuite to run the tests
2418    
2419            * test/runtests.py (main): Use execute_as_testsuite to run the
2420            tests
2421    
2422    2003-08-18  Bernhard Herzog  <[email protected]>
2423    
2424            Fix some bugs in Thuban and the test suite that were uncovered by
2425            changes introduced in Python 2.3:
2426    
2427            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
2428            filename is an absolute name
2429    
2430            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
2431            filename is an absolute name
2432    
2433            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
2434            unique filename to save to and use the correct relative filename
2435            in the expected output.
2436            (SaveSessionTest.test_dbf_table): Use the correct relative
2437            filename in the expected output.
2438    
2439            * test/test_layer.py (TestLayer.test_raster_layer): Update the
2440            test to check whether the filename is absolute.
2441    
2442    2003-08-18  Jan-Oliver Wagner <[email protected]>
2443    
2444            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
2445    
2446    2003-08-15  Bernhard Herzog  <[email protected]>
2447    
2448            Change the way shapes are returned by a shape store. The
2449            ShapesInRegion method returns an iterator over actual shape
2450            objects instead of a list of shape ids.
2451    
2452            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
2453            id.
2454            (ShapefileStore.ShapesInRegion): Return an iterator over the
2455            shapes which yields shape objects instead of returning a list of
2456            shape ids
2457            (ShapefileStore.AllShapes): New. Return an iterator over all
2458            shapes in the shape store
2459            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
2460    
2461            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
2462            doc-string.
2463    
2464            * Thuban/UI/baserenderer.py
2465            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
2466            layer_shapes and make it return an iterator containg shapes
2467            instead of a list of ids.
2468            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
2469            layer_shapes() change
2470    
2471            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
2472            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
2473    
2474            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
2475            changes in the ShapesInRegion return value.
2476            (ViewPort._get_hit_tester): Remove commented out code
2477    
2478            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
2479            new return value.
2480            (SimpleShapeStore.AllShapes): New. Implement this method too.
2481    
2482            * test/test_layer.py (TestLayer.test_arc_layer)
2483            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
2484            (TestLayer.test_point_layer_with_projection)
2485            (TestLayer.test_derived_store): Adapt to changes in the
2486            ShapesInRegion return value.
2487    
2488            * test/test_shapefilestore.py
2489            (TestShapefileStoreArc.test_shapes_in_region)
2490            (TestShapefileStorePolygon.test_shapes_in_region)
2491            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
2492            in the ShapesInRegion return value.
2493            (TestShapefileStorePoint.test_all_shapes)
2494            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
2495            methods
2496    
2497            * test/test_derivedshapestore.py
2498            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
2499            the ShapesInRegion return value.
2500            (TestDerivedShapeStore.test_all_shapes)
2501            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
2502            methods
2503    
2504    2003-08-15  Bernhard Herzog  <[email protected]>
2505    
2506            Make the renderers deal correctly with raw vs. python level
2507            representation of shape geometries
2508    
2509            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
2510            Return a flag useraw in addition to the callable and the parameter
2511            to indicate whether the callable can deal with the raw shape data
2512            or uses the higher level python lists of coordinates. The callable
2513            now should accept either the raw data or the return value of the
2514            shape's Points() method.
2515            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
2516            change
2517            (BaseRenderer.projected_points): Instead of the shape id use the
2518            points list as parameter.
2519            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
2520            (BaseRenderer.draw_point_shape): Adapt to projected_points()
2521            change and accept the points list as parameter instead of the
2522            shape id.
2523    
2524            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
2525            the useraw flag as required by the BaseRenderer
2526            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
2527            changes.
2528    
2529            * test/test_baserenderer.py
2530            (TestBaseRenderer.test_point_with_classification): New test for
2531            rendering a map with classifications.
2532    
2533    2003-08-15  Bernhard Herzog  <[email protected]>
2534    
2535            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
2536            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
2537            (ViewPort._get_hit_tester, ViewPort.projected_points)
2538            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
2539            (ViewPort._find_label_at): Split the find_shape_at method into
2540            several new methods and use the functions in the hit-test module.
2541    
2542            * Thuban/UI/hittest.py: New module with Python-level hit-testing
2543            functions
2544    
2545            * test/test_hittest.py: New. Test for the new hittest module
2546    
2547    2003-08-15  Bernhard Herzog  <[email protected]>
2548    
2549            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
2550            projection to all corners of the bounding box to get a better
2551            approximation of the projected bounding box
2552    
2553            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
2554            New. Test coordinate handling of a layer with a projection.
2555            Catches the bug fixed in Layer.ShapesInRegion
2556    
2557    2003-08-15  Bernhard Herzog  <[email protected]>
2558    
2559            Move some of the mock objects in test_baserenderer into their own
2560            module so they can easily be used from other tests
2561    
2562            * test/mockgeo.py: New test helper module with some mock objects
2563            for geometry related things like shapes, shapestores and
2564            projections.
2565    
2566            * test/test_mockgeo.py: New. Tests for the new helper module
2567    
2568            * test/test_baserenderer.py: Some of the mock-objects are in
2569            mockgeo now.
2570    
2571    2003-08-12  Jan-Oliver Wagner <[email protected]>
2572    
2573            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
2574    
2575    2003-08-12  Bernhard Herzog  <[email protected]>
2576    
2577            * po/de.po: New. German translations by Bjoern Broscheit
2578    
2579    2003-08-12  Bernhard Herzog  <[email protected]>
2580    
2581            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
2582            strings have to be one string literal.
2583    
2584    2003-08-11  Bernhard Herzog  <[email protected]>
2585    
2586            * test/support.py (FloatComparisonMixin.assertPointListEquals):
2587            New. This method was used in various derived classes, but it's
2588            better to have it here.
2589    
2590            * test/test_shapefilestore.py
2591            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
2592            FloatComparisonMixin
2593    
2594            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
2595            It's now in FloatComparisonMixin
2596    
2597            * test/test_derivedshapestore.py
2598            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
2599            in FloatComparisonMixin
2600    
2601    2003-08-11  Bernhard Herzog  <[email protected]>
2602    
2603            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
2604            error message
2605    
2606    2003-08-08  Jan-Oliver Wagner <[email protected]>
2607    
2608            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
2609            with version number.
2610            Changed title to reflect version number of Thuban.
2611    
2612    2003-08-08  Jan-Oliver Wagner <[email protected]>
2613    
2614            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
2615            the list corresponds to the "About" web page.
2616    
2617    2003-08-08  Bernhard Herzog  <[email protected]>
2618    
2619            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
2620            Make sure translated strings are recognized as one string literal.
2621    
2622            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
2623            Make sure translated strings are recognized as one string literal.
2624    
2625            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
2626            translated strings are recognized as one string literal.
2627    
2628            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
2629            sure translated strings are recognized as one string literal.
2630    
2631    2003-08-07  Bernhard Herzog  <[email protected]>
2632    
2633            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
2634            Simply delegates to the original shapestore.
2635    
2636            * test/test_derivedshapestore.py
2637            (TestDerivedShapeStore.test_raw_format): New. Test case for
2638            DerivedShapeStore.RawShapeFormat
2639    
2640    2003-08-07  Bernhard Herzog  <[email protected]>
2641    
2642            Add raw data interface to shape objects.
2643    
2644            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
2645            class to ShapefileShape which now holds shapefile specific
2646            information.
2647            (ShapefileShape.compute_bbox): Simplified to not cache any
2648            information. The way this method is used that shouldn't matter
2649            performance wise.
2650            (ShapefileShape.RawData): New. Return the shapeid which is the raw
2651            data format for shapes from shapefiles.
2652            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
2653            in the shape objects returned by a shapestore. For a
2654            ShapefileStore this is always RAW_SHAPEFILE.
2655            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
2656            method.
2657    
2658            * test/test_shapefilestore.py
2659            (TestShapefileStore.test_raw_format): New test to test the raw
2660            format feature of shapes.
2661    
2662            * Thuban/Model/layer.py: Remove the unused import of Shape from
2663            data. It was only there for interface compatibility but it's not
2664            used inside of Thuban and the generic Shape class has gone away.
2665    
2666            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
2667            the raw data format and only use an optimized version of its a
2668            shapefile.
2669    
2670    2003-08-07  Bernhard Herzog  <[email protected]>
2671    
2672            * test/test_baserenderer.py (SimpleShape): Shape class for the
2673            tests.
2674            (SimpleShapeStore.Shape): Use SimpleShape instead of
2675            Thuban.Model.data.Shape to make the tests independed of the coming
2676            changes.
2677    
2678    2003-08-07  Bernhard Herzog  <[email protected]>
2679    
2680            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
2681            (ThubanTestProgram): New classes that extend the respective
2682            classes from unittest. These new version support skipping tests
2683            under certain expected conditions. In the Thuban test suite we
2684            uses this for tests that require the optional gdal support.
2685            (run_tests): Use ThubanTestProgram instead of the unittest.main()
2686    
2687            * test/runtests.py (main): Use the new ThubanTestRunner instead of
2688            the normal one from unittest
2689    
2690            * test/test_layer.py (TestLayer.test_raster_layer): If this test
2691            is not run because gdal support isn't available report this to the
2692            runner.
2693    
2694            * test/test_baserenderer.py
2695            (TestBaseRenderer.test_raster_no_projection): Do not run this test
2696            if gdal support isn't available and report this to the runner.
2697    
2698    2003-08-06  Bernhard Herzog  <[email protected]>
2699    
2700            Rearrange the renderers a bit, partly in preparation for changes
2701            required for the postgis merge, partly to make it more testable.
2702            Also make the representation of coordinates in Shapes more
2703            consistent.
2704    
2705            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
2706            this class is now in BaseRenderer. This class is now practically
2707            only a specialization of BaseRenderer for rendering to an actual
2708            wx DC.
2709            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
2710            to get the shapetype specific rendering functions.
2711    
2712            * Thuban/UI/baserenderer.py: New file with the basic rendering
2713            logic. The code in this file is completely independend of wx.
2714            (BaseRenderer): Class with the basic rendering logic
2715    
2716            * test/test_baserenderer.py: New. Test cases for BaseRenderer
2717    
2718            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
2719            error_on_redraw to guard agains endless loops and stack overflows
2720            when there's a bug in the rendering code that raises exceptions.
2721            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
2722            rendering into a separate method _do_redraw so that error handling
2723            is a bit easier. When an exception occurs, set error_on_redraw to
2724            true. When it's true on entry to OnIdle do nothing and return
2725            immediately.
2726    
2727            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
2728            Shape object will always have the coordinates as a list of list of
2729            coordinate pairs (tuples).
2730            (Shape.compute_bbox): Adapt to new representation.
2731    
2732            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
2733            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
2734            Shape objects.
2735    
2736            * test/test_shapefilestore.py
2737            (ShapefileStoreTests.assertFloatTuplesEqual)
2738            (ShapefileStoreTests.assertPointListEquals): Rename to
2739            assertPointListEquals and change purpose to checking equality of
2740            the lists returned by Shape.Points().
2741            (TestShapefileStoreArc.test_shape)
2742            (TestShapefileStorePolygon.test_shape)
2743            (TestShapefileStorePoint.test_shape): Use the new
2744            assertPointListEquals instead of assertFloatTuplesEqual
2745    
2746            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
2747            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
2748            and change purpose to checking equality of the lists returned by
2749            Shape.Points().
2750            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
2751            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
2752            (TestLayer.test_derived_store): Use the new assertPointListEquals
2753            instead of assertFloatTuplesEqual
2754    
2755            * test/test_derivedshapestore.py
2756            (TestDerivedShapeStore.assertFloatTuplesEqual)
2757            (TestDerivedShapeStore.assertPointListEquals): Rename to
2758            assertPointListEquals and change purpose to checking equality of
2759            the lists returned by Shape.Points().
2760            (TestDerivedShapeStore.test_shape): Use the new
2761            assertPointListEquals instead of assertFloatTuplesEqual
2762    
2763    2003-08-06  Jan-Oliver Wagner <[email protected]>
2764    
2765            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
2766            a bounding box. A dialog is raised in case, no bounding box
2767            is found. This fixes bug #2043:
2768            https://intevation.de/rt/webrt?serial_num=2043
2769    
2770    2003-08-05  Bernhard Herzog  <[email protected]>
2771    
2772            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
2773            object look like a Color instantiation. Formerly it looked like a
2774            tuple.
2775    
2776            * test/test_color.py (TestColor.test_repr)
2777            (TestColor.test_equality, TestColor.test_inequality): New. test
2778            some more apects of the Color class
2779            (TestTransparent.test_repr, TestTransparent.test_hex)
2780            (TestTransparent.test_equality): New. Test cases for the
2781            Transparent object.
2782    
2783    2003-08-04  Jan-Oliver Wagner <[email protected]>
2784    
2785            * Doc/manual/thuban-manual.xml: a number of small improvements.
2786            The resulting file is the version submitted for GREAT-ER II.
2787    
2788    2003-08-01  Bernhard Herzog  <[email protected]>
2789    
2790            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
2791            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
2792            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
2793    
2794            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
2795            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
2796            (ThubanEndBusyCursor): Add doc-strings
2797    
2798    2003-08-01  Bernhard Herzog  <[email protected]>
2799    
2800            First step towards PostGIS integration. More abstraction by movin
2801            more code from the layer to the shapestore. More methods of the
2802            layer are now simply delegated to the equivalent method of the
2803            shapestore. The SHAPETYPE_* constants are now in data not in
2804            layer.
2805    
2806            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
2807            (SHAPETYPE_POINT, Shape): Move these constants and classes from
2808            layer.py to data.py
2809            (ShapefileStore.__init__): More Initialization for the new methods
2810            and functionality.
2811            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
2812            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
2813            (ShapefileStore.Shape): New methods that were formerly implemented
2814            in the layer.
2815            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
2816            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
2817            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
2818            equivalents of the new shape methods. These versions are simply
2819            delegated to the original shapstore.
2820    
2821            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
2822            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
2823            (Layer.SetShapeStore): Removed the initializatin of instance
2824            variables that were needed for the stuff that's now in
2825            ShapefileStore
2826            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
2827            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
2828            shapestore.
2829    
2830            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
2831            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
2832            instead of layer.
2833    
2834            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
2835    
2836            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
2837    
2838            * test/test_layer.py: Import the SHAPETYPE_* constants from data
2839            instead of layer.
2840            (TestLayer.test_derived_store): Remove the test for the exception
2841            when instantiating the DerivedShapeStore with an incompatible
2842            table which is now in test_derivedshapestore.py. Add some more
2843            tests of the layer methods to determine whether they work for a
2844            DerivedShapeStore as well.
2845    
2846    2003-07-31  Jonathan Coles   <[email protected]>
2847    
2848            * Doc/manual/thuban-manual.xml: Fix the list of required packages
2849            by just listing the name and where they can be found.
2850    
2851    2003-07-31  Frank Koormann   <[email protected]>
2852    
2853            * Doc/manual/thuban-manual.xml:
2854            Changed the screenshot elements to figure.
2855            Changed some variablelist elements to itemizedlist.
2856            Added section on GDAL formats.
2857    
2858    2003-07-31  Jonathan Coles   <[email protected]>
2859    
2860            * Doc/manual/thuban-manual.xml: Added a few sentences about
2861            the Fix Border Color option when generating classes.
2862    
2863    2003-07-30  Jonathan Coles   <[email protected]>
2864    
2865            * Thuban/Model/classgen.py: Add docstrings. Rename specific
2866            Ramp instances to use lower_case_style.
2867    
2868            * Thuban/UI/classgen.py: Use renamed Ramp instances.
2869            
2870            * Thuban/UI/classifier.py: Add docstrings.
2871    
2872            * Thuban/UI/dock.py: Add docstrings.
2873    
2874            * test/test_classgen.py: Use renamed Ramp instances.
2875    
2876    2003-07-30  Bernhard Herzog  <[email protected]>
2877    
2878            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
2879            was never used in Thuban.
2880    
2881    2003-07-30  Bernhard Herzog  <[email protected]>
2882    
2883            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
2884            method directly instead of going through the transient_table
2885            method. This faster because transient_table may force the copy of
2886            a DBF file into the transient database and setting a table's title
2887            doesnm't affect the title of the associated transient table, so
2888            this fixes RT #2042
2889    
2890            * Thuban/UI/main.py (__version__): Don't import the already
2891            removed show_exception_dialog.
2892    
2893    2003-07-29  Jonathan Coles   <[email protected]>
2894    
2895            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2896            Put back this method and remove the equivalent function since we
2897            are setting the exception hook from within this class (OnInit).
2898    
2899    2003-07-29  Jonathan Coles   <[email protected]>
2900    
2901            * Doc/manual/images/5_2_custom_ramp.png,
2902            Doc/manual/images/5_2_quantiles.png,
2903            Doc/manual/images/5_2_uniform_dist.png,
2904            Doc/manual/images/5_2_unique_values.png,
2905            Doc/manual/images/8_int_error.png: New screen shots.
2906    
2907            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
2908            some points, and added more screen shots.
2909    
2910    2003-07-29  Bernhard Herzog  <[email protected]>
2911    
2912            * Thuban/Model/data.py: Remove the now unused import of warnings
2913    
2914    2003-07-29  Bernhard Herzog  <[email protected]>
2915    
2916            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
2917            deprecated since before the 0.8 release and isn't used in Thuban
2918            itself anymore.
2919    
2920            * Thuban/Model/transientdb.py: Remove some unnecessary imports
2921    
2922    2003-07-29  Jonathan Coles   <[email protected]>
2923    
2924            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
2925            python exception hook here so that we are sure to catch any
2926            Thuban exception that happen during initialization.
2927    
2928            * Thuban/UI/main.py (main): Don't set the exception hook here,
2929            it will get set in ThubanApplication.OnInit.
2930    
2931    2003-07-29  Jonathan Coles   <[email protected]>
2932                                                                                
2933            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2934            Removed and called it show_exception_dialog() so that the exception
2935            handler can be set before the class is created.
2936                                                                                
2937            * Thuban/UI/main.py (main): Install the exception handler before
2938            a ThubanApplication is created.
2939                                                                                    
2940    2003-07-29  Bernhard Herzog  <[email protected]>
2941    
2942            * po/it.po: New. Italian translation by Maurizio Napolitano
2943    
2944            * po/ru.po: New. Russian translation by Alex Shevlakov
2945    
2946    2003-07-29  Frank Koormann   <[email protected]>
2947    
2948            * Doc/manual/thuban-manual.xml: Extended section on supported
2949            projections.
2950            
2951    2003-07-29  Frank Koormann   <[email protected]>
2952    
2953            * Doc/manual/thuban-manual.xml: gaspell-checked.
2954    
2955    2003-07-29  Jonathan Coles   <[email protected]>
2956    
2957            * Doc/manual/images/3_5_legend.png: Added border to improve look
2958            on white background.
2959    
2960    2003-07-29  Jonathan Coles   <[email protected]>
2961    
2962            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
2963            descriptions for the legend toolbar.
2964    
2965            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
2966            cursor from dialog box.
2967    
2968    2003-07-28  Jonathan Coles   <[email protected]>
2969    
2970            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
2971    
2972            * Doc/manual/images/2_4_session_tree.png,
2973            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
2974            Doc/manual/images/4_2_layer_properties.png,
2975            Doc/manual/images/4_2_raster_layer_properties.png,
2976            Doc/manual/images/5_3_genclass.png,
2977            Doc/manual/images/5_classification.png,
2978            Doc/manual/images/6_projection.png,
2979            Doc/manual/images/7_1_table_view.png,
2980            Doc/manual/images/7_2_5_join.png: New screenshots.
2981    
2982    2003-07-24  Jonathan Coles   <[email protected]>
2983    
2984            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
2985    
2986    2003-07-24  Jonathan Coles   <[email protected]>
2987    
2988            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
2989            chapter on Layer Management.
2990    
2991            * Doc/manual/Makefile: New. Makefile to generate all formats for the
2992            manual and images.
2993    
2994    2003-07-24  Bernhard Herzog  <[email protected]>
2995    
2996            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
2997            it annoys lintian which warns about these files not being
2998            executable. The #! isn't necessary here since if you absolutely
2999            must execute them you can always say "python <filename>".
3000    
3001            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
3002            superfluous code to set brush and pen for point shapes
3003    
3004            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
3005            belong in viewport anyway
3006    
3007    2003-07-24  Frank Koormann   <[email protected]>
3008    
3009            * Doc/manual/thuban-manual.xml: Added section on table management.
3010    
3011    2003-07-24  Bernhard Herzog  <[email protected]>
3012    
3013            * test/runtests.py (main): Recognize the long "verbose" option
3014            correctly.
3015    
3016    2003-07-22  Jonathan Coles   <[email protected]>
3017    
3018            * Doc/manual/thuban-manual.xml: Continue to write first revision
3019            of the manual.
3020    
3021            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
3022            with Begin/EndDrawing() calls to ensure we aren't doing to
3023            many updates to the dc during rendering.
3024            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
3025            a pen and brush argument so they need to be passed to the function.
3026    
3027            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
3028            Calculates the minimum and maximum scale values. Factored out
3029            of set_view_transform so that it could be used to zoom all the
3030            way into a single point.
3031            (ViewPort.set_view_transform): Call calc_min_max_scales().
3032            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
3033            if only a single point is selected.
3034    
3035            * Doc/manual/images/1_2_legend_close.png,
3036            Doc/manual/images/1_2_legend_dock.png,
3037            Doc/manual/images/1_2_mainwindow.png,
3038            Doc/manual/images/1_2_mainwindow.ps,
3039            Doc/manual/images/1_2_mainwindow.sk,
3040            Doc/manual/images/3_2_fullextent.png,
3041            Doc/manual/images/3_2_fulllayerextent.png,
3042            Doc/manual/images/3_2_fullshapeextent.png,
3043            Doc/manual/images/3_2_pan.png,
3044            Doc/manual/images/3_2_zoomin.png,
3045            Doc/manual/images/3_2_zoomout.png,
3046            Doc/manual/images/3_3_identify.png,
3047            Doc/manual/images/3_3_label.png,
3048            Doc/manual/images/3_5_invisible.png,
3049            Doc/manual/images/3_5_movedown.png,
3050            Doc/manual/images/3_5_moveup.png,
3051            Doc/manual/images/3_5_props.png,
3052            Doc/manual/images/3_5_tobottom.png,
3053            Doc/manual/images/3_5_totop.png,
3054            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
3055    
3056    2003-07-18  Bernhard Herzog  <[email protected]>
3057    
3058            * Thuban/UI/messages.py (MAP_REPLACED): New message.
3059    
3060            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
3061            after the new map has been assigned
3062    
3063            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
3064            Delegate MAP_REPLACED to the canvas too
3065            (MainWindow.prepare_new_session): Removed. Thanks to the new
3066            MAP_REPLACED message it's no longer needed
3067            (MainWindow.OpenSession, MainWindow.NewSession):
3068            prepare_new_session has been removed.
3069    
3070            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
3071            MAP_REPLACED so that we can close the dialog if a new map is set.
3072            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
3073            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
3074            dialog
3075    
3076            * test/test_viewport.py (SimpleViewPortTest)
3077            (SimpleViewPortTest.test_default_size): Add doc-strings
3078            (ViewPortTest.setUp): Bind map to self.map so we can use it in
3079            tests. Subscribe to MAP_REPLACED messages too.
3080            (ViewPortTest.tearDown): No need to explicitly unsubscribe
3081            (ViewPortTest.test_set_map): New test for the SetMap method.
3082    
3083    2003-07-18  Bernhard Herzog  <[email protected]>
3084    
3085            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
3086            Move this test from ViewPortTest.setUp to this new separate test
3087            case. setUp is not the place for the actual tests.
3088            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
3089            more of the test from setUp to the new test test_inital_settings.
3090            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
3091            (ViewPortTest.test_proj_conv): Split test_proj_conv into
3092            test_win_to_proj and test_proj_to_win and make the tests easier to
3093            understand
3094            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
3095            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
3096            (ViewPortTest.test_unprojected_rect_around_point)
3097            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
3098            Reformat to increase readability.
3099    
3100    2003-07-18  Bernhard Herzog  <[email protected]>
3101    
3102            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
3103    
3104    2003-07-18  Bernhard Herzog  <[email protected]>
3105    
3106            * test/runtests.py: The test suite can now be run without an X
3107            connection. To make sure this remains true, remove the DISPLAY
3108            environment variable so that an error occurs if the wxGTK is
3109            imported accidentally
3110    
3111    2003-07-18  Bernhard Herzog  <[email protected]>
3112    
3113            * Thuban/UI/viewport.py: Remove unused imports
3114    
3115            * Thuban/UI/view.py: Remove unused imports
3116    
3117    2003-07-18  Bernhard Herzog  <[email protected]>
3118    
3119            * test/test_export.py Remove unused imports. The OutputTransform
3120            function is now in viewport.py and is called output_transform
3121            (TestScalebar.test_output_transform)
3122            (TestScalebar.test_OutputTransform): Renamed to
3123            test_output_transform and updated to use output_transform instead
3124            of OutputTransform
3125    
3126            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
3127            renamed.
3128            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
3129            renamed to output_transform
3130    
3131            * Thuban/UI/viewport.py (OutputTransform, output_transform):
3132            Rename to output_transform
3133    
3134    2003-07-18  Bernhard Herzog  <[email protected]>
3135    
3136            * Thuban/Model/layer.py (Layer.__init__): Rename
3137            classificationField to classificatin_column and init it here so
3138            that it can be used in SetClassificationColumn
3139            (Layer.GetClassificationColumn, Layer.GetClassificationField):
3140            Rename to GetClassificationColumn.
3141            (Layer.SetClassificationColumn, Layer.SetClassificationField):
3142            Rename to SetClassificationColumn and issue a LAYER_CHANGED
3143            message if the column changes.
3144            (Layer._classification_changed, Layer.ClassChanged): Rename to
3145            _classification_changed. Update the callers.
3146            (Layer.SetShapeStore): Further field->column renames.
3147    
3148            * Thuban/Model/load.py (SessionLoader.start_classification)
3149            (SessionLoader.start_clpoint): Updates because of
3150            field->column method name changes in the Layer class
3151    
3152            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
3153            because of field->column method name changes in the Layer class
3154    
3155            * Thuban/UI/classifier.py (Classifier.__init__)
3156            (Classifier._OnTry, Classifier._OnRevert): Updates because of
3157            field->column method name changes in the Layer class
3158    
3159            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
3160            because of field->column method name changes in the Layer class
3161    
3162            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
3163            of field->column method name changes in the Layer class
3164    
3165            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
3166            (SaveSessionTest.testClassifiedLayer): Update because of
3167            field->column method name changes in the Layer class
3168    
3169            * test/test_layer.py (SetShapeStoreTests.setUp)
3170            (SetShapeStoreTests.test_sanity): Update because of field->column
3171            method name changes in the Layer class
3172            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
3173            (TestLayerModification.test_sanity)
3174            (TestLayerModification.test_initial_settings): remove unsued code
3175            and rename to test_sanity.
3176            (TestLayerModification.test_set_classification): New test for
3177            SetClassification and SetClassificationField.
3178    
3179    2003-07-18  Bernhard Herzog  <[email protected]>
3180    
3181            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
3182            the non-fixed values as well. The old test would have accepted a
3183            fixed ramp that only returnes the fixed properties
3184    
3185    2003-07-17  Jonathan Coles   <[email protected]>
3186    
3187            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
3188            shots for the manual. The XCF file is the source image and
3189            has additional layers to support changes.
3190    
3191            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
3192    
3193            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
3194            Return both the new class and the field name.
3195    
3196            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
3197            fit the map to the window as this changes any zoom level that
3198            the user may have set.
3199    
3200    2003-07-16  Jonathan Coles   <[email protected]>
3201    
3202            * Thuban/Model/classgen.py (generate_singletons,
3203            generate_uniform_distribution, generate_quantiles): Remove
3204            fixes parameter, but maintain the same functionality by having
3205            the calling function pass a FixedRamp object for the ramp.
3206            (FixedRamp): New. Adapts a ramp to have fixed property values.
3207    
3208            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
3209            (Classification): Inherit from Publisher.
3210            (Classification.__init__): Remove the layer parameter.
3211            Classifications no longer need to have a parent layer.
3212            (Classification.GetField, Classification.GetFieldType,
3213            Classification.SetFieldInfo): Removed. The field name is stored
3214            in the layer, and the type can be retreived by calling
3215            Layer.GetFieldType().
3216            (Classification._set_layer, Classification.GetLayer): Removed.
3217            Classifications no longer have a parent layer.
3218    
3219            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
3220            classification.
3221            (Layer.SetShapeStore): Reset the classification first while
3222            we still have the old shape store to work with.
3223            (Layer.GetClassificationField, Layer.SetClassificationField):
3224            New. Method for getting/setting the field to classify on.
3225            (Layer.SetClassification): Simplified now that the layer
3226            simply has to hold a reference to the classification and not
3227            tell the classification who owns it.
3228            Fixes RTbug #2023.
3229    
3230            * Thuban/Model/load.py (SessionLoader.start_classification):
3231            Set the field name on the layer, not the classification.
3232    
3233            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
3234            classification is modified.
3235    
3236            * Thuban/Model/save.py (SessionSaver.write_classification):
3237            Get the field name and type from the layer.
3238    
3239            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
3240            parameter records to rows and add docstring. Fixes RTbug #1997.
3241    
3242            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
3243            ramp when we need to fix certain values of a ramp rather than
3244            using the old fixes parameter. Fixes RTbug #2024.
3245    
3246            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
3247            parameter.
3248            (ClassTable.Reset): Add fieldType parameter and use it, rather
3249            than asking the classification.
3250            (Classifier.__init__): Remember the original class's field
3251            and ask the layer for the field type, rather than the classification.
3252            (Classifier.__SetGridTable): Retrieve the field and field type
3253            for the table because they are not in the classification.
3254            (Classifier._OnTry, Classifier._OnRevert): Set the classification
3255            field on the layer in addition to the classification itself.
3256    
3257            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
3258            classification field from layer.
3259    
3260            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
3261            classification field from layer. Split up tests and remove
3262            *-imports. Fixes RTbug #1992.
3263    
3264            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
3265    
3266            * test/test_classification.py
3267            (TestClassification.test_classification): Remove tests for methods
3268            that no longer exist.
3269    
3270            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
3271            __init__ no longer has a field parameter, use SetClassificationField.
3272            (SetShapeStoreTests.test_sanity): Use layer object to get class
3273            field info.
3274    
3275            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
3276            SetClassificationField on layer to set class field info.
3277    
3278            * test/test_viewport.py: Renamed from test/test_view.py.
3279    
3280    2003-07-16  Jan-Oliver Wagner <[email protected]>
3281    
3282            * Doc/manual/thuban-manual.xml: Added authors and an initial
3283            coarse structure.
3284    
3285    2003-07-15  Bernhard Herzog  <[email protected]>
3286    
3287            * test/support.py (FloatComparisonMixin): This is a mix-in class
3288            and therefore should not be derived from any other class.
3289    
3290            * test/test_range.py (RangeTest): FloatComparisonMixin is a
3291            mix-in, so derive from TestCase as well.
3292    
3293    2003-07-15  Bernhard Herzog  <[email protected]>
3294    
3295            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
3296            draw_func handling a bit to remove one layer of indirection. This
3297            makes the renderer about 10% faster in the non-classifying case
3298            and the code a bit cleaner
3299            (MapRenderer.draw_point_shape): Add the pen and brush parameters
3300            and set them in the dc. Now the draw_point_shape method and
3301            wxproj's draw_polygon_shape function have basically the same
3302            signature so that both can be directly used as draw_func
3303    
3304    2003-07-15  Bernhard Herzog  <[email protected]>
3305    
3306            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
3307            string values (in addition to the labels) as UTF 8
3308    
3309            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
3310            values if the field type is string
3311    
3312            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
3313            saving a session with non-ascii string classification values.
3314    
3315            * test/test_load.py (TestClassification.file_contents)
3316            (TestClassification.test): Check for non-ascii values in string
3317            classifications
3318    
3319    2003-07-14  Jonathan Coles   <[email protected]>
3320    
3321            * test/test_view.py: New. Tests for ViewPort.
3322    
3323    2003-07-14  Frank Koormann   <[email protected]>
3324    
3325            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
3326            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
3327    
3328            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
3329            unicode strings from session file: session title, map title and
3330            projection name.
3331            
3332    2003-07-10  Jonathan Coles   <[email protected]>
3333    
3334            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
3335            drag_stop, not drag_move when the mouse is released.
3336    
3337    2003-07-10  Jonathan Coles   <[email protected]>
3338    
3339            The most important part of this is the seperation of view.py into
3340            two pieces. viewport.py now has a class called ViewPort which
3341            contains all the non-wx parts of view.py and can therefore be
3342            tested. view.py contains only the wx-specific parts and is fairly
3343            simple.
3344    
3345            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
3346            RTTbug #1992.
3347            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
3348            RTTbug #1992.
3349    
3350            * Thuban/Model/classgen.py (generate_singletons,
3351            generate_uniform_distribution, generate_quantiles):
3352            Added 'fixes' parameter so that property attributes can
3353            be held constant over the generated classification groups.
3354            (CustomRamp.GetProperties): Remove unused variables.
3355    
3356            * Thuban/Model/map.py (Map.SetProjection): Send the old
3357            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
3358            event.
3359    
3360            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
3361            parameter which is a list of records that restricts which
3362            records are saved. Fixes RTbug #1997.
3363    
3364            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3365            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
3366    
3367            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
3368            to allow the user to fix line color/width on generated groups.
3369            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
3370            functions to optionally fix group properties.
3371    
3372            * Thuban/UI/main.py (main): Set exception hook to the
3373            ShowExceptionDialog. Fixes RTbug #1993.
3374    
3375            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
3376            the table window when it is selectd to be shown.
3377    
3378            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
3379            Export Selection button and move the export buttons underneath
3380            the table.
3381            (QueryTableFrame.UpdateStatusText): Added event argument so
3382            that it can respond to grid selection events. The status text
3383            is now updated even when the table is not associated with a
3384            layer as was previously assumed.
3385            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
3386            UpdateStatusText responds to these events.
3387            (QueryTableFrame.OnSaveAs): Renamed to doExport.
3388            (QueryTableFrame.doExport): Helper function that saves the
3389            entire table, or selected rows, to a file.
3390            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
3391            Respond to export button events and call doExport.
3392    
3393            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
3394            the function doesn't return NULL without first setting a Python
3395            Error.
3396    
3397            * test/runtests.py (main): Only print "Unknown option" for
3398            unsupported options.
3399    
3400            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
3401            optional epsilon argument to specify floating point accuracy.
3402            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
3403            for each item test.
3404    
3405            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
3406            tests for saving selected records.
3407    
3408            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
3409            tests for saving selected records.
3410    
3411            * test/test_map.py (TestMapWithContents.test_set_projection):
3412            MAP_PROJECTION_CHANGED events send the old projection.
3413    
3414            * test/test_session.py
3415            (TestSessionWithContent.test_forward_map_projection):
3416            MAP_PROJECTION_CHANGED events send the old projection.
3417    
3418            * test/test_table.py (TableTest): Update tests to use non-deprecated
3419            functions.
3420    
3421    2003-07-08  Bernhard Herzog  <[email protected]>
3422    
3423            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
3424            constants in the column objects are the standard ones defined in
3425            the table module.
3426    
3427            * test/test_transientdb.py
3428            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
3429            exporting transient tables as DBF works. This should catch the bug
3430            just fixed in TransientTableBase.Width.
3431    
3432    2003-07-08  Bernhard Herzog  <[email protected]>
3433    
3434            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
3435            interpolated colors correctly.
3436    
3437            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
3438            New. Test case for the fix in classgen.py
3439    
3440    2003-07-08  Bernhard Herzog  <[email protected]>
3441    
3442            * test/runtests.py (main): Make the default output less verbose
3443            and add a verbosity option (-v) to get the old output
3444    
3445    2003-07-08  Bernhard Herzog  <[email protected]>
3446    
3447            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
3448            0.9.
3449    
3450            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
3451            New. Return the join type
3452    
3453            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
3454            DTD
3455            (SessionSaver.write_data_containers): Save the join type for
3456            joined tables
3457    
3458            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
3459            namespace
3460            (SessionLoader.start_jointable): Handle the jointype attribute
3461    
3462            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
3463            as of Thuban 0.8. These are now tests to determine whether Thuban
3464            can still read files generated by Thuban 0.8
3465    
3466            * test/test_load.py (LoadSessionTest.dtd)
3467            (TestSingleLayer.file_contents)
3468            (TestLayerVisibility.file_contents, TestLabels.file_contents)
3469            (TestLayerProjection.file_contents)
3470            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3471            (TestJoinedTable.file_contents)
3472            (TestLoadError.file_contents): Update for new DTD
3473            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
3474            for new join type attribute
3475    
3476            * test/test_save.py (SaveSessionTest.dtd)
3477            (SaveSessionTest.testEmptySession)
3478            (SaveSessionTest.testSingleLayer)
3479            (SaveSessionTest.testLayerProjection)
3480            (SaveSessionTest.testRasterLayer)
3481            (SaveSessionTest.testClassifiedLayer)
3482            (SaveSessionTest.test_dbf_table)
3483            (SaveSessionTest.test_joined_table): Update for new DTD
3484            (SaveSessionTest.test_joined_table): Add test for new join type
3485            attribute
3486    
3487    2003-07-04  Bernhard Herzog  <[email protected]>
3488    
3489            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
3490            function for table_to_dbf
3491            (table_to_dbf): Deal with names longer than the 10 character limit
3492    
3493            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
3494            doc-string
3495            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
3496            long column names
3497    
3498    2003-07-03  Bernhard Herzog  <[email protected]>
3499    
3500            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
3501    
3502    2003-07-03  Bernhard Herzog  <[email protected]>
3503    
3504            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
3505            for the Thuban manual and README with some basic information about
3506            the manual
3507    
3508    2003-07-03  Bernhard Herzog  <[email protected]>
3509    
3510            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
3511            Update doc-string
3512            (TransientJoinedTable.create): Do not modify the column objects of
3513            the input tables in place and copy all columns of the input tables
3514            into the joined table after all.
3515    
3516            * test/test_transientdb.py
3517            (TestTransientTable.test_transient_joined_table_same_column_name):
3518            Update to reflect the new behavior
3519            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
3520            Update to reflect the new behavior
3521            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
3522            New test case for a bug which modified the column objects in place
3523    
3524    2003-07-02  Jonathan Coles   <[email protected]>
3525    
3526            * Thuban/Model/classgen.py (generate_singletons,
3527            generate_uniform_distribution, generate_quantiles,
3528            GenQuantiles0): Make sure maxValue isn't less than
3529            one, otherwise we could divide by zero.
3530    
3531            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
3532            ClassGenTest.doClassSingleTest): Call doBoundsTest to
3533            check the end classification groups against the
3534            proper property values.
3535            (ClassGenTest.doBoundsTest): New. Checks the first and
3536            last classification groups to make sure their properties
3537            are the correct upper and lower bounds for a color ramp.
3538    
3539    2003-07-02  Jonathan Coles   <[email protected]>
3540    
3541            * Thuban/Model/classgen.py (generate_singletons,
3542            generate_uniform_distribution, generate_quantiles,
3543            GenQuantiles0): The denominator was one to high when
3544            calculating the index for the ramp causing the index
3545            to never to reach one.
3546    
3547    2003-07-02  Jonathan Coles   <[email protected]>
3548    
3549            Changed the singature of ClassGroupRange.__init__ and
3550            ClassGroupRange.SetRange() so that the min/max values are
3551            passed as a tuple. This makes a better calling scheme for
3552            when a Range object is passed instead.
3553    
3554            * Thuban/Model/classgen.py: Fixed parameters to
3555            ClassGroupRange constructor.
3556    
3557            * Thuban/Model/classification.py (ClassGroupRange.__init__):
3558            Consolidate the min/max parameters into a single _range which
3559            can either be a tuple or a Range object.
3560            (ClassGroupRange.SetRange): Consolidate the min/max parameters
3561            into a single _range which can either be a tuple or a Range object.
3562    
3563            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
3564            call to ClassGroupRange constructor to use a tuple.
3565    
3566            * Thuban/Model/layer.py (Layer.SetClassification): Switch
3567            the classification instance variable to the new class
3568            before calling _set_layer otherwise subscribers to a
3569            LAYER_CHANGED event will not see any difference.
3570    
3571            * test/test_classification.py: Fix tests of ClassGroupRange
3572            so that they use the new signature.
3573    
3574            * test/test_load.py: Fix use of ClassGroupRange so that it
3575            uses the new signature.
3576    
3577            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
3578            uses the new signature.
3579    
3580            * test/test_save.py: Fix use of ClassGroupRange so that it
3581            uses the new signature.
3582    
3583    
3584    2003-07-01  Jonathan Coles   <[email protected]>
3585    
3586            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
3587            Import used objects/class from color.
3588            (generate_singletons): We don't
3589            need the numGroups parameter anymore because we are using
3590            the new ramps with GetProperties().
3591            (generate_uniform_distribution): Use new ramp method
3592            GetProperties().
3593            (generate_quantiles, GenQuantiles0): Use new ramp method
3594            GetProperties().
3595            (CustomRamp.SetNumGroups): Removed. The ramps now map
3596            a value from 0 to 1 to class properties so the number
3597            of groups is not needed ahead of time.
3598            (CustomRamp.next): Removed. CustomRamp does not support
3599            interation anymore.
3600            (CustomRamp.GetProperties): Returns a ClassGroupProperties
3601            object based on the index value from 0 to 1 that is
3602            passed to it.
3603            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
3604            Made into instances of Monochromatic class instread of
3605            deriving from it.
3606            (HotToCold.SetNumGroups): Removed. See CustomRamp.
3607            (HotToCold.next): Removed. See CustomRamp.
3608    
3609            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
3610            (Classification.SetField, Classification.SetFieldType):
3611            Replaced with SetFieldInfo.
3612            (Classification.SetFieldInfo): New. Does a better job of
3613            what SetField and SetFieldType used to do by combining
3614            their function since they should really always be done
3615            at the same time.
3616            (Classification.SetLayer): Renamed to _set_layer.
3617            (Classification._set_layer): Should only be called from
3618            Layer's SetClassification. This does not cause a recursive
3619            call as SetLayer did because we know that Layer knows about
3620            the classification.
3621    
3622            * Thuban/Model/color.py: Fixes RTbug #1971.
3623            (_Transparent): Renamed from Transparent so it doesn't
3624            conflict with the module variable.
3625            (Transparent, Black): Renamed from Color.Transparent,
3626            Color.Black so they are not class variables.
3627    
3628            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
3629            (Layer.Destroy): We don't need to call SetClassification
3630            anymore to clear out the back reference in the classifcation
3631            to the layer. It's better to set it to None using _set_layer,
3632            and we won't be creating another clas object too.
3633            (Layer.SetClassification): Classification._set_layer is not
3634            recursive so remove all the locking variables. Also clean
3635            up the code so that it remains unchanged if something fails.
3636    
3637            * Thuban/Model/load.py: Fixes RTbug #1971.
3638            (SessionLoader.start_classification): Call
3639            Classification.SetFieldInfo().
3640    
3641            * Thuban/Model/save.py: Removed import of Color which wasn't
3642            being used.
3643    
3644            * Thuban/UI/classgen.py: Fixes RTbug #1972.
3645            (ClassGenDialog.__init__): Color ramps are now instances
3646            already so we don't need to create any new objects.
3647            (ClassGenDialog.OnOK): Check for numGroups is no longer
3648            necessary because we never use it.
3649    
3650            * Thuban/UI/classifier.py: Fixes RTbug #1971.
3651            (Classifier.__BuildClassification, Classifier.__SetGridTable):
3652            Call Classification.SetFieldInfo() instead of SetFieldType.
3653    
3654            * Thuban/UI/renderer.py: Fixes RTbug #1971.
3655    
3656            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
3657            (MapCanvas.__init__): Subscribe to the idle time event. Set
3658            background color to white.
3659            (MapCanvas.OnPaint): Set a flag indicating that we should
3660            render the map during idle time. If we already have a bitmap
3661            just draw it now.
3662            (MapCanvas.OnIdle): New. Render the map only during idle time.
3663            This also fixes a problem with the busy cursor under gtk.
3664    
3665            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
3666            Fix calls to generate_singletons because the signature changed.
3667    
3668            * test/test_classification.py: Fix color references and
3669            change calls to Classification.[SetField|SetFieldType] to
3670            SetFieldInfo.
3671    
3672            * test/test_load.py: Fix color references.
3673    
3674            * test/test_load_0_2.py: Fix color references.
3675    
3676            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
3677            Change calls to Classification.[SetField|SetFieldType] to
3678            SetFieldInfo.
3679    
3680    2003-07-01  Frank Koormann   <[email protected]>
3681    
3682            MERGE from the greater-ms3 branch.
3683    
3684            * test/test_transientdb.py
3685            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
3686            New. Test join of two tables with partly equal column names.
3687    
3688            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
3689            If duplicates in left and right tables column names are found,
3690            append '_' (underscores) to the name until it is unique.
3691            Create always new internal names for the resulting table and reference
3692            columns in the join statement with <table>.<column>
3693    
3694    2003-07-01  Bernhard Herzog  <[email protected]>
3695    
3696            * test/test_transientdb.py
3697            (TestTransientTable.test_transient_joined_table_same_column_name):
3698            New. Test whether joining on columns with the same names in both
3699            tables works.
3700            
3701            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
3702            sure to use the right internal names even when joining on field
3703            with the same names in both tables. Also, detect duplicate names
3704            in the joined table correctly.
3705    
3706    2003-07-01  Frank Koormann   <[email protected]>
3707    
3708            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
3709            Reverse List of layers to render in same order as in desktop legend.
3710    
3711    2003-06-30  Jonathan Coles   <[email protected]>
3712    
3713            * Thuban/version.py (make_tuple): Takes a version string
3714            and splits it into a tuple of at most three integers.
3715            Used make_tuple() to make tuple versions of the version
3716            numbers.
3717    
3718            * Thuban/UI/about.py: Add Thuban email addresses.
3719    
3720    2003-06-30  Jonathan Coles   <[email protected]>
3721    
3722            * Thuban/version.py: SQLite/PySQLite version dependencies
3723            were too high.
3724    
3725    2003-06-30  Jonathan Coles   <[email protected]>
3726    
3727            * Thuban/version.py: Update version to 0.8.1
3728            
3729            * MANIFEST.in: Added Projections so that default.proj is
3730            included.
3731    
3732    2003-06-26  Jonathan Coles   <[email protected]>
3733    
3734            New About box with lots more information including library
3735            versions and credits. More/better version checking before
3736            Thuban starts.
3737    
3738            * Thuban/UI/about.py: New. New About box that displays
3739            library version information and credits.
3740    
3741            * Thuban/version.py: Added new 'versions' dictionary which
3742            contains the verions of various libraries which are checked
3743            when the module loads.
3744            (verify_versions): Check all version numbers and returns
3745            a list of errors.
3746    
3747            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
3748            Reset the status of the buttons as the situation warrants,
3749            but in a better more reliable way by not relying on the
3750            current status to determine what needs to change.
3751    
3752            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
3753            (verify_versions): Remove most of the code since it is
3754            now in Thuban.version.verify_versions.o
3755    
3756            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
3757            About box in Thuban.UI.about.
3758    
3759            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
3760            Returns the version of gdal library being used as a string.
3761    
3762            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
3763            Removed.
3764            (get_proj_version): Return the version of PROJ that the file
3765            was compiled with.
3766            (get_gtk_version): Return th version of GTK that the file
3767            was compiled with.
3768    
3769    2003-06-25  Jonathan Coles   <[email protected]>
3770    
3771            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
3772            of the SelectPropertiesDialog should be self so the window
3773            appears on top.
3774            (ClassGroupPropertiesCtrl.DoEdit): The parent
3775            of the SelectPropertiesDialog should be self so the window
3776            appears on top.
3777    
3778            * Thuban/UI/resource.py: Cleaned up how we determine file
3779            extensions.
3780            (GetImageResource): Return an wxImage from our Resources.
3781    
3782    2003-06-24  Jonathan Coles   <[email protected]>
3783    
3784            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
3785            Check that a layer has a classification before trying
3786            to get it. Raster layers don't have classifications.
3787    
3788    2003-06-23  Jonathan Coles   <[email protected]>
3789            
3790            * setup.py: Add Resources/XML to resource list.
3791        
3792    2003-06-23  Jonathan Coles   <[email protected]>
3793    
3794            * setup.cfg: Fix copyright dates
3795        
3796    2003-06-23  Jonathan Coles   <[email protected]>
3797    
3798            * MANIFEST.in: Update with Resources/XML
3799    
3800            * setup.py: Don't include Locale resources yet as we don't
3801            have any and it causes problems building the distribution
3802            for Windows. Update version to 0.8.0.
3803    
3804            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
3805    
3806            * Thuban/UI/mainwindow.py: Add blank line at the end because
3807            file was not being read correctly building the Windows
3808            distribution.
3809    
3810    2003-06-23  Jonathan Coles   <[email protected]>
3811    
3812            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
3813    
3814            * Thuban/version.py: Temporarily update longversion for
3815            the 0.8 release so that it doesn't have the cvs revision.
3816    
3817    2003-06-23  Jonathan Coles   <[email protected]>
3818    
3819            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
3820            to make sure that we don't create reentrant possibilities with
3821            wxYield.
3822    
3823            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
3824            directly to avoid the wxSafeYield() call which generates an
3825            OnPaint event causing infinite recursion. Don't try to catch
3826            exception anymore. This was for before there were limits on map
3827            scaling.
3828    
3829    2003-06-23  Bernhard Herzog  <[email protected]>
3830    
3831            Bug fix for RT #1961:
3832    
3833            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
3834            Register DerivedShapestores with the session
3835    
3836            * Thuban/Model/session.py (Session.Tables): Make sure each table
3837            is only listed once.
3838    
3839            * test/test_load.py (TestJoinedTable.test): Add check_format call.
3840            Update file contents to match the one written out.
3841    
3842    2003-06-20  Bernhard Herzog  <[email protected]>
3843    
3844            * test/xmlsupport.py (SaxEventLister.startElementNS)
3845            (SaxEventLister.endElementNS): Do not include the qname. Python
3846            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
3847            is (presumably incorrectly) None, whereas it's a string with the
3848            element name in the later versions.
3849    
3850            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
3851            (TestEventList.test_even_list_namespace): Update tests to reflect
3852            the new behaviour
3853            (TestEventList.test_even_list_id_normalization): Fix doc-string
3854    
3855    2003-06-20  Jonathan Coles   <[email protected]>
3856    
3857            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
3858            by deriving classes to determine if that layer supports shapes.
3859            (Layer): Override HasShapes and return true.
3860    
3861            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
3862            instead of a direct call to wx[Begin|End]CusyCursor().
3863            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
3864            table data.
3865    
3866            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
3867            New. Wrappers around the wxWindows functions that allow us to
3868            make additional calls such as wxYield which gives the native
3869            system a chance to update the cursor correctly.
3870    
3871            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
3872            instead of a direct call to wx[Begin|End]CusyCursor().
3873    
3874            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
3875            instead of a direct call to wx[Begin|End]CusyCursor().
3876            (MapCanvas.find_shape_at): Check if the current search layer
3877            support shapes, otherwise go on to the next layer.
3878    
3879            * test/test_layer.py: Add tests in each type of layer for
3880            HasClassification() and HasShapes()
3881    
3882    2003-06-20  Jonathan Coles   <[email protected]>
3883    
3884            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
3885            turning on the busy cursor to allow the system to change the
3886            cursor before we begin painting. This fixes a problem that
3887            was occuring only under GTK. Fixes RTbug #1840.
3888    
3889    2003-06-20  Bernhard Herzog  <[email protected]>
3890    
3891            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
3892            version.
3893    
3894            * Thuban/Model/save.py (sort_data_stores): New. Make topological
3895            sort of the data sources so they can be written with sources that
3896            data sources that depend on other data sources come after the
3897            sources they depend on.
3898            (SessionSaver.__init__): Add idmap instance variable to map from
3899            objects to the ids used in the file.
3900            (SessionSaver.get_id, SessionSaver.define_id)
3901            (SessionSaver.has_id): New. Methods to manage the idmap
3902            (SessionSaver.write): Use thuban-0.8.dtd
3903            (SessionSaver.write_session): Add a namespace on the session and
3904            write out the data sources before the maps.
3905            (SessionSaver.write_data_containers): New. Write the data
3906            containers.
3907            (SessionSaver.write_layer): Layer elements now refer to a
3908            shapestore and don't contain filenames anymore.
3909    
3910            * Thuban/Model/load.py (LoadError): Exception class to raise when
3911            errors in the files are discovered
3912            (SessionLoader.__init__): Define dispatchers for elements with a
3913            thuban-0.8 namespace too.
3914            (SessionLoader.check_attrs): New helper method to check and
3915            convert attributes
3916            (AttrDesc): New. Helper class for SessionLoader.check_attrs
3917            (SessionLoader.start_fileshapesource)
3918            (SessionLoader.start_derivedshapesource)
3919            (SessionLoader.start_filetable, SessionLoader.start_jointable):
3920            Handlers for the new elements in the new fileformat
3921            (SessionLoader.start_layer): Handle the shapestore attribute in
3922            addition to filename.
3923            (SessionLoader.start_table, SessionLoader.end_table): Removed.
3924            They were never used in the old formats and aren't needed for the
3925            new.
3926    
3927            * Thuban/Model/session.py (Session.DataContainers): New method to
3928            return all "data containers", i.e. shapestores and tables
3929    
3930            * test/xmlsupport.py (SaxEventLister.__init__)
3931            (SaxEventLister.startElementNS, sax_eventlist): Add support to
3932            normalize IDs.
3933    
3934            * test/test_xmlsupport.py
3935            (TestEventList.test_even_list_id_normalization): New test case for
3936            id normalization
3937    
3938            * test/test_load.py (LoadSessionTest.check_format): Use ID
3939            normalization
3940            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
3941            class atrributes used for ID normalization
3942            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
3943            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
3944            file format
3945            (TestJoinedTable): New test for loading sessions with joined
3946            tables.
3947            (TestLoadError): New. Test whether missing required attributes
3948            cause a LoadError.
3949    
3950            * test/test_save.py (SaveSessionTest.thubanids)
3951            (SaveSessionTest.thubanidrefs): New class attributes for ID
3952            normalization in .thuban files.
3953            (SaveSessionTest.compare_xml): Use id-normalization.
3954            (SaveSessionTest.testEmptySession)
3955            (SaveSessionTest.testLayerProjection)
3956            (SaveSessionTest.testRasterLayer)
3957            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
3958            (SaveSessionTest.testLayerProjection): The filename used was the
3959            same as for testSingleLayer. Use a different one.
3960            (SaveSessionTest.test_dbf_table)
3961            (SaveSessionTest.test_joined_table): New test cases for saving the
3962            new data sources structures.
3963            (TestStoreSort, MockDataStore): Classes to test the sorting of the
3964            data stores for writing.
3965    
3966            * test/runtests.py: Add CVS keywords
3967    
3968    2003-06-20  Jonathan Coles   <[email protected]>
3969    
3970            * test/test_session.py
3971            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
3972            Use the cultural_landmark-point.dbf file for the store so that
3973            the table rows and shape count match.
3974    
3975    2003-06-20  Jonathan Coles   <[email protected]>
3976    
3977            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
3978            an exception if the number of shapes is different from the
3979            number of rows in the table. Address RTbug #1933.
3980    
3981            * test/test_layer.py (TestLayer.test_derived_store): Add
3982            a test for the new exception in DerivedShapeStore.__init__.
3983    
3984            * test/support.py (FloatTestCase): Removed since there is
3985            already FloatComparisonMixin. Fixes RTbug #1954.
3986            (FloatComparisonMixin.assertFloatEqual): Include test for
3987            infinity that was part of FloatTestCase.
3988    
3989            * test/test_range.py (RangeTest): Inherit from
3990            support.FloatComparisonMixin now that we don't have
3991            support.FloatTestCase.
3992    
3993    2003-06-20  Bernhard Herzog  <[email protected]>
3994    
3995            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
3996            the implementation in xmlsupport instead.
3997            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
3998    
3999            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
4000            of test_save
4001    
4002    2003-06-20  Bernhard Herzog  <[email protected]>
4003    
4004            * test/test_load.py (LoadSessionTest.check_format): New helper
4005            method to make sure the test files we load might have been written
4006            by the current thuban version.
4007            (ClassificationTest.TestLayers, TestSingleLayer.test)
4008            (TestLayerVisibility.test, TestClassification.test)
4009            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
4010            Add check_format() calls and fix the thuban data to match the data
4011            that would be written by saving the session loaded from it.
4012    
4013            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
4014            the same class and function in test_save.
4015    
4016            * test/test_xmlsupport.py (TestEventList): New. test cases for
4017            sax_eventlist
4018    
4019    2003-06-20  Bernhard Herzog  <[email protected]>
4020    
4021            * Resources/XML/thuban.dtd: Add comment about which versions of
4022            Thuban are covered by this DTD
4023            (map): Fix content model for layers and raster layers. There can
4024            be any number or layers and raster layers in any order.
4025    
4026    2003-06-20  Jonathan Coles   <[email protected]>
4027    
4028            This is mainly about fixing RTbug #1949.
4029    
4030            * Thuban/Model/classification.py: Remove "from __future__"
4031            import statement since python 2.2 is the earliest supported
4032            version.
4033    
4034            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
4035            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
4036            depending on the units this projection *forwards* into.
4037    
4038            * Thuban/Model/save.py (SessionSaver.write_classification):
4039            Remove unnecessary use of lambdas and nested functions.
4040    
4041            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
4042            adjustment here if the map projection uses degrees.
4043    
4044            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
4045            scale adjust code since it is now done before calling
4046            this method. Don't do anything if the map projection
4047            is None.
4048    
4049    2003-06-19  Bernhard Herzog  <[email protected]>
4050    
4051            Move version specific load tests to their own file.
4052    
4053            * test/test_load.py: Expand the doc-string to explain a bit how to
4054            handle file format changes.
4055            (TestClassification.test): Update the docstring as this test is
4056            not about Thuban 0.2 anymore.
4057    
4058            * test/test_load_0_2.py: New file with the load tests for thuban
4059            files created with Thuban 0.2 and earlier.
4060    
4061    2003-06-19  Bernhard Herzog  <[email protected]>
4062    
4063            Add XML validation to some of the tests. Validation will only be
4064            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
4065            To make the DTD available to the test cases it's moved into
4066            Resources/XML
4067    
4068            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
4069            for versions up to and including 0.2. Two slight changes: added an
4070            encoding specification and fixed the comment which refered to
4071            GRASS, not Thuban
4072    
4073            * test/xmlsupport.py: New support module for tests involving XML.
4074            Currently there's a mix-in class for XML validation.
4075    
4076            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
4077    
4078            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
4079            so that we can validate the
4080            (SaveSessionTest.testEmptySession)
4081            (SaveSessionTest.testSingleLayer)
4082            (SaveSessionTest.testSingleLayer)
4083            (SaveSessionTest.testLayerProjection)
4084            (SaveSessionTest.testRasterLayer)
4085            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
4086    
4087            * test/runtests.py (main): Call print_additional_summary instead
4088            of print_garbage_information
4089    
4090            * test/support.py (resource_dir): New function to return the
4091            "Resource" subdirectory
4092            (print_additional_summary): New function to combine several
4093            summary functions
4094            (run_tests): Use print_additional_summary instead of calling
4095            print_garbage_information directly
4096    
4097    2003-06-19  Bernhard Herzog  <[email protected]>
4098    
4099            * Doc/thuban.dtd (classification): Correct the content model of
4100            the classification element.
4101            (projection): Add the "name" attribute
4102    
4103    2003-06-19  Frank Koormann   <[email protected]>
4104    
4105            MERGE from the greater-ms3 branch.
4106    
4107            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
4108            scale if projection is latlong to get better estimate.
4109    
4110            Fix problem of hidden properties dialog under windows after double
4111            click on layer tree:
4112            The tree control always gets an Expanded / Collapsed event after
4113            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
4114            raises the already displayed window.
4115    
4116            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
4117            raiseProperties initialized to prevent endless loops
4118            (LegendTree._OnItemActivated): Depending on self.raiseProperties
4119            simply raise the properties or open the dialog and issue a second
4120            event.
4121    
4122    2003-06-18  Jonathan Coles   <[email protected]>
4123    
4124            * setup.py: Fix a few problems that occured under Windows.
4125    
4126    2003-06-18  Jonathan Coles   <[email protected]>
4127    
4128            When Thuban loaded the map was redrawn twice because the
4129            legend was being opened after the mainwindow was created
4130            and not during its creation. This meant the map was drawn
4131            initially and then had to be redrawn when the legend
4132            caused the display to change. Now the legend is opened
4133            in the mainwindow constructor which resolves this issue.
4134    
4135            Also, although we were checking for the existence of
4136            gdal and gdalwarp modules, the gdalwarp extension was
4137            still being compiled (which may fail if the system doesn't
4138            have gdal installed). the build_ext command to setup.py
4139            now accepts the flags --with-gdal and --without-gdal.
4140            If --without-gdal is specified setup.py will try to
4141            use the gdal parameters specified by gdal-config. Under
4142            windows, those parameters have to be set in setup.py
4143            as with proj4 an wxWindows.
4144    
4145            * setup.py: Use a list instead of seperate variables for
4146            extension parameters so we can create a generic function
4147            that runs an appropriate *-config script.
4148            (run_cs_script): Renamed from run_wx_script and modified
4149            to accept a second argument which is a list of lists to
4150            be filled in by the values returned from running the command.
4151            (thuban_build_ext): New. Extends the build_ext command and
4152            provides the options --with-gdal/--without-gdal which then
4153            optionally includes the gdalwarp extension.
4154    
4155            * Thuban/Model/resource.py: First check if we can import
4156            the gdalwarp Thuban extension before checking for gdal.
4157            Also added some comments.
4158            
4159            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
4160            the map is None which may be the case if none has been loaded
4161            yet.
4162    
4163            * Thuban/UI/main.py (main): Remove call to ShowLegend.
4164    
4165            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
4166    
4167            * Thuban/UI/renderer.py: Check for gdal support before importing
4168            gdalwarp.
4169            (MapRenderer.render_map): Only try to optimize if we have gdal
4170            support otherwise nothing will get drawn.
4171    
4172            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
4173            during startup before a map has been created. Check if map is None
4174            before using it and do nothing if it is.
4175    
4176    2003-06-17  Jonathan Coles   <[email protected]>
4177    
4178            Fix the problem with raster layers under Windows that caused
4179            Thuban to crash. The view should respond to layer projection
4180            changed events to update the display. Changes to a projection
4181            should not cause the map to be set to full extent.
4182            
4183            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
4184            current_map_proj to remember the current map projection so that
4185            when the projection changes we know what the previous projection
4186            was.
4187            (MapCanvas.SetMap): Unsubscribe and subscribe to
4188            LAYER_PROJECTION_CHANGED events.
4189            (MapCanvas.projection_changed): Split into two methods that respond
4190            to map and layer projection changes.
4191            (MapCanvas.map_projection_changed): New. Takes the current view and
4192            projects it using the new projection. This does not cause the
4193            map to be redrawn at full extent.
4194            (MapCanvas.layer_projection_changed): New. Cause a redraw which
4195            will draw each layer in its new projection.
4196            
4197            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
4198            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
4199            under Windows.
4200            
4201            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
4202            to twice sizeof(void*) because there are two digits for each
4203            hex byte.
4204    
4205    2003-06-16  Bernhard Herzog  <[email protected]>
4206    
4207            Update to the layer interface: Direct access to the table,
4208            shapetable, shapefile and filename attributes is now actively
4209            deprecated by issuing deprecation warnings for all places where
4210            this happens.
4211    
4212            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
4213            to the instance variables table, shapetable, shapefile and
4214            filename via __getattr__ so that we can issue a deprecation
4215            warning.
4216            (Layer.SetShapeStore): Don't set the deprecated instance variables
4217            any more
4218            (Layer.SetShapeStore): Don't use deprecated layer instance
4219            variables
4220            (Layer.Destroy): No need to explicitly remove the instance
4221            variables any more
4222            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
4223            instance variables
4224    
4225            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
4226            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
4227            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
4228            use deprecated layer instance variables
4229    
4230            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
4231            deprecated layer instance variables
4232    
4233            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
4234            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
4235            instance variables
4236    
4237            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
4238            deprecated layer instance variables
4239    
4240            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
4241            deprecated layer instance variables
4242    
4243            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
4244            deprecated layer instance variables
4245    
4246            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
4247            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
4248            variables
4249    
4250            * test/runtests.py (main): Turn Thuban's deprecation warnings into
4251            errors so that they're cought by the tests
4252    
4253            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
4254            layer instance variables
4255    
4256    2003-06-16  Jonathan Coles   <[email protected]>
4257    
4258            Fix a problem under Windows whereby if the user double-clicks on a
4259            layer in the legend that tree item will expand or collapse as well
4260            as open the layer properties dialog. The state of the tree item
4261            should not be affected.
4262    
4263            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
4264            preventExpandCollapse and subscribe to expanding and collapsing
4265            events.
4266            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
4267            collapsing events and will veto the event if it has been triggered
4268            by the user double clicking on a layer.
4269            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
4270            that an expanding/collapsing event should be vetoed.
4271    
4272    2003-06-13  Bernhard Herzog  <[email protected]>
4273    
4274            * Thuban/UI/classifier.py (Classifier.OnClose)
4275            (Classifier.map_layers_removed)
4276            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
4277            in OnClose and not in map_layers_removed or
4278            layer_shapestore_replaced to make sure it always happens when the
4279            dialog is closed
4280    
4281    2003-06-13  Jonathan Coles   <[email protected]>
4282    
4283            This puts back a fix for Windows where a panel is needed so that
4284            the background of the table view appears correctly.
4285    
4286            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
4287            object that can be used by derived classes to place any
4288            controls (including the grid) onto.
4289            (QueryTableFrame.__init__): Use the panel as the parent window
4290            for all the controls. Reparent the grid so that the panel is
4291            the parent. Call UpdateStatusText() to correctly initialize
4292            the status bar.
4293    
4294    2003-06-13  Jonathan Coles   <[email protected]>
4295    
4296            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
4297            from wxFrame (as opposed to wxDialog like the other classes)
4298            but otherwise behaves like the other classes. This is needed
4299            for the TableView which isn't really a dialog and needs to
4300            have a status bar and control buttons.
4301    
4302            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
4303            instance variable to keep track of how many rows are selected.
4304            Subscribe once to the the events we are interested in.
4305            (ThubanGrid.OnRangeSelect): Only handle event if event handling
4306            hasn't been turned off.
4307            (ThubanGrid.OnSelectCell): Only handle event if event handling
4308            hasn't been turned off.
4309            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
4310            as an event listener (which changes the event handler stack)
4311            simply set an instance variable to False. This is checked in
4312            the event handlers.
4313            (ThubanGrid.GetNumberSelected): Return the number of currently
4314            selected rows.
4315            (TableFrame): Inherit from ThubanFrame so we can have a
4316            status bar and control buttons.
4317            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
4318            Explicitly set which items are selected in the operator choice and
4319            action choice so there is always a valid selection. Fixes RTbug #1941.
4320            Subscribe to grid cell selection events so we can update the
4321            status bar.
4322            (QueryTableFrame.UpdateStatusText): Update the status bar with
4323            how many rows are in the grid, how many columns, and how many
4324            rows are selected.
4325            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
4326            Call UpdateStatusText when cells are (de)selected.
4327            (QueryTableFrame.OnQuery): Use the string value in the value
4328            combo if either the selected item index is 0 or if the string
4329            cannot be found in the predefined list (this happens if the
4330            user changes the text). Fixes RTbug #1940.
4331            Only turn off the grid event listeners if there a query comes
4332            back with a none empty list of ids. in the case that the list
4333            is empty this causes a grid.ClearSelection() call to actually
4334            clear the grid selection which causes the selected items in
4335            the map to be deselected. Fixes RTbug #1939.
4336    
4337            * test/test_save.py (XMLWriterTest.Encode): Check return values.
4338            Fixes RTbug #1851.
4339    
4340    2003-06-13  Bernhard Herzog  <[email protected]>
4341    
4342            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
4343            self.selected_shape with the current selection to make sure the
4344            contents of the dialog are up to date when it's shown for the
4345            first time.
4346            The dialog used to work without this by luck. The recent fix to
4347            the connector module 'broke' a 'feature' the identify view was
4348            relying on, i.e that subscribing to a message in response to
4349            receiving a message of that type would mean that the new
4350            subscriber would also be called for the same message.
4351            
4352    2003-06-12  Jonathan Coles   <[email protected]>
4353    
4354            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
4355            the image is rendered. Fixes RTbug #1937.
4356    
4357    2003-06-12  Jonathan Coles   <[email protected]>
4358    
4359            * Thuban/Lib/fileutil.py: As is done under Windows, create the
4360            user directory if it doesn't exist on a posix system.
4361            Fixes RTbug #1815.
4362    
4363            * Thuban/Model/resource.py (get_user_proj_files): Moved the
4364            called to get_application_dir here, so that the directory
4365            will only be called if this method is invoked.
4366    
4367            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
4368            the projfilepath if no projection is selected.
4369    
4370    2003-06-12  Jonathan Coles   <[email protected]>
4371    
4372            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
4373            the scalebar if the current map has no projection set.
4374    
4375            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
4376            projfilepath label to just the basename of the projection file
4377            rather than include the entire path.
4378    
4379            * Thuban/Model/resource.py: Fix missed proj functions that
4380            needed to be renamed.
4381    
4382    2003-06-12  Jonathan Coles   <[email protected]>
4383    
4384            * Thuban/Model/classification.py: Removed assert statements that
4385            tested if the variable was an instance of Color.
4386    
4387            * Thuban/Model/color.py (Color): Remove commented code that isn't
4388            used.
4389            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
4390            Fixes RTbug #1835.
4391            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
4392            Needed now that the class doesn't inherit from Color.
4393    
4394    2003-06-12  Jonathan Coles   <[email protected]>
4395    
4396            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
4397            check unicode strings.
4398    
4399            * test/test_layer.py: Check for existence of gdal.
4400    
4401    2003-06-12  Jonathan Coles   <[email protected]>
4402        
4403            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
4404            that was in load.py
4405    
4406            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
4407            that was in save.py
4408    
4409    2003-06-12  Jonathan Coles   <[email protected]>
4410    
4411            This is largely a collection of bug fixes. We also handle the
4412            case where gdal is not on the system. The XMLReader and XMLWriter
4413            classes were moved into there own files to resolve some circular
4414            import references and because they shouldn't really be in the
4415            file that is dediciated to reading/writing session files since
4416            they are also used elsewhere.
4417    
4418            * Thuban/Model/classgen.py: Renamed functions to follow the
4419            function_names_with_underscores style. Fixes RTbug #1903.
4420            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
4421    
4422            * Thuban/Model/layer.py: Import gdal only if it available.
4423            (RasterLayer): Handle the case where the gdal library is unavailable.
4424            Addresses RTbug #1877.
4425    
4426            * Thuban/Model/load.py (XMLReader): Moved into seperate file
4427            xmlreader.py.
4428    
4429    2003-06-12  Jonathan Coles   <[email protected]>
4430    
4431            This is largely a collection of bug fixes. We also handle the
4432            case where gdal is not on the system. The XMLReader and XMLWriter
4433            classes were moved into there own files to resolve some circular
4434            import references and because they shouldn't really be in the
4435            file that is dediciated to reading/writing session files since
4436            they are also used elsewhere.
4437    
4438            * Thuban/Model/classgen.py: Renamed functions to follow the
4439            function_names_with_underscores style. Fixes RTbug #1903.
4440            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
4441    
4442            * Thuban/Model/layer.py: Import gdal only if it available.
4443            (RasterLayer): Handle the case where the gdal library is unavailable.
4444            Addresses RTbug #1877.
4445    
4446            * Thuban/Model/load.py (XMLReader): Moved into seperate file
4447            xmlreader.py.
4448    
4449            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
4450            file xmlwriter.py.
4451    
4452            * Thuban/Model/resource.py: Renamed functions to following the
4453            function_names_with_underscores style.
4454            (has_gdal_support): New function that returns true if the gdal
4455            library is available. Addresses RTbug #1877.
4456    
4457            * Thuban/UI/application.py (ThubanApplication.OpenSession):
4458            Display a message box if the gdal library is not available, but
4459            only if there are any layers that would use it. Addresses RTbug #1877.
4460    
4461            * Thuban/UI/classgen.py: Use renamed projection resource functions.
4462            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
4463            when using integers versus floats.
4464    
4465            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
4466            determine if the "Add Image Layer" menu option should be
4467            greyed out or not. Addresses RTbug #1877.
4468    
4469            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
4470    
4471            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
4472            optimize if a raster layer is visible. Fixes RTbug #1931.
4473            Only draw the raster layer if the gdal library is available.
4474            Addresses RTbug #1877.
4475    
4476            * test/test_classgen.py: Add tests for generate_singletons,
4477            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
4478            (test_calculate_quantiles): Fix some tests to catch the new
4479            ValueError that is raised.
4480    
4481            * test/test_proj.py: Use renamed projection resource functions.
4482    
4483            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
4484            test for saving classified layers. Fixes RTbug #1902.
4485            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
4486    
4487    2003-06-12  Jan-Oliver Wagner <[email protected]>
4488    
4489            Fix for http://intevation.de/rt/webrt?serial_num=1900.
4490    
4491            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
4492    
4493            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
4494            multiplechoicedialog.py rather than from the wxPython library.
4495    
4496    2003-06-11  Frank Koormann  <[email protected]>
4497    
4498            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
4499            update.
4500    
4501    2003-06-11  Frank Koormann  <[email protected]>
4502    
4503            * Thuban/Lib/fileutil.py (get_application_dir): New function to
4504            determine the absolute .thuban/thuban directory under
4505            "posix" (os.expanduser) and "nt" (read AppData registry key).
4506    
4507            * Thuban/Model/resource.py: Use get_application_dir
4508    
4509            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
4510            Use get_application_dir.
4511    
4512    2003-06-10  Bernhard Herzog  <[email protected]>
4513    
4514            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
4515            the messages MAP_LAYERS_REMOVED messages
4516            (LayerTableFrame.OnClose): Unsubscribe from it.
4517            (LayerTableFrame.map_layers_removed): New. Receiver for
4518            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
4519            dialog is showing is removed.
4520    
4521    2003-06-10  Bernhard Herzog  <[email protected]>
4522    
4523            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
4524            of the receivers list so that unsubscribing in a receiver doesn't
4525            modify it while iterating over it.
4526    
4527            * test/test_connector.py
4528            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
4529            unsubscribing in a receiver works correctly. See docstring for
4530            details
4531    
4532    2003-06-10  Bernhard Herzog  <[email protected]>
4533    
4534            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
4535            message.
4536    
4537            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
4538            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
4539            LAYER_CHANGED will still be sent if the classification changes.
4540    
4541            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
4542            parameter so we can subscribe to some of its messages
4543            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
4544            and the layer's LAYER_SHAPESTORE_REPLACED
4545            (Classifier.unsubscribe_messages): New. Unsubscribe from message
4546            subscribed to in __init__
4547            (Classifier.map_layers_removed)
4548            (Classifier.layer_shapestore_replaced): receivers for the messages
4549            subscribed to in __init__. Unsubscribe and close the dialog
4550    
4551            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
4552            the map to the Classifier dialog
4553    
4554            * test/test_layer.py (SetShapeStoreTests): Derive from
4555            SubscriberMixin as well so we can test messages
4556            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
4557            messages
4558            (SetShapeStoreTests.tearDown): Clear the messages again
4559            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
4560            for the modified flag too
4561            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
4562            to check whether SetShapeStore sets the modified flag
4563            (SetShapeStoreTests.test_set_shape_store_different_field_name)
4564            (SetShapeStoreTests.test_set_shape_store_same_field)
4565            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
4566            Add tests for the messages. This checks both the new
4567            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
4568    
4569    2003-06-06  Jan-Oliver Wagner <[email protected]>
4570    
4571            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
4572            the menu items.
4573    
4574    2003-06-05  Frank Koormann  <[email protected]>
4575    
4576            * Thuban/UI/identifyview.py (IdentifyView.__init__):
4577            Layout reimplemented without panel. Make life easier to fit the list
4578            in the dialog.
4579    
4580    2003-06-05  Frank Koormann  <[email protected]>
4581    
4582            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
4583            once on initialisation (Former implementation resulted in multiple
4584            entries for each projection).
4585            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
4586            if set, select the projection found under the specified name. This
4587            overwrites any other selection estimate.
4588            Removed projchoice filling from this method.
4589            (ProjFrame._OnSave, ProjFrame._OnAddToList):
4590            Updated call of ProjFrame.__FillAvailList
4591            (LCCPanel._DoLayout): Moved parameter controls in more common order.
4592    
4593            * Resources/Projections/defaults.proj: Extended defaults representing
4594            various common European projections.
4595    
4596    2003-06-05  Frank Koormann  <[email protected]>
4597    
4598            * Thuban/UI/identifyview.py (IdentifyView.__init__):
4599            Use ListCtrl instead of GridCtrl
4600    
4601            * Thuban/Model/resource.py:
4602            Guess location of .thuban directory from tempdir parent directory.
4603    
4604            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
4605            Guess location of .thuban directory from tempdir parent directory.
4606    
4607    2003-06-04  Bernhard Herzog  <[email protected]>
4608    
4609            Do not cache the values returned by the tree widget's
4610            GetFirstChild and GetNextChild methods because it led to lots of
4611            segfaults. The new way requires more brute force but is more
4612            reliable.
4613    
4614            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
4615            variable layer2id
4616            (LegendTree.find_layer): New method to do with brute force what
4617            layer2id tried to accomplish
4618            (LegendTree._OnMsgLayerChanged)
4619            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
4620            Use find_layer instead of layer2id
4621            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
4622            update layer2id anymore
4623            (LegendTree._OnMsgMapLayersRemoved)
4624            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
4625    
4626    2003-06-03  Thomas Koester  <[email protected]>
4627    
4628            * Thuban/Model/classgen.py (GenQuantiles0): New function.
4629    
4630    2003-06-02  Bernhard Herzog  <[email protected]>
4631    
4632            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
4633            New commands.
4634            (main_menu): Add the new commands.
4635            (MainWindow.TableRename): New. Implementation of the table_rename
4636            command.
4637            (MainWindow.RenameLayer): New. Implementation of the layer_rename
4638            command.
4639    
4640            * Thuban/Model/session.py (Session.AddTable): call self.changed to
4641            set the modified flag
4642    
4643            * test/test_session.py (TestSessionSimple.test_add_table): Test
4644            whether the modified flag is set properly
4645    
4646            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
4647            instead of issue so that the modified flags get updated.
4648    
4649            * test/test_base.py (SomeTitledObject): Derive from Modifiable
4650            instead of Publisher to reflect reality better and to accomodate
4651            the fact that SetTitle now calls changed instead of issue
4652    
4653    2003-06-02  Bernhard Herzog  <[email protected]>
4654    
4655            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
4656            acquisition has to happen before the try in a try-finally.
4657    
4658    2003-06-02  Bernhard Herzog  <[email protected]>
4659    
4660            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
4661            possible that a layer is removed that is not currently selected in
4662            the legend so don't check for this.
4663    
4664    2003-05-30  Bernhard Herzog  <[email protected]>
4665    
4666            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
4667            variables to None that have direct or indirect references to
4668            shapefiles or dbf files to make sure that they do go away and the
4669            files are closed.
4670    
4671    2003-05-30  Bernhard Herzog  <[email protected]>
4672    
4673            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
4674            availImgListIndices when a new image list is created
4675            
4676    2003-05-30  Bernhard Herzog  <[email protected]>
4677    
4678            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
4679            changing_selection to indicate whether the LegendTree code itself
4680            is currently changing the selection
4681            (LegendTree.normalize_selection): New method to normalize the
4682            selection by selecting the layer item even if the user clicked on
4683            the classification.
4684            (LegendTree._OnSelChanged): normalize the selection. This works
4685            around a bug in wx which doesn't keep track of the selection
4686            properly when subtrees are deleted.
4687    
4688    2003-05-30  Bernhard Herzog  <[email protected]>
4689    
4690            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
4691            maximum and minimum scale factors.
4692    
4693            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
4694            changes in classgen.py
4695    
4696    2003-05-30  Jonathan Coles   <[email protected]>
4697    
4698            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
4699            all the methods functions. Fixes RTBug #1903.
4700    
4701            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
4702            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
4703            RTBug #1907.
4704    
4705            * Thuban/UI/classgen.py: Use classgen functions that were part
4706            of the ClassGenerator class. Put try/finally blocks around
4707            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
4708            RTBug #1904.
4709    
4710            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
4711    
4712            * Thuban/UI/legend.py: The legend was cleared and repopulated any
4713            time something changed which caused some state to be lost such
4714            as which children were expanded or collapsed. Fixes RTBug #1901.
4715            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
4716            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
4717            the legend but not in the map.
4718            (LegendTree.__FillTree): Move main functionality out into smaller
4719            methods that can be used by other methods.
4720            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
4721            if they are available.
4722            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
4723            that we override the wxTreeCtrl method. Iterate over children
4724            and call __RemoveLayer.
4725            (LegendTree.__AddLayer): New. Add a new layer to the legend.
4726            (LegendTree.__RemoveLayer): Remove a layer from the legend.
4727            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
4728            Should only be called with the id of a layer branch.
4729            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
4730            Returns the root item or creates one if necessary.
4731    
4732            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
4733            ProjectRasterFile with tuple arguments instead of strings.
4734    
4735            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
4736            with try/finally. Fixes RTBug #1904.
4737    
4738            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
4739            with try/finally. Fixes RTBug #1904.
4740            (MapCanvas.FitSelectedToWindow): If a single point is selected
4741            simply center it on the display. Fixes RTBug #1849.
4742    
4743            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
4744            to be compiled as a standalone app. Now the code can only be
4745            called from Python which simplifies the parameter passing.
4746            (ProjectRasterFile): Handle Python arguments. Remove code that
4747            checks for a destination dataset. Add more clean up code.
4748    
4749            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
4750            TestMapWithContents.test_lower_layer_bottom):
4751            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
4752            Fixes RTBug #1907.
4753    
4754            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
4755            extent to the map when the legend is toggled. Fixes RTBug #1881.
4756    
4757    2003-05-29  Jan-Oliver Wagner <[email protected]>
4758    
4759            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
4760            unsubscribes all that is subcribed in __init__.
4761    
4762    2003-05-28  Bernhard Herzog  <[email protected]>
4763    
4764            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
4765            (MainWindow.CanDuplicateLayer): New methods to implement the
4766            Layer/Duplicate command.
4767            (layer_duplicate command): New.
4768            (main_menu): Add layer_duplicate to the Layer menu.
4769    
4770    2003-05-28  Bernhard Herzog  <[email protected]>
4771    
4772            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
4773            renderer so that NULL/None values get displayed differently (by a
4774            gray rectangle).
4775            (TableGrid.__init__): Override the default renderers
4776    
4777    2003-05-28  Bernhard Herzog  <[email protected]>
4778    
4779            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
4780            classification to "None" if the type of the field has changed.
4781    
4782            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
4783            test for the Layer.SetShapeStore method
4784    
4785    2003-05-28  Jan-Oliver Wagner <[email protected]>
4786    
4787            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
4788            does not necessarily have a filename).
4789    
4790    2003-05-28  Jan-Oliver Wagner <[email protected]>
4791    
4792            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
4793            sort the selection list for the dialog.
4794    
4795    2003-05-28  Frank Koormann  <[email protected]>
4796    
4797            * extensions/thuban/wxproj.cpp
4798            (project_point): Removed cast to int for projected point coordinates.
4799            (shape_centroid): Return last point if all polygon vertices fall
4800            to one point.
4801    
4802    2003-05-28  Bernhard Herzog  <[email protected]>
4803    
4804            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
4805            with layers that don't have shapestores, i.e. raster layers.
4806    
4807    2003-05-28  Bernhard Herzog  <[email protected]>
4808    
4809            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
4810            when determining the title from the filename.
4811    
4812            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
4813            reflect changes in the way the title is derived from the filename
4814    
4815    2003-05-28  Frank Koormann  <[email protected]>
4816    
4817            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
4818            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
4819    
4820    2003-05-27  Bernhard Herzog  <[email protected]>
4821    
4822            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
4823            delegate SelectedLayer.
4824            (MainWindow.LayerUnjoinTable): Implement.
4825            (_can_unjoin): New. Helper function for the sensitivity of the
4826            layer/unjoin command.
4827    
4828            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
4829            (DerivedShapeStore.OrigShapeStore): New. Return the original
4830            shapestore. Used to figure out how to unjoin.
4831            (DerivedShapeStore.Shapefile): Fix a typo.
4832    
4833    2003-05-27  Bernhard Herzog  <[email protected]>
4834    
4835            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
4836            well
4837            (JoinDialog.__init__): Use the layer parameter and only build the
4838            left choice when a layer is given
4839            (JoinDialog.OnJoin): Handle layer joins as well
4840            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
4841            that the user selects the "Select..." item. The sensitivitly
4842            updating is now in update_sensitivity
4843            (JoinDialog.y): New method to refactor the sensitivity update of
4844            the join button into its own method.
4845    
4846            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
4847    
4848    2003-05-27  Bernhard Herzog  <[email protected]>
4849    
4850            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
4851            iff there are unreferenced tables in the session
4852    
4853    2003-05-27  Bernhard Herzog  <[email protected]>
4854    
4855            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
4856    
4857            * Thuban/Model/session.py (Session.UnreferencedTables): New method
4858            to return tables that are not referenced by other tables or shape
4859            stores and can be removed.
4860            (Session.RemoveTable): Issue a TABLE_REMOVED message after
4861            removing the table
4862    
4863            * Thuban/UI/mainwindow.py: Remove unused imports
4864            (MainWindow.TableClose): Implement.
4865    
4866            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
4867            messages so that the frame will be automatically closed when a new
4868            session is opened or the table is removed.
4869            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
4870            __init__
4871            (TableFrame.close_on_session_replaced)
4872            (TableFrame.close_on_table_removed): New. Subscribers that close
4873            the window
4874    
4875            * test/test_session.py (TestSessionMessages.test_remove_table)
4876            (TestSessionSimple.test_remove_table): Move the test to
4877            TestSessionSimple and add test for the TABLE_REMOVED message
4878            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
4879            (TestSessionSimple.test_unreferenced_tables) New. Test for the
4880            UnreferencedTables method.
4881            (UnreferencedTablesTests): New. Class with some more sophisticated
4882            tests for UnreferencedTables.
4883    
4884    2003-05-27  Frank Koormann  <[email protected]>
4885    
4886            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
4887            display has some unwanted side effects. Removed again.
4888    
4889    2003-05-27  Frank Koormann  <[email protected]>
4890    
4891            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
4892    
4893            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
4894    
4895    2003-05-27  Jan-Oliver Wagner <[email protected]>
4896    
4897            * test/test_menu.py (MenuTest.test): Added test for
4898            Menu.RemoveItem().
4899    
4900            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
4901            the menu.
4902    
4903    2003-05-27  Frank Koormann  <[email protected]>
4904            
4905            Nonmodal dialogs without parent (i.e. they can fall behind the main
4906            window)
4907    
4908            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
4909            all dialogs in the dialogs dictionary and the canvas.
4910    
4911            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
4912            parent, i.e. can fall behind other windows.
4913            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
4914            dictionary before removing it.
4915    
4916            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
4917    
4918            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
4919            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
4920            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
4921    
4922    2003-05-27  Bernhard Herzog  <[email protected]>
4923    
4924            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
4925            tableview dialog
4926            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
4927            Also, don't use the table's titles as the dialog names. The titles
4928            aren't guaranteed to be unique.
4929            (MainWindow.TableOpen): Open a table view dialog after opening the
4930            table
4931    
4932    2003-05-27  Bernhard Herzog  <[email protected]>
4933    
4934            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
4935            effect can be achieved by simply closing the window showing the
4936            table.
4937            (MainWindow.TableHide): Removed.
4938            (main_menu): Removed "table_hide"
4939    
4940    2003-05-27  Frank Koormann  <[email protected]>
4941    
4942            Fix legend tree display problems under Win32
4943    
4944            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
4945            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
4946            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
4947    
4948            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
4949    
4950    2003-05-27  Jan-Oliver Wagner <[email protected]>
4951    
4952            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
4953            'after' now allows to insert separators almost anywhere in the menu.
4954    
4955    2003-05-27  Frank Koormann  <[email protected]>
4956    
4957            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
4958            "S" of selection box label to hint on hot key (Alt-S). Works under
4959            Win32 but is ignored under GTK.
4960    
4961    2003-05-26  Frank Koormann  <[email protected]>
4962    
4963            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
4964            Center Choices.
4965    
4966    2003-05-26  Bernhard Herzog  <[email protected]>
4967    
4968            Remove the Precision methods again. They're too DBF specific to be
4969            part of the table interface and they're only used in table_to_dbf
4970            anyway.
4971            
4972            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
4973            fixed precision of 12 for doubles.
4974            (TransientTableBase.Precision): Removed
4975            (AutoTransientTable.Width): Delegate to self.table.
4976    
4977            * Thuban/Model/table.py (DBFTable.Precision)
4978            (MemoryTable.Precision): Removed.
4979            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
4980            (table_to_dbf): Use a fixed precision of 12 for floats unless the
4981            column object specifies something else.
4982    
4983            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
4984            test for table_to_dbf
4985    
4986    2003-05-26  Bernhard Herzog  <[email protected]>
4987    
4988            * test/test_transientdb.py
4989            (TestTransientTable.run_iceland_political_tests): Fix a comment.
4990    
4991    2003-05-26  Bernhard Herzog  <[email protected]>
4992    
4993            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
4994            implementation. Mark parts of the file format strings for
4995            localization.
4996    
4997            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
4998            file and add the table to the tables managed by the session
4999    
5000            * test/test_session.py (TestSessionSimple.test_open_table_file):
5001            New. test case for OpenTableFile
5002    
5003    2003-05-26  Jan-Oliver Wagner <[email protected]>
5004    
5005            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
5006            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
5007            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
5008            Replace the true/false of wxWindows by True/False of Python 2.2.1.
5009    
5010    2003-05-26  Jan-Oliver Wagner <[email protected]>
5011    
5012            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
5013            already a selection present, update the grid accordingly.
5014    
5015            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
5016            resizeable and increase its initial size.
5017    
5018    2003-05-26  Frank Koormann  <[email protected]>
5019    
5020            Table export functionality
5021    
5022            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
5023            Return width (in characters) for a column.
5024            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
5025            (table_to_dbf): Write table to dbf file.
5026            (table_to_csv): Write table to csv file.
5027    
5028            * Thuban/Model/transientdb.py (TransientTableBase.Width,
5029            TransientTableBase.Precision): Return column width and precision.
5030    
5031            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
5032            or table_to_csv depending on file selection.
5033    
5034            * test/test_dbf_table.py:
5035            Test table_to_dbf (extension of former part of test).
5036    
5037            * test/test_csv_table.py:
5038            Test table_to_csv.
5039    
5040    2003-05-23  Jan-Oliver Wagner <[email protected]>
5041    
5042            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
5043            Use QueryTableFrame instead of TableFrame.
5044    
5045            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
5046            table window with 'Layer Table:' instead of 'Table:'.
5047    
5048    2003-05-23  Jan-Oliver Wagner <[email protected]>
5049    
5050            Give all tables a title via mix-in TitledObject.LayerShowTable
5051    
5052            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
5053            only if it exists.
5054    
5055            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
5056            and call its init-method with a default title. Remove Title() method.
5057    
5058            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
5059            AutoTransientTable): mix-in TitledObject and call its init-method with
5060            a default title. Remove Title() method.
5061    
5062    2003-05-23  Bernhard Herzog  <[email protected]>
5063    
5064            * Thuban/Model/session.py (Session.AddShapeStore): Define
5065            AddShapeStore analogously to AddTable.
5066    
5067            * test/test_session.py (TestSessionSimple.test_add_shapestore):
5068            New. Test for AddShapeStore
5069    
5070    2003-05-23  Jan-Oliver Wagner <[email protected]>
5071    
5072            Introducing QueryTableFrame and a very coarse ShowTable implementation.
5073    
5074            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
5075            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
5076            The latter implements the selection GUI without dependency on a layer.
5077            LayerTableFrame now is derived from QueryTableFrame and connects
5078            to a layer.
5079    
5080            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
5081            implementation that still needs work.
5082    
5083            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
5084    
5085    2003-05-22  Frank Koormann  <[email protected]>
5086    
5087            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
5088            Added "outer_join = False" as optional parameter.
5089            (TransientJoinedTable.create): If outer join is true, perform a
5090            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
5091            the left table. Records not matching are filled with 0 / None.
5092    
5093            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
5094            (JoinDialog.OnJoin): Consider outer join check box.
5095    
5096    2003-05-22  Bernhard Herzog  <[email protected]>
5097    
5098            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
5099            somewhat safer way. Storing the traceback in a local variable can
5100            lead to memory leaks
5101    
5102    2003-05-22  Bernhard Herzog  <[email protected]>
5103    
5104            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
5105            the wxMessageDialog's Destroy() method.
5106    
5107    2003-05-22  Frank Koormann  <[email protected]>
5108    
5109            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
5110            TransientTable.Title()
5111    
5112    2003-05-22  Frank Koormann  <[email protected]>
5113    
5114            Join Dialog, initial version.
5115    
5116            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
5117    
5118            * Thuban/UI/join.py (JoinDialog): Functional implementation of
5119            former framework. Renamed Table1/Table2 to LeftTable/RightTable
5120            in all occurences.
5121    
5122            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
5123            Typo fixed.
5124    
5125    2003-05-22  Bernhard Herzog  <[email protected]>
5126    
5127            Give the tables titles so that the GUI can display more meaningful
5128            names. For now the titles are fixed but depend on e.g. filenames
5129            or the titles of the joined tables.
5130    
5131            * Thuban/Model/transientdb.py (TransientTable.Title)
5132            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
5133    
5134            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
5135    
5136            * test/test_transientdb.py
5137            (TestTransientTable.test_auto_transient_table_title): New. Test
5138            for the Title method
5139            (TestTransientTable.test_transient_joined_table)
5140            (TestTransientTable.test_transient_table): Add test for the Title
5141            methods
5142    
5143            * test/test_memory_table.py (TestMemoryTable.test_title): New.
5144            Test for the Title method
5145    
5146            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
5147            the Title method
5148    
5149    2003-05-22  Bernhard Herzog  <[email protected]>
5150    
5151            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
5152            Provide a better way to destroy the layers
5153            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
5154            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
5155            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
5156            the new way to destroy the layers.
5157            (TestLayer.test_derived_store): New. Test for using a layer with a
5158            DerivedShapeStore
5159    
5160            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
5161            filename if the shape store actually has one.
5162    
5163    2003-05-22  Bernhard Herzog  <[email protected]>
5164    
5165            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
5166            for the filename
5167    
5168            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
5169            for the FileName method
5170            (TestDBFTableWriting.test_write): Fix spelling of filename
5171    
5172    2003-05-22  Thomas Koester  <[email protected]>
5173    
5174            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
5175            from SciParam that now really is immutable.
5176    
5177    2003-05-22  Frank Koormann  <[email protected]>
5178    
5179            Layer Top/Bottom placement added to legend.
5180    
5181            * Thuban/UI/legend.py
5182            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
5183            bound to tool events.
5184            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
5185            New, methods binding the event methods with the map methods.
5186    
5187            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
5188            layer at top/bottom of layer stack.
5189    
5190            * Resources/Bitmaps/top_layer.xpm: New button icon.
5191    
5192            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
5193    
5194    2003-05-22  Bernhard Herzog  <[email protected]>
5195    
5196            * Thuban/Model/session.py (Session.RemoveTable): New method to
5197            remove tables
5198    
5199            * test/test_session.py (TestSessionSimple.test_remove_table): New.
5200            Test for RemoveTable
5201    
5202    2003-05-22  Thomas Koester  <[email protected]>
5203    
5204            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
5205            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
5206    
5207    2003-05-22  Bernhard Herzog  <[email protected]>
5208    
5209            Implement a way to discover dependencies between tables and
5210            shapestores.
5211    
5212            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
5213            (TransientJoinedTable.Dependencies)
5214            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
5215            interface
5216            (TransientJoinedTable.__init__): Keep tack of the original table
5217            objects in addition to the corresponding transient tables.
5218    
5219            * Thuban/Model/table.py (DBFTable.Dependencies)
5220            (MemoryTable.Dependencies): New. Implement the dependencies
5221            interface
5222    
5223            * Thuban/Model/data.py (ShapeTable): New. Helper class for
5224            ShapefileStore
5225            (ShapefileStore.__init__): Use ShapeTable instead of
5226            AutoTransientTable
5227            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
5228            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
5229            methods for filename and type
5230            (ShapefileStore.Dependencies): New. Implement the dependencies
5231            interface
5232            (DerivedShapeStore): New class to replace SimpleStore. The main
5233            difference to SimpleStore is that it depends not on a shapefile
5234            but another shapestore which expresses the dependencies a bit
5235            better
5236            (SimpleStore.__init__): Add deprecation warning.
5237    
5238            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
5239            Test for the Dependencies method.
5240    
5241            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
5242            New. Test for the Dependencies method.
5243    
5244            * test/test_transientdb.py
5245            (TestTransientTable.test_auto_transient_table_dependencies): New.
5246            Test for the Dependencies method.
5247            (TestTransientTable.test_transient_joined_table): Add test for the
5248            Dependencies method.
5249    
5250            * test/test_session.py (TestSessionSimple.setUp)
5251            (TestSessionSimple.tearDown): New. Implement a better way to
5252            destroy the sessions.
5253            (TestSessionSimple.test_initial_state)
5254            (TestSessionSimple.test_add_table): Bind session to self.session
5255            so that it's destroyed by tearDown
5256            (TestSessionSimple.test_open_shapefile): New. Test for
5257            OpenShapefile and the object it returns
5258    
5259    2003-05-22  Bernhard Herzog  <[email protected]>
5260    
5261            * Thuban/Model/session.py (Session.AddTable): New method to
5262            register tables with the session.
5263            (Session.Tables): Return the tables registered with AddTable too.
5264    
5265            * test/test_session.py (TestSessionSimple.test_add_table): New.
5266            Test case for the AddTable method
5267    
5268    2003-05-22  Frank Koormann  <[email protected]>
5269    
5270            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
5271            lower right corner, center labels for selections, initialize controls
5272            in reasonable order for keyboard navigation.
5273    
5274            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
5275            (ProjFrame.__DoOnProjAvail): Determine position of current projection
5276            using the wxListBox.FindString() method. Still a problem (#1886)
5277    
5278            * Thuban/UI/classifier.py
5279            (Classifier.__init__, SelectPropertiesDialog.__init__)
5280    
5281            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
5282            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
5283            different classification types from here to __init__.
5284            (GenUniquePanel.__init__): Set the column width of the first field
5285            in the Field ListCtrl to the full width.
5286    
5287            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
5288            Button to 'Export'. Center Buttons in Selection Box, set Focus to
5289            Grid.
5290            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
5291            changes focus to the Selection when pressing "Alt-S".
5292    
5293            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
5294            the text if not visible. The italic font sometimes exceeds the
5295            rendering area.
5296    
5297    2003-05-21  Jonathan Coles   <[email protected]>
5298    
5299            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
5300            to OnClose so that Thuban closes correctly.
5301    
5302            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
5303            DockFrame.OnClose, not DockFrame._OnClose.
5304    
5305    2003-05-21  Jonathan Coles   <[email protected]>
5306    
5307            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
5308            references to 'inf' and use new Range __init__ to pass floats
5309            directly rather than converting them to strings first.
5310            Fixes RTBug #1876.
5311    
5312            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
5313            Use new Range ___init__ to pass floats.
5314    
5315            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
5316            filename is a valid image file. Throw IOError otherwise.
5317    
5318            * Thuban/Model/range.py: Brought over new Range from SciParam that
5319            is immutable and has an __init__ which can accept floats.
5320    
5321            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
5322            into try block. AddLayer doesn't throw any exceptions anymore.
5323            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
5324            try block.
5325    
5326            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
5327            the first item in choices. Fixes RTBug #1882.
5328    
5329            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
5330            has gone to 0 which is a serious problem. abort.
5331            (MapRenderer.draw_raster_layer): Catch IOError seperately and
5332            print the error from GDAL.
5333    
5334            * Thuban/UI/tableview.py (TableGrid.__init__): Call
5335            ToggleEventListeners to turn on listening.
5336            (TableGrid.ToggleEventListeners): New. Turns event listening on
5337            and off so as to prevent excessive messages.
5338            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
5339            to suppress excessive messages when selecting many rows.
5340            Fixes RTBug #1880.
5341    
5342            * Thuban/UI/view.py: Added checks against if scale == 0. This
5343            is a serious problem that can occur when an image without
5344            geo data is loading and causes the map projection bounds to
5345            go to infinity. Right now, the solution is to simply try
5346            to recover.
5347    
5348            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
5349            to set the MFILEReceiver attributes even if the data is NULL.
5350    
5351            * extensions/thuban/gdalwarp.cpp: Improved the error handling
5352            and passed GDAL messages back up to the Python layer. Also
5353            tried to fix some memory leaks that were present in the original
5354            utility but didn't matter because the program aborted.
5355    
5356            * test/test_range.py: Copied over tests from SciParam. Removed
5357            tests against importing. Fixes RTBug #1867.
5358    
5359    2003-05-21  Bernhard Herzog  <[email protected]>
5360    
5361            * test/test_load.py: Remove unused imports and restructure the
5362            test code
5363            (LoadSessionTest): Split into one class for each test and turn
5364            LoadSessionTest itself into the base class for all such session
5365            tests.
5366            (ClassificationTest): New base class for load tests that test
5367            classifications
5368            (TestSingleLayer, TestLayerVisibility, TestClassification)
5369            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
5370            for the individual tests
5371    
5372            * test/support.py (FileLoadTestCase.filename): New base class for
5373            file loading tests
5374    
5375    2003-05-21  Jan-Oliver Wagner <[email protected]>
5376    
5377            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
5378            Mercator' to 'UTM Zone 32' as a more convenient example.
5379            Added 'Gauss Krueger Zone 6'.
5380    
5381            * Data/iceland_sample_raster.thuban: political polygon now
5382            filled transparent to have the raster image visible at once.
5383    
5384    2003-05-21  Frank Koormann  <[email protected]>
5385    
5386            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
5387            OnClose() to keep in sync with extensions. Internally Thuban
5388            still uses "underscored" names.
5389    
5390    2003-05-20  Jonathan Coles   <[email protected]>
5391    
5392            This puts back Raster layer support. These layers support projections
5393            through the GDAL library. Currently, the CVS version is being used.
5394            There are no Debian packages available although this may change soon.
5395            A GDAL driver was extended to support writing to memory rather to
5396            files.
5397    
5398            There is still some work that needs to be done, such as some error
5399            handling when loading invalid images or when there is a problem
5400            projecting the image. This putback simply checks in the majority
5401            of the work.
5402    
5403            * setup.py: Add gdalwarp library extension.
5404    
5405            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
5406            Defaults to False, but can be overridden by subclasses if they
5407            support classification.
5408            (RasterLayer): New. Defines a new layer that represents an
5409            image.
5410    
5411            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
5412            tag handler.
5413            (SessionLoader.start_layer): Encode the filename.
5414            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
5415            New. Supports reading a rasterlayer tag.
5416    
5417            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
5418    
5419            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
5420            get a string in Latin1. If we get such as string convert it to
5421            unicode first, otherwise leave if alone before encoding.
5422            (SessionSaver.write_layer): Add support for writing both Layers
5423            and RasterLayers.
5424    
5425            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
5426            The right argument may not be a string, it could also be a Column.
5427    
5428            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
5429            Make initial window size 600x400. Fixes RTBug #1872.
5430    
5431            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
5432            the dialog is constructed so that we can support layers that
5433            do not have classifications.
5434            (Classifier._OnTry): Only build a classification if the layer
5435            supports one.
5436    
5437            * Thuban/UI/legend.py: Change all checks that a layer is an
5438            instance of Layer into checks against BaseLayer.
5439            (LegendTree.__FillTreeLayer): Only add children to a branch if
5440            the layer supports classification.
5441    
5442            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
5443            MainWindow.OpenSession): Don't proceed with an action if the
5444            user chooses Cancel when they are asked to save changes.
5445            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
5446            user to select an image file. Create a new RasterLayer and add
5447            it to the map.
5448    
5449            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
5450            for rendering RasterLayer layers.
5451            (MapRenderer.draw_raster_layer): Actually method that calls
5452            the GDALWarp python wrapper and constructs an image from the
5453            data returned.
5454    
5455            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
5456            Choices symbols to match those used in the table query method.
5457            Replace deprecated method calls on table with new method names.
5458    
5459            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
5460            how small the scale can get. This still needs more testing.
5461    
5462            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
5463            Provides a driver to output in .bmp format.
5464    
5465            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
5466            New. Provides IO routines which write to memory, rather than a file.
5467    
5468            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
5469            of the gdalwarp utility provided in GDAL. Added function calls
5470            that can be accessed from python.
5471    
5472            * Data/iceland_sample_raster.thuban: New. Sample file that uses
5473            a raster layer.
5474    
5475            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
5476            layer image data.
5477    
5478            * Doc/thuban.dtd: Added rasterlayer attribute definition.
5479    
5480            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
5481            tests associated with the raster layer code.
5482    
5483            * test/test_transientdb.py
5484            (TestTransientTable.test_auto_transient_table_query): Added a test
5485            for using a Column object as the "right" parameter to a query.
5486    
5487    2003-05-19  Frank Koormann  <[email protected]>
5488    
5489            * Thuban/version.py (get_changelog_date):
5490            Catch exceptions if ChangeLog does not exist.
5491    
5492            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
5493    
5494    2003-05-19  Frank Koormann  <[email protected]>
5495    
5496            Extended version information for Thuban
5497    
5498            * Thuban/version.py: New, version information for Thuban: Last
5499            modification date and last ChangeLog entry date.
5500    
5501            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
5502            information: Display Thuban, wxPython and Python version.
5503    
5504    2003-05-16  Bernhard Herzog  <[email protected]>
5505    
5506            * Thuban/Model/save.py: Remove some unused imports including the
5507            __future__ import for nested_scopes as Thuban relies on Python 2.2
5508            now.
5509            (XMLWriter.encode): Remove the special case for a None argument.
5510            In the saver encode is always called with a string argument.
5511    
5512    2003-05-16  Bernhard Herzog  <[email protected]>
5513    
5514            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
5515            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
5516            of the bug was that e.g. float("1.2") would fail. Thuban now
5517            requires 2.4.x.
5518            
5519    2003-05-16  Frank Koormann   <[email protected]>
5520    
5521            Printing enhancement and WMF export (under Win32)
5522    
5523            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
5524            ScreenRenderer. Renders Map, Legend and Scalebar for export.
5525            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
5526            PrintRender.
5527    
5528            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
5529            to fullfil information needed for PrinterRenderer.
5530            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
5531            (MapCanvas.Print): Adapted to new MapPrintout.
5532            (OutputTransform): General calculations to transform from canvas
5533            coordinates to export/printing devices.
5534    
5535            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
5536            new method_command to call ExportMap, with platform dependency (only
5537            __WXMSW__)
5538      
5539            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
5540            of scalebar drawing area as new parameters.
5541            
5542            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
5543    
5544            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
5545            Update to extended scalebar.DrawScalebar header.
5546    
5547            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
5548    
5549            * test/test_scalebar.py: Made test executable as standalone.
5550    
5551    2003-05-16  Bernhard Herzog  <[email protected]>
5552    
5553            * Thuban/Model/table.py (Table): Remove this compatibility alias
5554            for DBFTable.
5555    
5556            * test/test_table.py: Import DBFTable as Table because that alias
5557            doesn't exist anymore.
5558    
5559            * Thuban/UI/classgen.py: Remove some unused imports
5560    
5561    2003-05-14  Jonathan Coles   <[email protected]>
5562    
5563            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
5564            Fix docstring.
5565            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
5566            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
5567            values of the supplied range to determine the beginning and end
5568            bounds of the generated classes.
5569    
5570            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
5571            do not have a leading 0 (.5 is now accepted as well as 0.5).
5572    
5573            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
5574            call to ClassGenerator.GenUniformDistribution.
5575    
5576            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
5577            layout bug with the 'Projection' label.
5578    
5579            * test/support.py (FloatTestCase): New. Needed for the Range tests.
5580    
5581            * test/test_range.py: New. Imported from SciParam.
5582    
5583    2003-05-12  Jonathan Coles   <[email protected]>
5584    
5585            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
5586            to table.UniqueValues() with calls that retrieve all the values
5587            from the table. This will need to be replaced by a method on table
5588            which can simply return the list (perhaps more efficiently).
5589    
5590    2003-05-12  Jonathan Coles   <[email protected]>
5591    
5592            The return value of ClassGenerator.CalculateQuantiles has changed.
5593            Refer to the documentation for details.
5594    
5595            * test/test_classgen.py: Modified Quantile tests to use the
5596            new return values.
5597    
5598            * Thuban/Model/classgen.py
5599            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
5600            use new return values from CalculateQuantiles to produce the correct
5601            range bounds in the Classification.
5602            (ClassGenerator.CalculateQuantiles): Add more comments describing
5603            the return values and parameters. Make minor adjustments to improve
5604            the legibility of the code. Fix problem with adjusted not being set
5605            in most cases.
5606    
5607    2003-05-12  Frank Koormann <[email protected]>
5608            
5609            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
5610            and latin1. Fixes #1851 finally.
5611    
5612    2003-05-09  Jonathan Coles   <[email protected]>
5613    
5614            * test/test_classgen.py: New. Tests the Quantile algorithm.
5615    
5616            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
5617            Clean up debugging statement, add comments, fix a small bug in the
5618            returned adjusted percentiles.
5619            
5620    2003-05-09  Jonathan Coles   <[email protected]>
5621    
5622            Introduces Range class from SciParam into the ClassGroupRange class,
5623            and such ranges can now be saved and loaded from disk.
5624    
5625            Quantiles are now available in the Classification Generator.
5626    
5627            Initial support for building Queries on a table. Doesn't do anything
5628            but run some tests.
5629    
5630            * Thuban/Model/classification.py: Explicit imports.
5631            (ClassGroupRange): Use the Range class to store the underlying
5632            range information. The interface remains the same, except for
5633            GetRange(), and you can also supply a Range object as the min
5634            parameter to SetRange or __init__.
5635    
5636            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
5637            string appropriately for use in Thuban. Fixes RTbug #1851.
5638            (SessionLoader.end_projection): Handle the context of the
5639            projection tag a bit better by looking at what objects are not
5640            None. There was an assumption that a projection tag for a map
5641            could occur before any layers.
5642            (SessionLoader.start_clrange): Provide backward compatibility for
5643            reading min/max values as well as the new range parameter.
5644    
5645            * Thuban/Model/map.py: Explicit imports.
5646    
5647            * Thuban/Model/resource.py: Import _.
5648            (ProjFileSaver.write): write header using projfile.dtd.
5649    
5650            * Thuban/Model/save.py: Explicit imports.
5651            (XMLWriter.encode): New. Encode the given string from a format
5652            used by Thuban into UTF-8. Fixes RTbug #1851.
5653    
5654            * Thuban/UI/classgen.py: Explicit imports.
5655            (ClassGenDialog.__init__): Clean up the code and add support
5656            for Quantiles.
5657            (ClassGenDialog.OnOK): Add support for Quantiles.
5658            (GenQuantilesPanel): New. Input panel for Quantiles.
5659            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
5660            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
5661    
5662            * Thuban/Model/classgen.py: New. Contains all the classes named above.
5663    
5664            * Thuban/UI/classifier.py: Explicit imports.
5665            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
5666            ClassTable.SetValueAsCustom): Reworked to use new Range class.
5667    
5668            * Thuban/UI/legend.py: Explicit imports.
5669    
5670            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
5671            a Table menu and associated method calls.
5672            (MainWindow.choose_color): Removed. No longer needed.
5673    
5674            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
5675            should be disabled if no projection is selected in the available
5676            list.
5677    
5678            * Thuban/UI/renderer.py: Explicit imports.
5679    
5680            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
5681            with correctly selecting the rows and issuing the right events.
5682            Be sure to call Skip() to allow the grid to do some of its own
5683            handling which allows the rows to actually be selected.
5684            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
5685            selecting multiple shapes.
5686            (LayerTableFrame): Support for building Queries.
5687            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
5688    
5689            * Thuban/UI/tree.py: Explicit imports.
5690    
5691            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
5692            table view can call it.
5693    
5694            * test/test_classification.py: Explicit imports.
5695            (TestClassification.test_ClassGroupRange): Fix test for new
5696            Range class.
5697    
5698            * Doc/thuban.dtd: Add range parameter for clrange.
5699    
5700            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
5701            object in ClassGroupRange, and also uesd for inputting ranges in
5702            the classifer table and elsewhere.
5703    
5704            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
5705            yet.
5706    
5707    2003-05-09  Frank Koormann <[email protected]>
5708    
5709            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
5710    
5711    2003-05-08  Frank Koormann <[email protected]>
5712    
5713            Coding style updates
5714    
5715            * test/test_scalebar.py: Replaced tab indentation by spaces.
5716    
5717            * Thuban/UI/scalebar.py: Explicit imports.
5718    
5719    2003-05-08  Frank Koormann <[email protected]>
5720    
5721            * Thuban/UI/scalebar.py
5722            (ScaleBar.DrawScalebar): Format string bug fixed.
5723    
5724    2003-05-08  Frank Koormann <[email protected]>
5725    
5726            Reorganization of scalebar component (no wx in Thuban/Model)
5727    
5728            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
5729            (deriveInterval):
5730            Calculate scalebar interval and unit which fits in width for scale.
5731            (roundInterval): Round float.
5732    
5733            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
5734    
5735            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
5736    
5737            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
5738    
5739    2003-05-08  Frank Koormann <[email protected]>
5740    
5741            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
5742            Initialize ScaleBar with canvas.map
5743    
5744            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
5745            round intervals to display smarter lengths
5746            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
5747            layer. If the maps has no projection applied grey the scalebar.
5748    
5749    2003-05-07  Frank Koormann <[email protected]>
5750            
5751            Basic Scalebar features added.
5752    
5753            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
5754    
5755            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
5756            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
5757            and the renderer.
5758    
5759            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
5760    
5761            * Thuban/UI/messages.py: SCALE_CHANGED added.
5762    
5763    2003-05-07  Bernhard Herzog  <[email protected]>
5764    
5765            * Thuban/Model/session.py (Session.__init__): New instance
5766            variable shapestores to hold a list of all open shapestore objects
5767            (Session.ShapeStores): New. Accessor method for the shapestores
5768            list.
5769            (Session._add_shapestore, Session._clean_weak_store_refs): New.
5770            Internal methods to maintain the shapestores list.
5771            (Session.Tables): New. Return all tables open in the session.
5772            (Session.OpenShapefile): Insert the new ShapeStore into the
5773            shapestores list.
5774    
5775            * test/test_session.py (TestSessionSimple.test_initial_state): Add
5776            tests for ShapeStores and Tables
5777            (TestSessionWithContent.test_shape_stores)
5778            (TestSessionWithContent.test_tables): New. Test cases for
5779            ShapeStores and Tables
5780    
5781    2003-05-07  Bernhard Herzog  <[email protected]>
5782    
5783            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
5784            Add comments about the optimizations used.
5785            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
5786            Implement the ReadValue table interface method.
5787    
5788            * test/test_transientdb.py
5789            (TestTransientTable.run_iceland_political_tests)
5790            (TestTransientTable.test_transient_joined_table): Add tests for
5791            ReadValue
5792    
5793    2003-05-07  Frank Koormann <[email protected]>
5794    
5795            * Resources/Bitmaps/fulllayerextent.xpm,
5796            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
5797            new icons.
5798    
5799    2003-05-06  Bernhard Herzog  <[email protected]>
5800    
5801            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
5802            New. Simply delegate to the transient table's version.
5803    
5804            * test/test_transientdb.py
5805            (TestTransientTable.test_auto_transient_table_query): New. Test
5806            case for AutoTransientTable's SimpleQuery
5807    
5808    2003-05-06  Bernhard Herzog  <[email protected]>
5809    
5810            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
5811            Implement a simple query method for the query dialog
5812            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
5813            the row index or shapeid.
5814            (TransientTable.create): Insert the right value of the row index
5815            (TransientJoinedTable.create): Copy the row index of the left
5816            table to the joined result table
5817    
5818            * test/test_transientdb.py
5819            (TestTransientTable.test_transient_table_read_twice): Fix
5820            doc-string
5821            (TestTransientTable.test_transient_table_query): New. Test for the
5822            SimpleQuery method
5823    
5824    2003-05-06  Bernhard Herzog  <[email protected]>
5825    
5826            Convert all table users to use the new table interface. This only
5827            covers Thuban itself, not GREAT-ER or other applications built on
5828            Thuban yet, so the compatibility interface stays in place for the
5829            time being but it now issues DeprecationWarnings.
5830    
5831            Finally, the new Table interface has a new method, HasColumn.
5832    
5833            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
5834            issue deprecation warnings when they're. The warnings refer to the
5835            caller of the method.
5836            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
5837            for the deprecation warnings
5838    
5839            * test/test_table.py: Ignore the deprecation warnings for the old
5840            table in the tests in this module. The purpose of the tests is to
5841            test the old interface, after all.
5842    
5843            * test/test_transientdb.py
5844            (TestTransientTable.run_iceland_political_tests): Use the
5845            constants for the types. Add a test for HasColumn
5846            (TestTransientTable.test_transient_joined_table): Adapt to new
5847            table interface. Add a test for HasColumn
5848            (TestTransientTable.test_transient_table_read_twice): Adapt to new
5849            table interface
5850    
5851            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
5852            Adapt to new table interface
5853    
5854            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
5855            new table interface
5856    
5857            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
5858            (RecordTable.SetTable): Adapt to new table interface
5859    
5860            * Thuban/UI/classifier.py (Classifier.__init__)
5861            (Classifier.__init__): Adapt to new table interface
5862    
5863            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
5864            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
5865            to new table interface
5866    
5867            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
5868            (AutoTransientTable.HasColumn): Implement the new table interface
5869            method
5870            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
5871            (AutoTransientTable.UniqueValues): Adapt to new table interface
5872    
5873            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
5874            Adapt to new table interface
5875    
5876            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
5877            simplify opening shapefiles a bit easier.
5878            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
5879            (TestLayer.test_point_layer): Use the new helper method
5880            (TestLayer.test_get_field_type): New. Test for the GetFieldType
5881            method
5882    
5883            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
5884            the new table method
5885    
5886            * test/test_memory_table.py (TestMemoryTable.test_has_column):
5887            Test for the new table method HasColumn
5888    
5889    2003-05-06  Jonathan Coles   <[email protected]>
5890    
5891            Addresses the "Selection Extent" wish of RTbug #1787.
5892    
5893            * Resources/Bitmaps/fulllayerextent.xpm,
5894            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
5895            extent. These are just place holders for the real bitmaps.
5896    
5897            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
5898            calculate the bounding box once (the first time compute_bbox() is
5899            called).
5900            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
5901            the bounding box for the shapes in lat/long coordinates.
5902    
5903            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
5904            option.
5905            (MainWindow.has_selected_shapes): New. Returns true if there are
5906            any selected shapes.
5907            (MainWindow.FullSelectionExtent): New. Calls
5908            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
5909            (_has_selected_shapes): New. Returns true if there are any
5910            selected shapes.
5911    
5912            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
5913            true if there are any selected shapes.
5914    
5915            * Thuban/UI/view.py (MapCanvas): Added delegated method
5916            HasSelectedShapes.
5917            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
5918            shapes on the canvas using the map projection (if any).
5919    
5920            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
5921            for Layer.ShapesBoundingBox().
5922    
5923    2003-05-06  Bernhard Herzog  <[email protected]>
5924    
5925            * Resources/Projections/defaults.proj: Fix spelling of Mercator
5926    
5927    2003-05-05  Jonathan Coles   <[email protected]>
5928    
5929            Addresses the "Full Layer Extent" wish of RTbug #1787.
5930    
5931            * Resources/Projections/defaults.proj: Added UK National Grid.
5932    
5933            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
5934            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
5935            when the user selects the menu option.
5936    
5937            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
5938            scales the given layer on the canvas using the map projection.
5939    
5940    2003-05-05  Bernhard Herzog  <[email protected]>
5941    
5942            Convert the table implementations to a new table interface. All
5943            tables use a common mixin class to provide backwards compatibility
5944            until all table users have been updated.
5945    
5946            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
5947            provide backwards compatibility for table classes implementing the
5948            new interface
5949            (DBFTable, MemoryTable): Implement the new table interface. Use
5950            OldTableInterfaceMixin as base for compatibility
5951            (DBFColumn, MemoryColumn): New. Column description for DBFTable
5952            and MemoryTable resp.
5953    
5954            * test/test_dbf_table.py: New. Test cases for the DBFTable with
5955            the new table interface.
5956    
5957            * test/test_memory_table.py: New. Test cases for the MemoryTable
5958            with the new table interface.
5959    
5960            * test/test_table.py: Document the all tests in this file as only
5961            for backwards compatibility. The equivalent tests for the new
5962            interface are in test_memory_table.py and test_dbf_table.py
5963            (MemoryTableTest.test_read): field_info should be returning tuples
5964            with four items
5965            (MemoryTableTest.test_write): Make doc-string a more precise.
5966    
5967            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
5968            table interface. Derive from from OldTableInterfaceMixin for
5969            compatibility.
5970            (TransientTableBase.create): New intance variable column_map to
5971            map from names and indices to column objects
5972            (TransientTable.create): Use the new table interface of the input
5973            table
5974            (AutoTransientTable): Convert to new table interface. Derive from
5975            from OldTableInterfaceMixin for compatibility.
5976            (AutoTransientTable.write_record): Removed. It's not implemented
5977            yet and we still have to decide how to handle writing with the new
5978            table and data framework.
5979    
5980            * test/test_transientdb.py
5981            (TestTransientTable.run_iceland_political_tests)
5982            (TestTransientTable.test_transient_joined_table): Use the new
5983            table interface
5984    
5985    2003-05-05  Jonathan Coles   <[email protected]>
5986    
5987            This is namely a collection of UI updates to improve user interactivity.
5988            Tabbing between controls now exists and you can use ESC to close dialog
5989            boxes; ENTER will active the default button.
5990    
5991            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
5992            order that the controls are created so that tabbing works correctly.
5993            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
5994            wxDialog can handle the default button correctly.
5995            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
5996            same reasons as for OnOK.
5997            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
5998            when we ask the table for the maximum/minimum values of a field
5999            which could take a very long time.
6000    
6001            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
6002            order that the controls are created so that tabbing works correctly.
6003            (SelectPropertiesDialog.__init__): Rearrange the order that the
6004            controls are created so that tabbing works correctly.
6005    
6006            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
6007            to derive from a wxDialog but behave like the original implementation
6008            which was derived from a wxFrame. wxDialog provides useful key
6009            handling functionality like ESC calling OnCancel and ENTER calling
6010            OnOK which is lost with wxFrame.
6011    
6012            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
6013            new dialogs.
6014    
6015            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
6016            order that the controls are created so that tabbing works correctly.
6017            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
6018            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
6019            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
6020            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
6021            can provide the "UK National Grid" as a default projection.
6022            (UTMPanel.__init__): Rearrange the order that the controls are
6023            created so that tabbing works correctly.
6024    
6025    2003-05-05  Bernhard Herzog  <[email protected]>
6026    
6027            * extensions/thuban/wxproj.cpp: Fix some of the comments.
6028            (project_point): If a map projection but no layer projection is
6029            given, convert degrees to radians before applying the map
6030            projection.
6031    
6032            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
6033            (TableGrid.allow_messages): New methods to make it possible to
6034            inhibit message sending.
6035            (TableGrid.issue): Only send the message if not inhibited.
6036            (LayerTableGrid.select_shape): Use the new methods to make sure
6037            that no ROW_SELECTED message is sent while we're updating the
6038            selected rows to match the selected shapes.
6039    
6040    2003-05-02  Jan-Oliver Wagner <[email protected]>
6041    
6042            Implementation of MemoryTable.
6043    
6044            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
6045            implementation that operates on a list of tuples. All of the data
6046            are kept in the memory.
6047    
6048            * test/test_table.py (MemoryTableTest): New.
6049    
6050            * test/test_transientdb.py (SimpleTable): Removed.
6051            (TestTransientTable.test_transient_joined_table,
6052            (TestTransientTable.test_transient_table_read_twice): Replaced
6053            SimpleTable by MemoryTable.
6054    
6055    2003-04-30  Jonathan Coles   <[email protected]>
6056    
6057            * Data/iceland_sample.thuban: Now contains correct projections
6058            for each of the layers.
6059    
6060            * Resources/Projections/defaults.proj: Geographic projection
6061            contains unit conversion parameter.
6062    
6063    2003-04-30  Jonathan Coles   <[email protected]>
6064    
6065            The most important part of this putback is the projection changes.
6066            It should now be possible to specify the projection that a layer
6067            is in and then specify a different projection for the map. The
6068            projection dialog has an extra parameter for a geographic projection
6069            which lets the user select if the input is in degrees or radians.
6070    
6071            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
6072            to say that the parameter is a tuple of unprojected
6073            points (which is what the callers to this method were assuming).
6074            Also, since the points are unprojected we need to projected them.
6075    
6076            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
6077            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
6078            groups are selected, move the layer up/down. Fixes RTbug #1833.
6079    
6080            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
6081    
6082            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
6083            parameter in call to SetClientData.
6084            (GeoPanel): Add support for selecting the units that the
6085            source data is in (Radians or Degrees).
6086    
6087            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
6088            the rendering loop by reducing the number of if's, removing the
6089            unnecessary try/except block, and checking if the old group
6090            is the same as the new one (which happens a lot if there is
6091            no classification, or lots of shapes are in the same group).
6092    
6093            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
6094            around the redraw routine to try to catch problems that the user
6095            may create by selecting invalid projections for the data set and
6096            map. Clears the display if there are any problems and prints the
6097            error.
6098            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
6099            rectangle.
6100    
6101            * extensions/thuban/wxproj.cpp (project_point): First invert the
6102            supplied point (which should be in projected coordinates) using
6103            the layer's projection and then project the point using the
6104            map's projection.
6105            (project_points): Use project_point() to project each point.
6106    
6107    2003-04-30  Jan-Oliver Wagner <[email protected]>
6108    
6109            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
6110            don't set the Classification to None if the classfication field
6111            is None (ie only a DEFAULT).
6112    
6113    2003-04-30  Bernhard Herzog  <[email protected]>
6114    
6115            * Thuban/UI/view.py: Fix some typos.
6116    
6117            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
6118            not pop up the dialog if the selection becomes empty (this could
6119            happen if e.g. a new selection is opened while the identify tool
6120            is active and dialog had been closed)
6121    
6122    2003-04-30  Bernhard Herzog  <[email protected]>
6123    
6124            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
6125            instance variable read_record_last_result
6126            (TransientTableBase.read_record): Make sure reading the same
6127            record twice works. The implementation uses the new instance
6128            variable read_record_last_result
6129    
6130            * test/test_transientdb.py
6131            (TestTransientTable.test_transient_table_read_twice): New test
6132            case for the above bug-fix.
6133    
6134    2003-04-29  Jonathan Coles   <[email protected]>
6135    
6136            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
6137    
6138            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
6139    
6140            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
6141            (ClassTable.SetValueAsCustom): Rename keyword argument in
6142            ClassGroup* constructors to match argument name.
6143    
6144    2003-04-29  Bernhard Herzog  <[email protected]>
6145    
6146            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
6147            transient DB if it exists to make sure it doesn't leave a journal
6148            file in the temp directory.
6149    
6150            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
6151            self.conn to None after closing the connection to make sure it's
6152            not closed twice
6153    
6154    2003-04-29  Jonathan Coles   <[email protected]>
6155    
6156            Add a visible parameter in the layer XML tag. The default value is
6157            "true". If anything other than "false" is specified we also assume
6158            "true". Addresses RTbug #1025.
6159    
6160            * Doc/thuban.dtd: Add visible parameter to a layer.
6161    
6162            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
6163            of visible from 1 to True.
6164            (Layer.__init__): Change default value of visible from 1 to True.
6165    
6166            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
6167            parameter.
6168    
6169            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
6170            parameter.
6171    
6172            * test/test_load.py: Add new test data contents_test_visible.
6173            (LoadSessionTest.setUp): save test data.
6174            (LoadSessionTest.testLayerVisibility): Test if the visible flag
6175            is loaded correctly.
6176    
6177            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
6178            for saving an invisible layer.
6179    
6180    2003-04-29  Jonathan Coles   <[email protected]>
6181    
6182            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
6183            legend dialog box and tell it to change its map to the one
6184            supplied to SetMap(). Fixes RTbug #1770.
6185    
6186    2003-04-29  Bernhard Herzog  <[email protected]>
6187    
6188            Next step of table implementation. Introduce a transient database
6189            using SQLite that some of the data is copied to on demand. This
6190            allows us to do joins and other operations that require an index
6191            for good performance with reasonable efficiency. Thuban now needs
6192            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
6193            haven't tested that.
6194            
6195            * Thuban/Model/transientdb.py: New. Transient database
6196            implementation.
6197    
6198            * test/test_transientdb.py: New. Tests for the transient DB
6199            classes.
6200    
6201            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
6202            classes to help automatically remove temporary files and
6203            directories.
6204            (Session.__init__): New instance variables temp_dir for the
6205            temporary directory and transient_db for the SQLite database
6206            (Session.temp_directory): New. Create a temporary directory if not
6207            yet done and return its name. Use AutoRemoveDir to have it
6208            automatically deleted
6209            (Session.TransientDB): Instantiate the transient database if not
6210            done yet and return it.
6211    
6212            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
6213            AutoTransientTable so that data is copied to the transient DB on
6214            demand.
6215            (SimpleStore): New class that simply combines a table and a
6216            shapefile
6217    
6218            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
6219            DBFTable and update its doc-string to reflect the fact that this
6220            is only the table interface to a DBF file. Table is now an alias
6221            for DBFTable for temporary backwards compatibility.
6222    
6223            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
6224            the last reference to the session goes away so that the temporary
6225            files are removed properly.
6226    
6227            * test/test_load.py (LoadSessionTest.tearDown): Remove the
6228            reference to the session to make sure the temporary files are
6229            removed.
6230    
6231    2003-04-29  Bernhard Herzog  <[email protected]>
6232    
6233            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
6234            the __parser instance variable into a normal local variable in
6235            read. It's only used there and read will never be called more than
6236            once. Plus it introduces a reference cycle that keeps can keep the
6237            session object alive for a long time.
6238    
6239    2003-04-29  Jonathan Coles   <[email protected]>
6240    
6241            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
6242            Projection an immutable item. Fixes RTbug #1825.
6243            (Projection.__init__): Initialize instance variables here.
6244            (ProjFile.Replace): New. Replace the given projection object with
6245            the new projection object. This solves the problem of needing the
6246            mutator Projection.SetProjection() in the ProjFrame class and
6247            allows a projection to change parameters without changing its
6248            location in the file.
6249    
6250            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
6251            be of type wxSAVE and should verify overwriting a file.
6252    
6253            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
6254            ProjFile.Replace() method instead of the mutator
6255            Projection.SetProjection(). Also requires that we reassign the
6256            client data to the new projection.
6257    
6258            * test/test_proj.py (TestProjection.test): Test GetName() and
6259            GetAllParameters()
6260            (TestProjFile.test): Remove tests for Set*() methods. Add tests
6261            for Replace().
6262    
6263    2003-04-25  Jonathan Coles   <[email protected]>
6264    
6265            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
6266            to save the name of the projection.
6267    
6268            * test/test_save.py (SaveSessionTest.testLayerProjection): New
6269            test to verify layer projections are saved correctly.
6270    
6271    2003-04-25  Jonathan Coles   <[email protected]>
6272    
6273            * Thuban/Model/proj.py (Projection.SetName): Set the name
6274            to "Unknown" if name is None.
6275            (Projection.SetAllParameters): New. Set the projection's
6276            parameter list to the one supplied.
6277            (Projection.SetProjection): New. Set the projection's
6278            properties to those of the supplied Projection.
6279    
6280            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
6281            the dialog title to include the map's title.
6282            (MainWindow.LayerProjection): Set the dialog title to include
6283            the layer's title.
6284    
6285            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
6286            error dialogs into a single method call.
6287            (ProjFrame.__VerifyButtons): Add more states to check.
6288            (ProjFrame.__GetProjection): Return the current state of an
6289            edited projection or None.
6290            (ProjFrame.__FillAvailList): Remove checks for states that
6291            shouldn't exist.
6292            (ProjFrame._OnNew): Clear all selected items and supply
6293            a projection panel if necessary.
6294    
6295            * test/test_proj.py (TestProjFile.test): Add tests for
6296            ProjFile.SetAllParameters, ProjFile.SetProjection,
6297            ProjFile.SetName.
6298    
6299    2003-04-25  Jonathan Coles   <[email protected]>
6300    
6301            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
6302            takes an optional argument to select the current projection.
6303            This does not guarantee that the item is visible due to
6304            limited wxWindows functionality. Fixes RTBug #1821.
6305    
6306    2003-04-25  Jonathan Coles   <[email protected]>
6307    
6308            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
6309            the projection name and use it when constructing the Projection
6310            object.
6311    
6312            * Thuban/Model/proj.py (Projection.__init__): Change the default
6313            value for 'name' to None and then test if name is equal to None
6314            in the body of the constructor. This way the caller doesn't have to
6315            know what the default value should be. Namely, useful in load.py
6316            where we have to pick a default value if the 'name' parameter
6317            doesn't exist in the XML file.
6318    
6319            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
6320            Tests a file where a layer has a projection.
6321    
6322    2003-04-25  Jonathan Coles   <[email protected]>
6323    
6324            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
6325            tree for projection information.
6326    
6327            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
6328            XMLReader.GetFileName.
6329            (SessionLoader): Added support for loading projection tags that
6330            appear inside a layer.
6331    
6332            * Thuban/Model/proj.py (ProjFile): Document the class. Move
6333            back to using a list because the order of the projections in
6334            the file is important to maintain. Fixes RTbug #1817.
6335    
6336            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
6337            to ProjFile.GetFilename.
6338    
6339            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
6340            information.
6341    
6342            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
6343            ProjFrame._OnSaveAs. Removed old dead code from previous
6344            implementation.
6345            (ProjFrame._OnExport): Add support for exporting more than one
6346            projection to a single file.
6347            (ProjFrame.__FillAvailList): use string formatting (% operator)
6348            to build strings that are (partly) translated. Fixes RTbug #1818.
6349    
6350            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
6351            class.
6352    
6353    2003-04-24  Bernhard Herzog  <[email protected]>
6354    
6355            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
6356    
6357            * po/fr.po: New. French translation by Daniel Calvelo Aros
6358    
6359            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
6360            empty strings.
6361    
6362    2003-04-24  Jonathan Coles   <[email protected]>
6363    
6364            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
6365            implement the interface that the ProjFrame dialog expects.
6366    
6367            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
6368            name of the projection to be changed.
6369            (ProjFile): Use a dictionary instead of a list so that removing
6370            projections is easier and we are sure about uniqueness.
6371            (ProjFile.Remove): Remove the given projection object.
6372    
6373            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
6374            Return a list with only one projection file instead of searching for
6375            any projection file. This simplifies many things if the user can
6376            only have one system file and one user file.
6377    
6378            * Thuban/UI/classgen.py: Change all references to
6379            genCombo to genChoice.
6380    
6381            * Thuban/UI/mainwindow.py: Add a Projection option under the
6382            layer menu.
6383            (MainWindow.LayerProjection): New. Open up a projection window
6384            for a layer.
6385    
6386            * Thuban/UI/projdialog.py: Large changes to how the dialog is
6387            laid out. Use three panels instead of one. One for the list of
6388            projections, one for the edit controls, and one for the buttons.
6389            Fixed resizing problems so that the dialog resizes correctly
6390            when the projection panel changes. Added import/export, save, and
6391            new buttons/functionality.
6392    
6393    2003-04-24  Bernhard Herzog  <[email protected]>
6394    
6395            First step towards table management. Introduce a simple data
6396            abstraction so that we replace the data a layer uses more easily
6397            in the next step.
6398    
6399            * Thuban/Model/data.py: New file with a simple data abstraction
6400            that bundles shapefile and dbffile into one object.
6401    
6402            * Thuban/Model/session.py (Session.OpenShapefile): New method to
6403            open shapefiles and return a shape store object
6404    
6405            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
6406            object instead of a shapefile filename. This introduces a new
6407            instance variable store holding the datastore. For intermediate
6408            backwards compatibility keep the old instance variables.
6409            (open_shapefile): Removed. No longer needed with the shape store.
6410            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
6411            get the shape store used by a layer.
6412            (Layer.Destroy): No need to explicitly destroy the shapefile or
6413            table anymore.
6414    
6415            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
6416            (MainWindow.AddLayer): Use the session's OpenShapefile method to
6417            open shapefiles
6418    
6419            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
6420            session's OpenShapefile method to open shapefiles
6421    
6422            * test/test_classification.py
6423            (TestClassification.test_classification): Use the session's
6424            OpenShapefile method to open shapefiles and build the filename in
6425            a more platform independed way
6426    
6427            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
6428            Implement to have a session to use in the tests
6429            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
6430            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
6431            session's OpenShapefile method to open shapefiles
6432            (TestLayerLegend.setUp): Instantiate a session so that we can use
6433            it to open shapefiles.
6434            (TestLayerLegend.tearDown): Make sure that all references to
6435            layers and session are removed otherwise we may get a resource
6436            leak
6437    
6438            * test/test_map.py (TestMapAddLayer.test_add_layer)
6439            (TestMapWithContents.setUp): Instantiate a session so that we can
6440            use it to open shapefiles.
6441            (TestMapWithContents.tearDown): Make sure that all references to
6442            layers, maps and sessions are removed otherwise we may get a
6443            resource leak
6444            ("__main__"): use support.run_tests() so that more info about
6445            uncollected garbage is printed
6446    
6447            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
6448            session's OpenShapefile method to open shapefiles
6449            ("__main__"): use support.run_tests() so that more info about
6450            uncollected garbage is printed
6451    
6452            * test/test_selection.py (TestSelection.tearDown): Make sure that
6453            all references to the session and the selection are removed
6454            otherwise we may get a resource leak
6455            (TestSelection.get_layer): Instantiate a session so that we can
6456            use it to open shapefiles.
6457            ("__main__"): use support.run_tests() so that more info about
6458            uncollected garbage is printed
6459    
6460            * test/test_session.py (TestSessionBase.tearDown)
6461            (TestSessionWithContent.tearDown): Make sure that all references
6462            to the session and layers are removed otherwise we may get a
6463            resource leak
6464            (TestSessionWithContent.setUp): Use the session's OpenShapefile
6465            method to open shapefiles
6466    
6467    2003-04-24  Jonathan Coles   <[email protected]>
6468    
6469            * Thuban/Model/load.py (XMLReader.read): Should have been checking
6470            if the file_or_filename object had the 'read' attribute.
6471    
6472    2003-04-23  Jonathan Coles   <[email protected]>
6473    
6474            * Thuban/Model/resource.py: Fixes RTbug #1813.
6475            (ReadProjFile): Add documentation about which exceptions are raised.
6476            Always pass the exceptions up to the caller.
6477            (GetProjFiles): If the directory can't be read return an empty list.
6478            If any of the proj files can't be read skip that file and go
6479            on to the next one.
6480    
6481            * test/test_proj.py: Added test cases to handle nonexistent files,
6482            unreadable files, and files that don't parse correctly.
6483    
6484    2003-04-23  Jonathan Coles   <[email protected]>
6485    
6486            Projection dialog. Allows the user to select from a list
6487            of projection templates and optionally edit them and save new ones.
6488    
6489            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
6490            (ProjPanel): Base class for projection specific panels.
6491            (TMPanel): Projection panel for Transverse Mercartor.
6492            (UTMPanel): Projection panel for Universal Transverse Mercartor.
6493            (LCCPanel): Projection panel for Lambert Conic Conformal.
6494            (GeoPanel): Projetion panel for Geographic Projection.
6495    
6496    2003-04-23  Jonathan Coles   <[email protected]>
6497    
6498            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
6499            promote symmetry. There now exists XMLReader and XMLWriter.
6500            (XMLReader.read): New. Call to read the given file descriptor or
6501            filename.
6502            (XMLReader.close): New. Make sure the file is closed.
6503            (XMLReader.GetFileName): New. Return just the file name that is being
6504            read from.
6505            (XMLReader.GetDirectory): New. Return just the directory of the file
6506            that is being read.
6507            (XMLReader.AddDispatchers): New. Take a dictionary which contains
6508            the names of functions to call as the XML tree is parsed.
6509            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
6510            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
6511            (SessionLoader): Removed class variables start_dispatcher and
6512            end_dispatcher since this functionality is now part of a class
6513            instance. Fixes RTbug #1808.
6514            (SessionLoader.__init__): Add dispatcher functions.
6515            (load_xmlfile): Code was moved into the XMLReader.read().
6516            (load_session): Use modified SessionLoader.
6517    
6518            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
6519            map's projection.
6520    
6521            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
6522            GetAllParameters.
6523            (Projection.GetParameter): Returns the value for the given parameter.
6524    
6525            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
6526            (GetProjFiles): Renamed from GetProjections. Now returns a list
6527            of ProjFile objects.
6528            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
6529            a list of ProjFile objects whose files are not user defined.
6530            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
6531            list of ProjFile objects whose files are user defined.
6532            (ProjFileReader): Extend new XMLReader.
6533    
6534            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
6535            promote symmetry.
6536    
6537            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
6538            control instead of a wxComboBox. wxChoice controls do not generate
6539            events as the uses highlights possible choices which fixes problems
6540            with resizing the dialog when the use selects an option.
6541    
6542            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
6543            control instead of a wxComboBox.
6544    
6545            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
6546            dialog.
6547    
6548            * test/test_proj.py (TestProjection.test): New tests for GetParameter
6549            method.
6550    
6551    2003-04-22  Bernhard Herzog  <[email protected]>
6552    
6553            * Thuban/UI/mainwindow.py: Remove some unused imports and global
6554            constants
6555    
6556            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
6557            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
6558    
6559    2003-04-17  Bernhard Herzog  <[email protected]>
6560    
6561            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
6562            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
6563            anymore.
6564            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
6565            (Layer.ShapeType, Layer.Shape): No need to call
6566            self.open_shapefile since it's always called in __init__
6567    
6568            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
6569            In wxPython 2.4 there's no need to extend MainLoop anymore since
6570            wxPython itself makes sure OnExit is called.
6571    
6572    2003-04-16  Jonathan Coles   <[email protected]>
6573    
6574            Initial putback of projection management code. Includes new
6575            classes to read and write projection files. The current load
6576            and save classes were abstracted a bit so they could be reused.
6577            The Projection class was extended to provide new methods and
6578            have a name.
6579    
6580            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
6581            general XML reading methods that were part of ProcessSession.
6582    
6583            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
6584            name.
6585            (ProjFile): New. Represents a file that contains projection
6586            information.
6587    
6588            * Thuban/Model/resource.py: New. Contains general utilities
6589            for read and writing projection files.
6590    
6591            * Thuban/Model/save.py (XMLSaver): New. Contains all the
6592            general XML writing methods that were part of SessionSaver.
6593            (SessionSaver): Renamed from Saver.
6594    
6595            * test/test_proj.py: New test cases for the projection
6596            file read and write functions.
6597    
6598    2003-04-16  Jonathan Coles   <[email protected]>
6599    
6600            * Thuban/Model/classification.py: Use repr() around values
6601            in the ClassGroup*.__repr__() methods so it is clearer when
6602            a value is a string and when it is a number.
6603    
6604            * test/test_load.py: Rework the classification test to test
6605            that we can load old files.
6606            (testLabels): Test a file where the groups have labels.
6607    
6608    2003-04-16  Bernhard Herzog  <[email protected]>
6609    
6610            Safer implementation of the performance enhancements of the
6611            low-level renderer:
6612            
6613            * extensions/thuban/wxproj.cpp (extract_projection)
6614            (extract_pointer): Rename extract_projection to extract_pointer
6615            and redefine its purpose to return the pointer stored in a CObject
6616            returned by the object's cobject method. Update all callers.
6617            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
6618            handling of these low-level parameters so that each s_draw_info
6619            instance is handled as a CObject at python level that also
6620            contains real references to the actual python objects which
6621            contain the values in the struct. Add free_draw_info as the
6622            destructor.
6623            (draw_polygon_shape): Add the py_draw_info parameter which must a
6624            cobject containing an s_draw_info pointer.
6625    
6626            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
6627            method to instantiat the low-level render parameter
6628            (MapRenderer.draw_shape_layer): Use the new method. Remove some
6629            commented out code.
6630            (MapRenderer.draw_polygon_shape): Make the first parameter not the
6631            layer but the low-level render parameter
6632            (ScreenRenderer.draw_shape_layer): Use the low-level render
6633            parameter.
6634    
6635    2003-04-15  Jonathan Coles   <[email protected]>
6636    
6637            * Thuban/Model/classification.py: Implemented __repr__ for
6638            the ClassGroup* classes to make debugging a bit easier.
6639            (ClassGroup.SetLabel): Check that the string is an instance
6640            of StringTypes not StringType. Accounts for Unicode strings.
6641    
6642            * Thuban/Model/color.py: Implemented __repr__ to make
6643            debugging a bit easier.
6644    
6645            * Thuban/Model/save.py (Saver.write_classification): Need to
6646            save the group label.
6647    
6648            * test/test_load.py (testClassification): New. Loads the
6649            iceland_sample_test.thuban file and checks if it was loaded
6650            correctly.
6651    
6652    2003-04-15  Jonathan Coles   <[email protected]>
6653    
6654            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
6655            to improve rendering performance by initializing the variables
6656            that are not change each time draw_polygon_shape() is called.
6657            The values are stored in a global struct draw_info.
6658            (draw_polygon_shape): Removed initialization code that is
6659            now in draw_polygon_init().
6660    
6661            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
6662            drawing initialization call to draw_polygon_init()
6663            (MapRenderer.draw_polygon_shape): Use new signature of
6664            draw_polygon_shape.
6665    
6666            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
6667            weirdness by setting the range to (1, maxint).
6668    
6669            * Thuban/Model/classification.py (ClassGroupProperties): Make
6670            instance variables private and optimize comparison operator
6671            by first checking if the color references are the same.
6672            (ClassGroupSingleton): Make instance variables private.
6673            (ClassGroupRange): Make instance variables private.
6674    
6675            * HOWTO-Release: Filled in missing steps for releasing packages.
6676    
6677    2003-04-15  Bernhard Herzog  <[email protected]>
6678    
6679            First stab at internationalized messages:
6680    
6681            * Thuban/__init__.py (_): Implement the translation function for
6682            real using the python gettext module.
6683    
6684            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
6685            translate empty strings.
6686    
6687            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
6688            Add a missing space to a warning message
6689    
6690            * po/README: New. Notes about the management of the translation
6691            files.
6692    
6693            * po/Makefile: New. Makefile to help manage the translation files.
6694    
6695            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
6696    
6697            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
6698            translations and support files in po/
6699    
6700            * setup.py (data_files): Add the *.mo files to the data_files too
6701    
6702            * README: Add note about the translations when building from CVS
6703    
6704    2003-04-14  Jonathan Coles   <[email protected]>
6705    
6706            * Thuban/UI/dock.py: Fixes some window resizing problems most
6707            noticable under windows. Always assume the button bitmaps will
6708            be there. Code clean up.
6709            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
6710            images for the dock/undock button to the same images.
6711            Work around for RTbug #1801.
6712    
6713            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
6714            be allowed to grow within the sizer. Fixes a bug under Windows
6715            where the toolbar wasn't being drawn.
6716    
6717    2003-04-14  Frank Koormann   <[email protected]>
6718    
6719            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
6720            Updated design to try to make the button functionality more
6721            transparent.
6722    
6723    2003-04-14  Jonathan Coles   <[email protected]>
6724    
6725            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
6726            finalize the intialization of the panel.
6727    
6728            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
6729            creation of the panel. Should be the last thing called in the
6730            initializer of a subclass.
6731    
6732            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
6733            set the current selections in the combo boxes. This is needed
6734            under Windows.
6735    
6736            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
6737            level panel to the dialog so that the background colors are
6738            consistent under Windows.
6739    
6740    2003-04-11  Jonathan Coles   <[email protected]>
6741    
6742            * Thuban/UI/classgen.py: Change color ramps to start at white
6743            not black.
6744    
6745            * Thuban/UI/legend.py: Enable/disable the legend buttons when
6746            the legend changes. Fixes RTbug #1793.
6747    
6748            * test/test_classification.py: Added test for copying of
6749            classifications.
6750    
6751    2003-04-11  Jonathan Coles   <[email protected]>
6752    
6753            * Thuban/UI/resource.py: New. Centralize the loading of resources
6754            such as bitmaps.
6755    
6756            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
6757            added images to the move buttons, added 'reverse' button.
6758            (CustomRampPanel.__init__): Added images to the move buttons.
6759            (GreyRamp): New. Generates a ramp from white to black.
6760            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
6761    
6762            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
6763            ID_PROPERTY_*.
6764            (Classifier.__init__): Minor changes to the layout.
6765            (Classifier._OnTitleChanged): Listen for when the user edits the
6766            title and update the dialog's title and the layer's title.
6767    
6768            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
6769    
6770            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
6771            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
6772            if the layer's title changes.
6773    
6774            * Thuban/UI/mainwindow.py: Added new menu item and associated code
6775            to open a dialog to rename the map.
6776            (MainWindow): Use new resource class to import bitmaps.
6777    
6778    2003-04-11  Jonathan Coles   <[email protected]>
6779    
6780            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
6781            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
6782            Resources/Bitmaps/group_use_none.xpm,
6783            Resources/Bitmaps/group_use_not.xpm,
6784            Resources/Bitmaps/hide_layer.xpm,
6785            Resources/Bitmaps/layer_properties.xpm,
6786            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
6787            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
6788            New.
6789    
6790    2003-04-10  Jonathan Coles   <[email protected]>
6791    
6792            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
6793            Should pass group to ClassGroup constructor.
6794    
6795    2003-04-10  Jonathan Coles   <[email protected]>
6796    
6797            * Thuban/Model/classification.py: (ClassGroup): Move all the common
6798            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
6799            here. Implement SetVisible(), IsVisible().
6800            (ClassGroup.__init__): Add group parameter which acts as a copy
6801            constructor.
6802    
6803            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
6804            "Visible" check boxes.
6805            (Classifier): Rename the buttons and refactor the code to match
6806            the new labels.
6807    
6808            * Thuban/UI/legend.py: Classify button is now called "Properties".
6809            Refactored the code to change variable names.
6810            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
6811    
6812            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
6813            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
6814            renamed to MainWindow.LayerEditProperties.
6815            (MainWindow.ToggleLegend): Don't include map name in legend title.
6816            (MainWindow.SetMap): Added the map name to the window title.
6817            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
6818            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
6819            Functionality is found in the layer properties dialog.
6820    
6821            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
6822            draw visible groups.
6823    
6824    2003-04-09  Jonathan Coles   <[email protected]>
6825    
6826            * Thuban/UI/classgen.py: Modifications to allow simple
6827            addition and selection of new color schemes.
6828            (MonochromaticRamp): New. Generates a ramp between two colors.
6829            (RedRamp): New. Generates a ramp of all red.
6830            (GreenRamp): New. Generates a ramp of all green.
6831            (BlueRamp): New. Generates a ramp of all blue.
6832    
6833    2003-04-09  Jonathan Coles   <[email protected]>
6834    
6835            * Thuban/Model/classification.py (Classification.__deepcopy__):
6836            Need to copy over field and fieldType attributes.
6837    
6838            * Thuban/Model/table.py (Table.field_range): New. Retrive the
6839            maximum and minimum values over the entire table for a given
6840            field.
6841            (Table.GetUniqueValues): New. Retrieve all the unique values
6842            in the table for a given field.
6843    
6844            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
6845            (GenUniquePanel): New. Controls to allow the user to select
6846            which unique field values they would like in the classification.
6847            (CustomRampPanel): Code that was in ClassGenDialog that allows
6848            the user to select the properties for a custom ramp.
6849            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
6850    
6851            * Thuban/UI/classifier.py: Removed a lot of debugging code.
6852            (Classifier._SetClassification): Callback method so that the
6853            class generator can set the classification in the grid.
6854            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
6855            editing of a group properties class into a wxWindows control.
6856    
6857            * Thuban/UI/dock.py: It was decided that if the user closes
6858            a dockable window the window should simply hide itself. That
6859            way if the user wants to show the dock again it appears in the
6860            same place as it was when it was closed.
6861            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
6862            (DockableWindow._OnButtonClose): Hide the window instead of
6863            destroying it.
6864            (DockableWindow._OnClose): Hide the window instead of
6865            destroying it.
6866    
6867            * Thuban/UI/legend.py (LegendTree): Use a private method to
6868            consistently set the font and style of the text. Fixes RTbug #1786.
6869    
6870            * Thuban/UI/mainwindow.py: Import just the Classifier class.
6871    
6872    2003-04-07  Bernhard Herzog  <[email protected]>
6873    
6874            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
6875            to the map module
6876    
6877    2003-04-07  Bernhard Herzog  <[email protected]>
6878    
6879            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
6880            favor of ToggleSessionTree
6881            (MainWindow.ToggleSessionTree): New method to toggle visibility of
6882            the session tree.
6883            (MainWindow.SessionTreeShown): New method to return whether the
6884            session tree is currently shown.
6885            (MainWindow.ToggleLegend): New method to toggle visibility of the
6886            legend
6887            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
6888            LegendShown
6889            (MainWindow.LegendShown): New method to return whether the legend
6890            is currently shown.
6891            (_method_command): Add checked parameter so we can define check
6892            menu items
6893            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
6894            mainwindow methods.
6895            (show_session_tree, show_legend commands): Removed.
6896            (toggle_session_tree, toggle_legend commands): New commands to
6897            toggle the visibility of the dialogs
6898    
6899    2003-04-07  Jonathan Coles   <[email protected]>
6900    
6901            * Thuban/UI/classgen.py: Fix Windows problem.
6902    
6903            * Thuban/UI/dock.py: Fix Windows problem.
6904    
6905            * Thuban/UI/mainwindow.py: Use False instead of false.
6906            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
6907    
6908    2003-04-07  Jonathan Coles   <[email protected]>
6909    
6910            Since we now say that the order of the groups in a classification
6911            matters, it makes sense to be able to manipulate that order. Most
6912            of the changes to Thuban/Model/classification.py are to that end.
6913    
6914            * Thuban/Model/classification.py (Classification.AppendGroup,
6915            Classification.InsertGroup, Classification.ReplaceGroup,
6916            Classification.RemoveGroup, Classification.GetGroup): Do as the
6917            names imply.
6918            (Classification.FindGroup): This was called GetGroup, but GetGroup
6919            takes an index, while FindGroup takes a value.
6920            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
6921            REFERENCE. Currently there is a cyclic reference between the layer
6922            and its classification. If the classification doesn't need to know
6923            its owning layer we can change this, since it may make sense to be
6924            able to use the same classification with different layers.
6925    
6926            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
6927    
6928            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
6929            not AddGroup()
6930    
6931            * Thuban/UI/classifier.py: Now that we can depend on the order in
6932            a Classification and have methods to manipulate that order we don't
6933            need to use our own data structures in the grid. We can simply make
6934            the grid/table access the information they need from a copy of
6935            the classification object.
6936            (Classifier._OnCloseBtn): Event handler for when the user clicks
6937            'Close'. This is needed so if the user applies changes and then
6938            continues to change the table the user has the option of discarding
6939            the most recent changes and keeping what they applied.
6940    
6941            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
6942            into the same group.
6943    
6944            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
6945            with a really old version of proj, PJ_VERSION won't even be defined.
6946            If it isn't defined then just compile so that the function always
6947            returns Py_False.
6948    
6949            * test/test_classification.py: Fix tests to use the renamed methods.
6950            Still need to write tests for the new methods.
6951    
6952    2003-04-04  Jonathan Coles   <[email protected]>
6953    
6954            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
6955            call to SetSelection out of the method and before the call
6956            to __SelectField in __init__. This prevents a recursion of events
6957            when _OnFieldSelect is triggered by the user.
6958    
6959    2003-04-04  Jonathan Coles   <[email protected]>
6960    
6961            * Thuban/Model/classification.py: Rename Color.None to
6962            Color.Transparent.
6963            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
6964            Don't bother copying the color, since Colors are immutable.
6965    
6966            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
6967            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
6968            Thuban/UI/renderer.py, Thuban/UI/view.py:
6969            Rename Color.None to Color.Transparent.
6970        
6971            * test/test_classification.py, test/test_load.py: Rename Color.None
6972            to Color.Transparent.
6973    
6974    2003-04-04  Jonathan Coles   <[email protected]>
6975    
6976            * Thuban/Model/classification.py: Fix assert calls.
6977            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
6978            Copy the color parameter rather than hold onto a reference.
6979    
6980            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
6981            the color object.
6982            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
6983            are sure there exists only one refernce to Color.None in the system.
6984            This allows us to use 'is' rather than the comparision functions.
6985            
6986            * Thuban/Model/save.py: Fix assert calls.
6987            
6988            * Thuban/UI/classifier.py: Fix assert calls.
6989            (ClassGrid._OnCellDClick): Call up to the classifier to open the
6990            dialog to edit the groups properties.
6991            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
6992            correctly if a cell is resized.
6993            (ClassTable.SetClassification): New. Changes the classification
6994            that is in the table.
6995            (ClassTable.__SetRow): Allow groups to be prepended.
6996            (Classifier): New code for opening the EditProperties and
6997            GenerateRanges dialogs.
6998            (SelectPropertiesDialog.__GetColor): Only set the color in the
6999            color dialog if the current color is not None.
7000            
7001            * Thuban/UI/dock.py: Fix assert calls.
7002            
7003            * Thuban/UI/legend.py: Fix assert calls.
7004            
7005            * Thuban/UI/renderer.py: Fix assert calls.
7006            
7007            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
7008            classifications.
7009            (GenRangePanel): Panel specific to range generation.
7010            (GenSingletonPanel): Panel specific to singleton generation.
7011            (ClassGenerator): Class responsible for actually generating
7012            the classification from the data gathered in the dialog box.
7013            (PropertyRamp): Generates properties whose values range from
7014            a starting property to an ending property.
7015    
7016    2003-04-03  Bernhard Herzog  <[email protected]>
7017    
7018            * test/support.py (print_garbage_information): New function that
7019            prints information about still connected messages and memory
7020            leaks.
7021            (run_suite): Removed.
7022            (run_tests): New function for use as a replacement of
7023            unittest.main in the test_* files. This one calls
7024            print_garbage_information at the end.
7025    
7026            * test/runtests.py (main): Use support.print_garbage_information
7027    
7028            * test/test_layer.py: Use support.run_tests instead of
7029            unittest.main so we get memory leak information
7030            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
7031            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
7032            (TestLayerLegend.test_visibility): Call the layer's Destroy method
7033            to fix a memory leak.
7034    
7035            * test/test_classification.py: Use support.run_tests instead of
7036            unittest.main so we get memory leak information
7037            (TestClassification.test_classification): Call the layer's Destroy
7038            method to fix a memory leak.
7039    
7040    2003-04-02  Bernhard Herzog  <[email protected]>
7041    
7042            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
7043            Handle the reference counts of the return value and errors in
7044            PyArg_ParseTuple correctly.
7045    
7046            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
7047            sure the filename is absolute to avoid problems when saving the
7048            session again
7049    
7050            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
7051    
7052    2003-04-01  Jonathan Coles   <[email protected]>
7053    
7054            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
7055            that there actually are points in the returned list of points
7056            before trying to index into the list. The list may be empty if
7057            the shape is a Null Shape.
7058    
7059    2003-04-01  Bernhard Herzog  <[email protected]>
7060    
7061            * test/test_map.py: Don't use from <module> import *
7062    
7063    2003-04-01  Jonathan Coles   <[email protected]>
7064    
7065            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
7066            LAYER_LEGEND_CHANGED
7067    
7068            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
7069            self.Destroy() to close the window after yesterday's changes.
7070    
7071            * test/test_map.py, test/test_session.py: Fix messages that
7072            are sent from maps and layers.
7073    
7074    2003-03-31  Jonathan Coles   <[email protected]>
7075    
7076            * Thuban/UI/classifier.py: Commented out some debugging statements.
7077            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
7078            RTbug #1769.
7079    
7080            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
7081            position (although position doesn't work yet under GTK).
7082            (DockableWindow.Destroy): New. Called when the window must be
7083            closed. Namely needed when the DockFrame closes and must close
7084            its children.
7085            (DockFrame): Listen for EVT_CLOSE and destroy all children.
7086    
7087            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
7088            when then window is told to close.
7089            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
7090            comment in source for more info.
7091    
7092            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
7093    
7094            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
7095            symmetry with other such methods.
7096            (MainWindow.ShowLegend): Show the legend docked by default.
7097    
7098    2003-03-28  Jonathan Coles   <[email protected]>
7099    
7100            * Thuban/UI/classifier.py: Support for highlighting a specific
7101            group within the grid when the classification dialog is opened.
7102            Also contains a lot of debugging printouts which will later
7103            be removed.
7104    
7105            * Thuban/UI/dock.py: Complete rework on the dock code so that
7106            that it is fairly removed from the rest of the Thuban application.
7107            It is easy to add new docks which the rest of the program having
7108            to be aware of them.
7109    
7110            * Thuban/UI/legend.py: Modifications to support selecting a
7111            specific group in the classification dialog. Changed how layers
7112            are drawn when the layer is visible/invisible.
7113    
7114            * Thuban/UI/mainwindow.py: Removed legend specific code and
7115            replaced it with calls to the new dock code.
7116    
7117            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
7118            to check if scale > 0. Trying to track down a divide by zero.
7119    
7120    2003-03-26  Jonathan Coles   <[email protected]>
7121    
7122            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
7123            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
7124            now part of DockableWindow.
7125            (LegendPanel.DoOnSelChanged): Select the current layer in the
7126            map.
7127            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
7128            with the selected layer and/or group.
7129    
7130    2003-03-26  Jonathan Coles   <[email protected]>
7131    
7132            This putback contains the code for dockable windows. There is
7133            no support in wxWindows as of this date for windows that can
7134            attach themselves to other windows.
7135    
7136            The current model contains a DockableWindow which has a parent
7137            window for when it is detached and a dock window that it puts
7138            its contents in when it is docked. The contents of a DockableWindow
7139            must be a DockPanel. DockPanel itself derives from wxPanel.
7140    
7141            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
7142            message, not a LAYER_LEGEND_CHANGED message.
7143    
7144            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
7145    
7146            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
7147            as one of the style properties for the fieldTypeText item to
7148            be sure that its size is correct when the text changes.
7149    
7150            * Thuban/UI/dock.py: New. Classes for the DockPanel and
7151            DockableWindow.
7152    
7153            * Thuban/UI/legend.py: Added some more buttons and made the
7154            LegendPanel a DockPanel.
7155    
7156            * Thuban/UI/mainwindow.py: Added sash windows to the main window
7157            and supporting functions for manipulating the sashes.
7158            (MainWindow.ShowLegend): Create a DockableWindow with the
7159            LegendPanel as the contents.
7160    
7161            * Thuban/UI/messages.py: Added DOCKABLE_* messages
7162    
7163            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
7164            not LAYER_LEGEND_CHANGED, messages.
7165    
7166    2003-03-25  Jonathan Coles   <[email protected]>
7167    
7168            * setup.py: Added custom script bdist_rpm_build_script so that
7169            when the rpm is built the path to wx-config is correct.
7170    
7171            * setup.cfg: Added line saying to use the custom build script
7172    
7173    2003-03-20  Jonathan Coles   <[email protected]>
7174    
7175            Initial implementation of the Legend.
7176    
7177            * Thuban/UI/legend.py: New. Creates a window that shows the map's
7178            Legend information and allows the user to add/modify classifications
7179            and how the layers are drawn on the map.
7180    
7181            * setup.py: New command 'build_docs' which currently uses
7182            happydoc to generate html documentation for Thuban.
7183    
7184            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
7185            Returns a string which is appropriately describes the group.
7186    
7187            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
7188            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
7189    
7190            * Thuban/Model/map.py (Map): Rename messages and use new, more
7191            specific, messages.
7192    
7193            * Thuban/Model/messages.py: New message to indicate that a layer's
7194            data has changed (LAYER_CHANGED). New map messages to indicate
7195            when layers have been added/removed/changed or if the stacking order
7196            of the layers has changed.
7197    
7198            * Thuban/Model/session.py: Rename and use new messages.
7199    
7200            * Thuban/UI/classifier.py: Remember if any changes have actually
7201            been applied so that if the dialog is cancelled without an application
7202            of changes we don't have to set a new classification.
7203            (ClassDataPreviewer): Pulled out the window specific code and put it
7204            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
7205            symbols on any DC.
7206            
7207            * Thuban/UI/mainwindow.py: New code to open the legend.
7208    
7209            * Thuban/UI/view.py: Use new message names.
7210    
7211    2003-03-19  Jonathan Coles   <[email protected]>
7212    
7213            * Thuban/UI/main.py (verify_versions): New. Checks the versions
7214            of Python, wxPython, and some other libraries.
7215    
7216            * extensions/thuban/wxproj.cpp (check_version): Checks the given
7217            version against what wxproj was compiled with.
7218            (check_version_gtk): If wxproj was compiled with gtk then check
7219            the given version against the version of the gtk library
7220            currently being used.
7221    
7222    2003-03-14  Bernhard Herzog  <[email protected]>
7223    
7224            * test/test_command.py: Run the tests when the module is run as a
7225            script
7226    
7227    2003-03-14  Bernhard Herzog  <[email protected]>
7228    
7229            Implement selection of multiple selected shapes in the same layer:
7230    
7231            - Introduce a new class to hold the selection. This basically
7232              replaces the interactor which was nothing more than the
7233              selection anyway. A major difference is of course that the new
7234              selection class supports multiple selected shapes in one layer
7235            
7236            - Move the object that represents the selection from the
7237              application to the canvas. The canvas is a better place than the
7238              application because the selection represents which shapes and
7239              layer of the map displayed by the canvas are selected and
7240              affects how the map is drawn.
7241    
7242            - Make the selection and its messages publicly available through
7243              the mainwindow.
7244    
7245            - The non-modal dialogs do not get a reference to the interactor
7246              anymore as they can simply refer to their parent, the
7247              mainwindow, for the what the interactor had to offer.
7248    
7249            * Thuban/UI/selection.py: New module with a class to represent the
7250            selection.
7251    
7252            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
7253            these unused messages
7254    
7255            * Thuban/UI/application.py (ThubanApplication.OnInit)
7256            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
7257            interactor is gone now.
7258            (ThubanApplication.CreateMainWindow): There is no interactor
7259            anymore so we pass None as the interactor argument for now for
7260            compatibility.
7261    
7262            * Thuban/UI/view.py (MapCanvas.delegated_messages)
7263            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
7264            Unsubscribe, delegate messages according to the delegated_messages
7265            class variable.
7266            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
7267            attributes from instance variables as described with the
7268            delegated_methods class variable.
7269            (MapCanvas.__init__): New instance variable selection holding the
7270            current selection
7271            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
7272            pass them on to the renderer
7273            (MapCanvas.SetMap): Clear the selection when a different map is
7274            selected.
7275            (MapCanvas.shape_selected): Simple force a complete redraw. The
7276            selection class now takes care of only issueing SHAPES_SELECTED
7277            messages when the set of selected shapes actually does change.
7278            (MapCanvas.SelectShapeAt): The selection is now managed in
7279            self.selection
7280    
7281            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
7282            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
7283            Unsubscribe, delegate messages according to the delegated_messages
7284            class variable.
7285            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
7286            attributes from instance variables as described with the
7287            delegated_methods class variable.
7288            (MainWindow.__init__): The interactor as ivar is gone. The
7289            parameter is still there for compatibility. The selection messages
7290            now come from the canvas.
7291            (MainWindow.current_layer, MainWindow.has_selected_layer):
7292            Delegate to the the canvas.
7293            (MainWindow.LayerShowTable, MainWindow.Classify)
7294            (MainWindow.identify_view_on_demand): The dialogs don't need the
7295            interactor parameter anymore.
7296    
7297            * Thuban/UI/tableview.py (TableFrame.__init__)
7298            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
7299            (LayerTableFrame.row_selected): The interactor is gone. It's job
7300            from the dialog's point of view is now done by the mainwindow,
7301            i.e. the parent. Subscribe to SHAPES_SELECTED instead
7302            of SELECTED_SHAPE
7303            
7304            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
7305            is gone. It's job from the dialog's point of view is now done by
7306            the mainwindow, i.e. the parent.
7307            
7308            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
7309            gone. It's job from the dialog's point of view is now done by the
7310            mainwindow, i.e. the parent.
7311    
7312            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
7313            gone. It's job from the dialog's point of view is now done by the
7314            mainwindow, i.e. the parent.
7315            (SessionTreeCtrl.__init__): New parameter mainwindow which is
7316            stored as self.mainwindow. The mainwindow is need so that the tree
7317            can still subscribe to the selection messages.
7318            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
7319            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
7320            selection is now accessible through the mainwindow. Subscribe to
7321            SHAPES_SELECTED instead of SELECTED_SHAPE
7322    
7323            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
7324            SHAPES_SELECTED message now.
7325            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
7326            so deal with multiple shapes
7327            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
7328            gone. It's job from the dialog's point of view is now done by the
7329            mainwindow, i.e. the parent.
7330    
7331            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
7332            parameter is now a list of shape ids.
7333            (RecordTable.SetTable): The second parameter is now a list of
7334            indices.
7335    
7336            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
7337            selected_shape parameter and ivar to selected_shapes. It's now a
7338            list of shape ids.
7339            (MapRenderer.draw_label_layer): Deal with multiple selected
7340            shapes. Rearrange the code a bit so that the setup and shape type
7341            distinctions are only executed once.
7342    
7343            * test/test_selection.py: Test cases for the selection class
7344    
7345    2003-03-11  Jonathan Coles   <[email protected]>
7346    
7347            * Thuban/Model/load.py: Temporary fix so that the xml reader
7348            doesn't cause Thuban to crash.
7349    
7350            * Thuban/Model/layer.py: Handle the cyclic references between
7351            a layer and its classification better, and be sure to disconnect
7352            the classification from the layer when the layer is destroyed
7353            so that we don't maintain a cyclic reference that may not be
7354            garbage collected.
7355    
7356            * Thuban/Model/classification.py: See comment for layer.py.
7357    
7358    2003-03-12  Jan-Oliver Wagner <[email protected]>
7359    
7360            * HOWTO-Release: New. Information on the steps for releasing
7361            a new version of Thuban.
7362    
7363    2003-03-11  Jonathan Coles   <[email protected]>
7364    
7365            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
7366            Use True instead of true.
7367            (Classifier): Should have a single panel in which all the controls lie.
7368    
7369            * Thuban/UI/proj4dialog.py: Add normal border.
7370    
7371            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
7372    
7373            * Thuban/UI/mainwindow.py: Use True instead of true.
7374    
7375            * setup.py: Update some definitions to use wxWindows2.4 files
7376    
7377            * Data/iceland_sample_class.thuban: Fixed file so that the
7378            field_type information is present.
7379    
7380    2003-03-10  Jonathan Coles   <[email protected]>
7381    
7382            * Thuban/UI/classifier.py (Classifier.__init__): Make the
7383            field type label grow so that when the text changes the
7384            size is updated correctly. This may be a wxWindows bug.
7385    
7386    2003-03-10  Jonathan Coles   <[email protected]>
7387    
7388            * Thuban/UI/application.py: Changed SESSION_CHANGED to
7389            SESSION_REPLACED.
7390    
7391            * Thuban/UI/classifier.py: Wrap text with _().
7392            (ClassGrid.CreateTable): Set dimensions and size hints here,
7393            instead of in Reset, so we only set the size once.
7394    
7395            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
7396    
7397            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
7398            Call Close() instead of Shutdown().
7399    
7400            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
7401    
7402            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
7403            Go back to using OnClose() instead of Shutdown().
7404    
7405    2003-03-10  Jonathan Coles   <[email protected]>
7406    
7407            * Thuban/UI/classifier.py (Classifier): SelectField() needed
7408            to know the old field index as well as the new one.
7409    
7410    2003-03-10  Jonathan Coles   <[email protected]>
7411    
7412            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
7413            to correctly set the table information and call this from
7414            __init__ and from _OnFieldSelect so that all the information
7415            is up to date when the dialog opens and when a field is changed.
7416    
7417    2003-03-10  Jonathan Coles   <[email protected]>
7418    
7419            * Thuban/Model/classification.py (Classification): Don't use
7420            layer's message function directly, use the ClassChanged() method
7421            when then classification changes. SetField/SetFieldType/SetLayer
7422            must keep the information about field name and field type in
7423            sync when an owning layer is set or removed.
7424    
7425            * Thuban/Model/layer.py: Added ClassChanged() so that the
7426            classification can tell the layer when its data has changed.
7427            (Layer.SetClassification): Accepts None as an arguement to
7428            remove the current classification and correctly handles
7429            adding a new classification.
7430    
7431            * Thuban/Model/load.py: Comment out print statement
7432    
7433            * test/test_classification.py, test/test_save.py: New and
7434            improved tests.
7435    
7436    2003-03-07  Jonathan Coles   <[email protected]>
7437    
7438            * Thuban/Model/classification.py: Implemented __copy__ and
7439            __deepcopy__ for ClassGroup* and ClassGroupProperites so
7440            they can easily be copied by the classifier dialog.
7441            (ClassGroupProperites.__init__): The default line color should
7442            have been Color.Black.
7443    
7444            * Thuban/UI/classifier.py: Setting and Getting table values now
7445            uses a consistent set of functions.
7446            (Classifier): Now non-modal. Has field type label which changes
7447            as the field changes. Keep track of buttons in a list so that
7448            we can enable/disable the buttons when the None field is selected.
7449            (SelectPropertiesDialog): Add buttons to make the colors transparent.
7450    
7451            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
7452            does what OnClose did, but can be called by the application to
7453            close a window. Needed when a session changes, and we have to
7454            close the classifier windows.
7455    
7456            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
7457            Shuts down open dialogs. Used when a new session is created
7458            or a session is opened.
7459            (MainWindow.SaveSession): Should only call application.SaveSession()
7460            if we don't call SaveSessionAs first.
7461            (MainWindow.Classify): Allow different classifier dialogs for
7462            different layers.
7463    
7464            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
7465            the parent class handle it. Add Shutdown() to unsubscibe from
7466            event notification and call the parent Shutdown(). This was
7467            necessary so the application can close the tree window.
7468    
7469    2003-03-06  Jonathan Coles   <[email protected]>
7470    
7471            * Thuban/Model/classification.py: Minor documentation changes,
7472            Addition of __eq__ and __ne__ methods.
7473            (Classification.SetLayer): prevent recursion between this method
7474            and Layer.SetClassification().
7475    
7476            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
7477    
7478            * Thuban/Model/layer.py (SetClassification): prevent recursion
7479            between this method and Classification.SetLayer().
7480    
7481            * test/test_classification.py, test/test_load.py,
7482            test/test_session.py: Fixed and added tests for the classification
7483            classes.
7484    
7485    2003-03-06  Bernhard Herzog  <[email protected]>
7486    
7487            * Thuban/UI/classifier.py (ClassGrid.__init__)
7488            (ClassGrid.CreateTable): Move the SetSelectionMode call to
7489            CreateTable because otherwise it triggers an assertion in
7490            wxPython/wxGTK 2.4.
7491    
7492    2003-03-05  Jonathan Coles   <[email protected]>
7493    
7494            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
7495    
7496            * Thuban/Model/load.py: import FIELDTYPE constants from table.
7497    
7498            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
7499    
7500            * Thuban/Model/table.py: Put FIELDTYPE constants back.
7501    
7502    2003-03-05  Jonathan Coles   <[email protected]>
7503    
7504            * Thuban/UI/classifier.py: Added class documentation.
7505            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
7506            Store just the groups in the table and generate the other
7507            column information when it is requested. Add "None" field
7508            to pull-down to select no classification.
7509    
7510            * Thuban/common.py: Moved FIELDTYPE constants from table.py
7511            (Str2Num): Only catch ValueError exceptions.
7512    
7513            * Thuban/Model/classification.py: Class documentation. Renaming
7514            of methods with Stroke to Line. Groups are stored in a single
7515            list with the default as the first element. Groups are searched
7516            in the order they appear in the list.
7517    
7518            * Thuban/Model/color.py: Documentation.
7519    
7520            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
7521            the kind of data represented by a field.
7522    
7523            * Thuban/Model/load.py (ProcessSession): Use proper string
7524            conversion function; fixes RTbug #1713.
7525    
7526            * Thuban/Model/save.py (Saver): Store field type information.
7527    
7528            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
7529            (Table): Add field_info_by_name() to retrieve field information
7530            by specifying the field name, not the number.
7531    
7532            * Thuban/UI/mainwindow.py: Function name changes.
7533    
7534            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
7535            get the layer classification once. Don't try to classify
7536            values when the field is None: just use the default properties.
7537    
7538            * Thuban/UI/view.py: Function name changes.
7539    
7540            * Doc/thuban.dtd: Add field_type attribute to a classification.
7541    
7542    2003-03-04  Bernhard Herzog  <[email protected]>
7543    
7544            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
7545            the fill and stroke layer attributes optional with suitable
7546            default values. Add the stroke_width layer attribute. Use correct
7547            syntax for empty elements. Make the attribute list for labels
7548            refer to the label element.
7549    
7550    2003-03-04  Bernhard Herzog  <[email protected]>
7551    
7552            * setup.py (thuban_build_py.build): Add a comment about distutils in
7553            Python 2.3 containing some of the functionality we implement in
7554            setup.py ourselves.
7555    
7556            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
7557            before the selection mode. Doing it the other way round triggers
7558            an assertion in wxWindows.
7559    
7560            * Thuban/Model/save.py (escape): Fix typo in doc-string
7561    
7562            * Thuban/Model/classification.py: Remove unnecessary wxPython
7563            import
7564    
7565    2003-03-04  Jonathan Coles   <[email protected]>
7566    
7567            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
7568            Parameter 'value' should default to None.
7569    
7570            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
7571            the class attribute __classification is now private.
7572    
7573            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
7574            Classifier to ClassGrid. Added support for removing selected rows,
7575            which including code for keeping track of when cells are selected,
7576            and deselected.
7577            (ClassTable): Support for added/removing rows. Fixed a problem
7578            with __ParseInput whereby it would not allow strings (only numbers)
7579            to be entered.
7580            (Classifier): Added button and supporting code for removing
7581            selected rows.
7582    
7583    2003-02-27  Jonathan Coles   <[email protected]>
7584    
7585            * Thuban/common.py: Moved color conversion functions into
7586            Thuban/UI/common.py.
7587            (Str2Num): Now converts the float (not the string) to a long/int
7588            so that an exception isn't thrown.
7589    
7590            * Thuban/UI/common.py: Common functions used in several UI modules
7591    
7592            * Thuban/Model/classification.py: Changed the class hierarchy
7593            so that a Classification consists of Groups which return
7594            Properties when a value matches a Group.
7595    
7596            * Thuban/Model/layer.py: Fixed name resolution problem.
7597    
7598            * Thuban/Model/load.py: Use new Classification and Group functions.
7599    
7600            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
7601            failure.
7602            (Saver.write_classification): Use new Classification and Group
7603            functions.
7604    
7605            * Thuban/UI/classifier.py: Changes to use new Classification and Group
7606            functions. Fix to create a tuple with a single value instead of
7607            simply returning the value.
7608    
7609            * Thuban/UI/renderer.py: Use new Classification and Group functions.
7610            Use common.py functions.
7611    
7612            * Thuban/UI/tree.py: Use common.py functions.
7613            
7614            * test/test_classification.py: Use new Classification and Group
7615            classes.
7616    
7617    2003-02-24  Jonathan Coles   <[email protected]>
7618    
7619            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
7620            functions from Thuban color objects to wxWindow colour objects.
7621    
7622            * Thuban/Model/classification.py (Classification): Renamed
7623            GetProperties() to GetClassData(). Used the new iterator
7624            in TreeInfo().
7625            (ClassIterator): Iterator implementation to iterate over the
7626            ClassData objects in a classification object.
7627    
7628            * Thuban/Model/save.py (Saver.write_classificaton): Uses
7629            the new iterator to save the classification information.
7630    
7631            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
7632            for changing the stroke and fill colors and previewing the
7633            changes.
7634    
7635            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
7636            MainWindow.SaveSessionAs): Text string changes so the dialogs
7637            have more meaningful titles.
7638    
7639            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
7640            Classification method name from GetProperties to GetClassData.
7641    
7642            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
7643            instead of accessing now non-existent class variables.
7644    
7645    2003-02-24  Bernhard Herzog  <[email protected]>
7646    
7647            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
7648            unneeded Shape() call. Rendering is substantially faster without
7649            it and it avoids some problems with broken shape files.
7650    
7651    2003-02-20  Frank Koormann   <[email protected]>
7652    
7653            Force minimal size of identify and label dialogs. The autosizing
7654            looked too ugly.
7655    
7656            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
7657            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
7658            Set size of listctrl.
7659            * Thuban/UI/identifyview.py (IdentifyView.__init__):
7660            Set size of dialog.
7661    
7662    2003-02-19  Jonathan Coles   <[email protected]>
7663    
7664            * test/test_classification.py, test/test_layer.py,
7665            test/test_load.py, test/test_map.py, test/test_session.py:
7666            Updated the tests to use the new functions that are in the
7667            respective classes.
7668    
7669            * Thuban/Model/classification.py (Classification):
7670            Uses the new ClassData* classes. Modification messages are
7671            passed up to the parent layer (if it exists).
7672            (ClassData): New class to encapsulate the common data in each
7673            classification property.
7674            (ClassDataDefault): Represents the Default class. data.
7675            (ClassDataPoint): Represents a single class. data point
7676            (ClassDataRange): Represents a class. range
7677            (ClassDataMap): Represents a class. map (unused).
7678    
7679            * Thuban/Model/color.py: Added Color.None to represent something
7680            with no color. Color.Black represents the color black.
7681            (NoColor): Helper class derived from Color to represent something
7682            with no color.
7683    
7684            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
7685            stroke_width attributes. Made the 'classification' attribute private.
7686            New methods for setting/getting the classification.
7687    
7688            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
7689            to get the classifcation and use the new ClassData* classes to
7690            hold the classification data. Use Str2Num to convert numbers
7691            properly.
7692    
7693            * Thuban/Model/save.py (Saver): Use new Color and Classification
7694            methods
7695    
7696            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
7697            custom grid.
7698            (ClassTable): Support for editing Values and Labels and for
7699            changing what type (point or range) of data is stored in each
7700            property based on how the user enters the data.
7701            (Classifier): Support for saving the new classifications and
7702            launching the dialog to edit a property.
7703            (SelectPropertiesDialog): New class for editing the visual
7704            properties of a classification (stroke color, width, and fill color)
7705            (ClassPreviewer): Took the Draw method from ClassRenderer and
7706            made most of it into this new class. Intend to use this class in
7707            the SelectPropertiesDialog for previewing changes.
7708    
7709            * Thuban/UI/renderer.py: Use new Color and Classification methods.
7710    
7711            * Thuban/UI/tree.py: Formatting changes.
7712    
7713            * Doc/thuban.dtd: Add 'label' element
7714    
7715            * Thuban/common.py: New. Contains common routines used throughout
7716            the code.
7717            (Str2Num): Takes a string and converts it to the "best" type of
7718            number.
7719    
7720    2003-02-14  Bernhard Herzog  <[email protected]>
7721    
7722            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
7723            dragging flag is always set to 0 even when the tool implementation
7724            raises an exception
7725    
7726    2003-02-11  Bernhard Herzog  <[email protected]>
7727    
7728            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
7729            method to create a splash screen.
7730            (ThubanApplication.ShowMainWindow): New. Show the main window.
7731            Needed so the splash screen can display the mainwindow
7732            (ThubanApplication.OnInit): Call the
7733            new splash_screen method to determine whether the application
7734            should display a splash screen. If it displays a splash screen do
7735            not immediately show the main window.
7736    
7737    2003-02-11  Jonathan Coles  <[email protected]>
7738    
7739            * Thuban/Model/classification.py: Added import line to fix
7740            feature conflicts between running on python2.2 and python2.1.
7741    
7742            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
7743            onto the clinfo parameter, so removed the deepcopy().
7744    
7745    2003-02-10  Jonathan Coles  <[email protected]>
7746    
7747            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
7748            Added element_open variable to track opening and closing of tags
7749            so that tags that don't span more than one line are closed with
7750            /> instead of </tag_name>. Use the GetDefault*() methods of
7751            the Classification class.
7752    
7753            * Thuban/Model/classification.py (Classificaton): Added set and
7754            get methods for the default data. The class also takes a layer
7755            reference so that modification messages can be sent. Fixed the
7756            methods to use the new ClassData class.
7757            (ClassData): New class to encapsulate the classification data
7758    
7759            * Thuban/Model/layer.py (Layer): Remove the
7760            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
7761            SetDefault*() methods on the layer's classification object.
7762            (Layer.__init__): Use the new SetDefault*() methods in the
7763            Classification class.
7764    
7765            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
7766            object instead of a dictionary.
7767    
7768            * Thuban/UI/classifier.py (ClassRenderer): New class to
7769            draw the classifications in the dialog box's table.
7770            (Classifier): Modified to use the ClassRenderer class.
7771    
7772            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
7773            methods of the Classification class.
7774    
7775            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
7776            of the ClassData class.
7777    
7778            * test/test_classification.py, test/test_layer.py,
7779            test/test_map.py, test/test_session.py: Fix the tests to work
7780            with the above code changes.
7781    
7782    2003-02-03  Jonathan Coles  <[email protected]>
7783    
7784            * Thuban/Model/classification.py (Classification): Added getNull()
7785            to return the NullData reference
7786    
7787            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
7788            Layer.SetStrokeWidth): Modified these functions to change the
7789            null data in the classification rather than keep these values
7790            directly in the Layer class. Menu options to change these values
7791            work again.
7792    
7793    2003-01-28  Jonathan Coles  <[email protected]>
7794    
7795            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
7796            Fixed crashing problem on some systems. Dialog box shows
7797            classification data.
7798    
7799            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
7800            Colors in the tree view.
7801    
7802            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
7803            the tree info for classifications. Commented out unnecessary lines.
7804    
7805            * Thuban/Model/classification.py (Classification.TreeInfo): New
7806            function to add information about the classification into the
7807            tree view.
7808    
7809    2003-01-27  Jan-Oliver Wagner <[email protected]>
7810    
7811            * Thuban/__init__.py (_): New.
7812    
7813            * Thuban/Model/classification.py, Thuban/Model/extension.py,
7814            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
7815            Thuban/Model/session.py, Thuban/UI/application.py,
7816            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
7817            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
7818            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
7819            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
7820            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
7821    
7822    2003-01-27  Jonathan Coles  <[email protected]>
7823    
7824            * Thuban/Model/layer.py: Classification initialization calls.
7825    
7826            * Thuban/Model/classification.py: Created class to encapsulate
7827            a layer classification. Supports specific data points and
7828            ranges.
7829    
7830            * Thuban/Model/load.py: Added support for loading classification
7831            information.
7832    
7833            * Thuban/Model/save.py: Added support for saving classification
7834            information.
7835    
7836            * Thuban/UI/classifier.py: Initial class for a dialog box for
7837            specifying classification information.
7838    
7839            * Thuban/UI/mainwindows.py: Support for opening the classifier
7840            dialog.
7841    
7842            * Thuban/UI/renderer.py: Support for drawing a layer with the
7843            classification information.
7844    
7845            * Data/iceland_sample_class.thuban: iceland_sample with
7846            classification data.
7847    
7848            * test/test_classification: Tests for the Classification class.
7849    
7850    2002-12-09  Bernhard Herzog  <[email protected]>
7851    
7852            * test/test_command.py: New. Tests for the command classes.
7853    
7854            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
7855            (Command.IsTool): New method to distinguish between command
7856            switching tools and other commands.
7857    
7858            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
7859            the tool to avoid direct assignments to instance variables
7860            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
7861            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
7862            change the tool
7863    
7864            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
7865            active tool's command turns insensitive, disable the tool.
7866            (_tool_command): Use the new ToolCommand class
7867    
7868            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
7869            SelectTool method to change the tool
7870            (iconfile): Use the ToolCommand class
7871    
7872    2002-12-03  Bernhard Herzog  <[email protected]>
7873    
7874            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
7875            the case of selected items that are not children of Layers or Maps
7876            properly. Previously this bug would trigger an assertion in
7877            wxWindows.
7878    
7879    2002-11-06  Frank Koormann  <[email protected]>
7880    
7881            * Thuban/UI/mainwindow.py: Altered the order of tools in the
7882            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
7883            Full Extent).
7884    
7885    2002-10-23  Bernhard Herzog  <[email protected]>
7886    
7887            * setup.py (setup call): version now 0.1.3
7888    
7889            * MANIFEST.in: Add the files in test/
7890    
7891            * test/README: Add note about tests requiring the iceland data
7892    
7893            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
7894            copyright notice.
7895    
7896    2002-10-18  Bernhard Herzog  <[email protected]>
7897    
7898            * test/test_map.py
7899            (TestMapWithContents.test_projected_bounding_box): Use an explicit
7900            epsilon.
7901    
7902            * test/support.py (FloatComparisonMixin.assertFloatEqual)
7903            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
7904            message if the assertion fails and don't return the return value
7905            of self.assert_. In assertFloatSeqEqual the return meant that not
7906            all items of the sequence were compared.
7907    
7908    2002-09-20  Bernhard Herzog  <[email protected]>
7909    
7910            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
7911    
7912            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
7913    
7914            * test/test_map.py (TestMapWithContents.test_tree_info): Create
7915            the string with the bounding box on the fly because of platform
7916            differences in the way %g is handled.
7917    
7918            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
7919            DBFfile too because Thuban layers can't yet cope missing DBF
7920            files.
7921    
7922    2002-09-20  Bernhard Herzog  <[email protected]>
7923    
7924            * test/test_menu.py: Use initthuban instead of
7925            add_thuban_dir_to_path to initialize Thuban.
7926    
7927            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
7928            Mixin class for float comparisons
7929            (SubscriberMixin): New. Mixin class to test messages sent through
7930            the Connector class
7931    
7932            * test/README: Fix a typo and add the -v flag to the command for
7933            individual tests
7934    
7935            * test/test_session.py: New. Test cases for Thuban.Model.session
7936    
7937            * test/test_proj.py: New. Test cases for Thuban.Model.proj
7938    
7939            * test/test_map.py: New. Test cases for Thuban.Model.map
7940    
7941            * test/test_layer.py: New. Test cases for Thuban.Model.layer
7942    
7943            * test/test_label.py: New. Test cases for Thuban.Model.label
7944    
7945            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
7946    
7947            * test/test_color.py: New. Test cases for Thuban.Model.color
7948    
7949            * test/test_base.py: New. Test cases for Thuban.Model.base
7950    
7951    2002-09-13  Bernhard Herzog  <[email protected]>
7952    
7953            * Thuban/Model/session.py (Session.forwarded_channels): Forward
7954            the CHANGED channel too.
7955    
7956            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
7957            CHANGED channel too.
7958            (Map.__init__): Call the Modifiable constructor as well.
7959    
7960            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
7961            event if the modified flag changes.
7962            (Modifiable.changed): Tweak the doc-string.
7963    
7964            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
7965            (MainWindow.set_position_text): Put the code that puts the text
7966            with the mouse position into the status bar into the new method
7967            set_position_text so that it can overwritten in derived classes.
7968    
7969    2002-09-12  Bernhard Herzog  <[email protected]>
7970    
7971            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
7972            message box on the main window.
7973    
7974    2002-09-11  Bernhard Herzog  <[email protected]>
7975    
7976            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
7977            the 'E' because it's less likely to interfere with other menu
7978            entries.
7979            (MainWindow.build_menu): remove an incorrect comment.
7980    
7981  2002-09-10  Bernhard Herzog  <[email protected]>  2002-09-10  Bernhard Herzog  <[email protected]>
7982    
7983          * Thuban/UI/mainwindow.py (MainWindow.Map): New.          * Thuban/UI/mainwindow.py (MainWindow.Map): New.
# Line 12  Line 7992 
7992          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
7993          VIEW_POSITION          VIEW_POSITION
7994    
7995  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
7996    
7997          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
7998    
# Line 99  Line 8079 
8079    
8080          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
8081          records.          records.
8082          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
8083    
8084          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
8085          into the underlying table.          into the underlying table.
# Line 137  Line 8117 
8117          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
8118          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
8119    
8120  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
8121    
8122          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
8123          tree window already open          tree window already open
# Line 265  Line 8245 
8245          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
8246          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
8247          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
8248          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
8249          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
8250    
8251          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 326  Line 8306 
8306          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
8307          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
8308          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
8309          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
8310          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
8311    
8312  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 407  Line 8387 
8387          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
8388          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
8389    
8390  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
8391    
8392          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
8393          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 636  Line 8616 
8616          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
8617          position in the statusbar          position in the statusbar
8618    
8619  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
8620    
8621          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
8622    
8623  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
8624            
8625          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
8626    
8627          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
8628    
8629          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
8630    
8631  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
8632            box
8633    
8634    2002-04-21  Jan-Oliver Wagner <[email protected]>
8635    
8636          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
8637    
8638          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
8639    
8640          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
8641          icon; added map_full_extend as tool          icon; added map_full_extend as tool
8642    
8643  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
8644    
8645          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
8646          saving _new_ sessions          saving _new_ sessions
# Line 761  Line 8742 
8742    
8743          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
8744          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
8745    
8746  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
8747    
8748          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
8749          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
8750    
8751          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
8752          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
8753          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
8754          too.          too.
# Line 878  Line 8858 
8858          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
8859          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
8860    
8861          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
8862          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
8863          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
8864          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
8865          the application's OnInit method          the application's OnInit method
# Line 895  Line 8875 
8875          layer to the tableview dialog.          layer to the tableview dialog.
8876    
8877          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
8878          (TableGrid):          (TableGrid):
8879          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
8880          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
8881          (TableFrame.__init__):          (TableFrame.__init__):
# Line 962  Line 8942 
8942  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
8943    
8944          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
8945            
8946          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
8947          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
8948            
8949          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
8950          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
8951          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1012  Line 8992 
8992          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
8993          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
8994          link_file method          link_file method
8995            
8996          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
8997          the window when the first layer is added to the map.          the window when the first layer is added to the map.
8998    
# Line 1049  Line 9029 
9029          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
9030          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
9031          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
9032            
9033          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
9034          installer          installer
9035    

Legend:
Removed from v.311  
changed lines
  Added in v.2060

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26