/[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 927 by frank, Mon May 19 12:09:25 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]>  2003-05-19  Frank Koormann  <[email protected]>
712    
713          * Thuban/version.py (get_changelog_date):          * Thuban/version.py (get_changelog_date):

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26