/[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 766 by bh, Tue Apr 29 12:42:27 2003 UTC revision 1256 by bh, Fri Jun 20 10:40:42 2003 UTC
# Line 1  Line 1 
1    2003-06-20  Bernhard Herzog  <[email protected]>
2    
3            * Resources/XML/thuban.dtd: Add comment about which versions of
4            Thuban are covered by this DTD
5            (map): Fix content model for layers and raster layers. There can
6            be any number or layers and raster layers in any order.
7    
8    2003-06-20  Jonathan Coles   <[email protected]>
9    
10            * Thuban/Model/classification.py: Remove "from __future__"
11            import statement since python 2.2 is the earliest supported
12            version.
13    
14            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
15            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
16            depending on the units this projection *forwards* into.
17    
18            * Thuban/Model/save.py (SessionSaver.write_classification):
19            Remove unnecessary use of lambdas and nested functions.
20    
21            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
22            adjustment here if the map projection uses degrees.
23    
24            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
25            scale adjust code since it is now done before calling
26            this method. Don't do anything if the map projection
27            is None.
28    
29    2003-06-19  Bernhard Herzog  <[email protected]>
30    
31            Move version specific load tests to their own file.
32    
33            * test/test_load.py: Expand the doc-string to explain a bit how to
34            handle file format changes.
35            (TestClassification.test): Update the docstring as this test is
36            not about Thuban 0.2 anymore.
37    
38            * test/test_load_0_2.py: New file with the load tests for thuban
39            files created with Thuban 0.2 and earlier.
40    
41    2003-06-19  Bernhard Herzog  <[email protected]>
42    
43            Add XML validation to some of the tests. Validation will only be
44            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
45            To make the DTD available to the test cases it's moved into
46            Resources/XML
47    
48            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
49            for versions up to and including 0.2. Two slight changes: added an
50            encoding specification and fixed the comment which refered to
51            GRASS, not Thuban
52    
53            * test/xmlsupport.py: New support module for tests involving XML.
54            Currently there's a mix-in class for XML validation.
55    
56            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
57    
58            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
59            so that we can validate the
60            (SaveSessionTest.testEmptySession)
61            (SaveSessionTest.testSingleLayer)
62            (SaveSessionTest.testSingleLayer)
63            (SaveSessionTest.testLayerProjection)
64            (SaveSessionTest.testRasterLayer)
65            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
66    
67            * test/runtests.py (main): Call print_additional_summary instead
68            of print_garbage_information
69    
70            * test/support.py (resource_dir): New function to return the
71            "Resource" subdirectory
72            (print_additional_summary): New function to combine several
73            summary functions
74            (run_tests): Use print_additional_summary instead of calling
75            print_garbage_information directly
76    
77    2003-06-19  Bernhard Herzog  <[email protected]>
78    
79            * Doc/thuban.dtd (classification): Correct the content model of
80            the classification element.
81            (projection): Add the "name" attribute
82    
83    2003-06-19  Frank Koormann   <[email protected]>
84    
85            MERGE from the greater-ms3 branch.
86    
87            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
88            scale if projection is latlong to get better estimate.
89    
90            Fix problem of hidden properties dialog under windows after double
91            click on layer tree:
92            The tree control always gets an Expanded / Collapsed event after
93            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
94            raises the already displayed window.
95    
96            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
97            raiseProperties initialized to prevent endless loops
98            (LegendTree._OnItemActivated): Depending on self.raiseProperties
99            simply raise the properties or open the dialog and issue a second
100            event.
101    
102    2003-06-18  Jonathan Coles   <[email protected]>
103    
104            * setup.py: Fix a few problems that occured under Windows.
105    
106    2003-06-18  Jonathan Coles   <[email protected]>
107    
108            When Thuban loaded the map was redrawn twice because the
109            legend was being opened after the mainwindow was created
110            and not during its creation. This meant the map was drawn
111            initially and then had to be redrawn when the legend
112            caused the display to change. Now the legend is opened
113            in the mainwindow constructor which resolves this issue.
114    
115            Also, although we were checking for the existence of
116            gdal and gdalwarp modules, the gdalwarp extension was
117            still being compiled (which may fail if the system doesn't
118            have gdal installed). the build_ext command to setup.py
119            now accepts the flags --with-gdal and --without-gdal.
120            If --without-gdal is specified setup.py will try to
121            use the gdal parameters specified by gdal-config. Under
122            windows, those parameters have to be set in setup.py
123            as with proj4 an wxWindows.
124    
125            * setup.py: Use a list instead of seperate variables for
126            extension parameters so we can create a generic function
127            that runs an appropriate *-config script.
128            (run_cs_script): Renamed from run_wx_script and modified
129            to accept a second argument which is a list of lists to
130            be filled in by the values returned from running the command.
131            (thuban_build_ext): New. Extends the build_ext command and
132            provides the options --with-gdal/--without-gdal which then
133            optionally includes the gdalwarp extension.
134    
135            * Thuban/Model/resource.py: First check if we can import
136            the gdalwarp Thuban extension before checking for gdal.
137            Also added some comments.
138            
139            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
140            the map is None which may be the case if none has been loaded
141            yet.
142    
143            * Thuban/UI/main.py (main): Remove call to ShowLegend.
144    
145            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
146    
147            * Thuban/UI/renderer.py: Check for gdal support before importing
148            gdalwarp.
149            (MapRenderer.render_map): Only try to optimize if we have gdal
150            support otherwise nothing will get drawn.
151    
152            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
153            during startup before a map has been created. Check if map is None
154            before using it and do nothing if it is.
155    
156    2003-06-17  Jonathan Coles   <[email protected]>
157    
158            Fix the problem with raster layers under Windows that caused
159            Thuban to crash. The view should respond to layer projection
160            changed events to update the display. Changes to a projection
161            should not cause the map to be set to full extent.
162            
163            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
164            current_map_proj to remember the current map projection so that
165            when the projection changes we know what the previous projection
166            was.
167            (MapCanvas.SetMap): Unsubscribe and subscribe to
168            LAYER_PROJECTION_CHANGED events.
169            (MapCanvas.projection_changed): Split into two methods that respond
170            to map and layer projection changes.
171            (MapCanvas.map_projection_changed): New. Takes the current view and
172            projects it using the new projection. This does not cause the
173            map to be redrawn at full extent.
174            (MapCanvas.layer_projection_changed): New. Cause a redraw which
175            will draw each layer in its new projection.
176            
177            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
178            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
179            under Windows.
180            
181            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
182            to twice sizeof(void*) because there are two digits for each
183            hex byte.
184    
185    2003-06-16  Bernhard Herzog  <[email protected]>
186    
187            Update to the layer interface: Direct access to the table,
188            shapetable, shapefile and filename attributes is now actively
189            deprecated by issuing deprecation warnings for all places where
190            this happens.
191    
192            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
193            to the instance variables table, shapetable, shapefile and
194            filename via __getattr__ so that we can issue a deprecation
195            warning.
196            (Layer.SetShapeStore): Don't set the deprecated instance variables
197            any more
198            (Layer.SetShapeStore): Don't use deprecated layer instance
199            variables
200            (Layer.Destroy): No need to explicitly remove the instance
201            variables any more
202            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
203            instance variables
204    
205            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
206            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
207            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
208            use deprecated layer instance variables
209    
210            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
211            deprecated layer instance variables
212    
213            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
214            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
215            instance variables
216    
217            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
218            deprecated layer instance variables
219    
220            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
221            deprecated layer instance variables
222    
223            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
224            deprecated layer instance variables
225    
226            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
227            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
228            variables
229    
230            * test/runtests.py (main): Turn Thuban's deprecation warnings into
231            errors so that they're cought by the tests
232    
233            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
234            layer instance variables
235    
236    2003-06-16  Jonathan Coles   <[email protected]>
237    
238            Fix a problem under Windows whereby if the user double-clicks on a
239            layer in the legend that tree item will expand or collapse as well
240            as open the layer properties dialog. The state of the tree item
241            should not be affected.
242    
243            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
244            preventExpandCollapse and subscribe to expanding and collapsing
245            events.
246            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
247            collapsing events and will veto the event if it has been triggered
248            by the user double clicking on a layer.
249            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
250            that an expanding/collapsing event should be vetoed.
251    
252    2003-06-13  Bernhard Herzog  <[email protected]>
253    
254            * Thuban/UI/classifier.py (Classifier.OnClose)
255            (Classifier.map_layers_removed)
256            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
257            in OnClose and not in map_layers_removed or
258            layer_shapestore_replaced to make sure it always happens when the
259            dialog is closed
260    
261    2003-06-13  Jonathan Coles   <[email protected]>
262    
263            This puts back a fix for Windows where a panel is needed so that
264            the background of the table view appears correctly.
265    
266            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
267            object that can be used by derived classes to place any
268            controls (including the grid) onto.
269            (QueryTableFrame.__init__): Use the panel as the parent window
270            for all the controls. Reparent the grid so that the panel is
271            the parent. Call UpdateStatusText() to correctly initialize
272            the status bar.
273    
274    2003-06-13  Jonathan Coles   <[email protected]>
275    
276            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
277            from wxFrame (as opposed to wxDialog like the other classes)
278            but otherwise behaves like the other classes. This is needed
279            for the TableView which isn't really a dialog and needs to
280            have a status bar and control buttons.
281    
282            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
283            instance variable to keep track of how many rows are selected.
284            Subscribe once to the the events we are interested in.
285            (ThubanGrid.OnRangeSelect): Only handle event if event handling
286            hasn't been turned off.
287            (ThubanGrid.OnSelectCell): Only handle event if event handling
288            hasn't been turned off.
289            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
290            as an event listener (which changes the event handler stack)
291            simply set an instance variable to False. This is checked in
292            the event handlers.
293            (ThubanGrid.GetNumberSelected): Return the number of currently
294            selected rows.
295            (TableFrame): Inherit from ThubanFrame so we can have a
296            status bar and control buttons.
297            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
298            Explicitly set which items are selected in the operator choice and
299            action choice so there is always a valid selection. Fixes RTbug #1941.
300            Subscribe to grid cell selection events so we can update the
301            status bar.
302            (QueryTableFrame.UpdateStatusText): Update the status bar with
303            how many rows are in the grid, how many columns, and how many
304            rows are selected.
305            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
306            Call UpdateStatusText when cells are (de)selected.
307            (QueryTableFrame.OnQuery): Use the string value in the value
308            combo if either the selected item index is 0 or if the string
309            cannot be found in the predefined list (this happens if the
310            user changes the text). Fixes RTbug #1940.
311            Only turn off the grid event listeners if there a query comes
312            back with a none empty list of ids. in the case that the list
313            is empty this causes a grid.ClearSelection() call to actually
314            clear the grid selection which causes the selected items in
315            the map to be deselected. Fixes RTbug #1939.
316    
317            * test/test_save.py (XMLWriterTest.Encode): Check return values.
318            Fixes RTbug #1851.
319    
320    2003-06-13  Bernhard Herzog  <[email protected]>
321    
322            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
323            self.selected_shape with the current selection to make sure the
324            contents of the dialog are up to date when it's shown for the
325            first time.
326            The dialog used to work without this by luck. The recent fix to
327            the connector module 'broke' a 'feature' the identify view was
328            relying on, i.e that subscribing to a message in response to
329            receiving a message of that type would mean that the new
330            subscriber would also be called for the same message.
331            
332    2003-06-12  Jonathan Coles   <[email protected]>
333    
334            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
335            the image is rendered. Fixes RTbug #1937.
336    
337    2003-06-12  Jonathan Coles   <[email protected]>
338    
339            * Thuban/Lib/fileutil.py: As is done under Windows, create the
340            user directory if it doesn't exist on a posix system.
341            Fixes RTbug #1815.
342    
343            * Thuban/Model/resource.py (get_user_proj_files): Moved the
344            called to get_application_dir here, so that the directory
345            will only be called if this method is invoked.
346    
347            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
348            the projfilepath if no projection is selected.
349    
350    2003-06-12  Jonathan Coles   <[email protected]>
351    
352            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
353            the scalebar if the current map has no projection set.
354    
355            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
356            projfilepath label to just the basename of the projection file
357            rather than include the entire path.
358    
359            * Thuban/Model/resource.py: Fix missed proj functions that
360            needed to be renamed.
361    
362    2003-06-12  Jonathan Coles   <[email protected]>
363    
364            * Thuban/Model/classification.py: Removed assert statements that
365            tested if the variable was an instance of Color.
366    
367            * Thuban/Model/color.py (Color): Remove commented code that isn't
368            used.
369            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
370            Fixes RTbug #1835.
371            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
372            Needed now that the class doesn't inherit from Color.
373    
374    2003-06-12  Jonathan Coles   <[email protected]>
375    
376            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
377            check unicode strings.
378    
379            * test/test_layer.py: Check for existence of gdal.
380    
381    2003-06-12  Jonathan Coles   <[email protected]>
382        
383            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
384            that was in load.py
385    
386            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
387            that was in save.py
388    
389    2003-06-12  Jonathan Coles   <[email protected]>
390    
391            This is largely a collection of bug fixes. We also handle the
392            case where gdal is not on the system. The XMLReader and XMLWriter
393            classes were moved into there own files to resolve some circular
394            import references and because they shouldn't really be in the
395            file that is dediciated to reading/writing session files since
396            they are also used elsewhere.
397    
398            * Thuban/Model/classgen.py: Renamed functions to follow the
399            function_names_with_underscores style. Fixes RTbug #1903.
400            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
401    
402            * Thuban/Model/layer.py: Import gdal only if it available.
403            (RasterLayer): Handle the case where the gdal library is unavailable.
404            Addresses RTbug #1877.
405    
406            * Thuban/Model/load.py (XMLReader): Moved into seperate file
407            xmlreader.py.
408    
409    2003-06-12  Jonathan Coles   <[email protected]>
410    
411            This is largely a collection of bug fixes. We also handle the
412            case where gdal is not on the system. The XMLReader and XMLWriter
413            classes were moved into there own files to resolve some circular
414            import references and because they shouldn't really be in the
415            file that is dediciated to reading/writing session files since
416            they are also used elsewhere.
417    
418            * Thuban/Model/classgen.py: Renamed functions to follow the
419            function_names_with_underscores style. Fixes RTbug #1903.
420            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
421    
422            * Thuban/Model/layer.py: Import gdal only if it available.
423            (RasterLayer): Handle the case where the gdal library is unavailable.
424            Addresses RTbug #1877.
425    
426            * Thuban/Model/load.py (XMLReader): Moved into seperate file
427            xmlreader.py.
428    
429            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
430            file xmlwriter.py.
431    
432            * Thuban/Model/resource.py: Renamed functions to following the
433            function_names_with_underscores style.
434            (has_gdal_support): New function that returns true if the gdal
435            library is available. Addresses RTbug #1877.
436    
437            * Thuban/UI/application.py (ThubanApplication.OpenSession):
438            Display a message box if the gdal library is not available, but
439            only if there are any layers that would use it. Addresses RTbug #1877.
440    
441            * Thuban/UI/classgen.py: Use renamed projection resource functions.
442            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
443            when using integers versus floats.
444    
445            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
446            determine if the "Add Image Layer" menu option should be
447            greyed out or not. Addresses RTbug #1877.
448    
449            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
450    
451            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
452            optimize if a raster layer is visible. Fixes RTbug #1931.
453            Only draw the raster layer if the gdal library is available.
454            Addresses RTbug #1877.
455    
456            * test/test_classgen.py: Add tests for generate_singletons,
457            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
458            (test_calculate_quantiles): Fix some tests to catch the new
459            ValueError that is raised.
460    
461            * test/test_proj.py: Use renamed projection resource functions.
462    
463            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
464            test for saving classified layers. Fixes RTbug #1902.
465            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
466    
467    2003-06-12  Jan-Oliver Wagner <[email protected]>
468    
469            Fix for http://intevation.de/rt/webrt?serial_num=1900.
470    
471            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
472    
473            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
474            multiplechoicedialog.py rather than from the wxPython library.
475    
476    2003-06-11  Frank Koormann  <[email protected]>
477    
478            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
479            update.
480    
481    2003-06-11  Frank Koormann  <[email protected]>
482    
483            * Thuban/Lib/fileutil.py (get_application_dir): New function to
484            determine the absolute .thuban/thuban directory under
485            "posix" (os.expanduser) and "nt" (read AppData registry key).
486    
487            * Thuban/Model/resource.py: Use get_application_dir
488    
489            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
490            Use get_application_dir.
491    
492    2003-06-10  Bernhard Herzog  <[email protected]>
493    
494            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
495            the messages MAP_LAYERS_REMOVED messages
496            (LayerTableFrame.OnClose): Unsubscribe from it.
497            (LayerTableFrame.map_layers_removed): New. Receiver for
498            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
499            dialog is showing is removed.
500    
501    2003-06-10  Bernhard Herzog  <[email protected]>
502    
503            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
504            of the receivers list so that unsubscribing in a receiver doesn't
505            modify it while iterating over it.
506    
507            * test/test_connector.py
508            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
509            unsubscribing in a receiver works correctly. See docstring for
510            details
511    
512    2003-06-10  Bernhard Herzog  <[email protected]>
513    
514            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
515            message.
516    
517            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
518            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
519            LAYER_CHANGED will still be sent if the classification changes.
520    
521            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
522            parameter so we can subscribe to some of its messages
523            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
524            and the layer's LAYER_SHAPESTORE_REPLACED
525            (Classifier.unsubscribe_messages): New. Unsubscribe from message
526            subscribed to in __init__
527            (Classifier.map_layers_removed)
528            (Classifier.layer_shapestore_replaced): receivers for the messages
529            subscribed to in __init__. Unsubscribe and close the dialog
530    
531            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
532            the map to the Classifier dialog
533    
534            * test/test_layer.py (SetShapeStoreTests): Derive from
535            SubscriberMixin as well so we can test messages
536            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
537            messages
538            (SetShapeStoreTests.tearDown): Clear the messages again
539            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
540            for the modified flag too
541            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
542            to check whether SetShapeStore sets the modified flag
543            (SetShapeStoreTests.test_set_shape_store_different_field_name)
544            (SetShapeStoreTests.test_set_shape_store_same_field)
545            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
546            Add tests for the messages. This checks both the new
547            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
548    
549    2003-06-06  Jan-Oliver Wagner <[email protected]>
550    
551            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
552            the menu items.
553    
554    2003-06-05  Frank Koormann  <[email protected]>
555    
556            * Thuban/UI/identifyview.py (IdentifyView.__init__):
557            Layout reimplemented without panel. Make life easier to fit the list
558            in the dialog.
559    
560    2003-06-05  Frank Koormann  <[email protected]>
561    
562            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
563            once on initialisation (Former implementation resulted in multiple
564            entries for each projection).
565            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
566            if set, select the projection found under the specified name. This
567            overwrites any other selection estimate.
568            Removed projchoice filling from this method.
569            (ProjFrame._OnSave, ProjFrame._OnAddToList):
570            Updated call of ProjFrame.__FillAvailList
571            (LCCPanel._DoLayout): Moved parameter controls in more common order.
572    
573            * Resources/Projections/defaults.proj: Extended defaults representing
574            various common European projections.
575    
576    2003-06-05  Frank Koormann  <[email protected]>
577    
578            * Thuban/UI/identifyview.py (IdentifyView.__init__):
579            Use ListCtrl instead of GridCtrl
580    
581            * Thuban/Model/resource.py:
582            Guess location of .thuban directory from tempdir parent directory.
583    
584            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
585            Guess location of .thuban directory from tempdir parent directory.
586    
587    2003-06-04  Bernhard Herzog  <[email protected]>
588    
589            Do not cache the values returned by the tree widget's
590            GetFirstChild and GetNextChild methods because it led to lots of
591            segfaults. The new way requires more brute force but is more
592            reliable.
593    
594            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
595            variable layer2id
596            (LegendTree.find_layer): New method to do with brute force what
597            layer2id tried to accomplish
598            (LegendTree._OnMsgLayerChanged)
599            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
600            Use find_layer instead of layer2id
601            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
602            update layer2id anymore
603            (LegendTree._OnMsgMapLayersRemoved)
604            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
605    
606    2003-06-03  Thomas Koester  <[email protected]>
607    
608            * Thuban/Model/classgen.py (GenQuantiles0): New function.
609    
610    2003-06-02  Bernhard Herzog  <[email protected]>
611    
612            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
613            New commands.
614            (main_menu): Add the new commands.
615            (MainWindow.TableRename): New. Implementation of the table_rename
616            command.
617            (MainWindow.RenameLayer): New. Implementation of the layer_rename
618            command.
619    
620            * Thuban/Model/session.py (Session.AddTable): call self.changed to
621            set the modified flag
622    
623            * test/test_session.py (TestSessionSimple.test_add_table): Test
624            whether the modified flag is set properly
625    
626            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
627            instead of issue so that the modified flags get updated.
628    
629            * test/test_base.py (SomeTitledObject): Derive from Modifiable
630            instead of Publisher to reflect reality better and to accomodate
631            the fact that SetTitle now calls changed instead of issue
632    
633    2003-06-02  Bernhard Herzog  <[email protected]>
634    
635            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
636            acquisition has to happen before the try in a try-finally.
637    
638    2003-06-02  Bernhard Herzog  <[email protected]>
639    
640            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
641            possible that a layer is removed that is not currently selected in
642            the legend so don't check for this.
643    
644    2003-05-30  Bernhard Herzog  <[email protected]>
645    
646            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
647            variables to None that have direct or indirect references to
648            shapefiles or dbf files to make sure that they do go away and the
649            files are closed.
650    
651    2003-05-30  Bernhard Herzog  <[email protected]>
652    
653            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
654            availImgListIndices when a new image list is created
655            
656    2003-05-30  Bernhard Herzog  <[email protected]>
657    
658            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
659            changing_selection to indicate whether the LegendTree code itself
660            is currently changing the selection
661            (LegendTree.normalize_selection): New method to normalize the
662            selection by selecting the layer item even if the user clicked on
663            the classification.
664            (LegendTree._OnSelChanged): normalize the selection. This works
665            around a bug in wx which doesn't keep track of the selection
666            properly when subtrees are deleted.
667    
668    2003-05-30  Bernhard Herzog  <[email protected]>
669    
670            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
671            maximum and minimum scale factors.
672    
673            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
674            changes in classgen.py
675    
676    2003-05-30  Jonathan Coles   <[email protected]>
677    
678            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
679            all the methods functions. Fixes RTBug #1903.
680    
681            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
682            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
683            RTBug #1907.
684    
685            * Thuban/UI/classgen.py: Use classgen functions that were part
686            of the ClassGenerator class. Put try/finally blocks around
687            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
688            RTBug #1904.
689    
690            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
691    
692            * Thuban/UI/legend.py: The legend was cleared and repopulated any
693            time something changed which caused some state to be lost such
694            as which children were expanded or collapsed. Fixes RTBug #1901.
695            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
696            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
697            the legend but not in the map.
698            (LegendTree.__FillTree): Move main functionality out into smaller
699            methods that can be used by other methods.
700            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
701            if they are available.
702            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
703            that we override the wxTreeCtrl method. Iterate over children
704            and call __RemoveLayer.
705            (LegendTree.__AddLayer): New. Add a new layer to the legend.
706            (LegendTree.__RemoveLayer): Remove a layer from the legend.
707            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
708            Should only be called with the id of a layer branch.
709            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
710            Returns the root item or creates one if necessary.
711    
712            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
713            ProjectRasterFile with tuple arguments instead of strings.
714    
715            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
716            with try/finally. Fixes RTBug #1904.
717    
718            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
719            with try/finally. Fixes RTBug #1904.
720            (MapCanvas.FitSelectedToWindow): If a single point is selected
721            simply center it on the display. Fixes RTBug #1849.
722    
723            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
724            to be compiled as a standalone app. Now the code can only be
725            called from Python which simplifies the parameter passing.
726            (ProjectRasterFile): Handle Python arguments. Remove code that
727            checks for a destination dataset. Add more clean up code.
728    
729            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
730            TestMapWithContents.test_lower_layer_bottom):
731            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
732            Fixes RTBug #1907.
733    
734            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
735            extent to the map when the legend is toggled. Fixes RTBug #1881.
736    
737    2003-05-29  Jan-Oliver Wagner <[email protected]>
738    
739            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
740            unsubscribes all that is subcribed in __init__.
741    
742    2003-05-28  Bernhard Herzog  <[email protected]>
743    
744            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
745            (MainWindow.CanDuplicateLayer): New methods to implement the
746            Layer/Duplicate command.
747            (layer_duplicate command): New.
748            (main_menu): Add layer_duplicate to the Layer menu.
749    
750    2003-05-28  Bernhard Herzog  <[email protected]>
751    
752            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
753            renderer so that NULL/None values get displayed differently (by a
754            gray rectangle).
755            (TableGrid.__init__): Override the default renderers
756    
757    2003-05-28  Bernhard Herzog  <[email protected]>
758    
759            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
760            classification to "None" if the type of the field has changed.
761    
762            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
763            test for the Layer.SetShapeStore method
764    
765    2003-05-28  Jan-Oliver Wagner <[email protected]>
766    
767            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
768            does not necessarily have a filename).
769    
770    2003-05-28  Jan-Oliver Wagner <[email protected]>
771    
772            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
773            sort the selection list for the dialog.
774    
775    2003-05-28  Frank Koormann  <[email protected]>
776    
777            * extensions/thuban/wxproj.cpp
778            (project_point): Removed cast to int for projected point coordinates.
779            (shape_centroid): Return last point if all polygon vertices fall
780            to one point.
781    
782    2003-05-28  Bernhard Herzog  <[email protected]>
783    
784            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
785            with layers that don't have shapestores, i.e. raster layers.
786    
787    2003-05-28  Bernhard Herzog  <[email protected]>
788    
789            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
790            when determining the title from the filename.
791    
792            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
793            reflect changes in the way the title is derived from the filename
794    
795    2003-05-28  Frank Koormann  <[email protected]>
796    
797            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
798            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
799    
800    2003-05-27  Bernhard Herzog  <[email protected]>
801    
802            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
803            delegate SelectedLayer.
804            (MainWindow.LayerUnjoinTable): Implement.
805            (_can_unjoin): New. Helper function for the sensitivity of the
806            layer/unjoin command.
807    
808            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
809            (DerivedShapeStore.OrigShapeStore): New. Return the original
810            shapestore. Used to figure out how to unjoin.
811            (DerivedShapeStore.Shapefile): Fix a typo.
812    
813    2003-05-27  Bernhard Herzog  <[email protected]>
814    
815            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
816            well
817            (JoinDialog.__init__): Use the layer parameter and only build the
818            left choice when a layer is given
819            (JoinDialog.OnJoin): Handle layer joins as well
820            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
821            that the user selects the "Select..." item. The sensitivitly
822            updating is now in update_sensitivity
823            (JoinDialog.y): New method to refactor the sensitivity update of
824            the join button into its own method.
825    
826            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
827    
828    2003-05-27  Bernhard Herzog  <[email protected]>
829    
830            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
831            iff there are unreferenced tables in the session
832    
833    2003-05-27  Bernhard Herzog  <[email protected]>
834    
835            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
836    
837            * Thuban/Model/session.py (Session.UnreferencedTables): New method
838            to return tables that are not referenced by other tables or shape
839            stores and can be removed.
840            (Session.RemoveTable): Issue a TABLE_REMOVED message after
841            removing the table
842    
843            * Thuban/UI/mainwindow.py: Remove unused imports
844            (MainWindow.TableClose): Implement.
845    
846            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
847            messages so that the frame will be automatically closed when a new
848            session is opened or the table is removed.
849            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
850            __init__
851            (TableFrame.close_on_session_replaced)
852            (TableFrame.close_on_table_removed): New. Subscribers that close
853            the window
854    
855            * test/test_session.py (TestSessionMessages.test_remove_table)
856            (TestSessionSimple.test_remove_table): Move the test to
857            TestSessionSimple and add test for the TABLE_REMOVED message
858            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
859            (TestSessionSimple.test_unreferenced_tables) New. Test for the
860            UnreferencedTables method.
861            (UnreferencedTablesTests): New. Class with some more sophisticated
862            tests for UnreferencedTables.
863    
864    2003-05-27  Frank Koormann  <[email protected]>
865    
866            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
867            display has some unwanted side effects. Removed again.
868    
869    2003-05-27  Frank Koormann  <[email protected]>
870    
871            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
872    
873            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
874    
875    2003-05-27  Jan-Oliver Wagner <[email protected]>
876    
877            * test/test_menu.py (MenuTest.test): Added test for
878            Menu.RemoveItem().
879    
880            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
881            the menu.
882    
883    2003-05-27  Frank Koormann  <[email protected]>
884            
885            Nonmodal dialogs without parent (i.e. they can fall behind the main
886            window)
887    
888            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
889            all dialogs in the dialogs dictionary and the canvas.
890    
891            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
892            parent, i.e. can fall behind other windows.
893            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
894            dictionary before removing it.
895    
896            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
897    
898            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
899            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
900            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
901    
902    2003-05-27  Bernhard Herzog  <[email protected]>
903    
904            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
905            tableview dialog
906            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
907            Also, don't use the table's titles as the dialog names. The titles
908            aren't guaranteed to be unique.
909            (MainWindow.TableOpen): Open a table view dialog after opening the
910            table
911    
912    2003-05-27  Bernhard Herzog  <[email protected]>
913    
914            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
915            effect can be achieved by simply closing the window showing the
916            table.
917            (MainWindow.TableHide): Removed.
918            (main_menu): Removed "table_hide"
919    
920    2003-05-27  Frank Koormann  <[email protected]>
921    
922            Fix legend tree display problems under Win32
923    
924            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
925            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
926            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
927    
928            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
929    
930    2003-05-27  Jan-Oliver Wagner <[email protected]>
931    
932            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
933            'after' now allows to insert separators almost anywhere in the menu.
934    
935    2003-05-27  Frank Koormann  <[email protected]>
936    
937            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
938            "S" of selection box label to hint on hot key (Alt-S). Works under
939            Win32 but is ignored under GTK.
940    
941    2003-05-26  Frank Koormann  <[email protected]>
942    
943            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
944            Center Choices.
945    
946    2003-05-26  Bernhard Herzog  <[email protected]>
947    
948            Remove the Precision methods again. They're too DBF specific to be
949            part of the table interface and they're only used in table_to_dbf
950            anyway.
951            
952            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
953            fixed precision of 12 for doubles.
954            (TransientTableBase.Precision): Removed
955            (AutoTransientTable.Width): Delegate to self.table.
956    
957            * Thuban/Model/table.py (DBFTable.Precision)
958            (MemoryTable.Precision): Removed.
959            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
960            (table_to_dbf): Use a fixed precision of 12 for floats unless the
961            column object specifies something else.
962    
963            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
964            test for table_to_dbf
965    
966    2003-05-26  Bernhard Herzog  <[email protected]>
967    
968            * test/test_transientdb.py
969            (TestTransientTable.run_iceland_political_tests): Fix a comment.
970    
971    2003-05-26  Bernhard Herzog  <[email protected]>
972    
973            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
974            implementation. Mark parts of the file format strings for
975            localization.
976    
977            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
978            file and add the table to the tables managed by the session
979    
980            * test/test_session.py (TestSessionSimple.test_open_table_file):
981            New. test case for OpenTableFile
982    
983    2003-05-26  Jan-Oliver Wagner <[email protected]>
984    
985            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
986            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
987            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
988            Replace the true/false of wxWindows by True/False of Python 2.2.1.
989    
990    2003-05-26  Jan-Oliver Wagner <[email protected]>
991    
992            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
993            already a selection present, update the grid accordingly.
994    
995            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
996            resizeable and increase its initial size.
997    
998    2003-05-26  Frank Koormann  <[email protected]>
999    
1000            Table export functionality
1001    
1002            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
1003            Return width (in characters) for a column.
1004            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
1005            (table_to_dbf): Write table to dbf file.
1006            (table_to_csv): Write table to csv file.
1007    
1008            * Thuban/Model/transientdb.py (TransientTableBase.Width,
1009            TransientTableBase.Precision): Return column width and precision.
1010    
1011            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
1012            or table_to_csv depending on file selection.
1013    
1014            * test/test_dbf_table.py:
1015            Test table_to_dbf (extension of former part of test).
1016    
1017            * test/test_csv_table.py:
1018            Test table_to_csv.
1019    
1020    2003-05-23  Jan-Oliver Wagner <[email protected]>
1021    
1022            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
1023            Use QueryTableFrame instead of TableFrame.
1024    
1025            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
1026            table window with 'Layer Table:' instead of 'Table:'.
1027    
1028    2003-05-23  Jan-Oliver Wagner <[email protected]>
1029    
1030            Give all tables a title via mix-in TitledObject.LayerShowTable
1031    
1032            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
1033            only if it exists.
1034    
1035            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
1036            and call its init-method with a default title. Remove Title() method.
1037    
1038            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
1039            AutoTransientTable): mix-in TitledObject and call its init-method with
1040            a default title. Remove Title() method.
1041    
1042    2003-05-23  Bernhard Herzog  <[email protected]>
1043    
1044            * Thuban/Model/session.py (Session.AddShapeStore): Define
1045            AddShapeStore analogously to AddTable.
1046    
1047            * test/test_session.py (TestSessionSimple.test_add_shapestore):
1048            New. Test for AddShapeStore
1049    
1050    2003-05-23  Jan-Oliver Wagner <[email protected]>
1051    
1052            Introducing QueryTableFrame and a very coarse ShowTable implementation.
1053    
1054            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
1055            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
1056            The latter implements the selection GUI without dependency on a layer.
1057            LayerTableFrame now is derived from QueryTableFrame and connects
1058            to a layer.
1059    
1060            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
1061            implementation that still needs work.
1062    
1063            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
1064    
1065    2003-05-22  Frank Koormann  <[email protected]>
1066    
1067            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1068            Added "outer_join = False" as optional parameter.
1069            (TransientJoinedTable.create): If outer join is true, perform a
1070            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
1071            the left table. Records not matching are filled with 0 / None.
1072    
1073            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
1074            (JoinDialog.OnJoin): Consider outer join check box.
1075    
1076    2003-05-22  Bernhard Herzog  <[email protected]>
1077    
1078            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
1079            somewhat safer way. Storing the traceback in a local variable can
1080            lead to memory leaks
1081    
1082    2003-05-22  Bernhard Herzog  <[email protected]>
1083    
1084            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
1085            the wxMessageDialog's Destroy() method.
1086    
1087    2003-05-22  Frank Koormann  <[email protected]>
1088    
1089            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
1090            TransientTable.Title()
1091    
1092    2003-05-22  Frank Koormann  <[email protected]>
1093    
1094            Join Dialog, initial version.
1095    
1096            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
1097    
1098            * Thuban/UI/join.py (JoinDialog): Functional implementation of
1099            former framework. Renamed Table1/Table2 to LeftTable/RightTable
1100            in all occurences.
1101    
1102            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
1103            Typo fixed.
1104    
1105    2003-05-22  Bernhard Herzog  <[email protected]>
1106    
1107            Give the tables titles so that the GUI can display more meaningful
1108            names. For now the titles are fixed but depend on e.g. filenames
1109            or the titles of the joined tables.
1110    
1111            * Thuban/Model/transientdb.py (TransientTable.Title)
1112            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
1113    
1114            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
1115    
1116            * test/test_transientdb.py
1117            (TestTransientTable.test_auto_transient_table_title): New. Test
1118            for the Title method
1119            (TestTransientTable.test_transient_joined_table)
1120            (TestTransientTable.test_transient_table): Add test for the Title
1121            methods
1122    
1123            * test/test_memory_table.py (TestMemoryTable.test_title): New.
1124            Test for the Title method
1125    
1126            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
1127            the Title method
1128    
1129    2003-05-22  Bernhard Herzog  <[email protected]>
1130    
1131            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
1132            Provide a better way to destroy the layers
1133            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
1134            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
1135            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
1136            the new way to destroy the layers.
1137            (TestLayer.test_derived_store): New. Test for using a layer with a
1138            DerivedShapeStore
1139    
1140            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
1141            filename if the shape store actually has one.
1142    
1143    2003-05-22  Bernhard Herzog  <[email protected]>
1144    
1145            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
1146            for the filename
1147    
1148            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
1149            for the FileName method
1150            (TestDBFTableWriting.test_write): Fix spelling of filename
1151    
1152    2003-05-22  Thomas Koester  <[email protected]>
1153    
1154            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
1155            from SciParam that now really is immutable.
1156    
1157    2003-05-22  Frank Koormann  <[email protected]>
1158    
1159            Layer Top/Bottom placement added to legend.
1160    
1161            * Thuban/UI/legend.py
1162            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
1163            bound to tool events.
1164            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
1165            New, methods binding the event methods with the map methods.
1166    
1167            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
1168            layer at top/bottom of layer stack.
1169    
1170            * Resources/Bitmaps/top_layer.xpm: New button icon.
1171    
1172            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
1173    
1174    2003-05-22  Bernhard Herzog  <[email protected]>
1175    
1176            * Thuban/Model/session.py (Session.RemoveTable): New method to
1177            remove tables
1178    
1179            * test/test_session.py (TestSessionSimple.test_remove_table): New.
1180            Test for RemoveTable
1181    
1182    2003-05-22  Thomas Koester  <[email protected]>
1183    
1184            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
1185            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
1186    
1187    2003-05-22  Bernhard Herzog  <[email protected]>
1188    
1189            Implement a way to discover dependencies between tables and
1190            shapestores.
1191    
1192            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
1193            (TransientJoinedTable.Dependencies)
1194            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
1195            interface
1196            (TransientJoinedTable.__init__): Keep tack of the original table
1197            objects in addition to the corresponding transient tables.
1198    
1199            * Thuban/Model/table.py (DBFTable.Dependencies)
1200            (MemoryTable.Dependencies): New. Implement the dependencies
1201            interface
1202    
1203            * Thuban/Model/data.py (ShapeTable): New. Helper class for
1204            ShapefileStore
1205            (ShapefileStore.__init__): Use ShapeTable instead of
1206            AutoTransientTable
1207            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
1208            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
1209            methods for filename and type
1210            (ShapefileStore.Dependencies): New. Implement the dependencies
1211            interface
1212            (DerivedShapeStore): New class to replace SimpleStore. The main
1213            difference to SimpleStore is that it depends not on a shapefile
1214            but another shapestore which expresses the dependencies a bit
1215            better
1216            (SimpleStore.__init__): Add deprecation warning.
1217    
1218            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
1219            Test for the Dependencies method.
1220    
1221            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
1222            New. Test for the Dependencies method.
1223    
1224            * test/test_transientdb.py
1225            (TestTransientTable.test_auto_transient_table_dependencies): New.
1226            Test for the Dependencies method.
1227            (TestTransientTable.test_transient_joined_table): Add test for the
1228            Dependencies method.
1229    
1230            * test/test_session.py (TestSessionSimple.setUp)
1231            (TestSessionSimple.tearDown): New. Implement a better way to
1232            destroy the sessions.
1233            (TestSessionSimple.test_initial_state)
1234            (TestSessionSimple.test_add_table): Bind session to self.session
1235            so that it's destroyed by tearDown
1236            (TestSessionSimple.test_open_shapefile): New. Test for
1237            OpenShapefile and the object it returns
1238    
1239    2003-05-22  Bernhard Herzog  <[email protected]>
1240    
1241            * Thuban/Model/session.py (Session.AddTable): New method to
1242            register tables with the session.
1243            (Session.Tables): Return the tables registered with AddTable too.
1244    
1245            * test/test_session.py (TestSessionSimple.test_add_table): New.
1246            Test case for the AddTable method
1247    
1248    2003-05-22  Frank Koormann  <[email protected]>
1249    
1250            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
1251            lower right corner, center labels for selections, initialize controls
1252            in reasonable order for keyboard navigation.
1253    
1254            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
1255            (ProjFrame.__DoOnProjAvail): Determine position of current projection
1256            using the wxListBox.FindString() method. Still a problem (#1886)
1257    
1258            * Thuban/UI/classifier.py
1259            (Classifier.__init__, SelectPropertiesDialog.__init__)
1260    
1261            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
1262            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
1263            different classification types from here to __init__.
1264            (GenUniquePanel.__init__): Set the column width of the first field
1265            in the Field ListCtrl to the full width.
1266    
1267            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
1268            Button to 'Export'. Center Buttons in Selection Box, set Focus to
1269            Grid.
1270            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
1271            changes focus to the Selection when pressing "Alt-S".
1272    
1273            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
1274            the text if not visible. The italic font sometimes exceeds the
1275            rendering area.
1276    
1277    2003-05-21  Jonathan Coles   <[email protected]>
1278    
1279            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
1280            to OnClose so that Thuban closes correctly.
1281    
1282            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
1283            DockFrame.OnClose, not DockFrame._OnClose.
1284    
1285    2003-05-21  Jonathan Coles   <[email protected]>
1286    
1287            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
1288            references to 'inf' and use new Range __init__ to pass floats
1289            directly rather than converting them to strings first.
1290            Fixes RTBug #1876.
1291    
1292            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
1293            Use new Range ___init__ to pass floats.
1294    
1295            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
1296            filename is a valid image file. Throw IOError otherwise.
1297    
1298            * Thuban/Model/range.py: Brought over new Range from SciParam that
1299            is immutable and has an __init__ which can accept floats.
1300    
1301            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
1302            into try block. AddLayer doesn't throw any exceptions anymore.
1303            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
1304            try block.
1305    
1306            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
1307            the first item in choices. Fixes RTBug #1882.
1308    
1309            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
1310            has gone to 0 which is a serious problem. abort.
1311            (MapRenderer.draw_raster_layer): Catch IOError seperately and
1312            print the error from GDAL.
1313    
1314            * Thuban/UI/tableview.py (TableGrid.__init__): Call
1315            ToggleEventListeners to turn on listening.
1316            (TableGrid.ToggleEventListeners): New. Turns event listening on
1317            and off so as to prevent excessive messages.
1318            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
1319            to suppress excessive messages when selecting many rows.
1320            Fixes RTBug #1880.
1321    
1322            * Thuban/UI/view.py: Added checks against if scale == 0. This
1323            is a serious problem that can occur when an image without
1324            geo data is loading and causes the map projection bounds to
1325            go to infinity. Right now, the solution is to simply try
1326            to recover.
1327    
1328            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
1329            to set the MFILEReceiver attributes even if the data is NULL.
1330    
1331            * extensions/thuban/gdalwarp.cpp: Improved the error handling
1332            and passed GDAL messages back up to the Python layer. Also
1333            tried to fix some memory leaks that were present in the original
1334            utility but didn't matter because the program aborted.
1335    
1336            * test/test_range.py: Copied over tests from SciParam. Removed
1337            tests against importing. Fixes RTBug #1867.
1338    
1339    2003-05-21  Bernhard Herzog  <[email protected]>
1340    
1341            * test/test_load.py: Remove unused imports and restructure the
1342            test code
1343            (LoadSessionTest): Split into one class for each test and turn
1344            LoadSessionTest itself into the base class for all such session
1345            tests.
1346            (ClassificationTest): New base class for load tests that test
1347            classifications
1348            (TestSingleLayer, TestLayerVisibility, TestClassification)
1349            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
1350            for the individual tests
1351    
1352            * test/support.py (FileLoadTestCase.filename): New base class for
1353            file loading tests
1354    
1355    2003-05-21  Jan-Oliver Wagner <[email protected]>
1356    
1357            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
1358            Mercator' to 'UTM Zone 32' as a more convenient example.
1359            Added 'Gauss Krueger Zone 6'.
1360    
1361            * Data/iceland_sample_raster.thuban: political polygon now
1362            filled transparent to have the raster image visible at once.
1363    
1364    2003-05-21  Frank Koormann  <[email protected]>
1365    
1366            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
1367            OnClose() to keep in sync with extensions. Internally Thuban
1368            still uses "underscored" names.
1369    
1370    2003-05-20  Jonathan Coles   <[email protected]>
1371    
1372            This puts back Raster layer support. These layers support projections
1373            through the GDAL library. Currently, the CVS version is being used.
1374            There are no Debian packages available although this may change soon.
1375            A GDAL driver was extended to support writing to memory rather to
1376            files.
1377    
1378            There is still some work that needs to be done, such as some error
1379            handling when loading invalid images or when there is a problem
1380            projecting the image. This putback simply checks in the majority
1381            of the work.
1382    
1383            * setup.py: Add gdalwarp library extension.
1384    
1385            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
1386            Defaults to False, but can be overridden by subclasses if they
1387            support classification.
1388            (RasterLayer): New. Defines a new layer that represents an
1389            image.
1390    
1391            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
1392            tag handler.
1393            (SessionLoader.start_layer): Encode the filename.
1394            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
1395            New. Supports reading a rasterlayer tag.
1396    
1397            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
1398    
1399            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
1400            get a string in Latin1. If we get such as string convert it to
1401            unicode first, otherwise leave if alone before encoding.
1402            (SessionSaver.write_layer): Add support for writing both Layers
1403            and RasterLayers.
1404    
1405            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1406            The right argument may not be a string, it could also be a Column.
1407    
1408            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
1409            Make initial window size 600x400. Fixes RTBug #1872.
1410    
1411            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
1412            the dialog is constructed so that we can support layers that
1413            do not have classifications.
1414            (Classifier._OnTry): Only build a classification if the layer
1415            supports one.
1416    
1417            * Thuban/UI/legend.py: Change all checks that a layer is an
1418            instance of Layer into checks against BaseLayer.
1419            (LegendTree.__FillTreeLayer): Only add children to a branch if
1420            the layer supports classification.
1421    
1422            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
1423            MainWindow.OpenSession): Don't proceed with an action if the
1424            user chooses Cancel when they are asked to save changes.
1425            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
1426            user to select an image file. Create a new RasterLayer and add
1427            it to the map.
1428    
1429            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
1430            for rendering RasterLayer layers.
1431            (MapRenderer.draw_raster_layer): Actually method that calls
1432            the GDALWarp python wrapper and constructs an image from the
1433            data returned.
1434    
1435            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
1436            Choices symbols to match those used in the table query method.
1437            Replace deprecated method calls on table with new method names.
1438    
1439            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
1440            how small the scale can get. This still needs more testing.
1441    
1442            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
1443            Provides a driver to output in .bmp format.
1444    
1445            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
1446            New. Provides IO routines which write to memory, rather than a file.
1447    
1448            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
1449            of the gdalwarp utility provided in GDAL. Added function calls
1450            that can be accessed from python.
1451    
1452            * Data/iceland_sample_raster.thuban: New. Sample file that uses
1453            a raster layer.
1454    
1455            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
1456            layer image data.
1457    
1458            * Doc/thuban.dtd: Added rasterlayer attribute definition.
1459    
1460            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
1461            tests associated with the raster layer code.
1462    
1463            * test/test_transientdb.py
1464            (TestTransientTable.test_auto_transient_table_query): Added a test
1465            for using a Column object as the "right" parameter to a query.
1466    
1467    2003-05-19  Frank Koormann  <[email protected]>
1468    
1469            * Thuban/version.py (get_changelog_date):
1470            Catch exceptions if ChangeLog does not exist.
1471    
1472            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
1473    
1474    2003-05-19  Frank Koormann  <[email protected]>
1475    
1476            Extended version information for Thuban
1477    
1478            * Thuban/version.py: New, version information for Thuban: Last
1479            modification date and last ChangeLog entry date.
1480    
1481            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
1482            information: Display Thuban, wxPython and Python version.
1483    
1484    2003-05-16  Bernhard Herzog  <[email protected]>
1485    
1486            * Thuban/Model/save.py: Remove some unused imports including the
1487            __future__ import for nested_scopes as Thuban relies on Python 2.2
1488            now.
1489            (XMLWriter.encode): Remove the special case for a None argument.
1490            In the saver encode is always called with a string argument.
1491    
1492    2003-05-16  Bernhard Herzog  <[email protected]>
1493    
1494            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
1495            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
1496            of the bug was that e.g. float("1.2") would fail. Thuban now
1497            requires 2.4.x.
1498            
1499    2003-05-16  Frank Koormann   <[email protected]>
1500    
1501            Printing enhancement and WMF export (under Win32)
1502    
1503            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
1504            ScreenRenderer. Renders Map, Legend and Scalebar for export.
1505            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
1506            PrintRender.
1507    
1508            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
1509            to fullfil information needed for PrinterRenderer.
1510            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
1511            (MapCanvas.Print): Adapted to new MapPrintout.
1512            (OutputTransform): General calculations to transform from canvas
1513            coordinates to export/printing devices.
1514    
1515            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
1516            new method_command to call ExportMap, with platform dependency (only
1517            __WXMSW__)
1518      
1519            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
1520            of scalebar drawing area as new parameters.
1521            
1522            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
1523    
1524            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
1525            Update to extended scalebar.DrawScalebar header.
1526    
1527            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
1528    
1529            * test/test_scalebar.py: Made test executable as standalone.
1530    
1531    2003-05-16  Bernhard Herzog  <[email protected]>
1532    
1533            * Thuban/Model/table.py (Table): Remove this compatibility alias
1534            for DBFTable.
1535    
1536            * test/test_table.py: Import DBFTable as Table because that alias
1537            doesn't exist anymore.
1538    
1539            * Thuban/UI/classgen.py: Remove some unused imports
1540    
1541    2003-05-14  Jonathan Coles   <[email protected]>
1542    
1543            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
1544            Fix docstring.
1545            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
1546            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
1547            values of the supplied range to determine the beginning and end
1548            bounds of the generated classes.
1549    
1550            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
1551            do not have a leading 0 (.5 is now accepted as well as 0.5).
1552    
1553            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
1554            call to ClassGenerator.GenUniformDistribution.
1555    
1556            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
1557            layout bug with the 'Projection' label.
1558    
1559            * test/support.py (FloatTestCase): New. Needed for the Range tests.
1560    
1561            * test/test_range.py: New. Imported from SciParam.
1562    
1563    2003-05-12  Jonathan Coles   <[email protected]>
1564    
1565            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
1566            to table.UniqueValues() with calls that retrieve all the values
1567            from the table. This will need to be replaced by a method on table
1568            which can simply return the list (perhaps more efficiently).
1569    
1570    2003-05-12  Jonathan Coles   <[email protected]>
1571    
1572            The return value of ClassGenerator.CalculateQuantiles has changed.
1573            Refer to the documentation for details.
1574    
1575            * test/test_classgen.py: Modified Quantile tests to use the
1576            new return values.
1577    
1578            * Thuban/Model/classgen.py
1579            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
1580            use new return values from CalculateQuantiles to produce the correct
1581            range bounds in the Classification.
1582            (ClassGenerator.CalculateQuantiles): Add more comments describing
1583            the return values and parameters. Make minor adjustments to improve
1584            the legibility of the code. Fix problem with adjusted not being set
1585            in most cases.
1586    
1587    2003-05-12  Frank Koormann <[email protected]>
1588            
1589            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
1590            and latin1. Fixes #1851 finally.
1591    
1592    2003-05-09  Jonathan Coles   <[email protected]>
1593    
1594            * test/test_classgen.py: New. Tests the Quantile algorithm.
1595    
1596            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
1597            Clean up debugging statement, add comments, fix a small bug in the
1598            returned adjusted percentiles.
1599            
1600    2003-05-09  Jonathan Coles   <[email protected]>
1601    
1602            Introduces Range class from SciParam into the ClassGroupRange class,
1603            and such ranges can now be saved and loaded from disk.
1604    
1605            Quantiles are now available in the Classification Generator.
1606    
1607            Initial support for building Queries on a table. Doesn't do anything
1608            but run some tests.
1609    
1610            * Thuban/Model/classification.py: Explicit imports.
1611            (ClassGroupRange): Use the Range class to store the underlying
1612            range information. The interface remains the same, except for
1613            GetRange(), and you can also supply a Range object as the min
1614            parameter to SetRange or __init__.
1615    
1616            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
1617            string appropriately for use in Thuban. Fixes RTbug #1851.
1618            (SessionLoader.end_projection): Handle the context of the
1619            projection tag a bit better by looking at what objects are not
1620            None. There was an assumption that a projection tag for a map
1621            could occur before any layers.
1622            (SessionLoader.start_clrange): Provide backward compatibility for
1623            reading min/max values as well as the new range parameter.
1624    
1625            * Thuban/Model/map.py: Explicit imports.
1626    
1627            * Thuban/Model/resource.py: Import _.
1628            (ProjFileSaver.write): write header using projfile.dtd.
1629    
1630            * Thuban/Model/save.py: Explicit imports.
1631            (XMLWriter.encode): New. Encode the given string from a format
1632            used by Thuban into UTF-8. Fixes RTbug #1851.
1633    
1634            * Thuban/UI/classgen.py: Explicit imports.
1635            (ClassGenDialog.__init__): Clean up the code and add support
1636            for Quantiles.
1637            (ClassGenDialog.OnOK): Add support for Quantiles.
1638            (GenQuantilesPanel): New. Input panel for Quantiles.
1639            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
1640            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
1641    
1642            * Thuban/Model/classgen.py: New. Contains all the classes named above.
1643    
1644            * Thuban/UI/classifier.py: Explicit imports.
1645            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
1646            ClassTable.SetValueAsCustom): Reworked to use new Range class.
1647    
1648            * Thuban/UI/legend.py: Explicit imports.
1649    
1650            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
1651            a Table menu and associated method calls.
1652            (MainWindow.choose_color): Removed. No longer needed.
1653    
1654            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
1655            should be disabled if no projection is selected in the available
1656            list.
1657    
1658            * Thuban/UI/renderer.py: Explicit imports.
1659    
1660            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
1661            with correctly selecting the rows and issuing the right events.
1662            Be sure to call Skip() to allow the grid to do some of its own
1663            handling which allows the rows to actually be selected.
1664            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
1665            selecting multiple shapes.
1666            (LayerTableFrame): Support for building Queries.
1667            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
1668    
1669            * Thuban/UI/tree.py: Explicit imports.
1670    
1671            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
1672            table view can call it.
1673    
1674            * test/test_classification.py: Explicit imports.
1675            (TestClassification.test_ClassGroupRange): Fix test for new
1676            Range class.
1677    
1678            * Doc/thuban.dtd: Add range parameter for clrange.
1679    
1680            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
1681            object in ClassGroupRange, and also uesd for inputting ranges in
1682            the classifer table and elsewhere.
1683    
1684            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
1685            yet.
1686    
1687    2003-05-09  Frank Koormann <[email protected]>
1688    
1689            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
1690    
1691    2003-05-08  Frank Koormann <[email protected]>
1692    
1693            Coding style updates
1694    
1695            * test/test_scalebar.py: Replaced tab indentation by spaces.
1696    
1697            * Thuban/UI/scalebar.py: Explicit imports.
1698    
1699    2003-05-08  Frank Koormann <[email protected]>
1700    
1701            * Thuban/UI/scalebar.py
1702            (ScaleBar.DrawScalebar): Format string bug fixed.
1703    
1704    2003-05-08  Frank Koormann <[email protected]>
1705    
1706            Reorganization of scalebar component (no wx in Thuban/Model)
1707    
1708            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
1709            (deriveInterval):
1710            Calculate scalebar interval and unit which fits in width for scale.
1711            (roundInterval): Round float.
1712    
1713            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
1714    
1715            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
1716    
1717            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
1718    
1719    2003-05-08  Frank Koormann <[email protected]>
1720    
1721            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
1722            Initialize ScaleBar with canvas.map
1723    
1724            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
1725            round intervals to display smarter lengths
1726            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
1727            layer. If the maps has no projection applied grey the scalebar.
1728    
1729    2003-05-07  Frank Koormann <[email protected]>
1730            
1731            Basic Scalebar features added.
1732    
1733            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
1734    
1735            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
1736            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
1737            and the renderer.
1738    
1739            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
1740    
1741            * Thuban/UI/messages.py: SCALE_CHANGED added.
1742    
1743    2003-05-07  Bernhard Herzog  <[email protected]>
1744    
1745            * Thuban/Model/session.py (Session.__init__): New instance
1746            variable shapestores to hold a list of all open shapestore objects
1747            (Session.ShapeStores): New. Accessor method for the shapestores
1748            list.
1749            (Session._add_shapestore, Session._clean_weak_store_refs): New.
1750            Internal methods to maintain the shapestores list.
1751            (Session.Tables): New. Return all tables open in the session.
1752            (Session.OpenShapefile): Insert the new ShapeStore into the
1753            shapestores list.
1754    
1755            * test/test_session.py (TestSessionSimple.test_initial_state): Add
1756            tests for ShapeStores and Tables
1757            (TestSessionWithContent.test_shape_stores)
1758            (TestSessionWithContent.test_tables): New. Test cases for
1759            ShapeStores and Tables
1760    
1761    2003-05-07  Bernhard Herzog  <[email protected]>
1762    
1763            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
1764            Add comments about the optimizations used.
1765            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
1766            Implement the ReadValue table interface method.
1767    
1768            * test/test_transientdb.py
1769            (TestTransientTable.run_iceland_political_tests)
1770            (TestTransientTable.test_transient_joined_table): Add tests for
1771            ReadValue
1772    
1773    2003-05-07  Frank Koormann <[email protected]>
1774    
1775            * Resources/Bitmaps/fulllayerextent.xpm,
1776            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
1777            new icons.
1778    
1779    2003-05-06  Bernhard Herzog  <[email protected]>
1780    
1781            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1782            New. Simply delegate to the transient table's version.
1783    
1784            * test/test_transientdb.py
1785            (TestTransientTable.test_auto_transient_table_query): New. Test
1786            case for AutoTransientTable's SimpleQuery
1787    
1788    2003-05-06  Bernhard Herzog  <[email protected]>
1789    
1790            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
1791            Implement a simple query method for the query dialog
1792            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
1793            the row index or shapeid.
1794            (TransientTable.create): Insert the right value of the row index
1795            (TransientJoinedTable.create): Copy the row index of the left
1796            table to the joined result table
1797    
1798            * test/test_transientdb.py
1799            (TestTransientTable.test_transient_table_read_twice): Fix
1800            doc-string
1801            (TestTransientTable.test_transient_table_query): New. Test for the
1802            SimpleQuery method
1803    
1804    2003-05-06  Bernhard Herzog  <[email protected]>
1805    
1806            Convert all table users to use the new table interface. This only
1807            covers Thuban itself, not GREAT-ER or other applications built on
1808            Thuban yet, so the compatibility interface stays in place for the
1809            time being but it now issues DeprecationWarnings.
1810    
1811            Finally, the new Table interface has a new method, HasColumn.
1812    
1813            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
1814            issue deprecation warnings when they're. The warnings refer to the
1815            caller of the method.
1816            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
1817            for the deprecation warnings
1818    
1819            * test/test_table.py: Ignore the deprecation warnings for the old
1820            table in the tests in this module. The purpose of the tests is to
1821            test the old interface, after all.
1822    
1823            * test/test_transientdb.py
1824            (TestTransientTable.run_iceland_political_tests): Use the
1825            constants for the types. Add a test for HasColumn
1826            (TestTransientTable.test_transient_joined_table): Adapt to new
1827            table interface. Add a test for HasColumn
1828            (TestTransientTable.test_transient_table_read_twice): Adapt to new
1829            table interface
1830    
1831            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
1832            Adapt to new table interface
1833    
1834            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
1835            new table interface
1836    
1837            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
1838            (RecordTable.SetTable): Adapt to new table interface
1839    
1840            * Thuban/UI/classifier.py (Classifier.__init__)
1841            (Classifier.__init__): Adapt to new table interface
1842    
1843            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1844            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
1845            to new table interface
1846    
1847            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
1848            (AutoTransientTable.HasColumn): Implement the new table interface
1849            method
1850            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
1851            (AutoTransientTable.UniqueValues): Adapt to new table interface
1852    
1853            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
1854            Adapt to new table interface
1855    
1856            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
1857            simplify opening shapefiles a bit easier.
1858            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1859            (TestLayer.test_point_layer): Use the new helper method
1860            (TestLayer.test_get_field_type): New. Test for the GetFieldType
1861            method
1862    
1863            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
1864            the new table method
1865    
1866            * test/test_memory_table.py (TestMemoryTable.test_has_column):
1867            Test for the new table method HasColumn
1868    
1869    2003-05-06  Jonathan Coles   <[email protected]>
1870    
1871            Addresses the "Selection Extent" wish of RTbug #1787.
1872    
1873            * Resources/Bitmaps/fulllayerextent.xpm,
1874            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
1875            extent. These are just place holders for the real bitmaps.
1876    
1877            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
1878            calculate the bounding box once (the first time compute_bbox() is
1879            called).
1880            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
1881            the bounding box for the shapes in lat/long coordinates.
1882    
1883            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
1884            option.
1885            (MainWindow.has_selected_shapes): New. Returns true if there are
1886            any selected shapes.
1887            (MainWindow.FullSelectionExtent): New. Calls
1888            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
1889            (_has_selected_shapes): New. Returns true if there are any
1890            selected shapes.
1891    
1892            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
1893            true if there are any selected shapes.
1894    
1895            * Thuban/UI/view.py (MapCanvas): Added delegated method
1896            HasSelectedShapes.
1897            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
1898            shapes on the canvas using the map projection (if any).
1899    
1900            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1901            for Layer.ShapesBoundingBox().
1902    
1903    2003-05-06  Bernhard Herzog  <[email protected]>
1904    
1905            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1906    
1907    2003-05-05  Jonathan Coles   <[email protected]>
1908    
1909            Addresses the "Full Layer Extent" wish of RTbug #1787.
1910    
1911            * Resources/Projections/defaults.proj: Added UK National Grid.
1912    
1913            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1914            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1915            when the user selects the menu option.
1916    
1917            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1918            scales the given layer on the canvas using the map projection.
1919    
1920    2003-05-05  Bernhard Herzog  <[email protected]>
1921    
1922            Convert the table implementations to a new table interface. All
1923            tables use a common mixin class to provide backwards compatibility
1924            until all table users have been updated.
1925    
1926            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1927            provide backwards compatibility for table classes implementing the
1928            new interface
1929            (DBFTable, MemoryTable): Implement the new table interface. Use
1930            OldTableInterfaceMixin as base for compatibility
1931            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1932            and MemoryTable resp.
1933    
1934            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1935            the new table interface.
1936    
1937            * test/test_memory_table.py: New. Test cases for the MemoryTable
1938            with the new table interface.
1939    
1940            * test/test_table.py: Document the all tests in this file as only
1941            for backwards compatibility. The equivalent tests for the new
1942            interface are in test_memory_table.py and test_dbf_table.py
1943            (MemoryTableTest.test_read): field_info should be returning tuples
1944            with four items
1945            (MemoryTableTest.test_write): Make doc-string a more precise.
1946    
1947            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1948            table interface. Derive from from OldTableInterfaceMixin for
1949            compatibility.
1950            (TransientTableBase.create): New intance variable column_map to
1951            map from names and indices to column objects
1952            (TransientTable.create): Use the new table interface of the input
1953            table
1954            (AutoTransientTable): Convert to new table interface. Derive from
1955            from OldTableInterfaceMixin for compatibility.
1956            (AutoTransientTable.write_record): Removed. It's not implemented
1957            yet and we still have to decide how to handle writing with the new
1958            table and data framework.
1959    
1960            * test/test_transientdb.py
1961            (TestTransientTable.run_iceland_political_tests)
1962            (TestTransientTable.test_transient_joined_table): Use the new
1963            table interface
1964    
1965    2003-05-05  Jonathan Coles   <[email protected]>
1966    
1967            This is namely a collection of UI updates to improve user interactivity.
1968            Tabbing between controls now exists and you can use ESC to close dialog
1969            boxes; ENTER will active the default button.
1970    
1971            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1972            order that the controls are created so that tabbing works correctly.
1973            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1974            wxDialog can handle the default button correctly.
1975            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1976            same reasons as for OnOK.
1977            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1978            when we ask the table for the maximum/minimum values of a field
1979            which could take a very long time.
1980    
1981            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1982            order that the controls are created so that tabbing works correctly.
1983            (SelectPropertiesDialog.__init__): Rearrange the order that the
1984            controls are created so that tabbing works correctly.
1985    
1986            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1987            to derive from a wxDialog but behave like the original implementation
1988            which was derived from a wxFrame. wxDialog provides useful key
1989            handling functionality like ESC calling OnCancel and ENTER calling
1990            OnOK which is lost with wxFrame.
1991    
1992            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1993            new dialogs.
1994    
1995            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1996            order that the controls are created so that tabbing works correctly.
1997            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1998            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1999            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
2000            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
2001            can provide the "UK National Grid" as a default projection.
2002            (UTMPanel.__init__): Rearrange the order that the controls are
2003            created so that tabbing works correctly.
2004    
2005    2003-05-05  Bernhard Herzog  <[email protected]>
2006    
2007            * extensions/thuban/wxproj.cpp: Fix some of the comments.
2008            (project_point): If a map projection but no layer projection is
2009            given, convert degrees to radians before applying the map
2010            projection.
2011    
2012            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
2013            (TableGrid.allow_messages): New methods to make it possible to
2014            inhibit message sending.
2015            (TableGrid.issue): Only send the message if not inhibited.
2016            (LayerTableGrid.select_shape): Use the new methods to make sure
2017            that no ROW_SELECTED message is sent while we're updating the
2018            selected rows to match the selected shapes.
2019    
2020    2003-05-02  Jan-Oliver Wagner <[email protected]>
2021    
2022            Implementation of MemoryTable.
2023    
2024            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
2025            implementation that operates on a list of tuples. All of the data
2026            are kept in the memory.
2027    
2028            * test/test_table.py (MemoryTableTest): New.
2029    
2030            * test/test_transientdb.py (SimpleTable): Removed.
2031            (TestTransientTable.test_transient_joined_table,
2032            (TestTransientTable.test_transient_table_read_twice): Replaced
2033            SimpleTable by MemoryTable.
2034    
2035    2003-04-30  Jonathan Coles   <[email protected]>
2036    
2037            * Data/iceland_sample.thuban: Now contains correct projections
2038            for each of the layers.
2039    
2040            * Resources/Projections/defaults.proj: Geographic projection
2041            contains unit conversion parameter.
2042    
2043    2003-04-30  Jonathan Coles   <[email protected]>
2044    
2045            The most important part of this putback is the projection changes.
2046            It should now be possible to specify the projection that a layer
2047            is in and then specify a different projection for the map. The
2048            projection dialog has an extra parameter for a geographic projection
2049            which lets the user select if the input is in degrees or radians.
2050    
2051            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
2052            to say that the parameter is a tuple of unprojected
2053            points (which is what the callers to this method were assuming).
2054            Also, since the points are unprojected we need to projected them.
2055    
2056            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
2057            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
2058            groups are selected, move the layer up/down. Fixes RTbug #1833.
2059    
2060            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
2061    
2062            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
2063            parameter in call to SetClientData.
2064            (GeoPanel): Add support for selecting the units that the
2065            source data is in (Radians or Degrees).
2066    
2067            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
2068            the rendering loop by reducing the number of if's, removing the
2069            unnecessary try/except block, and checking if the old group
2070            is the same as the new one (which happens a lot if there is
2071            no classification, or lots of shapes are in the same group).
2072    
2073            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
2074            around the redraw routine to try to catch problems that the user
2075            may create by selecting invalid projections for the data set and
2076            map. Clears the display if there are any problems and prints the
2077            error.
2078            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
2079            rectangle.
2080    
2081            * extensions/thuban/wxproj.cpp (project_point): First invert the
2082            supplied point (which should be in projected coordinates) using
2083            the layer's projection and then project the point using the
2084            map's projection.
2085            (project_points): Use project_point() to project each point.
2086    
2087    2003-04-30  Jan-Oliver Wagner <[email protected]>
2088    
2089            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
2090            don't set the Classification to None if the classfication field
2091            is None (ie only a DEFAULT).
2092    
2093    2003-04-30  Bernhard Herzog  <[email protected]>
2094    
2095            * Thuban/UI/view.py: Fix some typos.
2096    
2097            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
2098            not pop up the dialog if the selection becomes empty (this could
2099            happen if e.g. a new selection is opened while the identify tool
2100            is active and dialog had been closed)
2101    
2102    2003-04-30  Bernhard Herzog  <[email protected]>
2103    
2104            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
2105            instance variable read_record_last_result
2106            (TransientTableBase.read_record): Make sure reading the same
2107            record twice works. The implementation uses the new instance
2108            variable read_record_last_result
2109    
2110            * test/test_transientdb.py
2111            (TestTransientTable.test_transient_table_read_twice): New test
2112            case for the above bug-fix.
2113    
2114    2003-04-29  Jonathan Coles   <[email protected]>
2115    
2116            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
2117    
2118            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
2119    
2120            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
2121            (ClassTable.SetValueAsCustom): Rename keyword argument in
2122            ClassGroup* constructors to match argument name.
2123    
2124    2003-04-29  Bernhard Herzog  <[email protected]>
2125    
2126            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
2127            transient DB if it exists to make sure it doesn't leave a journal
2128            file in the temp directory.
2129    
2130            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
2131            self.conn to None after closing the connection to make sure it's
2132            not closed twice
2133    
2134    2003-04-29  Jonathan Coles   <[email protected]>
2135    
2136            Add a visible parameter in the layer XML tag. The default value is
2137            "true". If anything other than "false" is specified we also assume
2138            "true". Addresses RTbug #1025.
2139    
2140            * Doc/thuban.dtd: Add visible parameter to a layer.
2141    
2142            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
2143            of visible from 1 to True.
2144            (Layer.__init__): Change default value of visible from 1 to True.
2145    
2146            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
2147            parameter.
2148    
2149            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
2150            parameter.
2151    
2152            * test/test_load.py: Add new test data contents_test_visible.
2153            (LoadSessionTest.setUp): save test data.
2154            (LoadSessionTest.testLayerVisibility): Test if the visible flag
2155            is loaded correctly.
2156    
2157            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
2158            for saving an invisible layer.
2159    
2160    2003-04-29  Jonathan Coles   <[email protected]>
2161    
2162            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
2163            legend dialog box and tell it to change its map to the one
2164            supplied to SetMap(). Fixes RTbug #1770.
2165    
2166  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
2167    
2168          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 2216 
2216          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
2217          session object alive for a long time.          session object alive for a long time.
2218    
2219  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
2220    
2221          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
2222          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

Legend:
Removed from v.766  
changed lines
  Added in v.1256

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26