/[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 992 by frank, Thu May 22 16:53:20 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]>  2003-05-22  Frank Koormann  <[email protected]>
1003    
1004          Layer Top/Bottom placement added to legend.          Layer Top/Bottom placement added to legend.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26