/[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 848 by frank, Wed May 7 07:20:52 2003 UTC revision 1224 by jonathan, Tue Jun 17 15:26:11 2003 UTC
# Line 1  Line 1 
1    2003-06-17  Jonathan Coles   <[email protected]>
2    
3            Fix the problem with raster layers under Windows that caused
4            Thuban to crash. The view should respond to layer projection
5            changed events to update the display. Changes to a projection
6            should not cause the map to be set to full extent.
7            
8            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
9            current_map_proj to remember the current map projection so that
10            when the projection changes we know what the previous projection
11            was.
12            (MapCanvas.SetMap): Unsubscribe and subscribe to
13            LAYER_PROJECTION_CHANGED events.
14            (MapCanvas.projection_changed): Split into two methods that respond
15            to map and layer projection changes.
16            (MapCanvas.map_projection_changed): New. Takes the current view and
17            projects it using the new projection. This does not cause the
18            map to be redrawn at full extent.
19            (MapCanvas.layer_projection_changed): New. Cause a redraw which
20            will draw each layer in its new projection.
21            
22            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
23            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
24            under Windows.
25            
26            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
27            to twice sizeof(void*) because there are two digits for each
28            hex byte.
29    
30    2003-06-16  Bernhard Herzog  <[email protected]>
31    
32            Update to the layer interface: Direct access to the table,
33            shapetable, shapefile and filename attributes is now actively
34            deprecated by issuing deprecation warnings for all places where
35            this happens.
36    
37            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
38            to the instance variables table, shapetable, shapefile and
39            filename via __getattr__ so that we can issue a deprecation
40            warning.
41            (Layer.SetShapeStore): Don't set the deprecated instance variables
42            any more
43            (Layer.SetShapeStore): Don't use deprecated layer instance
44            variables
45            (Layer.Destroy): No need to explicitly remove the instance
46            variables any more
47            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
48            instance variables
49    
50            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
51            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
52            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
53            use deprecated layer instance variables
54    
55            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
56            deprecated layer instance variables
57    
58            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
59            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
60            instance variables
61    
62            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
63            deprecated layer instance variables
64    
65            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
66            deprecated layer instance variables
67    
68            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
69            deprecated layer instance variables
70    
71            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
72            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
73            variables
74    
75            * test/runtests.py (main): Turn Thuban's deprecation warnings into
76            errors so that they're cought by the tests
77    
78            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
79            layer instance variables
80    
81    2003-06-16  Jonathan Coles   <[email protected]>
82    
83            Fix a problem under Windows whereby if the user double-clicks on a
84            layer in the legend that tree item will expand or collapse as well
85            as open the layer properties dialog. The state of the tree item
86            should not be affected.
87    
88            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
89            preventExpandCollapse and subscribe to expanding and collapsing
90            events.
91            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
92            collapsing events and will veto the event if it has been triggered
93            by the user double clicking on a layer.
94            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
95            that an expanding/collapsing event should be vetoed.
96    
97    2003-06-13  Bernhard Herzog  <[email protected]>
98    
99            * Thuban/UI/classifier.py (Classifier.OnClose)
100            (Classifier.map_layers_removed)
101            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
102            in OnClose and not in map_layers_removed or
103            layer_shapestore_replaced to make sure it always happens when the
104            dialog is closed
105    
106    2003-06-13  Jonathan Coles   <[email protected]>
107    
108            This puts back a fix for Windows where a panel is needed so that
109            the background of the table view appears correctly.
110    
111            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
112            object that can be used by derived classes to place any
113            controls (including the grid) onto.
114            (QueryTableFrame.__init__): Use the panel as the parent window
115            for all the controls. Reparent the grid so that the panel is
116            the parent. Call UpdateStatusText() to correctly initialize
117            the status bar.
118    
119    2003-06-13  Jonathan Coles   <[email protected]>
120    
121            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
122            from wxFrame (as opposed to wxDialog like the other classes)
123            but otherwise behaves like the other classes. This is needed
124            for the TableView which isn't really a dialog and needs to
125            have a status bar and control buttons.
126    
127            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
128            instance variable to keep track of how many rows are selected.
129            Subscribe once to the the events we are interested in.
130            (ThubanGrid.OnRangeSelect): Only handle event if event handling
131            hasn't been turned off.
132            (ThubanGrid.OnSelectCell): Only handle event if event handling
133            hasn't been turned off.
134            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
135            as an event listener (which changes the event handler stack)
136            simply set an instance variable to False. This is checked in
137            the event handlers.
138            (ThubanGrid.GetNumberSelected): Return the number of currently
139            selected rows.
140            (TableFrame): Inherit from ThubanFrame so we can have a
141            status bar and control buttons.
142            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
143            Explicitly set which items are selected in the operator choice and
144            action choice so there is always a valid selection. Fixes RTbug #1941.
145            Subscribe to grid cell selection events so we can update the
146            status bar.
147            (QueryTableFrame.UpdateStatusText): Update the status bar with
148            how many rows are in the grid, how many columns, and how many
149            rows are selected.
150            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
151            Call UpdateStatusText when cells are (de)selected.
152            (QueryTableFrame.OnQuery): Use the string value in the value
153            combo if either the selected item index is 0 or if the string
154            cannot be found in the predefined list (this happens if the
155            user changes the text). Fixes RTbug #1940.
156            Only turn off the grid event listeners if there a query comes
157            back with a none empty list of ids. in the case that the list
158            is empty this causes a grid.ClearSelection() call to actually
159            clear the grid selection which causes the selected items in
160            the map to be deselected. Fixes RTbug #1939.
161    
162            * test/test_save.py (XMLWriterTest.Encode): Check return values.
163            Fixes RTbug #1851.
164    
165    2003-06-13  Bernhard Herzog  <[email protected]>
166    
167            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
168            self.selected_shape with the current selection to make sure the
169            contents of the dialog are up to date when it's shown for the
170            first time.
171            The dialog used to work without this by luck. The recent fix to
172            the connector module 'broke' a 'feature' the identify view was
173            relying on, i.e that subscribing to a message in response to
174            receiving a message of that type would mean that the new
175            subscriber would also be called for the same message.
176            
177    2003-06-12  Jonathan Coles   <[email protected]>
178    
179            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
180            the image is rendered. Fixes RTbug #1937.
181    
182    2003-06-12  Jonathan Coles   <[email protected]>
183    
184            * Thuban/Lib/fileutil.py: As is done under Windows, create the
185            user directory if it doesn't exist on a posix system.
186            Fixes RTbug #1815.
187    
188            * Thuban/Model/resource.py (get_user_proj_files): Moved the
189            called to get_application_dir here, so that the directory
190            will only be called if this method is invoked.
191    
192            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
193            the projfilepath if no projection is selected.
194    
195    2003-06-12  Jonathan Coles   <[email protected]>
196    
197            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
198            the scalebar if the current map has no projection set.
199    
200            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
201            projfilepath label to just the basename of the projection file
202            rather than include the entire path.
203    
204            * Thuban/Model/resource.py: Fix missed proj functions that
205            needed to be renamed.
206    
207    2003-06-12  Jonathan Coles   <[email protected]>
208    
209            * Thuban/Model/classification.py: Removed assert statements that
210            tested if the variable was an instance of Color.
211    
212            * Thuban/Model/color.py (Color): Remove commented code that isn't
213            used.
214            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
215            Fixes RTbug #1835.
216            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
217            Needed now that the class doesn't inherit from Color.
218    
219    2003-06-12  Jonathan Coles   <[email protected]>
220    
221            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
222            check unicode strings.
223    
224            * test/test_layer.py: Check for existence of gdal.
225    
226    2003-06-12  Jonathan Coles   <[email protected]>
227        
228            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
229            that was in load.py
230    
231            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
232            that was in save.py
233    
234    2003-06-12  Jonathan Coles   <[email protected]>
235    
236            This is largely a collection of bug fixes. We also handle the
237            case where gdal is not on the system. The XMLReader and XMLWriter
238            classes were moved into there own files to resolve some circular
239            import references and because they shouldn't really be in the
240            file that is dediciated to reading/writing session files since
241            they are also used elsewhere.
242    
243            * Thuban/Model/classgen.py: Renamed functions to follow the
244            function_names_with_underscores style. Fixes RTbug #1903.
245            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
246    
247            * Thuban/Model/layer.py: Import gdal only if it available.
248            (RasterLayer): Handle the case where the gdal library is unavailable.
249            Addresses RTbug #1877.
250    
251            * Thuban/Model/load.py (XMLReader): Moved into seperate file
252            xmlreader.py.
253    
254    2003-06-12  Jonathan Coles   <[email protected]>
255    
256            This is largely a collection of bug fixes. We also handle the
257            case where gdal is not on the system. The XMLReader and XMLWriter
258            classes were moved into there own files to resolve some circular
259            import references and because they shouldn't really be in the
260            file that is dediciated to reading/writing session files since
261            they are also used elsewhere.
262    
263            * Thuban/Model/classgen.py: Renamed functions to follow the
264            function_names_with_underscores style. Fixes RTbug #1903.
265            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
266    
267            * Thuban/Model/layer.py: Import gdal only if it available.
268            (RasterLayer): Handle the case where the gdal library is unavailable.
269            Addresses RTbug #1877.
270    
271            * Thuban/Model/load.py (XMLReader): Moved into seperate file
272            xmlreader.py.
273    
274            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
275            file xmlwriter.py.
276    
277            * Thuban/Model/resource.py: Renamed functions to following the
278            function_names_with_underscores style.
279            (has_gdal_support): New function that returns true if the gdal
280            library is available. Addresses RTbug #1877.
281    
282            * Thuban/UI/application.py (ThubanApplication.OpenSession):
283            Display a message box if the gdal library is not available, but
284            only if there are any layers that would use it. Addresses RTbug #1877.
285    
286            * Thuban/UI/classgen.py: Use renamed projection resource functions.
287            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
288            when using integers versus floats.
289    
290            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
291            determine if the "Add Image Layer" menu option should be
292            greyed out or not. Addresses RTbug #1877.
293    
294            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
295    
296            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
297            optimize if a raster layer is visible. Fixes RTbug #1931.
298            Only draw the raster layer if the gdal library is available.
299            Addresses RTbug #1877.
300    
301            * test/test_classgen.py: Add tests for generate_singletons,
302            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
303            (test_calculate_quantiles): Fix some tests to catch the new
304            ValueError that is raised.
305    
306            * test/test_proj.py: Use renamed projection resource functions.
307    
308            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
309            test for saving classified layers. Fixes RTbug #1902.
310            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
311    
312    2003-06-12  Jan-Oliver Wagner <[email protected]>
313    
314            Fix for http://intevation.de/rt/webrt?serial_num=1900.
315    
316            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
317    
318            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
319            multiplechoicedialog.py rather than from the wxPython library.
320    
321    2003-06-11  Frank Koormann  <[email protected]>
322    
323            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
324            update.
325    
326    2003-06-11  Frank Koormann  <[email protected]>
327    
328            * Thuban/Lib/fileutil.py (get_application_dir): New function to
329            determine the absolute .thuban/thuban directory under
330            "posix" (os.expanduser) and "nt" (read AppData registry key).
331    
332            * Thuban/Model/resource.py: Use get_application_dir
333    
334            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
335            Use get_application_dir.
336    
337    2003-06-10  Bernhard Herzog  <[email protected]>
338    
339            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
340            the messages MAP_LAYERS_REMOVED messages
341            (LayerTableFrame.OnClose): Unsubscribe from it.
342            (LayerTableFrame.map_layers_removed): New. Receiver for
343            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
344            dialog is showing is removed.
345    
346    2003-06-10  Bernhard Herzog  <[email protected]>
347    
348            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
349            of the receivers list so that unsubscribing in a receiver doesn't
350            modify it while iterating over it.
351    
352            * test/test_connector.py
353            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
354            unsubscribing in a receiver works correctly. See docstring for
355            details
356    
357    2003-06-10  Bernhard Herzog  <[email protected]>
358    
359            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
360            message.
361    
362            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
363            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
364            LAYER_CHANGED will still be sent if the classification changes.
365    
366            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
367            parameter so we can subscribe to some of its messages
368            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
369            and the layer's LAYER_SHAPESTORE_REPLACED
370            (Classifier.unsubscribe_messages): New. Unsubscribe from message
371            subscribed to in __init__
372            (Classifier.map_layers_removed)
373            (Classifier.layer_shapestore_replaced): receivers for the messages
374            subscribed to in __init__. Unsubscribe and close the dialog
375    
376            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
377            the map to the Classifier dialog
378    
379            * test/test_layer.py (SetShapeStoreTests): Derive from
380            SubscriberMixin as well so we can test messages
381            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
382            messages
383            (SetShapeStoreTests.tearDown): Clear the messages again
384            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
385            for the modified flag too
386            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
387            to check whether SetShapeStore sets the modified flag
388            (SetShapeStoreTests.test_set_shape_store_different_field_name)
389            (SetShapeStoreTests.test_set_shape_store_same_field)
390            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
391            Add tests for the messages. This checks both the new
392            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
393    
394    2003-06-06  Jan-Oliver Wagner <[email protected]>
395    
396            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
397            the menu items.
398    
399    2003-06-05  Frank Koormann  <[email protected]>
400    
401            * Thuban/UI/identifyview.py (IdentifyView.__init__):
402            Layout reimplemented without panel. Make life easier to fit the list
403            in the dialog.
404    
405    2003-06-05  Frank Koormann  <[email protected]>
406    
407            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
408            once on initialisation (Former implementation resulted in multiple
409            entries for each projection).
410            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
411            if set, select the projection found under the specified name. This
412            overwrites any other selection estimate.
413            Removed projchoice filling from this method.
414            (ProjFrame._OnSave, ProjFrame._OnAddToList):
415            Updated call of ProjFrame.__FillAvailList
416            (LCCPanel._DoLayout): Moved parameter controls in more common order.
417    
418            * Resources/Projections/defaults.proj: Extended defaults representing
419            various common European projections.
420    
421    2003-06-05  Frank Koormann  <[email protected]>
422    
423            * Thuban/UI/identifyview.py (IdentifyView.__init__):
424            Use ListCtrl instead of GridCtrl
425    
426            * Thuban/Model/resource.py:
427            Guess location of .thuban directory from tempdir parent directory.
428    
429            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
430            Guess location of .thuban directory from tempdir parent directory.
431    
432    2003-06-04  Bernhard Herzog  <[email protected]>
433    
434            Do not cache the values returned by the tree widget's
435            GetFirstChild and GetNextChild methods because it led to lots of
436            segfaults. The new way requires more brute force but is more
437            reliable.
438    
439            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
440            variable layer2id
441            (LegendTree.find_layer): New method to do with brute force what
442            layer2id tried to accomplish
443            (LegendTree._OnMsgLayerChanged)
444            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
445            Use find_layer instead of layer2id
446            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
447            update layer2id anymore
448            (LegendTree._OnMsgMapLayersRemoved)
449            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
450    
451    2003-06-03  Thomas Koester  <[email protected]>
452    
453            * Thuban/Model/classgen.py (GenQuantiles0): New function.
454    
455    2003-06-02  Bernhard Herzog  <[email protected]>
456    
457            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
458            New commands.
459            (main_menu): Add the new commands.
460            (MainWindow.TableRename): New. Implementation of the table_rename
461            command.
462            (MainWindow.RenameLayer): New. Implementation of the layer_rename
463            command.
464    
465            * Thuban/Model/session.py (Session.AddTable): call self.changed to
466            set the modified flag
467    
468            * test/test_session.py (TestSessionSimple.test_add_table): Test
469            whether the modified flag is set properly
470    
471            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
472            instead of issue so that the modified flags get updated.
473    
474            * test/test_base.py (SomeTitledObject): Derive from Modifiable
475            instead of Publisher to reflect reality better and to accomodate
476            the fact that SetTitle now calls changed instead of issue
477    
478    2003-06-02  Bernhard Herzog  <[email protected]>
479    
480            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
481            acquisition has to happen before the try in a try-finally.
482    
483    2003-06-02  Bernhard Herzog  <[email protected]>
484    
485            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
486            possible that a layer is removed that is not currently selected in
487            the legend so don't check for this.
488    
489    2003-05-30  Bernhard Herzog  <[email protected]>
490    
491            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
492            variables to None that have direct or indirect references to
493            shapefiles or dbf files to make sure that they do go away and the
494            files are closed.
495    
496    2003-05-30  Bernhard Herzog  <[email protected]>
497    
498            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
499            availImgListIndices when a new image list is created
500            
501    2003-05-30  Bernhard Herzog  <[email protected]>
502    
503            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
504            changing_selection to indicate whether the LegendTree code itself
505            is currently changing the selection
506            (LegendTree.normalize_selection): New method to normalize the
507            selection by selecting the layer item even if the user clicked on
508            the classification.
509            (LegendTree._OnSelChanged): normalize the selection. This works
510            around a bug in wx which doesn't keep track of the selection
511            properly when subtrees are deleted.
512    
513    2003-05-30  Bernhard Herzog  <[email protected]>
514    
515            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
516            maximum and minimum scale factors.
517    
518            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
519            changes in classgen.py
520    
521    2003-05-30  Jonathan Coles   <[email protected]>
522    
523            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
524            all the methods functions. Fixes RTBug #1903.
525    
526            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
527            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
528            RTBug #1907.
529    
530            * Thuban/UI/classgen.py: Use classgen functions that were part
531            of the ClassGenerator class. Put try/finally blocks around
532            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
533            RTBug #1904.
534    
535            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
536    
537            * Thuban/UI/legend.py: The legend was cleared and repopulated any
538            time something changed which caused some state to be lost such
539            as which children were expanded or collapsed. Fixes RTBug #1901.
540            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
541            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
542            the legend but not in the map.
543            (LegendTree.__FillTree): Move main functionality out into smaller
544            methods that can be used by other methods.
545            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
546            if they are available.
547            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
548            that we override the wxTreeCtrl method. Iterate over children
549            and call __RemoveLayer.
550            (LegendTree.__AddLayer): New. Add a new layer to the legend.
551            (LegendTree.__RemoveLayer): Remove a layer from the legend.
552            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
553            Should only be called with the id of a layer branch.
554            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
555            Returns the root item or creates one if necessary.
556    
557            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
558            ProjectRasterFile with tuple arguments instead of strings.
559    
560            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
561            with try/finally. Fixes RTBug #1904.
562    
563            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
564            with try/finally. Fixes RTBug #1904.
565            (MapCanvas.FitSelectedToWindow): If a single point is selected
566            simply center it on the display. Fixes RTBug #1849.
567    
568            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
569            to be compiled as a standalone app. Now the code can only be
570            called from Python which simplifies the parameter passing.
571            (ProjectRasterFile): Handle Python arguments. Remove code that
572            checks for a destination dataset. Add more clean up code.
573    
574            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
575            TestMapWithContents.test_lower_layer_bottom):
576            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
577            Fixes RTBug #1907.
578    
579            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
580            extent to the map when the legend is toggled. Fixes RTBug #1881.
581    
582    2003-05-29  Jan-Oliver Wagner <[email protected]>
583    
584            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
585            unsubscribes all that is subcribed in __init__.
586    
587    2003-05-28  Bernhard Herzog  <[email protected]>
588    
589            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
590            (MainWindow.CanDuplicateLayer): New methods to implement the
591            Layer/Duplicate command.
592            (layer_duplicate command): New.
593            (main_menu): Add layer_duplicate to the Layer menu.
594    
595    2003-05-28  Bernhard Herzog  <[email protected]>
596    
597            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
598            renderer so that NULL/None values get displayed differently (by a
599            gray rectangle).
600            (TableGrid.__init__): Override the default renderers
601    
602    2003-05-28  Bernhard Herzog  <[email protected]>
603    
604            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
605            classification to "None" if the type of the field has changed.
606    
607            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
608            test for the Layer.SetShapeStore method
609    
610    2003-05-28  Jan-Oliver Wagner <[email protected]>
611    
612            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
613            does not necessarily have a filename).
614    
615    2003-05-28  Jan-Oliver Wagner <[email protected]>
616    
617            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
618            sort the selection list for the dialog.
619    
620    2003-05-28  Frank Koormann  <[email protected]>
621    
622            * extensions/thuban/wxproj.cpp
623            (project_point): Removed cast to int for projected point coordinates.
624            (shape_centroid): Return last point if all polygon vertices fall
625            to one point.
626    
627    2003-05-28  Bernhard Herzog  <[email protected]>
628    
629            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
630            with layers that don't have shapestores, i.e. raster layers.
631    
632    2003-05-28  Bernhard Herzog  <[email protected]>
633    
634            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
635            when determining the title from the filename.
636    
637            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
638            reflect changes in the way the title is derived from the filename
639    
640    2003-05-28  Frank Koormann  <[email protected]>
641    
642            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
643            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
644    
645    2003-05-27  Bernhard Herzog  <[email protected]>
646    
647            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
648            delegate SelectedLayer.
649            (MainWindow.LayerUnjoinTable): Implement.
650            (_can_unjoin): New. Helper function for the sensitivity of the
651            layer/unjoin command.
652    
653            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
654            (DerivedShapeStore.OrigShapeStore): New. Return the original
655            shapestore. Used to figure out how to unjoin.
656            (DerivedShapeStore.Shapefile): Fix a typo.
657    
658    2003-05-27  Bernhard Herzog  <[email protected]>
659    
660            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
661            well
662            (JoinDialog.__init__): Use the layer parameter and only build the
663            left choice when a layer is given
664            (JoinDialog.OnJoin): Handle layer joins as well
665            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
666            that the user selects the "Select..." item. The sensitivitly
667            updating is now in update_sensitivity
668            (JoinDialog.y): New method to refactor the sensitivity update of
669            the join button into its own method.
670    
671            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
672    
673    2003-05-27  Bernhard Herzog  <[email protected]>
674    
675            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
676            iff there are unreferenced tables in the session
677    
678    2003-05-27  Bernhard Herzog  <[email protected]>
679    
680            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
681    
682            * Thuban/Model/session.py (Session.UnreferencedTables): New method
683            to return tables that are not referenced by other tables or shape
684            stores and can be removed.
685            (Session.RemoveTable): Issue a TABLE_REMOVED message after
686            removing the table
687    
688            * Thuban/UI/mainwindow.py: Remove unused imports
689            (MainWindow.TableClose): Implement.
690    
691            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
692            messages so that the frame will be automatically closed when a new
693            session is opened or the table is removed.
694            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
695            __init__
696            (TableFrame.close_on_session_replaced)
697            (TableFrame.close_on_table_removed): New. Subscribers that close
698            the window
699    
700            * test/test_session.py (TestSessionMessages.test_remove_table)
701            (TestSessionSimple.test_remove_table): Move the test to
702            TestSessionSimple and add test for the TABLE_REMOVED message
703            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
704            (TestSessionSimple.test_unreferenced_tables) New. Test for the
705            UnreferencedTables method.
706            (UnreferencedTablesTests): New. Class with some more sophisticated
707            tests for UnreferencedTables.
708    
709    2003-05-27  Frank Koormann  <[email protected]>
710    
711            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
712            display has some unwanted side effects. Removed again.
713    
714    2003-05-27  Frank Koormann  <[email protected]>
715    
716            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
717    
718            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
719    
720    2003-05-27  Jan-Oliver Wagner <[email protected]>
721    
722            * test/test_menu.py (MenuTest.test): Added test for
723            Menu.RemoveItem().
724    
725            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
726            the menu.
727    
728    2003-05-27  Frank Koormann  <[email protected]>
729            
730            Nonmodal dialogs without parent (i.e. they can fall behind the main
731            window)
732    
733            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
734            all dialogs in the dialogs dictionary and the canvas.
735    
736            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
737            parent, i.e. can fall behind other windows.
738            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
739            dictionary before removing it.
740    
741            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
742    
743            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
744            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
745            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
746    
747    2003-05-27  Bernhard Herzog  <[email protected]>
748    
749            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
750            tableview dialog
751            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
752            Also, don't use the table's titles as the dialog names. The titles
753            aren't guaranteed to be unique.
754            (MainWindow.TableOpen): Open a table view dialog after opening the
755            table
756    
757    2003-05-27  Bernhard Herzog  <[email protected]>
758    
759            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
760            effect can be achieved by simply closing the window showing the
761            table.
762            (MainWindow.TableHide): Removed.
763            (main_menu): Removed "table_hide"
764    
765    2003-05-27  Frank Koormann  <[email protected]>
766    
767            Fix legend tree display problems under Win32
768    
769            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
770            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
771            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
772    
773            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
774    
775    2003-05-27  Jan-Oliver Wagner <[email protected]>
776    
777            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
778            'after' now allows to insert separators almost anywhere in the menu.
779    
780    2003-05-27  Frank Koormann  <[email protected]>
781    
782            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
783            "S" of selection box label to hint on hot key (Alt-S). Works under
784            Win32 but is ignored under GTK.
785    
786    2003-05-26  Frank Koormann  <[email protected]>
787    
788            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
789            Center Choices.
790    
791    2003-05-26  Bernhard Herzog  <[email protected]>
792    
793            Remove the Precision methods again. They're too DBF specific to be
794            part of the table interface and they're only used in table_to_dbf
795            anyway.
796            
797            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
798            fixed precision of 12 for doubles.
799            (TransientTableBase.Precision): Removed
800            (AutoTransientTable.Width): Delegate to self.table.
801    
802            * Thuban/Model/table.py (DBFTable.Precision)
803            (MemoryTable.Precision): Removed.
804            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
805            (table_to_dbf): Use a fixed precision of 12 for floats unless the
806            column object specifies something else.
807    
808            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
809            test for table_to_dbf
810    
811    2003-05-26  Bernhard Herzog  <[email protected]>
812    
813            * test/test_transientdb.py
814            (TestTransientTable.run_iceland_political_tests): Fix a comment.
815    
816    2003-05-26  Bernhard Herzog  <[email protected]>
817    
818            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
819            implementation. Mark parts of the file format strings for
820            localization.
821    
822            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
823            file and add the table to the tables managed by the session
824    
825            * test/test_session.py (TestSessionSimple.test_open_table_file):
826            New. test case for OpenTableFile
827    
828    2003-05-26  Jan-Oliver Wagner <[email protected]>
829    
830            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
831            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
832            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
833            Replace the true/false of wxWindows by True/False of Python 2.2.1.
834    
835    2003-05-26  Jan-Oliver Wagner <[email protected]>
836    
837            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
838            already a selection present, update the grid accordingly.
839    
840            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
841            resizeable and increase its initial size.
842    
843    2003-05-26  Frank Koormann  <[email protected]>
844    
845            Table export functionality
846    
847            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
848            Return width (in characters) for a column.
849            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
850            (table_to_dbf): Write table to dbf file.
851            (table_to_csv): Write table to csv file.
852    
853            * Thuban/Model/transientdb.py (TransientTableBase.Width,
854            TransientTableBase.Precision): Return column width and precision.
855    
856            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
857            or table_to_csv depending on file selection.
858    
859            * test/test_dbf_table.py:
860            Test table_to_dbf (extension of former part of test).
861    
862            * test/test_csv_table.py:
863            Test table_to_csv.
864    
865    2003-05-23  Jan-Oliver Wagner <[email protected]>
866    
867            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
868            Use QueryTableFrame instead of TableFrame.
869    
870            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
871            table window with 'Layer Table:' instead of 'Table:'.
872    
873    2003-05-23  Jan-Oliver Wagner <[email protected]>
874    
875            Give all tables a title via mix-in TitledObject.LayerShowTable
876    
877            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
878            only if it exists.
879    
880            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
881            and call its init-method with a default title. Remove Title() method.
882    
883            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
884            AutoTransientTable): mix-in TitledObject and call its init-method with
885            a default title. Remove Title() method.
886    
887    2003-05-23  Bernhard Herzog  <[email protected]>
888    
889            * Thuban/Model/session.py (Session.AddShapeStore): Define
890            AddShapeStore analogously to AddTable.
891    
892            * test/test_session.py (TestSessionSimple.test_add_shapestore):
893            New. Test for AddShapeStore
894    
895    2003-05-23  Jan-Oliver Wagner <[email protected]>
896    
897            Introducing QueryTableFrame and a very coarse ShowTable implementation.
898    
899            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
900            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
901            The latter implements the selection GUI without dependency on a layer.
902            LayerTableFrame now is derived from QueryTableFrame and connects
903            to a layer.
904    
905            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
906            implementation that still needs work.
907    
908            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
909    
910    2003-05-22  Frank Koormann  <[email protected]>
911    
912            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
913            Added "outer_join = False" as optional parameter.
914            (TransientJoinedTable.create): If outer join is true, perform a
915            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
916            the left table. Records not matching are filled with 0 / None.
917    
918            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
919            (JoinDialog.OnJoin): Consider outer join check box.
920    
921    2003-05-22  Bernhard Herzog  <[email protected]>
922    
923            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
924            somewhat safer way. Storing the traceback in a local variable can
925            lead to memory leaks
926    
927    2003-05-22  Bernhard Herzog  <[email protected]>
928    
929            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
930            the wxMessageDialog's Destroy() method.
931    
932    2003-05-22  Frank Koormann  <[email protected]>
933    
934            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
935            TransientTable.Title()
936    
937    2003-05-22  Frank Koormann  <[email protected]>
938    
939            Join Dialog, initial version.
940    
941            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
942    
943            * Thuban/UI/join.py (JoinDialog): Functional implementation of
944            former framework. Renamed Table1/Table2 to LeftTable/RightTable
945            in all occurences.
946    
947            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
948            Typo fixed.
949    
950    2003-05-22  Bernhard Herzog  <[email protected]>
951    
952            Give the tables titles so that the GUI can display more meaningful
953            names. For now the titles are fixed but depend on e.g. filenames
954            or the titles of the joined tables.
955    
956            * Thuban/Model/transientdb.py (TransientTable.Title)
957            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
958    
959            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
960    
961            * test/test_transientdb.py
962            (TestTransientTable.test_auto_transient_table_title): New. Test
963            for the Title method
964            (TestTransientTable.test_transient_joined_table)
965            (TestTransientTable.test_transient_table): Add test for the Title
966            methods
967    
968            * test/test_memory_table.py (TestMemoryTable.test_title): New.
969            Test for the Title method
970    
971            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
972            the Title method
973    
974    2003-05-22  Bernhard Herzog  <[email protected]>
975    
976            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
977            Provide a better way to destroy the layers
978            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
979            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
980            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
981            the new way to destroy the layers.
982            (TestLayer.test_derived_store): New. Test for using a layer with a
983            DerivedShapeStore
984    
985            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
986            filename if the shape store actually has one.
987    
988    2003-05-22  Bernhard Herzog  <[email protected]>
989    
990            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
991            for the filename
992    
993            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
994            for the FileName method
995            (TestDBFTableWriting.test_write): Fix spelling of filename
996    
997    2003-05-22  Thomas Koester  <[email protected]>
998    
999            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
1000            from SciParam that now really is immutable.
1001    
1002    2003-05-22  Frank Koormann  <[email protected]>
1003    
1004            Layer Top/Bottom placement added to legend.
1005    
1006            * Thuban/UI/legend.py
1007            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
1008            bound to tool events.
1009            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
1010            New, methods binding the event methods with the map methods.
1011    
1012            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
1013            layer at top/bottom of layer stack.
1014    
1015            * Resources/Bitmaps/top_layer.xpm: New button icon.
1016    
1017            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
1018    
1019    2003-05-22  Bernhard Herzog  <[email protected]>
1020    
1021            * Thuban/Model/session.py (Session.RemoveTable): New method to
1022            remove tables
1023    
1024            * test/test_session.py (TestSessionSimple.test_remove_table): New.
1025            Test for RemoveTable
1026    
1027    2003-05-22  Thomas Koester  <[email protected]>
1028    
1029            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
1030            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
1031    
1032    2003-05-22  Bernhard Herzog  <[email protected]>
1033    
1034            Implement a way to discover dependencies between tables and
1035            shapestores.
1036    
1037            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
1038            (TransientJoinedTable.Dependencies)
1039            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
1040            interface
1041            (TransientJoinedTable.__init__): Keep tack of the original table
1042            objects in addition to the corresponding transient tables.
1043    
1044            * Thuban/Model/table.py (DBFTable.Dependencies)
1045            (MemoryTable.Dependencies): New. Implement the dependencies
1046            interface
1047    
1048            * Thuban/Model/data.py (ShapeTable): New. Helper class for
1049            ShapefileStore
1050            (ShapefileStore.__init__): Use ShapeTable instead of
1051            AutoTransientTable
1052            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
1053            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
1054            methods for filename and type
1055            (ShapefileStore.Dependencies): New. Implement the dependencies
1056            interface
1057            (DerivedShapeStore): New class to replace SimpleStore. The main
1058            difference to SimpleStore is that it depends not on a shapefile
1059            but another shapestore which expresses the dependencies a bit
1060            better
1061            (SimpleStore.__init__): Add deprecation warning.
1062    
1063            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
1064            Test for the Dependencies method.
1065    
1066            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
1067            New. Test for the Dependencies method.
1068    
1069            * test/test_transientdb.py
1070            (TestTransientTable.test_auto_transient_table_dependencies): New.
1071            Test for the Dependencies method.
1072            (TestTransientTable.test_transient_joined_table): Add test for the
1073            Dependencies method.
1074    
1075            * test/test_session.py (TestSessionSimple.setUp)
1076            (TestSessionSimple.tearDown): New. Implement a better way to
1077            destroy the sessions.
1078            (TestSessionSimple.test_initial_state)
1079            (TestSessionSimple.test_add_table): Bind session to self.session
1080            so that it's destroyed by tearDown
1081            (TestSessionSimple.test_open_shapefile): New. Test for
1082            OpenShapefile and the object it returns
1083    
1084    2003-05-22  Bernhard Herzog  <[email protected]>
1085    
1086            * Thuban/Model/session.py (Session.AddTable): New method to
1087            register tables with the session.
1088            (Session.Tables): Return the tables registered with AddTable too.
1089    
1090            * test/test_session.py (TestSessionSimple.test_add_table): New.
1091            Test case for the AddTable method
1092    
1093    2003-05-22  Frank Koormann  <[email protected]>
1094    
1095            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
1096            lower right corner, center labels for selections, initialize controls
1097            in reasonable order for keyboard navigation.
1098    
1099            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
1100            (ProjFrame.__DoOnProjAvail): Determine position of current projection
1101            using the wxListBox.FindString() method. Still a problem (#1886)
1102    
1103            * Thuban/UI/classifier.py
1104            (Classifier.__init__, SelectPropertiesDialog.__init__)
1105    
1106            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
1107            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
1108            different classification types from here to __init__.
1109            (GenUniquePanel.__init__): Set the column width of the first field
1110            in the Field ListCtrl to the full width.
1111    
1112            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
1113            Button to 'Export'. Center Buttons in Selection Box, set Focus to
1114            Grid.
1115            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
1116            changes focus to the Selection when pressing "Alt-S".
1117    
1118            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
1119            the text if not visible. The italic font sometimes exceeds the
1120            rendering area.
1121    
1122    2003-05-21  Jonathan Coles   <[email protected]>
1123    
1124            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
1125            to OnClose so that Thuban closes correctly.
1126    
1127            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
1128            DockFrame.OnClose, not DockFrame._OnClose.
1129    
1130    2003-05-21  Jonathan Coles   <[email protected]>
1131    
1132            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
1133            references to 'inf' and use new Range __init__ to pass floats
1134            directly rather than converting them to strings first.
1135            Fixes RTBug #1876.
1136    
1137            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
1138            Use new Range ___init__ to pass floats.
1139    
1140            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
1141            filename is a valid image file. Throw IOError otherwise.
1142    
1143            * Thuban/Model/range.py: Brought over new Range from SciParam that
1144            is immutable and has an __init__ which can accept floats.
1145    
1146            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
1147            into try block. AddLayer doesn't throw any exceptions anymore.
1148            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
1149            try block.
1150    
1151            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
1152            the first item in choices. Fixes RTBug #1882.
1153    
1154            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
1155            has gone to 0 which is a serious problem. abort.
1156            (MapRenderer.draw_raster_layer): Catch IOError seperately and
1157            print the error from GDAL.
1158    
1159            * Thuban/UI/tableview.py (TableGrid.__init__): Call
1160            ToggleEventListeners to turn on listening.
1161            (TableGrid.ToggleEventListeners): New. Turns event listening on
1162            and off so as to prevent excessive messages.
1163            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
1164            to suppress excessive messages when selecting many rows.
1165            Fixes RTBug #1880.
1166    
1167            * Thuban/UI/view.py: Added checks against if scale == 0. This
1168            is a serious problem that can occur when an image without
1169            geo data is loading and causes the map projection bounds to
1170            go to infinity. Right now, the solution is to simply try
1171            to recover.
1172    
1173            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
1174            to set the MFILEReceiver attributes even if the data is NULL.
1175    
1176            * extensions/thuban/gdalwarp.cpp: Improved the error handling
1177            and passed GDAL messages back up to the Python layer. Also
1178            tried to fix some memory leaks that were present in the original
1179            utility but didn't matter because the program aborted.
1180    
1181            * test/test_range.py: Copied over tests from SciParam. Removed
1182            tests against importing. Fixes RTBug #1867.
1183    
1184    2003-05-21  Bernhard Herzog  <[email protected]>
1185    
1186            * test/test_load.py: Remove unused imports and restructure the
1187            test code
1188            (LoadSessionTest): Split into one class for each test and turn
1189            LoadSessionTest itself into the base class for all such session
1190            tests.
1191            (ClassificationTest): New base class for load tests that test
1192            classifications
1193            (TestSingleLayer, TestLayerVisibility, TestClassification)
1194            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
1195            for the individual tests
1196    
1197            * test/support.py (FileLoadTestCase.filename): New base class for
1198            file loading tests
1199    
1200    2003-05-21  Jan-Oliver Wagner <[email protected]>
1201    
1202            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
1203            Mercator' to 'UTM Zone 32' as a more convenient example.
1204            Added 'Gauss Krueger Zone 6'.
1205    
1206            * Data/iceland_sample_raster.thuban: political polygon now
1207            filled transparent to have the raster image visible at once.
1208    
1209    2003-05-21  Frank Koormann  <[email protected]>
1210    
1211            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
1212            OnClose() to keep in sync with extensions. Internally Thuban
1213            still uses "underscored" names.
1214    
1215    2003-05-20  Jonathan Coles   <[email protected]>
1216    
1217            This puts back Raster layer support. These layers support projections
1218            through the GDAL library. Currently, the CVS version is being used.
1219            There are no Debian packages available although this may change soon.
1220            A GDAL driver was extended to support writing to memory rather to
1221            files.
1222    
1223            There is still some work that needs to be done, such as some error
1224            handling when loading invalid images or when there is a problem
1225            projecting the image. This putback simply checks in the majority
1226            of the work.
1227    
1228            * setup.py: Add gdalwarp library extension.
1229    
1230            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
1231            Defaults to False, but can be overridden by subclasses if they
1232            support classification.
1233            (RasterLayer): New. Defines a new layer that represents an
1234            image.
1235    
1236            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
1237            tag handler.
1238            (SessionLoader.start_layer): Encode the filename.
1239            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
1240            New. Supports reading a rasterlayer tag.
1241    
1242            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
1243    
1244            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
1245            get a string in Latin1. If we get such as string convert it to
1246            unicode first, otherwise leave if alone before encoding.
1247            (SessionSaver.write_layer): Add support for writing both Layers
1248            and RasterLayers.
1249    
1250            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1251            The right argument may not be a string, it could also be a Column.
1252    
1253            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
1254            Make initial window size 600x400. Fixes RTBug #1872.
1255    
1256            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
1257            the dialog is constructed so that we can support layers that
1258            do not have classifications.
1259            (Classifier._OnTry): Only build a classification if the layer
1260            supports one.
1261    
1262            * Thuban/UI/legend.py: Change all checks that a layer is an
1263            instance of Layer into checks against BaseLayer.
1264            (LegendTree.__FillTreeLayer): Only add children to a branch if
1265            the layer supports classification.
1266    
1267            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
1268            MainWindow.OpenSession): Don't proceed with an action if the
1269            user chooses Cancel when they are asked to save changes.
1270            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
1271            user to select an image file. Create a new RasterLayer and add
1272            it to the map.
1273    
1274            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
1275            for rendering RasterLayer layers.
1276            (MapRenderer.draw_raster_layer): Actually method that calls
1277            the GDALWarp python wrapper and constructs an image from the
1278            data returned.
1279    
1280            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
1281            Choices symbols to match those used in the table query method.
1282            Replace deprecated method calls on table with new method names.
1283    
1284            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
1285            how small the scale can get. This still needs more testing.
1286    
1287            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
1288            Provides a driver to output in .bmp format.
1289    
1290            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
1291            New. Provides IO routines which write to memory, rather than a file.
1292    
1293            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
1294            of the gdalwarp utility provided in GDAL. Added function calls
1295            that can be accessed from python.
1296    
1297            * Data/iceland_sample_raster.thuban: New. Sample file that uses
1298            a raster layer.
1299    
1300            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
1301            layer image data.
1302    
1303            * Doc/thuban.dtd: Added rasterlayer attribute definition.
1304    
1305            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
1306            tests associated with the raster layer code.
1307    
1308            * test/test_transientdb.py
1309            (TestTransientTable.test_auto_transient_table_query): Added a test
1310            for using a Column object as the "right" parameter to a query.
1311    
1312    2003-05-19  Frank Koormann  <[email protected]>
1313    
1314            * Thuban/version.py (get_changelog_date):
1315            Catch exceptions if ChangeLog does not exist.
1316    
1317            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
1318    
1319    2003-05-19  Frank Koormann  <[email protected]>
1320    
1321            Extended version information for Thuban
1322    
1323            * Thuban/version.py: New, version information for Thuban: Last
1324            modification date and last ChangeLog entry date.
1325    
1326            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
1327            information: Display Thuban, wxPython and Python version.
1328    
1329    2003-05-16  Bernhard Herzog  <[email protected]>
1330    
1331            * Thuban/Model/save.py: Remove some unused imports including the
1332            __future__ import for nested_scopes as Thuban relies on Python 2.2
1333            now.
1334            (XMLWriter.encode): Remove the special case for a None argument.
1335            In the saver encode is always called with a string argument.
1336    
1337    2003-05-16  Bernhard Herzog  <[email protected]>
1338    
1339            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
1340            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
1341            of the bug was that e.g. float("1.2") would fail. Thuban now
1342            requires 2.4.x.
1343            
1344    2003-05-16  Frank Koormann   <[email protected]>
1345    
1346            Printing enhancement and WMF export (under Win32)
1347    
1348            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
1349            ScreenRenderer. Renders Map, Legend and Scalebar for export.
1350            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
1351            PrintRender.
1352    
1353            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
1354            to fullfil information needed for PrinterRenderer.
1355            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
1356            (MapCanvas.Print): Adapted to new MapPrintout.
1357            (OutputTransform): General calculations to transform from canvas
1358            coordinates to export/printing devices.
1359    
1360            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
1361            new method_command to call ExportMap, with platform dependency (only
1362            __WXMSW__)
1363      
1364            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
1365            of scalebar drawing area as new parameters.
1366            
1367            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
1368    
1369            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
1370            Update to extended scalebar.DrawScalebar header.
1371    
1372            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
1373    
1374            * test/test_scalebar.py: Made test executable as standalone.
1375    
1376    2003-05-16  Bernhard Herzog  <[email protected]>
1377    
1378            * Thuban/Model/table.py (Table): Remove this compatibility alias
1379            for DBFTable.
1380    
1381            * test/test_table.py: Import DBFTable as Table because that alias
1382            doesn't exist anymore.
1383    
1384            * Thuban/UI/classgen.py: Remove some unused imports
1385    
1386    2003-05-14  Jonathan Coles   <[email protected]>
1387    
1388            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
1389            Fix docstring.
1390            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
1391            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
1392            values of the supplied range to determine the beginning and end
1393            bounds of the generated classes.
1394    
1395            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
1396            do not have a leading 0 (.5 is now accepted as well as 0.5).
1397    
1398            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
1399            call to ClassGenerator.GenUniformDistribution.
1400    
1401            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
1402            layout bug with the 'Projection' label.
1403    
1404            * test/support.py (FloatTestCase): New. Needed for the Range tests.
1405    
1406            * test/test_range.py: New. Imported from SciParam.
1407    
1408    2003-05-12  Jonathan Coles   <[email protected]>
1409    
1410            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
1411            to table.UniqueValues() with calls that retrieve all the values
1412            from the table. This will need to be replaced by a method on table
1413            which can simply return the list (perhaps more efficiently).
1414    
1415    2003-05-12  Jonathan Coles   <[email protected]>
1416    
1417            The return value of ClassGenerator.CalculateQuantiles has changed.
1418            Refer to the documentation for details.
1419    
1420            * test/test_classgen.py: Modified Quantile tests to use the
1421            new return values.
1422    
1423            * Thuban/Model/classgen.py
1424            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
1425            use new return values from CalculateQuantiles to produce the correct
1426            range bounds in the Classification.
1427            (ClassGenerator.CalculateQuantiles): Add more comments describing
1428            the return values and parameters. Make minor adjustments to improve
1429            the legibility of the code. Fix problem with adjusted not being set
1430            in most cases.
1431    
1432    2003-05-12  Frank Koormann <[email protected]>
1433            
1434            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
1435            and latin1. Fixes #1851 finally.
1436    
1437    2003-05-09  Jonathan Coles   <[email protected]>
1438    
1439            * test/test_classgen.py: New. Tests the Quantile algorithm.
1440    
1441            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
1442            Clean up debugging statement, add comments, fix a small bug in the
1443            returned adjusted percentiles.
1444            
1445    2003-05-09  Jonathan Coles   <[email protected]>
1446    
1447            Introduces Range class from SciParam into the ClassGroupRange class,
1448            and such ranges can now be saved and loaded from disk.
1449    
1450            Quantiles are now available in the Classification Generator.
1451    
1452            Initial support for building Queries on a table. Doesn't do anything
1453            but run some tests.
1454    
1455            * Thuban/Model/classification.py: Explicit imports.
1456            (ClassGroupRange): Use the Range class to store the underlying
1457            range information. The interface remains the same, except for
1458            GetRange(), and you can also supply a Range object as the min
1459            parameter to SetRange or __init__.
1460    
1461            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
1462            string appropriately for use in Thuban. Fixes RTbug #1851.
1463            (SessionLoader.end_projection): Handle the context of the
1464            projection tag a bit better by looking at what objects are not
1465            None. There was an assumption that a projection tag for a map
1466            could occur before any layers.
1467            (SessionLoader.start_clrange): Provide backward compatibility for
1468            reading min/max values as well as the new range parameter.
1469    
1470            * Thuban/Model/map.py: Explicit imports.
1471    
1472            * Thuban/Model/resource.py: Import _.
1473            (ProjFileSaver.write): write header using projfile.dtd.
1474    
1475            * Thuban/Model/save.py: Explicit imports.
1476            (XMLWriter.encode): New. Encode the given string from a format
1477            used by Thuban into UTF-8. Fixes RTbug #1851.
1478    
1479            * Thuban/UI/classgen.py: Explicit imports.
1480            (ClassGenDialog.__init__): Clean up the code and add support
1481            for Quantiles.
1482            (ClassGenDialog.OnOK): Add support for Quantiles.
1483            (GenQuantilesPanel): New. Input panel for Quantiles.
1484            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
1485            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
1486    
1487            * Thuban/Model/classgen.py: New. Contains all the classes named above.
1488    
1489            * Thuban/UI/classifier.py: Explicit imports.
1490            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
1491            ClassTable.SetValueAsCustom): Reworked to use new Range class.
1492    
1493            * Thuban/UI/legend.py: Explicit imports.
1494    
1495            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
1496            a Table menu and associated method calls.
1497            (MainWindow.choose_color): Removed. No longer needed.
1498    
1499            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
1500            should be disabled if no projection is selected in the available
1501            list.
1502    
1503            * Thuban/UI/renderer.py: Explicit imports.
1504    
1505            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
1506            with correctly selecting the rows and issuing the right events.
1507            Be sure to call Skip() to allow the grid to do some of its own
1508            handling which allows the rows to actually be selected.
1509            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
1510            selecting multiple shapes.
1511            (LayerTableFrame): Support for building Queries.
1512            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
1513    
1514            * Thuban/UI/tree.py: Explicit imports.
1515    
1516            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
1517            table view can call it.
1518    
1519            * test/test_classification.py: Explicit imports.
1520            (TestClassification.test_ClassGroupRange): Fix test for new
1521            Range class.
1522    
1523            * Doc/thuban.dtd: Add range parameter for clrange.
1524    
1525            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
1526            object in ClassGroupRange, and also uesd for inputting ranges in
1527            the classifer table and elsewhere.
1528    
1529            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
1530            yet.
1531    
1532    2003-05-09  Frank Koormann <[email protected]>
1533    
1534            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
1535    
1536    2003-05-08  Frank Koormann <[email protected]>
1537    
1538            Coding style updates
1539    
1540            * test/test_scalebar.py: Replaced tab indentation by spaces.
1541    
1542            * Thuban/UI/scalebar.py: Explicit imports.
1543    
1544    2003-05-08  Frank Koormann <[email protected]>
1545    
1546            * Thuban/UI/scalebar.py
1547            (ScaleBar.DrawScalebar): Format string bug fixed.
1548    
1549    2003-05-08  Frank Koormann <[email protected]>
1550    
1551            Reorganization of scalebar component (no wx in Thuban/Model)
1552    
1553            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
1554            (deriveInterval):
1555            Calculate scalebar interval and unit which fits in width for scale.
1556            (roundInterval): Round float.
1557    
1558            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
1559    
1560            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
1561    
1562            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
1563    
1564    2003-05-08  Frank Koormann <[email protected]>
1565    
1566            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
1567            Initialize ScaleBar with canvas.map
1568    
1569            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
1570            round intervals to display smarter lengths
1571            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
1572            layer. If the maps has no projection applied grey the scalebar.
1573    
1574    2003-05-07  Frank Koormann <[email protected]>
1575            
1576            Basic Scalebar features added.
1577    
1578            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
1579    
1580            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
1581            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
1582            and the renderer.
1583    
1584            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
1585    
1586            * Thuban/UI/messages.py: SCALE_CHANGED added.
1587    
1588    2003-05-07  Bernhard Herzog  <[email protected]>
1589    
1590            * Thuban/Model/session.py (Session.__init__): New instance
1591            variable shapestores to hold a list of all open shapestore objects
1592            (Session.ShapeStores): New. Accessor method for the shapestores
1593            list.
1594            (Session._add_shapestore, Session._clean_weak_store_refs): New.
1595            Internal methods to maintain the shapestores list.
1596            (Session.Tables): New. Return all tables open in the session.
1597            (Session.OpenShapefile): Insert the new ShapeStore into the
1598            shapestores list.
1599    
1600            * test/test_session.py (TestSessionSimple.test_initial_state): Add
1601            tests for ShapeStores and Tables
1602            (TestSessionWithContent.test_shape_stores)
1603            (TestSessionWithContent.test_tables): New. Test cases for
1604            ShapeStores and Tables
1605    
1606    2003-05-07  Bernhard Herzog  <[email protected]>
1607    
1608            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
1609            Add comments about the optimizations used.
1610            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
1611            Implement the ReadValue table interface method.
1612    
1613            * test/test_transientdb.py
1614            (TestTransientTable.run_iceland_political_tests)
1615            (TestTransientTable.test_transient_joined_table): Add tests for
1616            ReadValue
1617    
1618  2003-05-07  Frank Koormann <[email protected]>  2003-05-07  Frank Koormann <[email protected]>
1619    
1620          * Resources/Bitmaps/fulllayerextent.xpm,          * Resources/Bitmaps/fulllayerextent.xpm,

Legend:
Removed from v.848  
changed lines
  Added in v.1224

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26