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

Legend:
Removed from v.55  
changed lines
  Added in v.1832

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26