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

Legend:
Removed from v.889  
changed lines
  Added in v.995

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26