/[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 924 by frank, Mon May 19 09:12:42 2003 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]>  2003-05-19  Frank Koormann  <[email protected]>
4260    
4261          Extended version information for Thuban          Extended version information for Thuban

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26