/[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 833 by jonathan, Tue May 6 12:07:44 2003 UTC revision 1059 by frank, Tue May 27 11:30:46 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Frank Koormann  <[email protected]>
2            
3            Nonmodal dialogs without parent (i.e. they can fall behind the main
4            window)
5    
6            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
7            all dialogs in the dialogs dictionary and the canvas.
8    
9            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
10            parent, i.e. can fall behind other windows.
11            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
12            dictionary before removing it.
13    
14            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
15    
16            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
17            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
18            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
19    
20    2003-05-27  Bernhard Herzog  <[email protected]>
21    
22            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
23            tableview dialog
24            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
25            Also, don't use the table's titles as the dialog names. The titles
26            aren't guaranteed to be unique.
27            (MainWindow.TableOpen): Open a table view dialog after opening the
28            table
29    
30    2003-05-27  Bernhard Herzog  <[email protected]>
31    
32            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
33            effect can be achieved by simply closing the window showing the
34            table.
35            (MainWindow.TableHide): Removed.
36            (main_menu): Removed "table_hide"
37    
38    2003-05-27  Frank Koormann  <[email protected]>
39    
40            Fix legend tree display problems under Win32
41    
42            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
43            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
44            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
45    
46            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
47    
48    2003-05-27  Jan-Oliver Wagner <[email protected]>
49    
50            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
51            'after' now allows to insert separators almost anywhere in the menu.
52    
53    2003-05-27  Frank Koormann  <[email protected]>
54    
55            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
56            "S" of selection box label to hint on hot key (Alt-S). Works under
57            Win32 but is ignored under GTK.
58    
59    2003-05-26  Frank Koormann  <[email protected]>
60    
61            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
62            Center Choices.
63    
64    2003-05-26  Bernhard Herzog  <[email protected]>
65    
66            Remove the Precision methods again. They're too DBF specific to be
67            part of the table interface and they're only used in table_to_dbf
68            anyway.
69            
70            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
71            fixed precision of 12 for doubles.
72            (TransientTableBase.Precision): Removed
73            (AutoTransientTable.Width): Delegate to self.table.
74    
75            * Thuban/Model/table.py (DBFTable.Precision)
76            (MemoryTable.Precision): Removed.
77            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
78            (table_to_dbf): Use a fixed precision of 12 for floats unless the
79            column object specifies something else.
80    
81            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
82            test for table_to_dbf
83    
84    2003-05-26  Bernhard Herzog  <[email protected]>
85    
86            * test/test_transientdb.py
87            (TestTransientTable.run_iceland_political_tests): Fix a comment.
88    
89    2003-05-26  Bernhard Herzog  <[email protected]>
90    
91            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
92            implementation. Mark parts of the file format strings for
93            localization.
94    
95            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
96            file and add the table to the tables managed by the session
97    
98            * test/test_session.py (TestSessionSimple.test_open_table_file):
99            New. test case for OpenTableFile
100    
101    2003-05-26  Jan-Oliver Wagner <[email protected]>
102    
103            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
104            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
105            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
106            Replace the true/false of wxWindows by True/False of Python 2.2.1.
107    
108    2003-05-26  Jan-Oliver Wagner <[email protected]>
109    
110            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
111            already a selection present, update the grid accordingly.
112    
113            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
114            resizeable and increase its initial size.
115    
116    2003-05-26  Frank Koormann  <[email protected]>
117    
118            Table export functionality
119    
120            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
121            Return width (in characters) for a column.
122            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
123            (table_to_dbf): Write table to dbf file.
124            (table_to_csv): Write table to csv file.
125    
126            * Thuban/Model/transientdb.py (TransientTableBase.Width,
127            TransientTableBase.Precision): Return column width and precision.
128    
129            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
130            or table_to_csv depending on file selection.
131    
132            * test/test_dbf_table.py:
133            Test table_to_dbf (extension of former part of test).
134    
135            * test/test_csv_table.py:
136            Test table_to_csv.
137    
138    2003-05-23  Jan-Oliver Wagner <[email protected]>
139    
140            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
141            Use QueryTableFrame instead of TableFrame.
142    
143            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
144            table window with 'Layer Table:' instead of 'Table:'.
145    
146    2003-05-23  Jan-Oliver Wagner <[email protected]>
147    
148            Give all tables a title via mix-in TitledObject.LayerShowTable
149    
150            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
151            only if it exists.
152    
153            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
154            and call its init-method with a default title. Remove Title() method.
155    
156            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
157            AutoTransientTable): mix-in TitledObject and call its init-method with
158            a default title. Remove Title() method.
159    
160    2003-05-23  Bernhard Herzog  <[email protected]>
161    
162            * Thuban/Model/session.py (Session.AddShapeStore): Define
163            AddShapeStore analogously to AddTable.
164    
165            * test/test_session.py (TestSessionSimple.test_add_shapestore):
166            New. Test for AddShapeStore
167    
168    2003-05-23  Jan-Oliver Wagner <[email protected]>
169    
170            Introducing QueryTableFrame and a very coarse ShowTable implementation.
171    
172            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
173            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
174            The latter implements the selection GUI without dependency on a layer.
175            LayerTableFrame now is derived from QueryTableFrame and connects
176            to a layer.
177    
178            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
179            implementation that still needs work.
180    
181            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
182    
183    2003-05-22  Frank Koormann  <[email protected]>
184    
185            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
186            Added "outer_join = False" as optional parameter.
187            (TransientJoinedTable.create): If outer join is true, perform a
188            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
189            the left table. Records not matching are filled with 0 / None.
190    
191            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
192            (JoinDialog.OnJoin): Consider outer join check box.
193    
194    2003-05-22  Bernhard Herzog  <[email protected]>
195    
196            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
197            somewhat safer way. Storing the traceback in a local variable can
198            lead to memory leaks
199    
200    2003-05-22  Bernhard Herzog  <[email protected]>
201    
202            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
203            the wxMessageDialog's Destroy() method.
204    
205    2003-05-22  Frank Koormann  <[email protected]>
206    
207            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
208            TransientTable.Title()
209    
210    2003-05-22  Frank Koormann  <[email protected]>
211    
212            Join Dialog, initial version.
213    
214            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
215    
216            * Thuban/UI/join.py (JoinDialog): Functional implementation of
217            former framework. Renamed Table1/Table2 to LeftTable/RightTable
218            in all occurences.
219    
220            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
221            Typo fixed.
222    
223    2003-05-22  Bernhard Herzog  <[email protected]>
224    
225            Give the tables titles so that the GUI can display more meaningful
226            names. For now the titles are fixed but depend on e.g. filenames
227            or the titles of the joined tables.
228    
229            * Thuban/Model/transientdb.py (TransientTable.Title)
230            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
231    
232            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
233    
234            * test/test_transientdb.py
235            (TestTransientTable.test_auto_transient_table_title): New. Test
236            for the Title method
237            (TestTransientTable.test_transient_joined_table)
238            (TestTransientTable.test_transient_table): Add test for the Title
239            methods
240    
241            * test/test_memory_table.py (TestMemoryTable.test_title): New.
242            Test for the Title method
243    
244            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
245            the Title method
246    
247    2003-05-22  Bernhard Herzog  <[email protected]>
248    
249            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
250            Provide a better way to destroy the layers
251            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
252            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
253            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
254            the new way to destroy the layers.
255            (TestLayer.test_derived_store): New. Test for using a layer with a
256            DerivedShapeStore
257    
258            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
259            filename if the shape store actually has one.
260    
261    2003-05-22  Bernhard Herzog  <[email protected]>
262    
263            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
264            for the filename
265    
266            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
267            for the FileName method
268            (TestDBFTableWriting.test_write): Fix spelling of filename
269    
270    2003-05-22  Thomas Koester  <[email protected]>
271    
272            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
273            from SciParam that now really is immutable.
274    
275    2003-05-22  Frank Koormann  <[email protected]>
276    
277            Layer Top/Bottom placement added to legend.
278    
279            * Thuban/UI/legend.py
280            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
281            bound to tool events.
282            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
283            New, methods binding the event methods with the map methods.
284    
285            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
286            layer at top/bottom of layer stack.
287    
288            * Resources/Bitmaps/top_layer.xpm: New button icon.
289    
290            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
291    
292    2003-05-22  Bernhard Herzog  <[email protected]>
293    
294            * Thuban/Model/session.py (Session.RemoveTable): New method to
295            remove tables
296    
297            * test/test_session.py (TestSessionSimple.test_remove_table): New.
298            Test for RemoveTable
299    
300    2003-05-22  Thomas Koester  <[email protected]>
301    
302            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
303            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
304    
305    2003-05-22  Bernhard Herzog  <[email protected]>
306    
307            Implement a way to discover dependencies between tables and
308            shapestores.
309    
310            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
311            (TransientJoinedTable.Dependencies)
312            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
313            interface
314            (TransientJoinedTable.__init__): Keep tack of the original table
315            objects in addition to the corresponding transient tables.
316    
317            * Thuban/Model/table.py (DBFTable.Dependencies)
318            (MemoryTable.Dependencies): New. Implement the dependencies
319            interface
320    
321            * Thuban/Model/data.py (ShapeTable): New. Helper class for
322            ShapefileStore
323            (ShapefileStore.__init__): Use ShapeTable instead of
324            AutoTransientTable
325            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
326            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
327            methods for filename and type
328            (ShapefileStore.Dependencies): New. Implement the dependencies
329            interface
330            (DerivedShapeStore): New class to replace SimpleStore. The main
331            difference to SimpleStore is that it depends not on a shapefile
332            but another shapestore which expresses the dependencies a bit
333            better
334            (SimpleStore.__init__): Add deprecation warning.
335    
336            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
337            Test for the Dependencies method.
338    
339            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
340            New. Test for the Dependencies method.
341    
342            * test/test_transientdb.py
343            (TestTransientTable.test_auto_transient_table_dependencies): New.
344            Test for the Dependencies method.
345            (TestTransientTable.test_transient_joined_table): Add test for the
346            Dependencies method.
347    
348            * test/test_session.py (TestSessionSimple.setUp)
349            (TestSessionSimple.tearDown): New. Implement a better way to
350            destroy the sessions.
351            (TestSessionSimple.test_initial_state)
352            (TestSessionSimple.test_add_table): Bind session to self.session
353            so that it's destroyed by tearDown
354            (TestSessionSimple.test_open_shapefile): New. Test for
355            OpenShapefile and the object it returns
356    
357    2003-05-22  Bernhard Herzog  <[email protected]>
358    
359            * Thuban/Model/session.py (Session.AddTable): New method to
360            register tables with the session.
361            (Session.Tables): Return the tables registered with AddTable too.
362    
363            * test/test_session.py (TestSessionSimple.test_add_table): New.
364            Test case for the AddTable method
365    
366    2003-05-22  Frank Koormann  <[email protected]>
367    
368            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
369            lower right corner, center labels for selections, initialize controls
370            in reasonable order for keyboard navigation.
371    
372            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
373            (ProjFrame.__DoOnProjAvail): Determine position of current projection
374            using the wxListBox.FindString() method. Still a problem (#1886)
375    
376            * Thuban/UI/classifier.py
377            (Classifier.__init__, SelectPropertiesDialog.__init__)
378    
379            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
380            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
381            different classification types from here to __init__.
382            (GenUniquePanel.__init__): Set the column width of the first field
383            in the Field ListCtrl to the full width.
384    
385            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
386            Button to 'Export'. Center Buttons in Selection Box, set Focus to
387            Grid.
388            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
389            changes focus to the Selection when pressing "Alt-S".
390    
391            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
392            the text if not visible. The italic font sometimes exceeds the
393            rendering area.
394    
395    2003-05-21  Jonathan Coles   <[email protected]>
396    
397            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
398            to OnClose so that Thuban closes correctly.
399    
400            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
401            DockFrame.OnClose, not DockFrame._OnClose.
402    
403    2003-05-21  Jonathan Coles   <[email protected]>
404    
405            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
406            references to 'inf' and use new Range __init__ to pass floats
407            directly rather than converting them to strings first.
408            Fixes RTBug #1876.
409    
410            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
411            Use new Range ___init__ to pass floats.
412    
413            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
414            filename is a valid image file. Throw IOError otherwise.
415    
416            * Thuban/Model/range.py: Brought over new Range from SciParam that
417            is immutable and has an __init__ which can accept floats.
418    
419            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
420            into try block. AddLayer doesn't throw any exceptions anymore.
421            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
422            try block.
423    
424            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
425            the first item in choices. Fixes RTBug #1882.
426    
427            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
428            has gone to 0 which is a serious problem. abort.
429            (MapRenderer.draw_raster_layer): Catch IOError seperately and
430            print the error from GDAL.
431    
432            * Thuban/UI/tableview.py (TableGrid.__init__): Call
433            ToggleEventListeners to turn on listening.
434            (TableGrid.ToggleEventListeners): New. Turns event listening on
435            and off so as to prevent excessive messages.
436            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
437            to suppress excessive messages when selecting many rows.
438            Fixes RTBug #1880.
439    
440            * Thuban/UI/view.py: Added checks against if scale == 0. This
441            is a serious problem that can occur when an image without
442            geo data is loading and causes the map projection bounds to
443            go to infinity. Right now, the solution is to simply try
444            to recover.
445    
446            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
447            to set the MFILEReceiver attributes even if the data is NULL.
448    
449            * extensions/thuban/gdalwarp.cpp: Improved the error handling
450            and passed GDAL messages back up to the Python layer. Also
451            tried to fix some memory leaks that were present in the original
452            utility but didn't matter because the program aborted.
453    
454            * test/test_range.py: Copied over tests from SciParam. Removed
455            tests against importing. Fixes RTBug #1867.
456    
457    2003-05-21  Bernhard Herzog  <[email protected]>
458    
459            * test/test_load.py: Remove unused imports and restructure the
460            test code
461            (LoadSessionTest): Split into one class for each test and turn
462            LoadSessionTest itself into the base class for all such session
463            tests.
464            (ClassificationTest): New base class for load tests that test
465            classifications
466            (TestSingleLayer, TestLayerVisibility, TestClassification)
467            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
468            for the individual tests
469    
470            * test/support.py (FileLoadTestCase.filename): New base class for
471            file loading tests
472    
473    2003-05-21  Jan-Oliver Wagner <[email protected]>
474    
475            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
476            Mercator' to 'UTM Zone 32' as a more convenient example.
477            Added 'Gauss Krueger Zone 6'.
478    
479            * Data/iceland_sample_raster.thuban: political polygon now
480            filled transparent to have the raster image visible at once.
481    
482    2003-05-21  Frank Koormann  <[email protected]>
483    
484            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
485            OnClose() to keep in sync with extensions. Internally Thuban
486            still uses "underscored" names.
487    
488    2003-05-20  Jonathan Coles   <[email protected]>
489    
490            This puts back Raster layer support. These layers support projections
491            through the GDAL library. Currently, the CVS version is being used.
492            There are no Debian packages available although this may change soon.
493            A GDAL driver was extended to support writing to memory rather to
494            files.
495    
496            There is still some work that needs to be done, such as some error
497            handling when loading invalid images or when there is a problem
498            projecting the image. This putback simply checks in the majority
499            of the work.
500    
501            * setup.py: Add gdalwarp library extension.
502    
503            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
504            Defaults to False, but can be overridden by subclasses if they
505            support classification.
506            (RasterLayer): New. Defines a new layer that represents an
507            image.
508    
509            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
510            tag handler.
511            (SessionLoader.start_layer): Encode the filename.
512            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
513            New. Supports reading a rasterlayer tag.
514    
515            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
516    
517            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
518            get a string in Latin1. If we get such as string convert it to
519            unicode first, otherwise leave if alone before encoding.
520            (SessionSaver.write_layer): Add support for writing both Layers
521            and RasterLayers.
522    
523            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
524            The right argument may not be a string, it could also be a Column.
525    
526            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
527            Make initial window size 600x400. Fixes RTBug #1872.
528    
529            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
530            the dialog is constructed so that we can support layers that
531            do not have classifications.
532            (Classifier._OnTry): Only build a classification if the layer
533            supports one.
534    
535            * Thuban/UI/legend.py: Change all checks that a layer is an
536            instance of Layer into checks against BaseLayer.
537            (LegendTree.__FillTreeLayer): Only add children to a branch if
538            the layer supports classification.
539    
540            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
541            MainWindow.OpenSession): Don't proceed with an action if the
542            user chooses Cancel when they are asked to save changes.
543            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
544            user to select an image file. Create a new RasterLayer and add
545            it to the map.
546    
547            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
548            for rendering RasterLayer layers.
549            (MapRenderer.draw_raster_layer): Actually method that calls
550            the GDALWarp python wrapper and constructs an image from the
551            data returned.
552    
553            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
554            Choices symbols to match those used in the table query method.
555            Replace deprecated method calls on table with new method names.
556    
557            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
558            how small the scale can get. This still needs more testing.
559    
560            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
561            Provides a driver to output in .bmp format.
562    
563            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
564            New. Provides IO routines which write to memory, rather than a file.
565    
566            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
567            of the gdalwarp utility provided in GDAL. Added function calls
568            that can be accessed from python.
569    
570            * Data/iceland_sample_raster.thuban: New. Sample file that uses
571            a raster layer.
572    
573            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
574            layer image data.
575    
576            * Doc/thuban.dtd: Added rasterlayer attribute definition.
577    
578            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
579            tests associated with the raster layer code.
580    
581            * test/test_transientdb.py
582            (TestTransientTable.test_auto_transient_table_query): Added a test
583            for using a Column object as the "right" parameter to a query.
584    
585    2003-05-19  Frank Koormann  <[email protected]>
586    
587            * Thuban/version.py (get_changelog_date):
588            Catch exceptions if ChangeLog does not exist.
589    
590            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
591    
592    2003-05-19  Frank Koormann  <[email protected]>
593    
594            Extended version information for Thuban
595    
596            * Thuban/version.py: New, version information for Thuban: Last
597            modification date and last ChangeLog entry date.
598    
599            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
600            information: Display Thuban, wxPython and Python version.
601    
602    2003-05-16  Bernhard Herzog  <[email protected]>
603    
604            * Thuban/Model/save.py: Remove some unused imports including the
605            __future__ import for nested_scopes as Thuban relies on Python 2.2
606            now.
607            (XMLWriter.encode): Remove the special case for a None argument.
608            In the saver encode is always called with a string argument.
609    
610    2003-05-16  Bernhard Herzog  <[email protected]>
611    
612            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
613            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
614            of the bug was that e.g. float("1.2") would fail. Thuban now
615            requires 2.4.x.
616            
617    2003-05-16  Frank Koormann   <[email protected]>
618    
619            Printing enhancement and WMF export (under Win32)
620    
621            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
622            ScreenRenderer. Renders Map, Legend and Scalebar for export.
623            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
624            PrintRender.
625    
626            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
627            to fullfil information needed for PrinterRenderer.
628            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
629            (MapCanvas.Print): Adapted to new MapPrintout.
630            (OutputTransform): General calculations to transform from canvas
631            coordinates to export/printing devices.
632    
633            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
634            new method_command to call ExportMap, with platform dependency (only
635            __WXMSW__)
636      
637            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
638            of scalebar drawing area as new parameters.
639            
640            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
641    
642            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
643            Update to extended scalebar.DrawScalebar header.
644    
645            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
646    
647            * test/test_scalebar.py: Made test executable as standalone.
648    
649    2003-05-16  Bernhard Herzog  <[email protected]>
650    
651            * Thuban/Model/table.py (Table): Remove this compatibility alias
652            for DBFTable.
653    
654            * test/test_table.py: Import DBFTable as Table because that alias
655            doesn't exist anymore.
656    
657            * Thuban/UI/classgen.py: Remove some unused imports
658    
659    2003-05-14  Jonathan Coles   <[email protected]>
660    
661            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
662            Fix docstring.
663            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
664            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
665            values of the supplied range to determine the beginning and end
666            bounds of the generated classes.
667    
668            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
669            do not have a leading 0 (.5 is now accepted as well as 0.5).
670    
671            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
672            call to ClassGenerator.GenUniformDistribution.
673    
674            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
675            layout bug with the 'Projection' label.
676    
677            * test/support.py (FloatTestCase): New. Needed for the Range tests.
678    
679            * test/test_range.py: New. Imported from SciParam.
680    
681    2003-05-12  Jonathan Coles   <[email protected]>
682    
683            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
684            to table.UniqueValues() with calls that retrieve all the values
685            from the table. This will need to be replaced by a method on table
686            which can simply return the list (perhaps more efficiently).
687    
688    2003-05-12  Jonathan Coles   <[email protected]>
689    
690            The return value of ClassGenerator.CalculateQuantiles has changed.
691            Refer to the documentation for details.
692    
693            * test/test_classgen.py: Modified Quantile tests to use the
694            new return values.
695    
696            * Thuban/Model/classgen.py
697            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
698            use new return values from CalculateQuantiles to produce the correct
699            range bounds in the Classification.
700            (ClassGenerator.CalculateQuantiles): Add more comments describing
701            the return values and parameters. Make minor adjustments to improve
702            the legibility of the code. Fix problem with adjusted not being set
703            in most cases.
704    
705    2003-05-12  Frank Koormann <[email protected]>
706            
707            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
708            and latin1. Fixes #1851 finally.
709    
710    2003-05-09  Jonathan Coles   <[email protected]>
711    
712            * test/test_classgen.py: New. Tests the Quantile algorithm.
713    
714            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
715            Clean up debugging statement, add comments, fix a small bug in the
716            returned adjusted percentiles.
717            
718    2003-05-09  Jonathan Coles   <[email protected]>
719    
720            Introduces Range class from SciParam into the ClassGroupRange class,
721            and such ranges can now be saved and loaded from disk.
722    
723            Quantiles are now available in the Classification Generator.
724    
725            Initial support for building Queries on a table. Doesn't do anything
726            but run some tests.
727    
728            * Thuban/Model/classification.py: Explicit imports.
729            (ClassGroupRange): Use the Range class to store the underlying
730            range information. The interface remains the same, except for
731            GetRange(), and you can also supply a Range object as the min
732            parameter to SetRange or __init__.
733    
734            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
735            string appropriately for use in Thuban. Fixes RTbug #1851.
736            (SessionLoader.end_projection): Handle the context of the
737            projection tag a bit better by looking at what objects are not
738            None. There was an assumption that a projection tag for a map
739            could occur before any layers.
740            (SessionLoader.start_clrange): Provide backward compatibility for
741            reading min/max values as well as the new range parameter.
742    
743            * Thuban/Model/map.py: Explicit imports.
744    
745            * Thuban/Model/resource.py: Import _.
746            (ProjFileSaver.write): write header using projfile.dtd.
747    
748            * Thuban/Model/save.py: Explicit imports.
749            (XMLWriter.encode): New. Encode the given string from a format
750            used by Thuban into UTF-8. Fixes RTbug #1851.
751    
752            * Thuban/UI/classgen.py: Explicit imports.
753            (ClassGenDialog.__init__): Clean up the code and add support
754            for Quantiles.
755            (ClassGenDialog.OnOK): Add support for Quantiles.
756            (GenQuantilesPanel): New. Input panel for Quantiles.
757            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
758            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
759    
760            * Thuban/Model/classgen.py: New. Contains all the classes named above.
761    
762            * Thuban/UI/classifier.py: Explicit imports.
763            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
764            ClassTable.SetValueAsCustom): Reworked to use new Range class.
765    
766            * Thuban/UI/legend.py: Explicit imports.
767    
768            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
769            a Table menu and associated method calls.
770            (MainWindow.choose_color): Removed. No longer needed.
771    
772            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
773            should be disabled if no projection is selected in the available
774            list.
775    
776            * Thuban/UI/renderer.py: Explicit imports.
777    
778            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
779            with correctly selecting the rows and issuing the right events.
780            Be sure to call Skip() to allow the grid to do some of its own
781            handling which allows the rows to actually be selected.
782            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
783            selecting multiple shapes.
784            (LayerTableFrame): Support for building Queries.
785            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
786    
787            * Thuban/UI/tree.py: Explicit imports.
788    
789            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
790            table view can call it.
791    
792            * test/test_classification.py: Explicit imports.
793            (TestClassification.test_ClassGroupRange): Fix test for new
794            Range class.
795    
796            * Doc/thuban.dtd: Add range parameter for clrange.
797    
798            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
799            object in ClassGroupRange, and also uesd for inputting ranges in
800            the classifer table and elsewhere.
801    
802            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
803            yet.
804    
805    2003-05-09  Frank Koormann <[email protected]>
806    
807            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
808    
809    2003-05-08  Frank Koormann <[email protected]>
810    
811            Coding style updates
812    
813            * test/test_scalebar.py: Replaced tab indentation by spaces.
814    
815            * Thuban/UI/scalebar.py: Explicit imports.
816    
817    2003-05-08  Frank Koormann <[email protected]>
818    
819            * Thuban/UI/scalebar.py
820            (ScaleBar.DrawScalebar): Format string bug fixed.
821    
822    2003-05-08  Frank Koormann <[email protected]>
823    
824            Reorganization of scalebar component (no wx in Thuban/Model)
825    
826            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
827            (deriveInterval):
828            Calculate scalebar interval and unit which fits in width for scale.
829            (roundInterval): Round float.
830    
831            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
832    
833            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
834    
835            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
836    
837    2003-05-08  Frank Koormann <[email protected]>
838    
839            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
840            Initialize ScaleBar with canvas.map
841    
842            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
843            round intervals to display smarter lengths
844            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
845            layer. If the maps has no projection applied grey the scalebar.
846    
847    2003-05-07  Frank Koormann <[email protected]>
848            
849            Basic Scalebar features added.
850    
851            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
852    
853            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
854            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
855            and the renderer.
856    
857            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
858    
859            * Thuban/UI/messages.py: SCALE_CHANGED added.
860    
861    2003-05-07  Bernhard Herzog  <[email protected]>
862    
863            * Thuban/Model/session.py (Session.__init__): New instance
864            variable shapestores to hold a list of all open shapestore objects
865            (Session.ShapeStores): New. Accessor method for the shapestores
866            list.
867            (Session._add_shapestore, Session._clean_weak_store_refs): New.
868            Internal methods to maintain the shapestores list.
869            (Session.Tables): New. Return all tables open in the session.
870            (Session.OpenShapefile): Insert the new ShapeStore into the
871            shapestores list.
872    
873            * test/test_session.py (TestSessionSimple.test_initial_state): Add
874            tests for ShapeStores and Tables
875            (TestSessionWithContent.test_shape_stores)
876            (TestSessionWithContent.test_tables): New. Test cases for
877            ShapeStores and Tables
878    
879    2003-05-07  Bernhard Herzog  <[email protected]>
880    
881            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
882            Add comments about the optimizations used.
883            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
884            Implement the ReadValue table interface method.
885    
886            * test/test_transientdb.py
887            (TestTransientTable.run_iceland_political_tests)
888            (TestTransientTable.test_transient_joined_table): Add tests for
889            ReadValue
890    
891    2003-05-07  Frank Koormann <[email protected]>
892    
893            * Resources/Bitmaps/fulllayerextent.xpm,
894            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
895            new icons.
896    
897    2003-05-06  Bernhard Herzog  <[email protected]>
898    
899            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
900            New. Simply delegate to the transient table's version.
901    
902            * test/test_transientdb.py
903            (TestTransientTable.test_auto_transient_table_query): New. Test
904            case for AutoTransientTable's SimpleQuery
905    
906    2003-05-06  Bernhard Herzog  <[email protected]>
907    
908            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
909            Implement a simple query method for the query dialog
910            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
911            the row index or shapeid.
912            (TransientTable.create): Insert the right value of the row index
913            (TransientJoinedTable.create): Copy the row index of the left
914            table to the joined result table
915    
916            * test/test_transientdb.py
917            (TestTransientTable.test_transient_table_read_twice): Fix
918            doc-string
919            (TestTransientTable.test_transient_table_query): New. Test for the
920            SimpleQuery method
921    
922    2003-05-06  Bernhard Herzog  <[email protected]>
923    
924            Convert all table users to use the new table interface. This only
925            covers Thuban itself, not GREAT-ER or other applications built on
926            Thuban yet, so the compatibility interface stays in place for the
927            time being but it now issues DeprecationWarnings.
928    
929            Finally, the new Table interface has a new method, HasColumn.
930    
931            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
932            issue deprecation warnings when they're. The warnings refer to the
933            caller of the method.
934            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
935            for the deprecation warnings
936    
937            * test/test_table.py: Ignore the deprecation warnings for the old
938            table in the tests in this module. The purpose of the tests is to
939            test the old interface, after all.
940    
941            * test/test_transientdb.py
942            (TestTransientTable.run_iceland_political_tests): Use the
943            constants for the types. Add a test for HasColumn
944            (TestTransientTable.test_transient_joined_table): Adapt to new
945            table interface. Add a test for HasColumn
946            (TestTransientTable.test_transient_table_read_twice): Adapt to new
947            table interface
948    
949            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
950            Adapt to new table interface
951    
952            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
953            new table interface
954    
955            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
956            (RecordTable.SetTable): Adapt to new table interface
957    
958            * Thuban/UI/classifier.py (Classifier.__init__)
959            (Classifier.__init__): Adapt to new table interface
960    
961            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
962            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
963            to new table interface
964    
965            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
966            (AutoTransientTable.HasColumn): Implement the new table interface
967            method
968            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
969            (AutoTransientTable.UniqueValues): Adapt to new table interface
970    
971            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
972            Adapt to new table interface
973    
974            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
975            simplify opening shapefiles a bit easier.
976            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
977            (TestLayer.test_point_layer): Use the new helper method
978            (TestLayer.test_get_field_type): New. Test for the GetFieldType
979            method
980    
981            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
982            the new table method
983    
984            * test/test_memory_table.py (TestMemoryTable.test_has_column):
985            Test for the new table method HasColumn
986    
987  2003-05-06  Jonathan Coles   <[email protected]>  2003-05-06  Jonathan Coles   <[email protected]>
988    
989          Addresses the "Selection Extent" wish of RTbug #1787.          Addresses the "Selection Extent" wish of RTbug #1787.

Legend:
Removed from v.833  
changed lines
  Added in v.1059

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26