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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26