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

Legend:
Removed from v.897  
changed lines
  Added in v.1147

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26