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

Legend:
Removed from v.790  
changed lines
  Added in v.1112

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26