/[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 908 by bh, Fri May 16 15:01:18 2003 UTC revision 1017 by bh, Fri May 23 11:06:14 2003 UTC
# Line 1  Line 1 
1    2003-05-23  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/session.py (Session.AddShapeStore): Define
4            AddShapeStore analogously to AddTable.
5    
6            * test/test_session.py (TestSessionSimple.test_add_shapestore):
7            New. Test for AddShapeStore
8    
9    2003-05-23  Jan-Oliver Wagner <[email protected]>
10    
11            Introducing QueryTableFrame and a very coarse ShowTable implementation.
12    
13            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
14            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
15            The latter implements the selection GUI without dependency on a layer.
16            LayerTableFrame now is derived from QueryTableFrame and connects
17            to a layer.
18    
19            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
20            implementation that still needs work.
21    
22            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
23    
24    2003-05-22  Frank Koormann  <[email protected]>
25    
26            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
27            Added "outer_join = False" as optional parameter.
28            (TransientJoinedTable.create): If outer join is true, perform a
29            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
30            the left table. Records not matching are filled with 0 / None.
31    
32            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
33            (JoinDialog.OnJoin): Consider outer join check box.
34    
35    2003-05-22  Bernhard Herzog  <[email protected]>
36    
37            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
38            somewhat safer way. Storing the traceback in a local variable can
39            lead to memory leaks
40    
41    2003-05-22  Bernhard Herzog  <[email protected]>
42    
43            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
44            the wxMessageDialog's Destroy() method.
45    
46    2003-05-22  Frank Koormann  <[email protected]>
47    
48            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
49            TransientTable.Title()
50    
51    2003-05-22  Frank Koormann  <[email protected]>
52    
53            Join Dialog, initial version.
54    
55            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
56    
57            * Thuban/UI/join.py (JoinDialog): Functional implementation of
58            former framework. Renamed Table1/Table2 to LeftTable/RightTable
59            in all occurences.
60    
61            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
62            Typo fixed.
63    
64    2003-05-22  Bernhard Herzog  <[email protected]>
65    
66            Give the tables titles so that the GUI can display more meaningful
67            names. For now the titles are fixed but depend on e.g. filenames
68            or the titles of the joined tables.
69    
70            * Thuban/Model/transientdb.py (TransientTable.Title)
71            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
72    
73            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
74    
75            * test/test_transientdb.py
76            (TestTransientTable.test_auto_transient_table_title): New. Test
77            for the Title method
78            (TestTransientTable.test_transient_joined_table)
79            (TestTransientTable.test_transient_table): Add test for the Title
80            methods
81    
82            * test/test_memory_table.py (TestMemoryTable.test_title): New.
83            Test for the Title method
84    
85            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
86            the Title method
87    
88    2003-05-22  Bernhard Herzog  <[email protected]>
89    
90            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
91            Provide a better way to destroy the layers
92            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
93            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
94            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
95            the new way to destroy the layers.
96            (TestLayer.test_derived_store): New. Test for using a layer with a
97            DerivedShapeStore
98    
99            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
100            filename if the shape store actually has one.
101    
102    2003-05-22  Bernhard Herzog  <[email protected]>
103    
104            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
105            for the filename
106    
107            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
108            for the FileName method
109            (TestDBFTableWriting.test_write): Fix spelling of filename
110    
111    2003-05-22  Thomas Koester  <[email protected]>
112    
113            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
114            from SciParam that now really is immutable.
115    
116    2003-05-22  Frank Koormann  <[email protected]>
117    
118            Layer Top/Bottom placement added to legend.
119    
120            * Thuban/UI/legend.py
121            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
122            bound to tool events.
123            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
124            New, methods binding the event methods with the map methods.
125    
126            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
127            layer at top/bottom of layer stack.
128    
129            * Resources/Bitmaps/top_layer.xpm: New button icon.
130    
131            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
132    
133    2003-05-22  Bernhard Herzog  <[email protected]>
134    
135            * Thuban/Model/session.py (Session.RemoveTable): New method to
136            remove tables
137    
138            * test/test_session.py (TestSessionSimple.test_remove_table): New.
139            Test for RemoveTable
140    
141    2003-05-22  Thomas Koester  <[email protected]>
142    
143            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
144            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
145    
146    2003-05-22  Bernhard Herzog  <[email protected]>
147    
148            Implement a way to discover dependencies between tables and
149            shapestores.
150    
151            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
152            (TransientJoinedTable.Dependencies)
153            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
154            interface
155            (TransientJoinedTable.__init__): Keep tack of the original table
156            objects in addition to the corresponding transient tables.
157    
158            * Thuban/Model/table.py (DBFTable.Dependencies)
159            (MemoryTable.Dependencies): New. Implement the dependencies
160            interface
161    
162            * Thuban/Model/data.py (ShapeTable): New. Helper class for
163            ShapefileStore
164            (ShapefileStore.__init__): Use ShapeTable instead of
165            AutoTransientTable
166            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
167            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
168            methods for filename and type
169            (ShapefileStore.Dependencies): New. Implement the dependencies
170            interface
171            (DerivedShapeStore): New class to replace SimpleStore. The main
172            difference to SimpleStore is that it depends not on a shapefile
173            but another shapestore which expresses the dependencies a bit
174            better
175            (SimpleStore.__init__): Add deprecation warning.
176    
177            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
178            Test for the Dependencies method.
179    
180            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
181            New. Test for the Dependencies method.
182    
183            * test/test_transientdb.py
184            (TestTransientTable.test_auto_transient_table_dependencies): New.
185            Test for the Dependencies method.
186            (TestTransientTable.test_transient_joined_table): Add test for the
187            Dependencies method.
188    
189            * test/test_session.py (TestSessionSimple.setUp)
190            (TestSessionSimple.tearDown): New. Implement a better way to
191            destroy the sessions.
192            (TestSessionSimple.test_initial_state)
193            (TestSessionSimple.test_add_table): Bind session to self.session
194            so that it's destroyed by tearDown
195            (TestSessionSimple.test_open_shapefile): New. Test for
196            OpenShapefile and the object it returns
197    
198    2003-05-22  Bernhard Herzog  <[email protected]>
199    
200            * Thuban/Model/session.py (Session.AddTable): New method to
201            register tables with the session.
202            (Session.Tables): Return the tables registered with AddTable too.
203    
204            * test/test_session.py (TestSessionSimple.test_add_table): New.
205            Test case for the AddTable method
206    
207    2003-05-22  Frank Koormann  <[email protected]>
208    
209            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
210            lower right corner, center labels for selections, initialize controls
211            in reasonable order for keyboard navigation.
212    
213            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
214            (ProjFrame.__DoOnProjAvail): Determine position of current projection
215            using the wxListBox.FindString() method. Still a problem (#1886)
216    
217            * Thuban/UI/classifier.py
218            (Classifier.__init__, SelectPropertiesDialog.__init__)
219    
220            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
221            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
222            different classification types from here to __init__.
223            (GenUniquePanel.__init__): Set the column width of the first field
224            in the Field ListCtrl to the full width.
225    
226            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
227            Button to 'Export'. Center Buttons in Selection Box, set Focus to
228            Grid.
229            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
230            changes focus to the Selection when pressing "Alt-S".
231    
232            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
233            the text if not visible. The italic font sometimes exceeds the
234            rendering area.
235    
236    2003-05-21  Jonathan Coles   <[email protected]>
237    
238            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
239            to OnClose so that Thuban closes correctly.
240    
241            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
242            DockFrame.OnClose, not DockFrame._OnClose.
243    
244    2003-05-21  Jonathan Coles   <[email protected]>
245    
246            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
247            references to 'inf' and use new Range __init__ to pass floats
248            directly rather than converting them to strings first.
249            Fixes RTBug #1876.
250    
251            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
252            Use new Range ___init__ to pass floats.
253    
254            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
255            filename is a valid image file. Throw IOError otherwise.
256    
257            * Thuban/Model/range.py: Brought over new Range from SciParam that
258            is immutable and has an __init__ which can accept floats.
259    
260            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
261            into try block. AddLayer doesn't throw any exceptions anymore.
262            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
263            try block.
264    
265            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
266            the first item in choices. Fixes RTBug #1882.
267    
268            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
269            has gone to 0 which is a serious problem. abort.
270            (MapRenderer.draw_raster_layer): Catch IOError seperately and
271            print the error from GDAL.
272    
273            * Thuban/UI/tableview.py (TableGrid.__init__): Call
274            ToggleEventListeners to turn on listening.
275            (TableGrid.ToggleEventListeners): New. Turns event listening on
276            and off so as to prevent excessive messages.
277            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
278            to suppress excessive messages when selecting many rows.
279            Fixes RTBug #1880.
280    
281            * Thuban/UI/view.py: Added checks against if scale == 0. This
282            is a serious problem that can occur when an image without
283            geo data is loading and causes the map projection bounds to
284            go to infinity. Right now, the solution is to simply try
285            to recover.
286    
287            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
288            to set the MFILEReceiver attributes even if the data is NULL.
289    
290            * extensions/thuban/gdalwarp.cpp: Improved the error handling
291            and passed GDAL messages back up to the Python layer. Also
292            tried to fix some memory leaks that were present in the original
293            utility but didn't matter because the program aborted.
294    
295            * test/test_range.py: Copied over tests from SciParam. Removed
296            tests against importing. Fixes RTBug #1867.
297    
298    2003-05-21  Bernhard Herzog  <[email protected]>
299    
300            * test/test_load.py: Remove unused imports and restructure the
301            test code
302            (LoadSessionTest): Split into one class for each test and turn
303            LoadSessionTest itself into the base class for all such session
304            tests.
305            (ClassificationTest): New base class for load tests that test
306            classifications
307            (TestSingleLayer, TestLayerVisibility, TestClassification)
308            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
309            for the individual tests
310    
311            * test/support.py (FileLoadTestCase.filename): New base class for
312            file loading tests
313    
314    2003-05-21  Jan-Oliver Wagner <[email protected]>
315    
316            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
317            Mercator' to 'UTM Zone 32' as a more convenient example.
318            Added 'Gauss Krueger Zone 6'.
319    
320            * Data/iceland_sample_raster.thuban: political polygon now
321            filled transparent to have the raster image visible at once.
322    
323    2003-05-21  Frank Koormann  <[email protected]>
324    
325            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
326            OnClose() to keep in sync with extensions. Internally Thuban
327            still uses "underscored" names.
328    
329    2003-05-20  Jonathan Coles   <[email protected]>
330    
331            This puts back Raster layer support. These layers support projections
332            through the GDAL library. Currently, the CVS version is being used.
333            There are no Debian packages available although this may change soon.
334            A GDAL driver was extended to support writing to memory rather to
335            files.
336    
337            There is still some work that needs to be done, such as some error
338            handling when loading invalid images or when there is a problem
339            projecting the image. This putback simply checks in the majority
340            of the work.
341    
342            * setup.py: Add gdalwarp library extension.
343    
344            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
345            Defaults to False, but can be overridden by subclasses if they
346            support classification.
347            (RasterLayer): New. Defines a new layer that represents an
348            image.
349    
350            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
351            tag handler.
352            (SessionLoader.start_layer): Encode the filename.
353            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
354            New. Supports reading a rasterlayer tag.
355    
356            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
357    
358            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
359            get a string in Latin1. If we get such as string convert it to
360            unicode first, otherwise leave if alone before encoding.
361            (SessionSaver.write_layer): Add support for writing both Layers
362            and RasterLayers.
363    
364            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
365            The right argument may not be a string, it could also be a Column.
366    
367            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
368            Make initial window size 600x400. Fixes RTBug #1872.
369    
370            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
371            the dialog is constructed so that we can support layers that
372            do not have classifications.
373            (Classifier._OnTry): Only build a classification if the layer
374            supports one.
375    
376            * Thuban/UI/legend.py: Change all checks that a layer is an
377            instance of Layer into checks against BaseLayer.
378            (LegendTree.__FillTreeLayer): Only add children to a branch if
379            the layer supports classification.
380    
381            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
382            MainWindow.OpenSession): Don't proceed with an action if the
383            user chooses Cancel when they are asked to save changes.
384            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
385            user to select an image file. Create a new RasterLayer and add
386            it to the map.
387    
388            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
389            for rendering RasterLayer layers.
390            (MapRenderer.draw_raster_layer): Actually method that calls
391            the GDALWarp python wrapper and constructs an image from the
392            data returned.
393    
394            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
395            Choices symbols to match those used in the table query method.
396            Replace deprecated method calls on table with new method names.
397    
398            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
399            how small the scale can get. This still needs more testing.
400    
401            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
402            Provides a driver to output in .bmp format.
403    
404            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
405            New. Provides IO routines which write to memory, rather than a file.
406    
407            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
408            of the gdalwarp utility provided in GDAL. Added function calls
409            that can be accessed from python.
410    
411            * Data/iceland_sample_raster.thuban: New. Sample file that uses
412            a raster layer.
413    
414            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
415            layer image data.
416    
417            * Doc/thuban.dtd: Added rasterlayer attribute definition.
418    
419            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
420            tests associated with the raster layer code.
421    
422            * test/test_transientdb.py
423            (TestTransientTable.test_auto_transient_table_query): Added a test
424            for using a Column object as the "right" parameter to a query.
425    
426    2003-05-19  Frank Koormann  <[email protected]>
427    
428            * Thuban/version.py (get_changelog_date):
429            Catch exceptions if ChangeLog does not exist.
430    
431            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
432    
433    2003-05-19  Frank Koormann  <[email protected]>
434    
435            Extended version information for Thuban
436    
437            * Thuban/version.py: New, version information for Thuban: Last
438            modification date and last ChangeLog entry date.
439    
440            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
441            information: Display Thuban, wxPython and Python version.
442    
443    2003-05-16  Bernhard Herzog  <[email protected]>
444    
445            * Thuban/Model/save.py: Remove some unused imports including the
446            __future__ import for nested_scopes as Thuban relies on Python 2.2
447            now.
448            (XMLWriter.encode): Remove the special case for a None argument.
449            In the saver encode is always called with a string argument.
450    
451    2003-05-16  Bernhard Herzog  <[email protected]>
452    
453            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
454            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
455            of the bug was that e.g. float("1.2") would fail. Thuban now
456            requires 2.4.x.
457            
458    2003-05-16  Frank Koormann   <[email protected]>
459    
460            Printing enhancement and WMF export (under Win32)
461    
462            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
463            ScreenRenderer. Renders Map, Legend and Scalebar for export.
464            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
465            PrintRender.
466    
467            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
468            to fullfil information needed for PrinterRenderer.
469            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
470            (MapCanvas.Print): Adapted to new MapPrintout.
471            (OutputTransform): General calculations to transform from canvas
472            coordinates to export/printing devices.
473    
474            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
475            new method_command to call ExportMap, with platform dependency (only
476            __WXMSW__)
477      
478            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
479            of scalebar drawing area as new parameters.
480            
481            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
482    
483            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
484            Update to extended scalebar.DrawScalebar header.
485    
486            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
487    
488            * test/test_scalebar.py: Made test executable as standalone.
489    
490  2003-05-16  Bernhard Herzog  <[email protected]>  2003-05-16  Bernhard Herzog  <[email protected]>
491    
492          * Thuban/Model/table.py (Table): Remove this compatibility alias          * Thuban/Model/table.py (Table): Remove this compatibility alias

Legend:
Removed from v.908  
changed lines
  Added in v.1017

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26