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

Legend:
Removed from v.370  
changed lines
  Added in v.1785

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26