/[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 743 by jonathan, Fri Apr 25 10:26:03 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]>
993    
994            Convert all table users to use the new table interface. This only
995            covers Thuban itself, not GREAT-ER or other applications built on
996            Thuban yet, so the compatibility interface stays in place for the
997            time being but it now issues DeprecationWarnings.
998    
999            Finally, the new Table interface has a new method, HasColumn.
1000    
1001            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
1002            issue deprecation warnings when they're. The warnings refer to the
1003            caller of the method.
1004            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
1005            for the deprecation warnings
1006    
1007            * test/test_table.py: Ignore the deprecation warnings for the old
1008            table in the tests in this module. The purpose of the tests is to
1009            test the old interface, after all.
1010    
1011            * test/test_transientdb.py
1012            (TestTransientTable.run_iceland_political_tests): Use the
1013            constants for the types. Add a test for HasColumn
1014            (TestTransientTable.test_transient_joined_table): Adapt to new
1015            table interface. Add a test for HasColumn
1016            (TestTransientTable.test_transient_table_read_twice): Adapt to new
1017            table interface
1018    
1019            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
1020            Adapt to new table interface
1021    
1022            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
1023            new table interface
1024    
1025            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
1026            (RecordTable.SetTable): Adapt to new table interface
1027    
1028            * Thuban/UI/classifier.py (Classifier.__init__)
1029            (Classifier.__init__): Adapt to new table interface
1030    
1031            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1032            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
1033            to new table interface
1034    
1035            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
1036            (AutoTransientTable.HasColumn): Implement the new table interface
1037            method
1038            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
1039            (AutoTransientTable.UniqueValues): Adapt to new table interface
1040    
1041            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
1042            Adapt to new table interface
1043    
1044            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
1045            simplify opening shapefiles a bit easier.
1046            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1047            (TestLayer.test_point_layer): Use the new helper method
1048            (TestLayer.test_get_field_type): New. Test for the GetFieldType
1049            method
1050    
1051            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
1052            the new table method
1053    
1054            * test/test_memory_table.py (TestMemoryTable.test_has_column):
1055            Test for the new table method HasColumn
1056    
1057    2003-05-06  Jonathan Coles   <[email protected]>
1058    
1059            Addresses the "Selection Extent" wish of RTbug #1787.
1060    
1061            * Resources/Bitmaps/fulllayerextent.xpm,
1062            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
1063            extent. These are just place holders for the real bitmaps.
1064    
1065            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
1066            calculate the bounding box once (the first time compute_bbox() is
1067            called).
1068            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
1069            the bounding box for the shapes in lat/long coordinates.
1070    
1071            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
1072            option.
1073            (MainWindow.has_selected_shapes): New. Returns true if there are
1074            any selected shapes.
1075            (MainWindow.FullSelectionExtent): New. Calls
1076            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
1077            (_has_selected_shapes): New. Returns true if there are any
1078            selected shapes.
1079    
1080            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
1081            true if there are any selected shapes.
1082    
1083            * Thuban/UI/view.py (MapCanvas): Added delegated method
1084            HasSelectedShapes.
1085            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
1086            shapes on the canvas using the map projection (if any).
1087    
1088            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1089            for Layer.ShapesBoundingBox().
1090    
1091    2003-05-06  Bernhard Herzog  <[email protected]>
1092    
1093            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1094    
1095    2003-05-05  Jonathan Coles   <[email protected]>
1096    
1097            Addresses the "Full Layer Extent" wish of RTbug #1787.
1098    
1099            * Resources/Projections/defaults.proj: Added UK National Grid.
1100    
1101            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1102            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1103            when the user selects the menu option.
1104    
1105            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1106            scales the given layer on the canvas using the map projection.
1107    
1108    2003-05-05  Bernhard Herzog  <[email protected]>
1109    
1110            Convert the table implementations to a new table interface. All
1111            tables use a common mixin class to provide backwards compatibility
1112            until all table users have been updated.
1113    
1114            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1115            provide backwards compatibility for table classes implementing the
1116            new interface
1117            (DBFTable, MemoryTable): Implement the new table interface. Use
1118            OldTableInterfaceMixin as base for compatibility
1119            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1120            and MemoryTable resp.
1121    
1122            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1123            the new table interface.
1124    
1125            * test/test_memory_table.py: New. Test cases for the MemoryTable
1126            with the new table interface.
1127    
1128            * test/test_table.py: Document the all tests in this file as only
1129            for backwards compatibility. The equivalent tests for the new
1130            interface are in test_memory_table.py and test_dbf_table.py
1131            (MemoryTableTest.test_read): field_info should be returning tuples
1132            with four items
1133            (MemoryTableTest.test_write): Make doc-string a more precise.
1134    
1135            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1136            table interface. Derive from from OldTableInterfaceMixin for
1137            compatibility.
1138            (TransientTableBase.create): New intance variable column_map to
1139            map from names and indices to column objects
1140            (TransientTable.create): Use the new table interface of the input
1141            table
1142            (AutoTransientTable): Convert to new table interface. Derive from
1143            from OldTableInterfaceMixin for compatibility.
1144            (AutoTransientTable.write_record): Removed. It's not implemented
1145            yet and we still have to decide how to handle writing with the new
1146            table and data framework.
1147    
1148            * test/test_transientdb.py
1149            (TestTransientTable.run_iceland_political_tests)
1150            (TestTransientTable.test_transient_joined_table): Use the new
1151            table interface
1152    
1153    2003-05-05  Jonathan Coles   <[email protected]>
1154    
1155            This is namely a collection of UI updates to improve user interactivity.
1156            Tabbing between controls now exists and you can use ESC to close dialog
1157            boxes; ENTER will active the default button.
1158    
1159            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1160            order that the controls are created so that tabbing works correctly.
1161            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1162            wxDialog can handle the default button correctly.
1163            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1164            same reasons as for OnOK.
1165            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1166            when we ask the table for the maximum/minimum values of a field
1167            which could take a very long time.
1168    
1169            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1170            order that the controls are created so that tabbing works correctly.
1171            (SelectPropertiesDialog.__init__): Rearrange the order that the
1172            controls are created so that tabbing works correctly.
1173    
1174            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1175            to derive from a wxDialog but behave like the original implementation
1176            which was derived from a wxFrame. wxDialog provides useful key
1177            handling functionality like ESC calling OnCancel and ENTER calling
1178            OnOK which is lost with wxFrame.
1179    
1180            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1181            new dialogs.
1182    
1183            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1184            order that the controls are created so that tabbing works correctly.
1185            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1186            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1187            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
1188            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
1189            can provide the "UK National Grid" as a default projection.
1190            (UTMPanel.__init__): Rearrange the order that the controls are
1191            created so that tabbing works correctly.
1192    
1193    2003-05-05  Bernhard Herzog  <[email protected]>
1194    
1195            * extensions/thuban/wxproj.cpp: Fix some of the comments.
1196            (project_point): If a map projection but no layer projection is
1197            given, convert degrees to radians before applying the map
1198            projection.
1199    
1200            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
1201            (TableGrid.allow_messages): New methods to make it possible to
1202            inhibit message sending.
1203            (TableGrid.issue): Only send the message if not inhibited.
1204            (LayerTableGrid.select_shape): Use the new methods to make sure
1205            that no ROW_SELECTED message is sent while we're updating the
1206            selected rows to match the selected shapes.
1207    
1208    2003-05-02  Jan-Oliver Wagner <[email protected]>
1209    
1210            Implementation of MemoryTable.
1211    
1212            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
1213            implementation that operates on a list of tuples. All of the data
1214            are kept in the memory.
1215    
1216            * test/test_table.py (MemoryTableTest): New.
1217    
1218            * test/test_transientdb.py (SimpleTable): Removed.
1219            (TestTransientTable.test_transient_joined_table,
1220            (TestTransientTable.test_transient_table_read_twice): Replaced
1221            SimpleTable by MemoryTable.
1222    
1223    2003-04-30  Jonathan Coles   <[email protected]>
1224    
1225            * Data/iceland_sample.thuban: Now contains correct projections
1226            for each of the layers.
1227    
1228            * Resources/Projections/defaults.proj: Geographic projection
1229            contains unit conversion parameter.
1230    
1231    2003-04-30  Jonathan Coles   <[email protected]>
1232    
1233            The most important part of this putback is the projection changes.
1234            It should now be possible to specify the projection that a layer
1235            is in and then specify a different projection for the map. The
1236            projection dialog has an extra parameter for a geographic projection
1237            which lets the user select if the input is in degrees or radians.
1238    
1239            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
1240            to say that the parameter is a tuple of unprojected
1241            points (which is what the callers to this method were assuming).
1242            Also, since the points are unprojected we need to projected them.
1243    
1244            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
1245            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
1246            groups are selected, move the layer up/down. Fixes RTbug #1833.
1247    
1248            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
1249    
1250            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
1251            parameter in call to SetClientData.
1252            (GeoPanel): Add support for selecting the units that the
1253            source data is in (Radians or Degrees).
1254    
1255            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
1256            the rendering loop by reducing the number of if's, removing the
1257            unnecessary try/except block, and checking if the old group
1258            is the same as the new one (which happens a lot if there is
1259            no classification, or lots of shapes are in the same group).
1260    
1261            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
1262            around the redraw routine to try to catch problems that the user
1263            may create by selecting invalid projections for the data set and
1264            map. Clears the display if there are any problems and prints the
1265            error.
1266            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
1267            rectangle.
1268    
1269            * extensions/thuban/wxproj.cpp (project_point): First invert the
1270            supplied point (which should be in projected coordinates) using
1271            the layer's projection and then project the point using the
1272            map's projection.
1273            (project_points): Use project_point() to project each point.
1274    
1275    2003-04-30  Jan-Oliver Wagner <[email protected]>
1276    
1277            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
1278            don't set the Classification to None if the classfication field
1279            is None (ie only a DEFAULT).
1280    
1281    2003-04-30  Bernhard Herzog  <[email protected]>
1282    
1283            * Thuban/UI/view.py: Fix some typos.
1284    
1285            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
1286            not pop up the dialog if the selection becomes empty (this could
1287            happen if e.g. a new selection is opened while the identify tool
1288            is active and dialog had been closed)
1289    
1290    2003-04-30  Bernhard Herzog  <[email protected]>
1291    
1292            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
1293            instance variable read_record_last_result
1294            (TransientTableBase.read_record): Make sure reading the same
1295            record twice works. The implementation uses the new instance
1296            variable read_record_last_result
1297    
1298            * test/test_transientdb.py
1299            (TestTransientTable.test_transient_table_read_twice): New test
1300            case for the above bug-fix.
1301    
1302    2003-04-29  Jonathan Coles   <[email protected]>
1303    
1304            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
1305    
1306            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
1307    
1308            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
1309            (ClassTable.SetValueAsCustom): Rename keyword argument in
1310            ClassGroup* constructors to match argument name.
1311    
1312    2003-04-29  Bernhard Herzog  <[email protected]>
1313    
1314            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
1315            transient DB if it exists to make sure it doesn't leave a journal
1316            file in the temp directory.
1317    
1318            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
1319            self.conn to None after closing the connection to make sure it's
1320            not closed twice
1321    
1322    2003-04-29  Jonathan Coles   <[email protected]>
1323    
1324            Add a visible parameter in the layer XML tag. The default value is
1325            "true". If anything other than "false" is specified we also assume
1326            "true". Addresses RTbug #1025.
1327    
1328            * Doc/thuban.dtd: Add visible parameter to a layer.
1329    
1330            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
1331            of visible from 1 to True.
1332            (Layer.__init__): Change default value of visible from 1 to True.
1333    
1334            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
1335            parameter.
1336    
1337            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
1338            parameter.
1339    
1340            * test/test_load.py: Add new test data contents_test_visible.
1341            (LoadSessionTest.setUp): save test data.
1342            (LoadSessionTest.testLayerVisibility): Test if the visible flag
1343            is loaded correctly.
1344    
1345            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
1346            for saving an invisible layer.
1347    
1348    2003-04-29  Jonathan Coles   <[email protected]>
1349    
1350            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
1351            legend dialog box and tell it to change its map to the one
1352            supplied to SetMap(). Fixes RTbug #1770.
1353    
1354    2003-04-29  Bernhard Herzog  <[email protected]>
1355    
1356            Next step of table implementation. Introduce a transient database
1357            using SQLite that some of the data is copied to on demand. This
1358            allows us to do joins and other operations that require an index
1359            for good performance with reasonable efficiency. Thuban now needs
1360            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
1361            haven't tested that.
1362            
1363            * Thuban/Model/transientdb.py: New. Transient database
1364            implementation.
1365    
1366            * test/test_transientdb.py: New. Tests for the transient DB
1367            classes.
1368    
1369            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
1370            classes to help automatically remove temporary files and
1371            directories.
1372            (Session.__init__): New instance variables temp_dir for the
1373            temporary directory and transient_db for the SQLite database
1374            (Session.temp_directory): New. Create a temporary directory if not
1375            yet done and return its name. Use AutoRemoveDir to have it
1376            automatically deleted
1377            (Session.TransientDB): Instantiate the transient database if not
1378            done yet and return it.
1379    
1380            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
1381            AutoTransientTable so that data is copied to the transient DB on
1382            demand.
1383            (SimpleStore): New class that simply combines a table and a
1384            shapefile
1385    
1386            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
1387            DBFTable and update its doc-string to reflect the fact that this
1388            is only the table interface to a DBF file. Table is now an alias
1389            for DBFTable for temporary backwards compatibility.
1390    
1391            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
1392            the last reference to the session goes away so that the temporary
1393            files are removed properly.
1394    
1395            * test/test_load.py (LoadSessionTest.tearDown): Remove the
1396            reference to the session to make sure the temporary files are
1397            removed.
1398    
1399    2003-04-29  Bernhard Herzog  <[email protected]>
1400    
1401            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
1402            the __parser instance variable into a normal local variable in
1403            read. It's only used there and read will never be called more than
1404            once. Plus it introduces a reference cycle that keeps can keep the
1405            session object alive for a long time.
1406    
1407    2003-04-29  Jonathan Coles   <[email protected]>
1408    
1409            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
1410            Projection an immutable item. Fixes RTbug #1825.
1411            (Projection.__init__): Initialize instance variables here.
1412            (ProjFile.Replace): New. Replace the given projection object with
1413            the new projection object. This solves the problem of needing the
1414            mutator Projection.SetProjection() in the ProjFrame class and
1415            allows a projection to change parameters without changing its
1416            location in the file.
1417    
1418            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
1419            be of type wxSAVE and should verify overwriting a file.
1420    
1421            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
1422            ProjFile.Replace() method instead of the mutator
1423            Projection.SetProjection(). Also requires that we reassign the
1424            client data to the new projection.
1425    
1426            * test/test_proj.py (TestProjection.test): Test GetName() and
1427            GetAllParameters()
1428            (TestProjFile.test): Remove tests for Set*() methods. Add tests
1429            for Replace().
1430    
1431    2003-04-25  Jonathan Coles   <[email protected]>
1432    
1433            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
1434            to save the name of the projection.
1435    
1436            * test/test_save.py (SaveSessionTest.testLayerProjection): New
1437            test to verify layer projections are saved correctly.
1438    
1439    2003-04-25  Jonathan Coles   <[email protected]>
1440    
1441            * Thuban/Model/proj.py (Projection.SetName): Set the name
1442            to "Unknown" if name is None.
1443            (Projection.SetAllParameters): New. Set the projection's
1444            parameter list to the one supplied.
1445            (Projection.SetProjection): New. Set the projection's
1446            properties to those of the supplied Projection.
1447    
1448            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
1449            the dialog title to include the map's title.
1450            (MainWindow.LayerProjection): Set the dialog title to include
1451            the layer's title.
1452    
1453            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
1454            error dialogs into a single method call.
1455            (ProjFrame.__VerifyButtons): Add more states to check.
1456            (ProjFrame.__GetProjection): Return the current state of an
1457            edited projection or None.
1458            (ProjFrame.__FillAvailList): Remove checks for states that
1459            shouldn't exist.
1460            (ProjFrame._OnNew): Clear all selected items and supply
1461            a projection panel if necessary.
1462    
1463            * test/test_proj.py (TestProjFile.test): Add tests for
1464            ProjFile.SetAllParameters, ProjFile.SetProjection,
1465            ProjFile.SetName.
1466    
1467    2003-04-25  Jonathan Coles   <[email protected]>
1468    
1469            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
1470            takes an optional argument to select the current projection.
1471            This does not guarantee that the item is visible due to
1472            limited wxWindows functionality. Fixes RTBug #1821.
1473    
1474  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-25  Jonathan Coles   <[email protected]>
1475    
1476          * Thuban/Model/load.py (SessionLoader.start_projection): Remember          * Thuban/Model/load.py (SessionLoader.start_projection): Remember

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26