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

Legend:
Removed from v.893  
changed lines
  Added in v.992

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26