/[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

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

Legend:
Removed from v.833  
changed lines
  Added in v.1186

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26