/[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 897 by jonathan, Mon May 12 11:21:25 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]>  2003-05-12  Jonathan Coles   <[email protected]>
835    
836          The return value of ClassGenerator.CalculateQuantiles has changed.          The return value of ClassGenerator.CalculateQuantiles has changed.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26