/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

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

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

Legend:
Removed from v.803  
changed lines
  Added in v.1151

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26