/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

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

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26