/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 919 by bh, Fri May 16 17:29:48 2003 UTC revision 1073 by bh, Tue May 27 16:48:01 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
4            well
5            (JoinDialog.__init__): Use the layer parameter and only build the
6            left choice when a layer is given
7            (JoinDialog.OnJoin): Handle layer joins as well
8            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
9            that the user selects the "Select..." item. The sensitivitly
10            updating is now in update_sensitivity
11            (JoinDialog.y): New method to refactor the sensitivity update of
12            the join button into its own method.
13    
14            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
15    
16    2003-05-27  Bernhard Herzog  <[email protected]>
17    
18            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
19            iff there are unreferenced tables in the session
20    
21    2003-05-27  Bernhard Herzog  <[email protected]>
22    
23            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
24    
25            * Thuban/Model/session.py (Session.UnreferencedTables): New method
26            to return tables that are not referenced by other tables or shape
27            stores and can be removed.
28            (Session.RemoveTable): Issue a TABLE_REMOVED message after
29            removing the table
30    
31            * Thuban/UI/mainwindow.py: Remove unused imports
32            (MainWindow.TableClose): Implement.
33    
34            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
35            messages so that the frame will be automatically closed when a new
36            session is opened or the table is removed.
37            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
38            __init__
39            (TableFrame.close_on_session_replaced)
40            (TableFrame.close_on_table_removed): New. Subscribers that close
41            the window
42    
43            * test/test_session.py (TestSessionMessages.test_remove_table)
44            (TestSessionSimple.test_remove_table): Move the test to
45            TestSessionSimple and add test for the TABLE_REMOVED message
46            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
47            (TestSessionSimple.test_unreferenced_tables) New. Test for the
48            UnreferencedTables method.
49            (UnreferencedTablesTests): New. Class with some more sophisticated
50            tests for UnreferencedTables.
51    
52    2003-05-27  Frank Koormann  <[email protected]>
53    
54            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
55            display has some unwanted side effects. Removed again.
56    
57    2003-05-27  Frank Koormann  <[email protected]>
58    
59            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
60    
61            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
62    
63    2003-05-27  Jan-Oliver Wagner <[email protected]>
64    
65            * test/test_menu.py (MenuTest.test): Added test for
66            Menu.RemoveItem().
67    
68            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
69            the menu.
70    
71    2003-05-27  Frank Koormann  <[email protected]>
72            
73            Nonmodal dialogs without parent (i.e. they can fall behind the main
74            window)
75    
76            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
77            all dialogs in the dialogs dictionary and the canvas.
78    
79            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
80            parent, i.e. can fall behind other windows.
81            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
82            dictionary before removing it.
83    
84            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
85    
86            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
87            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
88            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
89    
90    2003-05-27  Bernhard Herzog  <[email protected]>
91    
92            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
93            tableview dialog
94            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
95            Also, don't use the table's titles as the dialog names. The titles
96            aren't guaranteed to be unique.
97            (MainWindow.TableOpen): Open a table view dialog after opening the
98            table
99    
100    2003-05-27  Bernhard Herzog  <[email protected]>
101    
102            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
103            effect can be achieved by simply closing the window showing the
104            table.
105            (MainWindow.TableHide): Removed.
106            (main_menu): Removed "table_hide"
107    
108    2003-05-27  Frank Koormann  <[email protected]>
109    
110            Fix legend tree display problems under Win32
111    
112            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
113            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
114            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
115    
116            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
117    
118    2003-05-27  Jan-Oliver Wagner <[email protected]>
119    
120            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
121            'after' now allows to insert separators almost anywhere in the menu.
122    
123    2003-05-27  Frank Koormann  <[email protected]>
124    
125            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
126            "S" of selection box label to hint on hot key (Alt-S). Works under
127            Win32 but is ignored under GTK.
128    
129    2003-05-26  Frank Koormann  <[email protected]>
130    
131            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
132            Center Choices.
133    
134    2003-05-26  Bernhard Herzog  <[email protected]>
135    
136            Remove the Precision methods again. They're too DBF specific to be
137            part of the table interface and they're only used in table_to_dbf
138            anyway.
139            
140            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
141            fixed precision of 12 for doubles.
142            (TransientTableBase.Precision): Removed
143            (AutoTransientTable.Width): Delegate to self.table.
144    
145            * Thuban/Model/table.py (DBFTable.Precision)
146            (MemoryTable.Precision): Removed.
147            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
148            (table_to_dbf): Use a fixed precision of 12 for floats unless the
149            column object specifies something else.
150    
151            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
152            test for table_to_dbf
153    
154    2003-05-26  Bernhard Herzog  <[email protected]>
155    
156            * test/test_transientdb.py
157            (TestTransientTable.run_iceland_political_tests): Fix a comment.
158    
159    2003-05-26  Bernhard Herzog  <[email protected]>
160    
161            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
162            implementation. Mark parts of the file format strings for
163            localization.
164    
165            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
166            file and add the table to the tables managed by the session
167    
168            * test/test_session.py (TestSessionSimple.test_open_table_file):
169            New. test case for OpenTableFile
170    
171    2003-05-26  Jan-Oliver Wagner <[email protected]>
172    
173            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
174            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
175            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
176            Replace the true/false of wxWindows by True/False of Python 2.2.1.
177    
178    2003-05-26  Jan-Oliver Wagner <[email protected]>
179    
180            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
181            already a selection present, update the grid accordingly.
182    
183            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
184            resizeable and increase its initial size.
185    
186    2003-05-26  Frank Koormann  <[email protected]>
187    
188            Table export functionality
189    
190            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
191            Return width (in characters) for a column.
192            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
193            (table_to_dbf): Write table to dbf file.
194            (table_to_csv): Write table to csv file.
195    
196            * Thuban/Model/transientdb.py (TransientTableBase.Width,
197            TransientTableBase.Precision): Return column width and precision.
198    
199            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
200            or table_to_csv depending on file selection.
201    
202            * test/test_dbf_table.py:
203            Test table_to_dbf (extension of former part of test).
204    
205            * test/test_csv_table.py:
206            Test table_to_csv.
207    
208    2003-05-23  Jan-Oliver Wagner <[email protected]>
209    
210            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
211            Use QueryTableFrame instead of TableFrame.
212    
213            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
214            table window with 'Layer Table:' instead of 'Table:'.
215    
216    2003-05-23  Jan-Oliver Wagner <[email protected]>
217    
218            Give all tables a title via mix-in TitledObject.LayerShowTable
219    
220            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
221            only if it exists.
222    
223            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
224            and call its init-method with a default title. Remove Title() method.
225    
226            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
227            AutoTransientTable): mix-in TitledObject and call its init-method with
228            a default title. Remove Title() method.
229    
230    2003-05-23  Bernhard Herzog  <[email protected]>
231    
232            * Thuban/Model/session.py (Session.AddShapeStore): Define
233            AddShapeStore analogously to AddTable.
234    
235            * test/test_session.py (TestSessionSimple.test_add_shapestore):
236            New. Test for AddShapeStore
237    
238    2003-05-23  Jan-Oliver Wagner <[email protected]>
239    
240            Introducing QueryTableFrame and a very coarse ShowTable implementation.
241    
242            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
243            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
244            The latter implements the selection GUI without dependency on a layer.
245            LayerTableFrame now is derived from QueryTableFrame and connects
246            to a layer.
247    
248            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
249            implementation that still needs work.
250    
251            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
252    
253    2003-05-22  Frank Koormann  <[email protected]>
254    
255            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
256            Added "outer_join = False" as optional parameter.
257            (TransientJoinedTable.create): If outer join is true, perform a
258            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
259            the left table. Records not matching are filled with 0 / None.
260    
261            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
262            (JoinDialog.OnJoin): Consider outer join check box.
263    
264    2003-05-22  Bernhard Herzog  <[email protected]>
265    
266            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
267            somewhat safer way. Storing the traceback in a local variable can
268            lead to memory leaks
269    
270    2003-05-22  Bernhard Herzog  <[email protected]>
271    
272            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
273            the wxMessageDialog's Destroy() method.
274    
275    2003-05-22  Frank Koormann  <[email protected]>
276    
277            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
278            TransientTable.Title()
279    
280    2003-05-22  Frank Koormann  <[email protected]>
281    
282            Join Dialog, initial version.
283    
284            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
285    
286            * Thuban/UI/join.py (JoinDialog): Functional implementation of
287            former framework. Renamed Table1/Table2 to LeftTable/RightTable
288            in all occurences.
289    
290            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
291            Typo fixed.
292    
293    2003-05-22  Bernhard Herzog  <[email protected]>
294    
295            Give the tables titles so that the GUI can display more meaningful
296            names. For now the titles are fixed but depend on e.g. filenames
297            or the titles of the joined tables.
298    
299            * Thuban/Model/transientdb.py (TransientTable.Title)
300            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
301    
302            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
303    
304            * test/test_transientdb.py
305            (TestTransientTable.test_auto_transient_table_title): New. Test
306            for the Title method
307            (TestTransientTable.test_transient_joined_table)
308            (TestTransientTable.test_transient_table): Add test for the Title
309            methods
310    
311            * test/test_memory_table.py (TestMemoryTable.test_title): New.
312            Test for the Title method
313    
314            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
315            the Title method
316    
317    2003-05-22  Bernhard Herzog  <[email protected]>
318    
319            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
320            Provide a better way to destroy the layers
321            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
322            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
323            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
324            the new way to destroy the layers.
325            (TestLayer.test_derived_store): New. Test for using a layer with a
326            DerivedShapeStore
327    
328            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
329            filename if the shape store actually has one.
330    
331    2003-05-22  Bernhard Herzog  <[email protected]>
332    
333            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
334            for the filename
335    
336            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
337            for the FileName method
338            (TestDBFTableWriting.test_write): Fix spelling of filename
339    
340    2003-05-22  Thomas Koester  <[email protected]>
341    
342            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
343            from SciParam that now really is immutable.
344    
345    2003-05-22  Frank Koormann  <[email protected]>
346    
347            Layer Top/Bottom placement added to legend.
348    
349            * Thuban/UI/legend.py
350            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
351            bound to tool events.
352            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
353            New, methods binding the event methods with the map methods.
354    
355            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
356            layer at top/bottom of layer stack.
357    
358            * Resources/Bitmaps/top_layer.xpm: New button icon.
359    
360            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
361    
362    2003-05-22  Bernhard Herzog  <[email protected]>
363    
364            * Thuban/Model/session.py (Session.RemoveTable): New method to
365            remove tables
366    
367            * test/test_session.py (TestSessionSimple.test_remove_table): New.
368            Test for RemoveTable
369    
370    2003-05-22  Thomas Koester  <[email protected]>
371    
372            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
373            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
374    
375    2003-05-22  Bernhard Herzog  <[email protected]>
376    
377            Implement a way to discover dependencies between tables and
378            shapestores.
379    
380            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
381            (TransientJoinedTable.Dependencies)
382            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
383            interface
384            (TransientJoinedTable.__init__): Keep tack of the original table
385            objects in addition to the corresponding transient tables.
386    
387            * Thuban/Model/table.py (DBFTable.Dependencies)
388            (MemoryTable.Dependencies): New. Implement the dependencies
389            interface
390    
391            * Thuban/Model/data.py (ShapeTable): New. Helper class for
392            ShapefileStore
393            (ShapefileStore.__init__): Use ShapeTable instead of
394            AutoTransientTable
395            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
396            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
397            methods for filename and type
398            (ShapefileStore.Dependencies): New. Implement the dependencies
399            interface
400            (DerivedShapeStore): New class to replace SimpleStore. The main
401            difference to SimpleStore is that it depends not on a shapefile
402            but another shapestore which expresses the dependencies a bit
403            better
404            (SimpleStore.__init__): Add deprecation warning.
405    
406            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
407            Test for the Dependencies method.
408    
409            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
410            New. Test for the Dependencies method.
411    
412            * test/test_transientdb.py
413            (TestTransientTable.test_auto_transient_table_dependencies): New.
414            Test for the Dependencies method.
415            (TestTransientTable.test_transient_joined_table): Add test for the
416            Dependencies method.
417    
418            * test/test_session.py (TestSessionSimple.setUp)
419            (TestSessionSimple.tearDown): New. Implement a better way to
420            destroy the sessions.
421            (TestSessionSimple.test_initial_state)
422            (TestSessionSimple.test_add_table): Bind session to self.session
423            so that it's destroyed by tearDown
424            (TestSessionSimple.test_open_shapefile): New. Test for
425            OpenShapefile and the object it returns
426    
427    2003-05-22  Bernhard Herzog  <[email protected]>
428    
429            * Thuban/Model/session.py (Session.AddTable): New method to
430            register tables with the session.
431            (Session.Tables): Return the tables registered with AddTable too.
432    
433            * test/test_session.py (TestSessionSimple.test_add_table): New.
434            Test case for the AddTable method
435    
436    2003-05-22  Frank Koormann  <[email protected]>
437    
438            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
439            lower right corner, center labels for selections, initialize controls
440            in reasonable order for keyboard navigation.
441    
442            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
443            (ProjFrame.__DoOnProjAvail): Determine position of current projection
444            using the wxListBox.FindString() method. Still a problem (#1886)
445    
446            * Thuban/UI/classifier.py
447            (Classifier.__init__, SelectPropertiesDialog.__init__)
448    
449            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
450            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
451            different classification types from here to __init__.
452            (GenUniquePanel.__init__): Set the column width of the first field
453            in the Field ListCtrl to the full width.
454    
455            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
456            Button to 'Export'. Center Buttons in Selection Box, set Focus to
457            Grid.
458            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
459            changes focus to the Selection when pressing "Alt-S".
460    
461            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
462            the text if not visible. The italic font sometimes exceeds the
463            rendering area.
464    
465    2003-05-21  Jonathan Coles   <[email protected]>
466    
467            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
468            to OnClose so that Thuban closes correctly.
469    
470            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
471            DockFrame.OnClose, not DockFrame._OnClose.
472    
473    2003-05-21  Jonathan Coles   <[email protected]>
474    
475            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
476            references to 'inf' and use new Range __init__ to pass floats
477            directly rather than converting them to strings first.
478            Fixes RTBug #1876.
479    
480            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
481            Use new Range ___init__ to pass floats.
482    
483            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
484            filename is a valid image file. Throw IOError otherwise.
485    
486            * Thuban/Model/range.py: Brought over new Range from SciParam that
487            is immutable and has an __init__ which can accept floats.
488    
489            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
490            into try block. AddLayer doesn't throw any exceptions anymore.
491            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
492            try block.
493    
494            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
495            the first item in choices. Fixes RTBug #1882.
496    
497            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
498            has gone to 0 which is a serious problem. abort.
499            (MapRenderer.draw_raster_layer): Catch IOError seperately and
500            print the error from GDAL.
501    
502            * Thuban/UI/tableview.py (TableGrid.__init__): Call
503            ToggleEventListeners to turn on listening.
504            (TableGrid.ToggleEventListeners): New. Turns event listening on
505            and off so as to prevent excessive messages.
506            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
507            to suppress excessive messages when selecting many rows.
508            Fixes RTBug #1880.
509    
510            * Thuban/UI/view.py: Added checks against if scale == 0. This
511            is a serious problem that can occur when an image without
512            geo data is loading and causes the map projection bounds to
513            go to infinity. Right now, the solution is to simply try
514            to recover.
515    
516            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
517            to set the MFILEReceiver attributes even if the data is NULL.
518    
519            * extensions/thuban/gdalwarp.cpp: Improved the error handling
520            and passed GDAL messages back up to the Python layer. Also
521            tried to fix some memory leaks that were present in the original
522            utility but didn't matter because the program aborted.
523    
524            * test/test_range.py: Copied over tests from SciParam. Removed
525            tests against importing. Fixes RTBug #1867.
526    
527    2003-05-21  Bernhard Herzog  <[email protected]>
528    
529            * test/test_load.py: Remove unused imports and restructure the
530            test code
531            (LoadSessionTest): Split into one class for each test and turn
532            LoadSessionTest itself into the base class for all such session
533            tests.
534            (ClassificationTest): New base class for load tests that test
535            classifications
536            (TestSingleLayer, TestLayerVisibility, TestClassification)
537            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
538            for the individual tests
539    
540            * test/support.py (FileLoadTestCase.filename): New base class for
541            file loading tests
542    
543    2003-05-21  Jan-Oliver Wagner <[email protected]>
544    
545            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
546            Mercator' to 'UTM Zone 32' as a more convenient example.
547            Added 'Gauss Krueger Zone 6'.
548    
549            * Data/iceland_sample_raster.thuban: political polygon now
550            filled transparent to have the raster image visible at once.
551    
552    2003-05-21  Frank Koormann  <[email protected]>
553    
554            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
555            OnClose() to keep in sync with extensions. Internally Thuban
556            still uses "underscored" names.
557    
558    2003-05-20  Jonathan Coles   <[email protected]>
559    
560            This puts back Raster layer support. These layers support projections
561            through the GDAL library. Currently, the CVS version is being used.
562            There are no Debian packages available although this may change soon.
563            A GDAL driver was extended to support writing to memory rather to
564            files.
565    
566            There is still some work that needs to be done, such as some error
567            handling when loading invalid images or when there is a problem
568            projecting the image. This putback simply checks in the majority
569            of the work.
570    
571            * setup.py: Add gdalwarp library extension.
572    
573            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
574            Defaults to False, but can be overridden by subclasses if they
575            support classification.
576            (RasterLayer): New. Defines a new layer that represents an
577            image.
578    
579            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
580            tag handler.
581            (SessionLoader.start_layer): Encode the filename.
582            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
583            New. Supports reading a rasterlayer tag.
584    
585            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
586    
587            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
588            get a string in Latin1. If we get such as string convert it to
589            unicode first, otherwise leave if alone before encoding.
590            (SessionSaver.write_layer): Add support for writing both Layers
591            and RasterLayers.
592    
593            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
594            The right argument may not be a string, it could also be a Column.
595    
596            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
597            Make initial window size 600x400. Fixes RTBug #1872.
598    
599            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
600            the dialog is constructed so that we can support layers that
601            do not have classifications.
602            (Classifier._OnTry): Only build a classification if the layer
603            supports one.
604    
605            * Thuban/UI/legend.py: Change all checks that a layer is an
606            instance of Layer into checks against BaseLayer.
607            (LegendTree.__FillTreeLayer): Only add children to a branch if
608            the layer supports classification.
609    
610            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
611            MainWindow.OpenSession): Don't proceed with an action if the
612            user chooses Cancel when they are asked to save changes.
613            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
614            user to select an image file. Create a new RasterLayer and add
615            it to the map.
616    
617            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
618            for rendering RasterLayer layers.
619            (MapRenderer.draw_raster_layer): Actually method that calls
620            the GDALWarp python wrapper and constructs an image from the
621            data returned.
622    
623            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
624            Choices symbols to match those used in the table query method.
625            Replace deprecated method calls on table with new method names.
626    
627            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
628            how small the scale can get. This still needs more testing.
629    
630            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
631            Provides a driver to output in .bmp format.
632    
633            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
634            New. Provides IO routines which write to memory, rather than a file.
635    
636            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
637            of the gdalwarp utility provided in GDAL. Added function calls
638            that can be accessed from python.
639    
640            * Data/iceland_sample_raster.thuban: New. Sample file that uses
641            a raster layer.
642    
643            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
644            layer image data.
645    
646            * Doc/thuban.dtd: Added rasterlayer attribute definition.
647    
648            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
649            tests associated with the raster layer code.
650    
651            * test/test_transientdb.py
652            (TestTransientTable.test_auto_transient_table_query): Added a test
653            for using a Column object as the "right" parameter to a query.
654    
655    2003-05-19  Frank Koormann  <[email protected]>
656    
657            * Thuban/version.py (get_changelog_date):
658            Catch exceptions if ChangeLog does not exist.
659    
660            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
661    
662    2003-05-19  Frank Koormann  <[email protected]>
663    
664            Extended version information for Thuban
665    
666            * Thuban/version.py: New, version information for Thuban: Last
667            modification date and last ChangeLog entry date.
668    
669            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
670            information: Display Thuban, wxPython and Python version.
671    
672    2003-05-16  Bernhard Herzog  <[email protected]>
673    
674            * Thuban/Model/save.py: Remove some unused imports including the
675            __future__ import for nested_scopes as Thuban relies on Python 2.2
676            now.
677            (XMLWriter.encode): Remove the special case for a None argument.
678            In the saver encode is always called with a string argument.
679    
680  2003-05-16  Bernhard Herzog  <[email protected]>  2003-05-16  Bernhard Herzog  <[email protected]>
681    
682          * Thuban/UI/__init__.py: Remove the work-around for the locale bug          * Thuban/UI/__init__.py: Remove the work-around for the locale bug

Legend:
Removed from v.919  
changed lines
  Added in v.1073

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26