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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26