/[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 840 by bh, Tue May 6 15:54:35 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]>
681    
682            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
683            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
684            of the bug was that e.g. float("1.2") would fail. Thuban now
685            requires 2.4.x.
686            
687    2003-05-16  Frank Koormann   <[email protected]>
688    
689            Printing enhancement and WMF export (under Win32)
690    
691            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
692            ScreenRenderer. Renders Map, Legend and Scalebar for export.
693            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
694            PrintRender.
695    
696            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
697            to fullfil information needed for PrinterRenderer.
698            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
699            (MapCanvas.Print): Adapted to new MapPrintout.
700            (OutputTransform): General calculations to transform from canvas
701            coordinates to export/printing devices.
702    
703            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
704            new method_command to call ExportMap, with platform dependency (only
705            __WXMSW__)
706      
707            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
708            of scalebar drawing area as new parameters.
709            
710            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
711    
712            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
713            Update to extended scalebar.DrawScalebar header.
714    
715            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
716    
717            * test/test_scalebar.py: Made test executable as standalone.
718    
719    2003-05-16  Bernhard Herzog  <[email protected]>
720    
721            * Thuban/Model/table.py (Table): Remove this compatibility alias
722            for DBFTable.
723    
724            * test/test_table.py: Import DBFTable as Table because that alias
725            doesn't exist anymore.
726    
727            * Thuban/UI/classgen.py: Remove some unused imports
728    
729    2003-05-14  Jonathan Coles   <[email protected]>
730    
731            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
732            Fix docstring.
733            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
734            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
735            values of the supplied range to determine the beginning and end
736            bounds of the generated classes.
737    
738            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
739            do not have a leading 0 (.5 is now accepted as well as 0.5).
740    
741            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
742            call to ClassGenerator.GenUniformDistribution.
743    
744            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
745            layout bug with the 'Projection' label.
746    
747            * test/support.py (FloatTestCase): New. Needed for the Range tests.
748    
749            * test/test_range.py: New. Imported from SciParam.
750    
751    2003-05-12  Jonathan Coles   <[email protected]>
752    
753            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
754            to table.UniqueValues() with calls that retrieve all the values
755            from the table. This will need to be replaced by a method on table
756            which can simply return the list (perhaps more efficiently).
757    
758    2003-05-12  Jonathan Coles   <[email protected]>
759    
760            The return value of ClassGenerator.CalculateQuantiles has changed.
761            Refer to the documentation for details.
762    
763            * test/test_classgen.py: Modified Quantile tests to use the
764            new return values.
765    
766            * Thuban/Model/classgen.py
767            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
768            use new return values from CalculateQuantiles to produce the correct
769            range bounds in the Classification.
770            (ClassGenerator.CalculateQuantiles): Add more comments describing
771            the return values and parameters. Make minor adjustments to improve
772            the legibility of the code. Fix problem with adjusted not being set
773            in most cases.
774    
775    2003-05-12  Frank Koormann <[email protected]>
776            
777            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
778            and latin1. Fixes #1851 finally.
779    
780    2003-05-09  Jonathan Coles   <[email protected]>
781    
782            * test/test_classgen.py: New. Tests the Quantile algorithm.
783    
784            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
785            Clean up debugging statement, add comments, fix a small bug in the
786            returned adjusted percentiles.
787            
788    2003-05-09  Jonathan Coles   <[email protected]>
789    
790            Introduces Range class from SciParam into the ClassGroupRange class,
791            and such ranges can now be saved and loaded from disk.
792    
793            Quantiles are now available in the Classification Generator.
794    
795            Initial support for building Queries on a table. Doesn't do anything
796            but run some tests.
797    
798            * Thuban/Model/classification.py: Explicit imports.
799            (ClassGroupRange): Use the Range class to store the underlying
800            range information. The interface remains the same, except for
801            GetRange(), and you can also supply a Range object as the min
802            parameter to SetRange or __init__.
803    
804            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
805            string appropriately for use in Thuban. Fixes RTbug #1851.
806            (SessionLoader.end_projection): Handle the context of the
807            projection tag a bit better by looking at what objects are not
808            None. There was an assumption that a projection tag for a map
809            could occur before any layers.
810            (SessionLoader.start_clrange): Provide backward compatibility for
811            reading min/max values as well as the new range parameter.
812    
813            * Thuban/Model/map.py: Explicit imports.
814    
815            * Thuban/Model/resource.py: Import _.
816            (ProjFileSaver.write): write header using projfile.dtd.
817    
818            * Thuban/Model/save.py: Explicit imports.
819            (XMLWriter.encode): New. Encode the given string from a format
820            used by Thuban into UTF-8. Fixes RTbug #1851.
821    
822            * Thuban/UI/classgen.py: Explicit imports.
823            (ClassGenDialog.__init__): Clean up the code and add support
824            for Quantiles.
825            (ClassGenDialog.OnOK): Add support for Quantiles.
826            (GenQuantilesPanel): New. Input panel for Quantiles.
827            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
828            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
829    
830            * Thuban/Model/classgen.py: New. Contains all the classes named above.
831    
832            * Thuban/UI/classifier.py: Explicit imports.
833            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
834            ClassTable.SetValueAsCustom): Reworked to use new Range class.
835    
836            * Thuban/UI/legend.py: Explicit imports.
837    
838            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
839            a Table menu and associated method calls.
840            (MainWindow.choose_color): Removed. No longer needed.
841    
842            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
843            should be disabled if no projection is selected in the available
844            list.
845    
846            * Thuban/UI/renderer.py: Explicit imports.
847    
848            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
849            with correctly selecting the rows and issuing the right events.
850            Be sure to call Skip() to allow the grid to do some of its own
851            handling which allows the rows to actually be selected.
852            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
853            selecting multiple shapes.
854            (LayerTableFrame): Support for building Queries.
855            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
856    
857            * Thuban/UI/tree.py: Explicit imports.
858    
859            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
860            table view can call it.
861    
862            * test/test_classification.py: Explicit imports.
863            (TestClassification.test_ClassGroupRange): Fix test for new
864            Range class.
865    
866            * Doc/thuban.dtd: Add range parameter for clrange.
867    
868            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
869            object in ClassGroupRange, and also uesd for inputting ranges in
870            the classifer table and elsewhere.
871    
872            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
873            yet.
874    
875    2003-05-09  Frank Koormann <[email protected]>
876    
877            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
878    
879    2003-05-08  Frank Koormann <[email protected]>
880    
881            Coding style updates
882    
883            * test/test_scalebar.py: Replaced tab indentation by spaces.
884    
885            * Thuban/UI/scalebar.py: Explicit imports.
886    
887    2003-05-08  Frank Koormann <[email protected]>
888    
889            * Thuban/UI/scalebar.py
890            (ScaleBar.DrawScalebar): Format string bug fixed.
891    
892    2003-05-08  Frank Koormann <[email protected]>
893    
894            Reorganization of scalebar component (no wx in Thuban/Model)
895    
896            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
897            (deriveInterval):
898            Calculate scalebar interval and unit which fits in width for scale.
899            (roundInterval): Round float.
900    
901            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
902    
903            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
904    
905            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
906    
907    2003-05-08  Frank Koormann <[email protected]>
908    
909            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
910            Initialize ScaleBar with canvas.map
911    
912            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
913            round intervals to display smarter lengths
914            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
915            layer. If the maps has no projection applied grey the scalebar.
916    
917    2003-05-07  Frank Koormann <[email protected]>
918            
919            Basic Scalebar features added.
920    
921            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
922    
923            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
924            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
925            and the renderer.
926    
927            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
928    
929            * Thuban/UI/messages.py: SCALE_CHANGED added.
930    
931    2003-05-07  Bernhard Herzog  <[email protected]>
932    
933            * Thuban/Model/session.py (Session.__init__): New instance
934            variable shapestores to hold a list of all open shapestore objects
935            (Session.ShapeStores): New. Accessor method for the shapestores
936            list.
937            (Session._add_shapestore, Session._clean_weak_store_refs): New.
938            Internal methods to maintain the shapestores list.
939            (Session.Tables): New. Return all tables open in the session.
940            (Session.OpenShapefile): Insert the new ShapeStore into the
941            shapestores list.
942    
943            * test/test_session.py (TestSessionSimple.test_initial_state): Add
944            tests for ShapeStores and Tables
945            (TestSessionWithContent.test_shape_stores)
946            (TestSessionWithContent.test_tables): New. Test cases for
947            ShapeStores and Tables
948    
949    2003-05-07  Bernhard Herzog  <[email protected]>
950    
951            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
952            Add comments about the optimizations used.
953            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
954            Implement the ReadValue table interface method.
955    
956            * test/test_transientdb.py
957            (TestTransientTable.run_iceland_political_tests)
958            (TestTransientTable.test_transient_joined_table): Add tests for
959            ReadValue
960    
961    2003-05-07  Frank Koormann <[email protected]>
962    
963            * Resources/Bitmaps/fulllayerextent.xpm,
964            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
965            new icons.
966    
967    2003-05-06  Bernhard Herzog  <[email protected]>
968    
969            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
970            New. Simply delegate to the transient table's version.
971    
972            * test/test_transientdb.py
973            (TestTransientTable.test_auto_transient_table_query): New. Test
974            case for AutoTransientTable's SimpleQuery
975    
976    2003-05-06  Bernhard Herzog  <[email protected]>
977    
978            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
979            Implement a simple query method for the query dialog
980            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
981            the row index or shapeid.
982            (TransientTable.create): Insert the right value of the row index
983            (TransientJoinedTable.create): Copy the row index of the left
984            table to the joined result table
985    
986            * test/test_transientdb.py
987            (TestTransientTable.test_transient_table_read_twice): Fix
988            doc-string
989            (TestTransientTable.test_transient_table_query): New. Test for the
990            SimpleQuery method
991    
992  2003-05-06  Bernhard Herzog  <[email protected]>  2003-05-06  Bernhard Herzog  <[email protected]>
993    
994          Convert all table users to use the new table interface. This only          Convert all table users to use the new table interface. This only

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26