/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26