/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

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

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26