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

Legend:
Removed from v.762  
changed lines
  Added in v.1193

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26