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

Legend:
Removed from v.776  
changed lines
  Added in v.1097

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26