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

Legend:
Removed from v.792  
changed lines
  Added in v.1095

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26