/[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 735 by jonathan, Fri Apr 25 09:11:39 2003 UTC revision 1069 by bh, Tue May 27 15:02:48 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
4    
5            * Thuban/Model/session.py (Session.UnreferencedTables): New method
6            to return tables that are not referenced by other tables or shape
7            stores and can be removed.
8            (Session.RemoveTable): Issue a TABLE_REMOVED message after
9            removing the table
10    
11            * Thuban/UI/mainwindow.py: Remove unused imports
12            (MainWindow.TableClose): Implement.
13    
14            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
15            messages so that the frame will be automatically closed when a new
16            session is opened or the table is removed.
17            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
18            __init__
19            (TableFrame.close_on_session_replaced)
20            (TableFrame.close_on_table_removed): New. Subscribers that close
21            the window
22    
23            * test/test_session.py (TestSessionMessages.test_remove_table)
24            (TestSessionSimple.test_remove_table): Move the test to
25            TestSessionSimple and add test for the TABLE_REMOVED message
26            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
27            (TestSessionSimple.test_unreferenced_tables) New. Test for the
28            UnreferencedTables method.
29            (UnreferencedTablesTests): New. Class with some more sophisticated
30            tests for UnreferencedTables.
31    
32    2003-05-27  Frank Koormann  <[email protected]>
33    
34            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
35            display has some unwanted side effects. Removed again.
36    
37    2003-05-27  Frank Koormann  <[email protected]>
38    
39            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
40    
41            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
42    
43    2003-05-27  Jan-Oliver Wagner <[email protected]>
44    
45            * test/test_menu.py (MenuTest.test): Added test for
46            Menu.RemoveItem().
47    
48            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
49            the menu.
50    
51    2003-05-27  Frank Koormann  <[email protected]>
52            
53            Nonmodal dialogs without parent (i.e. they can fall behind the main
54            window)
55    
56            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
57            all dialogs in the dialogs dictionary and the canvas.
58    
59            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
60            parent, i.e. can fall behind other windows.
61            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
62            dictionary before removing it.
63    
64            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
65    
66            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
67            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
68            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
69    
70    2003-05-27  Bernhard Herzog  <[email protected]>
71    
72            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
73            tableview dialog
74            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
75            Also, don't use the table's titles as the dialog names. The titles
76            aren't guaranteed to be unique.
77            (MainWindow.TableOpen): Open a table view dialog after opening the
78            table
79    
80    2003-05-27  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
83            effect can be achieved by simply closing the window showing the
84            table.
85            (MainWindow.TableHide): Removed.
86            (main_menu): Removed "table_hide"
87    
88    2003-05-27  Frank Koormann  <[email protected]>
89    
90            Fix legend tree display problems under Win32
91    
92            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
93            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
94            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
95    
96            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
97    
98    2003-05-27  Jan-Oliver Wagner <[email protected]>
99    
100            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
101            'after' now allows to insert separators almost anywhere in the menu.
102    
103    2003-05-27  Frank Koormann  <[email protected]>
104    
105            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
106            "S" of selection box label to hint on hot key (Alt-S). Works under
107            Win32 but is ignored under GTK.
108    
109    2003-05-26  Frank Koormann  <[email protected]>
110    
111            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
112            Center Choices.
113    
114    2003-05-26  Bernhard Herzog  <[email protected]>
115    
116            Remove the Precision methods again. They're too DBF specific to be
117            part of the table interface and they're only used in table_to_dbf
118            anyway.
119            
120            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
121            fixed precision of 12 for doubles.
122            (TransientTableBase.Precision): Removed
123            (AutoTransientTable.Width): Delegate to self.table.
124    
125            * Thuban/Model/table.py (DBFTable.Precision)
126            (MemoryTable.Precision): Removed.
127            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
128            (table_to_dbf): Use a fixed precision of 12 for floats unless the
129            column object specifies something else.
130    
131            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
132            test for table_to_dbf
133    
134    2003-05-26  Bernhard Herzog  <[email protected]>
135    
136            * test/test_transientdb.py
137            (TestTransientTable.run_iceland_political_tests): Fix a comment.
138    
139    2003-05-26  Bernhard Herzog  <[email protected]>
140    
141            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
142            implementation. Mark parts of the file format strings for
143            localization.
144    
145            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
146            file and add the table to the tables managed by the session
147    
148            * test/test_session.py (TestSessionSimple.test_open_table_file):
149            New. test case for OpenTableFile
150    
151    2003-05-26  Jan-Oliver Wagner <[email protected]>
152    
153            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
154            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
155            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
156            Replace the true/false of wxWindows by True/False of Python 2.2.1.
157    
158    2003-05-26  Jan-Oliver Wagner <[email protected]>
159    
160            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
161            already a selection present, update the grid accordingly.
162    
163            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
164            resizeable and increase its initial size.
165    
166    2003-05-26  Frank Koormann  <[email protected]>
167    
168            Table export functionality
169    
170            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
171            Return width (in characters) for a column.
172            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
173            (table_to_dbf): Write table to dbf file.
174            (table_to_csv): Write table to csv file.
175    
176            * Thuban/Model/transientdb.py (TransientTableBase.Width,
177            TransientTableBase.Precision): Return column width and precision.
178    
179            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
180            or table_to_csv depending on file selection.
181    
182            * test/test_dbf_table.py:
183            Test table_to_dbf (extension of former part of test).
184    
185            * test/test_csv_table.py:
186            Test table_to_csv.
187    
188    2003-05-23  Jan-Oliver Wagner <[email protected]>
189    
190            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
191            Use QueryTableFrame instead of TableFrame.
192    
193            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
194            table window with 'Layer Table:' instead of 'Table:'.
195    
196    2003-05-23  Jan-Oliver Wagner <[email protected]>
197    
198            Give all tables a title via mix-in TitledObject.LayerShowTable
199    
200            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
201            only if it exists.
202    
203            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
204            and call its init-method with a default title. Remove Title() method.
205    
206            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
207            AutoTransientTable): mix-in TitledObject and call its init-method with
208            a default title. Remove Title() method.
209    
210    2003-05-23  Bernhard Herzog  <[email protected]>
211    
212            * Thuban/Model/session.py (Session.AddShapeStore): Define
213            AddShapeStore analogously to AddTable.
214    
215            * test/test_session.py (TestSessionSimple.test_add_shapestore):
216            New. Test for AddShapeStore
217    
218    2003-05-23  Jan-Oliver Wagner <[email protected]>
219    
220            Introducing QueryTableFrame and a very coarse ShowTable implementation.
221    
222            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
223            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
224            The latter implements the selection GUI without dependency on a layer.
225            LayerTableFrame now is derived from QueryTableFrame and connects
226            to a layer.
227    
228            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
229            implementation that still needs work.
230    
231            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
232    
233    2003-05-22  Frank Koormann  <[email protected]>
234    
235            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
236            Added "outer_join = False" as optional parameter.
237            (TransientJoinedTable.create): If outer join is true, perform a
238            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
239            the left table. Records not matching are filled with 0 / None.
240    
241            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
242            (JoinDialog.OnJoin): Consider outer join check box.
243    
244    2003-05-22  Bernhard Herzog  <[email protected]>
245    
246            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
247            somewhat safer way. Storing the traceback in a local variable can
248            lead to memory leaks
249    
250    2003-05-22  Bernhard Herzog  <[email protected]>
251    
252            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
253            the wxMessageDialog's Destroy() method.
254    
255    2003-05-22  Frank Koormann  <[email protected]>
256    
257            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
258            TransientTable.Title()
259    
260    2003-05-22  Frank Koormann  <[email protected]>
261    
262            Join Dialog, initial version.
263    
264            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
265    
266            * Thuban/UI/join.py (JoinDialog): Functional implementation of
267            former framework. Renamed Table1/Table2 to LeftTable/RightTable
268            in all occurences.
269    
270            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
271            Typo fixed.
272    
273    2003-05-22  Bernhard Herzog  <[email protected]>
274    
275            Give the tables titles so that the GUI can display more meaningful
276            names. For now the titles are fixed but depend on e.g. filenames
277            or the titles of the joined tables.
278    
279            * Thuban/Model/transientdb.py (TransientTable.Title)
280            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
281    
282            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
283    
284            * test/test_transientdb.py
285            (TestTransientTable.test_auto_transient_table_title): New. Test
286            for the Title method
287            (TestTransientTable.test_transient_joined_table)
288            (TestTransientTable.test_transient_table): Add test for the Title
289            methods
290    
291            * test/test_memory_table.py (TestMemoryTable.test_title): New.
292            Test for the Title method
293    
294            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
295            the Title method
296    
297    2003-05-22  Bernhard Herzog  <[email protected]>
298    
299            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
300            Provide a better way to destroy the layers
301            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
302            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
303            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
304            the new way to destroy the layers.
305            (TestLayer.test_derived_store): New. Test for using a layer with a
306            DerivedShapeStore
307    
308            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
309            filename if the shape store actually has one.
310    
311    2003-05-22  Bernhard Herzog  <[email protected]>
312    
313            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
314            for the filename
315    
316            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
317            for the FileName method
318            (TestDBFTableWriting.test_write): Fix spelling of filename
319    
320    2003-05-22  Thomas Koester  <[email protected]>
321    
322            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
323            from SciParam that now really is immutable.
324    
325    2003-05-22  Frank Koormann  <[email protected]>
326    
327            Layer Top/Bottom placement added to legend.
328    
329            * Thuban/UI/legend.py
330            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
331            bound to tool events.
332            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
333            New, methods binding the event methods with the map methods.
334    
335            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
336            layer at top/bottom of layer stack.
337    
338            * Resources/Bitmaps/top_layer.xpm: New button icon.
339    
340            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
341    
342    2003-05-22  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/Model/session.py (Session.RemoveTable): New method to
345            remove tables
346    
347            * test/test_session.py (TestSessionSimple.test_remove_table): New.
348            Test for RemoveTable
349    
350    2003-05-22  Thomas Koester  <[email protected]>
351    
352            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
353            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
354    
355    2003-05-22  Bernhard Herzog  <[email protected]>
356    
357            Implement a way to discover dependencies between tables and
358            shapestores.
359    
360            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
361            (TransientJoinedTable.Dependencies)
362            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
363            interface
364            (TransientJoinedTable.__init__): Keep tack of the original table
365            objects in addition to the corresponding transient tables.
366    
367            * Thuban/Model/table.py (DBFTable.Dependencies)
368            (MemoryTable.Dependencies): New. Implement the dependencies
369            interface
370    
371            * Thuban/Model/data.py (ShapeTable): New. Helper class for
372            ShapefileStore
373            (ShapefileStore.__init__): Use ShapeTable instead of
374            AutoTransientTable
375            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
376            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
377            methods for filename and type
378            (ShapefileStore.Dependencies): New. Implement the dependencies
379            interface
380            (DerivedShapeStore): New class to replace SimpleStore. The main
381            difference to SimpleStore is that it depends not on a shapefile
382            but another shapestore which expresses the dependencies a bit
383            better
384            (SimpleStore.__init__): Add deprecation warning.
385    
386            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
387            Test for the Dependencies method.
388    
389            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
390            New. Test for the Dependencies method.
391    
392            * test/test_transientdb.py
393            (TestTransientTable.test_auto_transient_table_dependencies): New.
394            Test for the Dependencies method.
395            (TestTransientTable.test_transient_joined_table): Add test for the
396            Dependencies method.
397    
398            * test/test_session.py (TestSessionSimple.setUp)
399            (TestSessionSimple.tearDown): New. Implement a better way to
400            destroy the sessions.
401            (TestSessionSimple.test_initial_state)
402            (TestSessionSimple.test_add_table): Bind session to self.session
403            so that it's destroyed by tearDown
404            (TestSessionSimple.test_open_shapefile): New. Test for
405            OpenShapefile and the object it returns
406    
407    2003-05-22  Bernhard Herzog  <[email protected]>
408    
409            * Thuban/Model/session.py (Session.AddTable): New method to
410            register tables with the session.
411            (Session.Tables): Return the tables registered with AddTable too.
412    
413            * test/test_session.py (TestSessionSimple.test_add_table): New.
414            Test case for the AddTable method
415    
416    2003-05-22  Frank Koormann  <[email protected]>
417    
418            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
419            lower right corner, center labels for selections, initialize controls
420            in reasonable order for keyboard navigation.
421    
422            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
423            (ProjFrame.__DoOnProjAvail): Determine position of current projection
424            using the wxListBox.FindString() method. Still a problem (#1886)
425    
426            * Thuban/UI/classifier.py
427            (Classifier.__init__, SelectPropertiesDialog.__init__)
428    
429            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
430            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
431            different classification types from here to __init__.
432            (GenUniquePanel.__init__): Set the column width of the first field
433            in the Field ListCtrl to the full width.
434    
435            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
436            Button to 'Export'. Center Buttons in Selection Box, set Focus to
437            Grid.
438            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
439            changes focus to the Selection when pressing "Alt-S".
440    
441            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
442            the text if not visible. The italic font sometimes exceeds the
443            rendering area.
444    
445    2003-05-21  Jonathan Coles   <[email protected]>
446    
447            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
448            to OnClose so that Thuban closes correctly.
449    
450            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
451            DockFrame.OnClose, not DockFrame._OnClose.
452    
453    2003-05-21  Jonathan Coles   <[email protected]>
454    
455            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
456            references to 'inf' and use new Range __init__ to pass floats
457            directly rather than converting them to strings first.
458            Fixes RTBug #1876.
459    
460            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
461            Use new Range ___init__ to pass floats.
462    
463            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
464            filename is a valid image file. Throw IOError otherwise.
465    
466            * Thuban/Model/range.py: Brought over new Range from SciParam that
467            is immutable and has an __init__ which can accept floats.
468    
469            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
470            into try block. AddLayer doesn't throw any exceptions anymore.
471            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
472            try block.
473    
474            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
475            the first item in choices. Fixes RTBug #1882.
476    
477            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
478            has gone to 0 which is a serious problem. abort.
479            (MapRenderer.draw_raster_layer): Catch IOError seperately and
480            print the error from GDAL.
481    
482            * Thuban/UI/tableview.py (TableGrid.__init__): Call
483            ToggleEventListeners to turn on listening.
484            (TableGrid.ToggleEventListeners): New. Turns event listening on
485            and off so as to prevent excessive messages.
486            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
487            to suppress excessive messages when selecting many rows.
488            Fixes RTBug #1880.
489    
490            * Thuban/UI/view.py: Added checks against if scale == 0. This
491            is a serious problem that can occur when an image without
492            geo data is loading and causes the map projection bounds to
493            go to infinity. Right now, the solution is to simply try
494            to recover.
495    
496            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
497            to set the MFILEReceiver attributes even if the data is NULL.
498    
499            * extensions/thuban/gdalwarp.cpp: Improved the error handling
500            and passed GDAL messages back up to the Python layer. Also
501            tried to fix some memory leaks that were present in the original
502            utility but didn't matter because the program aborted.
503    
504            * test/test_range.py: Copied over tests from SciParam. Removed
505            tests against importing. Fixes RTBug #1867.
506    
507    2003-05-21  Bernhard Herzog  <[email protected]>
508    
509            * test/test_load.py: Remove unused imports and restructure the
510            test code
511            (LoadSessionTest): Split into one class for each test and turn
512            LoadSessionTest itself into the base class for all such session
513            tests.
514            (ClassificationTest): New base class for load tests that test
515            classifications
516            (TestSingleLayer, TestLayerVisibility, TestClassification)
517            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
518            for the individual tests
519    
520            * test/support.py (FileLoadTestCase.filename): New base class for
521            file loading tests
522    
523    2003-05-21  Jan-Oliver Wagner <[email protected]>
524    
525            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
526            Mercator' to 'UTM Zone 32' as a more convenient example.
527            Added 'Gauss Krueger Zone 6'.
528    
529            * Data/iceland_sample_raster.thuban: political polygon now
530            filled transparent to have the raster image visible at once.
531    
532    2003-05-21  Frank Koormann  <[email protected]>
533    
534            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
535            OnClose() to keep in sync with extensions. Internally Thuban
536            still uses "underscored" names.
537    
538    2003-05-20  Jonathan Coles   <[email protected]>
539    
540            This puts back Raster layer support. These layers support projections
541            through the GDAL library. Currently, the CVS version is being used.
542            There are no Debian packages available although this may change soon.
543            A GDAL driver was extended to support writing to memory rather to
544            files.
545    
546            There is still some work that needs to be done, such as some error
547            handling when loading invalid images or when there is a problem
548            projecting the image. This putback simply checks in the majority
549            of the work.
550    
551            * setup.py: Add gdalwarp library extension.
552    
553            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
554            Defaults to False, but can be overridden by subclasses if they
555            support classification.
556            (RasterLayer): New. Defines a new layer that represents an
557            image.
558    
559            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
560            tag handler.
561            (SessionLoader.start_layer): Encode the filename.
562            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
563            New. Supports reading a rasterlayer tag.
564    
565            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
566    
567            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
568            get a string in Latin1. If we get such as string convert it to
569            unicode first, otherwise leave if alone before encoding.
570            (SessionSaver.write_layer): Add support for writing both Layers
571            and RasterLayers.
572    
573            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
574            The right argument may not be a string, it could also be a Column.
575    
576            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
577            Make initial window size 600x400. Fixes RTBug #1872.
578    
579            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
580            the dialog is constructed so that we can support layers that
581            do not have classifications.
582            (Classifier._OnTry): Only build a classification if the layer
583            supports one.
584    
585            * Thuban/UI/legend.py: Change all checks that a layer is an
586            instance of Layer into checks against BaseLayer.
587            (LegendTree.__FillTreeLayer): Only add children to a branch if
588            the layer supports classification.
589    
590            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
591            MainWindow.OpenSession): Don't proceed with an action if the
592            user chooses Cancel when they are asked to save changes.
593            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
594            user to select an image file. Create a new RasterLayer and add
595            it to the map.
596    
597            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
598            for rendering RasterLayer layers.
599            (MapRenderer.draw_raster_layer): Actually method that calls
600            the GDALWarp python wrapper and constructs an image from the
601            data returned.
602    
603            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
604            Choices symbols to match those used in the table query method.
605            Replace deprecated method calls on table with new method names.
606    
607            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
608            how small the scale can get. This still needs more testing.
609    
610            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
611            Provides a driver to output in .bmp format.
612    
613            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
614            New. Provides IO routines which write to memory, rather than a file.
615    
616            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
617            of the gdalwarp utility provided in GDAL. Added function calls
618            that can be accessed from python.
619    
620            * Data/iceland_sample_raster.thuban: New. Sample file that uses
621            a raster layer.
622    
623            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
624            layer image data.
625    
626            * Doc/thuban.dtd: Added rasterlayer attribute definition.
627    
628            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
629            tests associated with the raster layer code.
630    
631            * test/test_transientdb.py
632            (TestTransientTable.test_auto_transient_table_query): Added a test
633            for using a Column object as the "right" parameter to a query.
634    
635    2003-05-19  Frank Koormann  <[email protected]>
636    
637            * Thuban/version.py (get_changelog_date):
638            Catch exceptions if ChangeLog does not exist.
639    
640            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
641    
642    2003-05-19  Frank Koormann  <[email protected]>
643    
644            Extended version information for Thuban
645    
646            * Thuban/version.py: New, version information for Thuban: Last
647            modification date and last ChangeLog entry date.
648    
649            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
650            information: Display Thuban, wxPython and Python version.
651    
652    2003-05-16  Bernhard Herzog  <[email protected]>
653    
654            * Thuban/Model/save.py: Remove some unused imports including the
655            __future__ import for nested_scopes as Thuban relies on Python 2.2
656            now.
657            (XMLWriter.encode): Remove the special case for a None argument.
658            In the saver encode is always called with a string argument.
659    
660    2003-05-16  Bernhard Herzog  <[email protected]>
661    
662            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
663            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
664            of the bug was that e.g. float("1.2") would fail. Thuban now
665            requires 2.4.x.
666            
667    2003-05-16  Frank Koormann   <[email protected]>
668    
669            Printing enhancement and WMF export (under Win32)
670    
671            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
672            ScreenRenderer. Renders Map, Legend and Scalebar for export.
673            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
674            PrintRender.
675    
676            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
677            to fullfil information needed for PrinterRenderer.
678            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
679            (MapCanvas.Print): Adapted to new MapPrintout.
680            (OutputTransform): General calculations to transform from canvas
681            coordinates to export/printing devices.
682    
683            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
684            new method_command to call ExportMap, with platform dependency (only
685            __WXMSW__)
686      
687            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
688            of scalebar drawing area as new parameters.
689            
690            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
691    
692            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
693            Update to extended scalebar.DrawScalebar header.
694    
695            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
696    
697            * test/test_scalebar.py: Made test executable as standalone.
698    
699    2003-05-16  Bernhard Herzog  <[email protected]>
700    
701            * Thuban/Model/table.py (Table): Remove this compatibility alias
702            for DBFTable.
703    
704            * test/test_table.py: Import DBFTable as Table because that alias
705            doesn't exist anymore.
706    
707            * Thuban/UI/classgen.py: Remove some unused imports
708    
709    2003-05-14  Jonathan Coles   <[email protected]>
710    
711            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
712            Fix docstring.
713            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
714            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
715            values of the supplied range to determine the beginning and end
716            bounds of the generated classes.
717    
718            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
719            do not have a leading 0 (.5 is now accepted as well as 0.5).
720    
721            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
722            call to ClassGenerator.GenUniformDistribution.
723    
724            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
725            layout bug with the 'Projection' label.
726    
727            * test/support.py (FloatTestCase): New. Needed for the Range tests.
728    
729            * test/test_range.py: New. Imported from SciParam.
730    
731    2003-05-12  Jonathan Coles   <[email protected]>
732    
733            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
734            to table.UniqueValues() with calls that retrieve all the values
735            from the table. This will need to be replaced by a method on table
736            which can simply return the list (perhaps more efficiently).
737    
738    2003-05-12  Jonathan Coles   <[email protected]>
739    
740            The return value of ClassGenerator.CalculateQuantiles has changed.
741            Refer to the documentation for details.
742    
743            * test/test_classgen.py: Modified Quantile tests to use the
744            new return values.
745    
746            * Thuban/Model/classgen.py
747            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
748            use new return values from CalculateQuantiles to produce the correct
749            range bounds in the Classification.
750            (ClassGenerator.CalculateQuantiles): Add more comments describing
751            the return values and parameters. Make minor adjustments to improve
752            the legibility of the code. Fix problem with adjusted not being set
753            in most cases.
754    
755    2003-05-12  Frank Koormann <[email protected]>
756            
757            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
758            and latin1. Fixes #1851 finally.
759    
760    2003-05-09  Jonathan Coles   <[email protected]>
761    
762            * test/test_classgen.py: New. Tests the Quantile algorithm.
763    
764            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
765            Clean up debugging statement, add comments, fix a small bug in the
766            returned adjusted percentiles.
767            
768    2003-05-09  Jonathan Coles   <[email protected]>
769    
770            Introduces Range class from SciParam into the ClassGroupRange class,
771            and such ranges can now be saved and loaded from disk.
772    
773            Quantiles are now available in the Classification Generator.
774    
775            Initial support for building Queries on a table. Doesn't do anything
776            but run some tests.
777    
778            * Thuban/Model/classification.py: Explicit imports.
779            (ClassGroupRange): Use the Range class to store the underlying
780            range information. The interface remains the same, except for
781            GetRange(), and you can also supply a Range object as the min
782            parameter to SetRange or __init__.
783    
784            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
785            string appropriately for use in Thuban. Fixes RTbug #1851.
786            (SessionLoader.end_projection): Handle the context of the
787            projection tag a bit better by looking at what objects are not
788            None. There was an assumption that a projection tag for a map
789            could occur before any layers.
790            (SessionLoader.start_clrange): Provide backward compatibility for
791            reading min/max values as well as the new range parameter.
792    
793            * Thuban/Model/map.py: Explicit imports.
794    
795            * Thuban/Model/resource.py: Import _.
796            (ProjFileSaver.write): write header using projfile.dtd.
797    
798            * Thuban/Model/save.py: Explicit imports.
799            (XMLWriter.encode): New. Encode the given string from a format
800            used by Thuban into UTF-8. Fixes RTbug #1851.
801    
802            * Thuban/UI/classgen.py: Explicit imports.
803            (ClassGenDialog.__init__): Clean up the code and add support
804            for Quantiles.
805            (ClassGenDialog.OnOK): Add support for Quantiles.
806            (GenQuantilesPanel): New. Input panel for Quantiles.
807            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
808            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
809    
810            * Thuban/Model/classgen.py: New. Contains all the classes named above.
811    
812            * Thuban/UI/classifier.py: Explicit imports.
813            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
814            ClassTable.SetValueAsCustom): Reworked to use new Range class.
815    
816            * Thuban/UI/legend.py: Explicit imports.
817    
818            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
819            a Table menu and associated method calls.
820            (MainWindow.choose_color): Removed. No longer needed.
821    
822            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
823            should be disabled if no projection is selected in the available
824            list.
825    
826            * Thuban/UI/renderer.py: Explicit imports.
827    
828            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
829            with correctly selecting the rows and issuing the right events.
830            Be sure to call Skip() to allow the grid to do some of its own
831            handling which allows the rows to actually be selected.
832            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
833            selecting multiple shapes.
834            (LayerTableFrame): Support for building Queries.
835            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
836    
837            * Thuban/UI/tree.py: Explicit imports.
838    
839            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
840            table view can call it.
841    
842            * test/test_classification.py: Explicit imports.
843            (TestClassification.test_ClassGroupRange): Fix test for new
844            Range class.
845    
846            * Doc/thuban.dtd: Add range parameter for clrange.
847    
848            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
849            object in ClassGroupRange, and also uesd for inputting ranges in
850            the classifer table and elsewhere.
851    
852            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
853            yet.
854    
855    2003-05-09  Frank Koormann <[email protected]>
856    
857            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
858    
859    2003-05-08  Frank Koormann <[email protected]>
860    
861            Coding style updates
862    
863            * test/test_scalebar.py: Replaced tab indentation by spaces.
864    
865            * Thuban/UI/scalebar.py: Explicit imports.
866    
867    2003-05-08  Frank Koormann <[email protected]>
868    
869            * Thuban/UI/scalebar.py
870            (ScaleBar.DrawScalebar): Format string bug fixed.
871    
872    2003-05-08  Frank Koormann <[email protected]>
873    
874            Reorganization of scalebar component (no wx in Thuban/Model)
875    
876            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
877            (deriveInterval):
878            Calculate scalebar interval and unit which fits in width for scale.
879            (roundInterval): Round float.
880    
881            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
882    
883            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
884    
885            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
886    
887    2003-05-08  Frank Koormann <[email protected]>
888    
889            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
890            Initialize ScaleBar with canvas.map
891    
892            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
893            round intervals to display smarter lengths
894            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
895            layer. If the maps has no projection applied grey the scalebar.
896    
897    2003-05-07  Frank Koormann <[email protected]>
898            
899            Basic Scalebar features added.
900    
901            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
902    
903            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
904            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
905            and the renderer.
906    
907            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
908    
909            * Thuban/UI/messages.py: SCALE_CHANGED added.
910    
911    2003-05-07  Bernhard Herzog  <[email protected]>
912    
913            * Thuban/Model/session.py (Session.__init__): New instance
914            variable shapestores to hold a list of all open shapestore objects
915            (Session.ShapeStores): New. Accessor method for the shapestores
916            list.
917            (Session._add_shapestore, Session._clean_weak_store_refs): New.
918            Internal methods to maintain the shapestores list.
919            (Session.Tables): New. Return all tables open in the session.
920            (Session.OpenShapefile): Insert the new ShapeStore into the
921            shapestores list.
922    
923            * test/test_session.py (TestSessionSimple.test_initial_state): Add
924            tests for ShapeStores and Tables
925            (TestSessionWithContent.test_shape_stores)
926            (TestSessionWithContent.test_tables): New. Test cases for
927            ShapeStores and Tables
928    
929    2003-05-07  Bernhard Herzog  <[email protected]>
930    
931            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
932            Add comments about the optimizations used.
933            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
934            Implement the ReadValue table interface method.
935    
936            * test/test_transientdb.py
937            (TestTransientTable.run_iceland_political_tests)
938            (TestTransientTable.test_transient_joined_table): Add tests for
939            ReadValue
940    
941    2003-05-07  Frank Koormann <[email protected]>
942    
943            * Resources/Bitmaps/fulllayerextent.xpm,
944            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
945            new icons.
946    
947    2003-05-06  Bernhard Herzog  <[email protected]>
948    
949            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
950            New. Simply delegate to the transient table's version.
951    
952            * test/test_transientdb.py
953            (TestTransientTable.test_auto_transient_table_query): New. Test
954            case for AutoTransientTable's SimpleQuery
955    
956    2003-05-06  Bernhard Herzog  <[email protected]>
957    
958            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
959            Implement a simple query method for the query dialog
960            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
961            the row index or shapeid.
962            (TransientTable.create): Insert the right value of the row index
963            (TransientJoinedTable.create): Copy the row index of the left
964            table to the joined result table
965    
966            * test/test_transientdb.py
967            (TestTransientTable.test_transient_table_read_twice): Fix
968            doc-string
969            (TestTransientTable.test_transient_table_query): New. Test for the
970            SimpleQuery method
971    
972    2003-05-06  Bernhard Herzog  <[email protected]>
973    
974            Convert all table users to use the new table interface. This only
975            covers Thuban itself, not GREAT-ER or other applications built on
976            Thuban yet, so the compatibility interface stays in place for the
977            time being but it now issues DeprecationWarnings.
978    
979            Finally, the new Table interface has a new method, HasColumn.
980    
981            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
982            issue deprecation warnings when they're. The warnings refer to the
983            caller of the method.
984            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
985            for the deprecation warnings
986    
987            * test/test_table.py: Ignore the deprecation warnings for the old
988            table in the tests in this module. The purpose of the tests is to
989            test the old interface, after all.
990    
991            * test/test_transientdb.py
992            (TestTransientTable.run_iceland_political_tests): Use the
993            constants for the types. Add a test for HasColumn
994            (TestTransientTable.test_transient_joined_table): Adapt to new
995            table interface. Add a test for HasColumn
996            (TestTransientTable.test_transient_table_read_twice): Adapt to new
997            table interface
998    
999            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
1000            Adapt to new table interface
1001    
1002            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
1003            new table interface
1004    
1005            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
1006            (RecordTable.SetTable): Adapt to new table interface
1007    
1008            * Thuban/UI/classifier.py (Classifier.__init__)
1009            (Classifier.__init__): Adapt to new table interface
1010    
1011            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1012            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
1013            to new table interface
1014    
1015            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
1016            (AutoTransientTable.HasColumn): Implement the new table interface
1017            method
1018            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
1019            (AutoTransientTable.UniqueValues): Adapt to new table interface
1020    
1021            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
1022            Adapt to new table interface
1023    
1024            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
1025            simplify opening shapefiles a bit easier.
1026            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1027            (TestLayer.test_point_layer): Use the new helper method
1028            (TestLayer.test_get_field_type): New. Test for the GetFieldType
1029            method
1030    
1031            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
1032            the new table method
1033    
1034            * test/test_memory_table.py (TestMemoryTable.test_has_column):
1035            Test for the new table method HasColumn
1036    
1037    2003-05-06  Jonathan Coles   <[email protected]>
1038    
1039            Addresses the "Selection Extent" wish of RTbug #1787.
1040    
1041            * Resources/Bitmaps/fulllayerextent.xpm,
1042            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
1043            extent. These are just place holders for the real bitmaps.
1044    
1045            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
1046            calculate the bounding box once (the first time compute_bbox() is
1047            called).
1048            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
1049            the bounding box for the shapes in lat/long coordinates.
1050    
1051            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
1052            option.
1053            (MainWindow.has_selected_shapes): New. Returns true if there are
1054            any selected shapes.
1055            (MainWindow.FullSelectionExtent): New. Calls
1056            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
1057            (_has_selected_shapes): New. Returns true if there are any
1058            selected shapes.
1059    
1060            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
1061            true if there are any selected shapes.
1062    
1063            * Thuban/UI/view.py (MapCanvas): Added delegated method
1064            HasSelectedShapes.
1065            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
1066            shapes on the canvas using the map projection (if any).
1067    
1068            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1069            for Layer.ShapesBoundingBox().
1070    
1071    2003-05-06  Bernhard Herzog  <[email protected]>
1072    
1073            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1074    
1075    2003-05-05  Jonathan Coles   <[email protected]>
1076    
1077            Addresses the "Full Layer Extent" wish of RTbug #1787.
1078    
1079            * Resources/Projections/defaults.proj: Added UK National Grid.
1080    
1081            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1082            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1083            when the user selects the menu option.
1084    
1085            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1086            scales the given layer on the canvas using the map projection.
1087    
1088    2003-05-05  Bernhard Herzog  <[email protected]>
1089    
1090            Convert the table implementations to a new table interface. All
1091            tables use a common mixin class to provide backwards compatibility
1092            until all table users have been updated.
1093    
1094            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1095            provide backwards compatibility for table classes implementing the
1096            new interface
1097            (DBFTable, MemoryTable): Implement the new table interface. Use
1098            OldTableInterfaceMixin as base for compatibility
1099            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1100            and MemoryTable resp.
1101    
1102            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1103            the new table interface.
1104    
1105            * test/test_memory_table.py: New. Test cases for the MemoryTable
1106            with the new table interface.
1107    
1108            * test/test_table.py: Document the all tests in this file as only
1109            for backwards compatibility. The equivalent tests for the new
1110            interface are in test_memory_table.py and test_dbf_table.py
1111            (MemoryTableTest.test_read): field_info should be returning tuples
1112            with four items
1113            (MemoryTableTest.test_write): Make doc-string a more precise.
1114    
1115            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1116            table interface. Derive from from OldTableInterfaceMixin for
1117            compatibility.
1118            (TransientTableBase.create): New intance variable column_map to
1119            map from names and indices to column objects
1120            (TransientTable.create): Use the new table interface of the input
1121            table
1122            (AutoTransientTable): Convert to new table interface. Derive from
1123            from OldTableInterfaceMixin for compatibility.
1124            (AutoTransientTable.write_record): Removed. It's not implemented
1125            yet and we still have to decide how to handle writing with the new
1126            table and data framework.
1127    
1128            * test/test_transientdb.py
1129            (TestTransientTable.run_iceland_political_tests)
1130            (TestTransientTable.test_transient_joined_table): Use the new
1131            table interface
1132    
1133    2003-05-05  Jonathan Coles   <[email protected]>
1134    
1135            This is namely a collection of UI updates to improve user interactivity.
1136            Tabbing between controls now exists and you can use ESC to close dialog
1137            boxes; ENTER will active the default button.
1138    
1139            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1140            order that the controls are created so that tabbing works correctly.
1141            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1142            wxDialog can handle the default button correctly.
1143            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1144            same reasons as for OnOK.
1145            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1146            when we ask the table for the maximum/minimum values of a field
1147            which could take a very long time.
1148    
1149            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1150            order that the controls are created so that tabbing works correctly.
1151            (SelectPropertiesDialog.__init__): Rearrange the order that the
1152            controls are created so that tabbing works correctly.
1153    
1154            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1155            to derive from a wxDialog but behave like the original implementation
1156            which was derived from a wxFrame. wxDialog provides useful key
1157            handling functionality like ESC calling OnCancel and ENTER calling
1158            OnOK which is lost with wxFrame.
1159    
1160            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1161            new dialogs.
1162    
1163            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1164            order that the controls are created so that tabbing works correctly.
1165            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1166            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1167            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
1168            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
1169            can provide the "UK National Grid" as a default projection.
1170            (UTMPanel.__init__): Rearrange the order that the controls are
1171            created so that tabbing works correctly.
1172    
1173    2003-05-05  Bernhard Herzog  <[email protected]>
1174    
1175            * extensions/thuban/wxproj.cpp: Fix some of the comments.
1176            (project_point): If a map projection but no layer projection is
1177            given, convert degrees to radians before applying the map
1178            projection.
1179    
1180            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
1181            (TableGrid.allow_messages): New methods to make it possible to
1182            inhibit message sending.
1183            (TableGrid.issue): Only send the message if not inhibited.
1184            (LayerTableGrid.select_shape): Use the new methods to make sure
1185            that no ROW_SELECTED message is sent while we're updating the
1186            selected rows to match the selected shapes.
1187    
1188    2003-05-02  Jan-Oliver Wagner <[email protected]>
1189    
1190            Implementation of MemoryTable.
1191    
1192            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
1193            implementation that operates on a list of tuples. All of the data
1194            are kept in the memory.
1195    
1196            * test/test_table.py (MemoryTableTest): New.
1197    
1198            * test/test_transientdb.py (SimpleTable): Removed.
1199            (TestTransientTable.test_transient_joined_table,
1200            (TestTransientTable.test_transient_table_read_twice): Replaced
1201            SimpleTable by MemoryTable.
1202    
1203    2003-04-30  Jonathan Coles   <[email protected]>
1204    
1205            * Data/iceland_sample.thuban: Now contains correct projections
1206            for each of the layers.
1207    
1208            * Resources/Projections/defaults.proj: Geographic projection
1209            contains unit conversion parameter.
1210    
1211    2003-04-30  Jonathan Coles   <[email protected]>
1212    
1213            The most important part of this putback is the projection changes.
1214            It should now be possible to specify the projection that a layer
1215            is in and then specify a different projection for the map. The
1216            projection dialog has an extra parameter for a geographic projection
1217            which lets the user select if the input is in degrees or radians.
1218    
1219            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
1220            to say that the parameter is a tuple of unprojected
1221            points (which is what the callers to this method were assuming).
1222            Also, since the points are unprojected we need to projected them.
1223    
1224            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
1225            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
1226            groups are selected, move the layer up/down. Fixes RTbug #1833.
1227    
1228            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
1229    
1230            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
1231            parameter in call to SetClientData.
1232            (GeoPanel): Add support for selecting the units that the
1233            source data is in (Radians or Degrees).
1234    
1235            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
1236            the rendering loop by reducing the number of if's, removing the
1237            unnecessary try/except block, and checking if the old group
1238            is the same as the new one (which happens a lot if there is
1239            no classification, or lots of shapes are in the same group).
1240    
1241            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
1242            around the redraw routine to try to catch problems that the user
1243            may create by selecting invalid projections for the data set and
1244            map. Clears the display if there are any problems and prints the
1245            error.
1246            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
1247            rectangle.
1248    
1249            * extensions/thuban/wxproj.cpp (project_point): First invert the
1250            supplied point (which should be in projected coordinates) using
1251            the layer's projection and then project the point using the
1252            map's projection.
1253            (project_points): Use project_point() to project each point.
1254    
1255    2003-04-30  Jan-Oliver Wagner <[email protected]>
1256    
1257            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
1258            don't set the Classification to None if the classfication field
1259            is None (ie only a DEFAULT).
1260    
1261    2003-04-30  Bernhard Herzog  <[email protected]>
1262    
1263            * Thuban/UI/view.py: Fix some typos.
1264    
1265            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
1266            not pop up the dialog if the selection becomes empty (this could
1267            happen if e.g. a new selection is opened while the identify tool
1268            is active and dialog had been closed)
1269    
1270    2003-04-30  Bernhard Herzog  <[email protected]>
1271    
1272            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
1273            instance variable read_record_last_result
1274            (TransientTableBase.read_record): Make sure reading the same
1275            record twice works. The implementation uses the new instance
1276            variable read_record_last_result
1277    
1278            * test/test_transientdb.py
1279            (TestTransientTable.test_transient_table_read_twice): New test
1280            case for the above bug-fix.
1281    
1282    2003-04-29  Jonathan Coles   <[email protected]>
1283    
1284            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
1285    
1286            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
1287    
1288            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
1289            (ClassTable.SetValueAsCustom): Rename keyword argument in
1290            ClassGroup* constructors to match argument name.
1291    
1292    2003-04-29  Bernhard Herzog  <[email protected]>
1293    
1294            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
1295            transient DB if it exists to make sure it doesn't leave a journal
1296            file in the temp directory.
1297    
1298            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
1299            self.conn to None after closing the connection to make sure it's
1300            not closed twice
1301    
1302    2003-04-29  Jonathan Coles   <[email protected]>
1303    
1304            Add a visible parameter in the layer XML tag. The default value is
1305            "true". If anything other than "false" is specified we also assume
1306            "true". Addresses RTbug #1025.
1307    
1308            * Doc/thuban.dtd: Add visible parameter to a layer.
1309    
1310            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
1311            of visible from 1 to True.
1312            (Layer.__init__): Change default value of visible from 1 to True.
1313    
1314            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
1315            parameter.
1316    
1317            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
1318            parameter.
1319    
1320            * test/test_load.py: Add new test data contents_test_visible.
1321            (LoadSessionTest.setUp): save test data.
1322            (LoadSessionTest.testLayerVisibility): Test if the visible flag
1323            is loaded correctly.
1324    
1325            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
1326            for saving an invisible layer.
1327    
1328    2003-04-29  Jonathan Coles   <[email protected]>
1329    
1330            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
1331            legend dialog box and tell it to change its map to the one
1332            supplied to SetMap(). Fixes RTbug #1770.
1333    
1334    2003-04-29  Bernhard Herzog  <[email protected]>
1335    
1336            Next step of table implementation. Introduce a transient database
1337            using SQLite that some of the data is copied to on demand. This
1338            allows us to do joins and other operations that require an index
1339            for good performance with reasonable efficiency. Thuban now needs
1340            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
1341            haven't tested that.
1342            
1343            * Thuban/Model/transientdb.py: New. Transient database
1344            implementation.
1345    
1346            * test/test_transientdb.py: New. Tests for the transient DB
1347            classes.
1348    
1349            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
1350            classes to help automatically remove temporary files and
1351            directories.
1352            (Session.__init__): New instance variables temp_dir for the
1353            temporary directory and transient_db for the SQLite database
1354            (Session.temp_directory): New. Create a temporary directory if not
1355            yet done and return its name. Use AutoRemoveDir to have it
1356            automatically deleted
1357            (Session.TransientDB): Instantiate the transient database if not
1358            done yet and return it.
1359    
1360            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
1361            AutoTransientTable so that data is copied to the transient DB on
1362            demand.
1363            (SimpleStore): New class that simply combines a table and a
1364            shapefile
1365    
1366            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
1367            DBFTable and update its doc-string to reflect the fact that this
1368            is only the table interface to a DBF file. Table is now an alias
1369            for DBFTable for temporary backwards compatibility.
1370    
1371            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
1372            the last reference to the session goes away so that the temporary
1373            files are removed properly.
1374    
1375            * test/test_load.py (LoadSessionTest.tearDown): Remove the
1376            reference to the session to make sure the temporary files are
1377            removed.
1378    
1379    2003-04-29  Bernhard Herzog  <[email protected]>
1380    
1381            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
1382            the __parser instance variable into a normal local variable in
1383            read. It's only used there and read will never be called more than
1384            once. Plus it introduces a reference cycle that keeps can keep the
1385            session object alive for a long time.
1386    
1387    2003-04-29  Jonathan Coles   <[email protected]>
1388    
1389            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
1390            Projection an immutable item. Fixes RTbug #1825.
1391            (Projection.__init__): Initialize instance variables here.
1392            (ProjFile.Replace): New. Replace the given projection object with
1393            the new projection object. This solves the problem of needing the
1394            mutator Projection.SetProjection() in the ProjFrame class and
1395            allows a projection to change parameters without changing its
1396            location in the file.
1397    
1398            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
1399            be of type wxSAVE and should verify overwriting a file.
1400    
1401            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
1402            ProjFile.Replace() method instead of the mutator
1403            Projection.SetProjection(). Also requires that we reassign the
1404            client data to the new projection.
1405    
1406            * test/test_proj.py (TestProjection.test): Test GetName() and
1407            GetAllParameters()
1408            (TestProjFile.test): Remove tests for Set*() methods. Add tests
1409            for Replace().
1410    
1411    2003-04-25  Jonathan Coles   <[email protected]>
1412    
1413            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
1414            to save the name of the projection.
1415    
1416            * test/test_save.py (SaveSessionTest.testLayerProjection): New
1417            test to verify layer projections are saved correctly.
1418    
1419    2003-04-25  Jonathan Coles   <[email protected]>
1420    
1421            * Thuban/Model/proj.py (Projection.SetName): Set the name
1422            to "Unknown" if name is None.
1423            (Projection.SetAllParameters): New. Set the projection's
1424            parameter list to the one supplied.
1425            (Projection.SetProjection): New. Set the projection's
1426            properties to those of the supplied Projection.
1427    
1428            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
1429            the dialog title to include the map's title.
1430            (MainWindow.LayerProjection): Set the dialog title to include
1431            the layer's title.
1432    
1433            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
1434            error dialogs into a single method call.
1435            (ProjFrame.__VerifyButtons): Add more states to check.
1436            (ProjFrame.__GetProjection): Return the current state of an
1437            edited projection or None.
1438            (ProjFrame.__FillAvailList): Remove checks for states that
1439            shouldn't exist.
1440            (ProjFrame._OnNew): Clear all selected items and supply
1441            a projection panel if necessary.
1442    
1443            * test/test_proj.py (TestProjFile.test): Add tests for
1444            ProjFile.SetAllParameters, ProjFile.SetProjection,
1445            ProjFile.SetName.
1446    
1447    2003-04-25  Jonathan Coles   <[email protected]>
1448    
1449            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
1450            takes an optional argument to select the current projection.
1451            This does not guarantee that the item is visible due to
1452            limited wxWindows functionality. Fixes RTBug #1821.
1453    
1454    2003-04-25  Jonathan Coles   <[email protected]>
1455    
1456            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
1457            the projection name and use it when constructing the Projection
1458            object.
1459    
1460            * Thuban/Model/proj.py (Projection.__init__): Change the default
1461            value for 'name' to None and then test if name is equal to None
1462            in the body of the constructor. This way the caller doesn't have to
1463            know what the default value should be. Namely, useful in load.py
1464            where we have to pick a default value if the 'name' parameter
1465            doesn't exist in the XML file.
1466    
1467            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
1468            Tests a file where a layer has a projection.
1469    
1470  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-25  Jonathan Coles   <[email protected]>
1471    
1472          * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the          * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the

Legend:
Removed from v.735  
changed lines
  Added in v.1069

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26