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

Legend:
Removed from v.865  
changed lines
  Added in v.985

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26