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

Legend:
Removed from v.833  
changed lines
  Added in v.1089

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26