/[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 860 by frank, Thu May 8 10:41:36 2003 UTC revision 952 by frank, Wed May 21 14:21:23 2003 UTC
# Line 1  Line 1 
1    2003-05-21  Frank Koormann  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
4            OnClose() to keep in sync with extensions. Internally Thuban
5            still uses "underscored" names.
6    
7    2003-05-20  Jonathan Coles   <[email protected]>
8    
9            This puts back Raster layer support. These layers support projections
10            through the GDAL library. Currently, the CVS version is being used.
11            There are no Debian packages available although this may change soon.
12            A GDAL driver was extended to support writing to memory rather to
13            files.
14    
15            There is still some work that needs to be done, such as some error
16            handling when loading invalid images or when there is a problem
17            projecting the image. This putback simply checks in the majority
18            of the work.
19    
20            * setup.py: Add gdalwarp library extension.
21    
22            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
23            Defaults to False, but can be overridden by subclasses if they
24            support classification.
25            (RasterLayer): New. Defines a new layer that represents an
26            image.
27    
28            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
29            tag handler.
30            (SessionLoader.start_layer): Encode the filename.
31            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
32            New. Supports reading a rasterlayer tag.
33    
34            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
35    
36            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
37            get a string in Latin1. If we get such as string convert it to
38            unicode first, otherwise leave if alone before encoding.
39            (SessionSaver.write_layer): Add support for writing both Layers
40            and RasterLayers.
41    
42            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
43            The right argument may not be a string, it could also be a Column.
44    
45            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
46            Make initial window size 600x400. Fixes RTBug #1872.
47    
48            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
49            the dialog is constructed so that we can support layers that
50            do not have classifications.
51            (Classifier._OnTry): Only build a classification if the layer
52            supports one.
53    
54            * Thuban/UI/legend.py: Change all checks that a layer is an
55            instance of Layer into checks against BaseLayer.
56            (LegendTree.__FillTreeLayer): Only add children to a branch if
57            the layer supports classification.
58    
59            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
60            MainWindow.OpenSession): Don't proceed with an action if the
61            user chooses Cancel when they are asked to save changes.
62            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
63            user to select an image file. Create a new RasterLayer and add
64            it to the map.
65    
66            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
67            for rendering RasterLayer layers.
68            (MapRenderer.draw_raster_layer): Actually method that calls
69            the GDALWarp python wrapper and constructs an image from the
70            data returned.
71    
72            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
73            Choices symbols to match those used in the table query method.
74            Replace deprecated method calls on table with new method names.
75    
76            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
77            how small the scale can get. This still needs more testing.
78    
79            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
80            Provides a driver to output in .bmp format.
81    
82            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
83            New. Provides IO routines which write to memory, rather than a file.
84    
85            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
86            of the gdalwarp utility provided in GDAL. Added function calls
87            that can be accessed from python.
88    
89            * Data/iceland_sample_raster.thuban: New. Sample file that uses
90            a raster layer.
91    
92            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
93            layer image data.
94    
95            * Doc/thuban.dtd: Added rasterlayer attribute definition.
96    
97            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
98            tests associated with the raster layer code.
99    
100            * test/test_transientdb.py
101            (TestTransientTable.test_auto_transient_table_query): Added a test
102            for using a Column object as the "right" parameter to a query.
103    
104    2003-05-19  Frank Koormann  <[email protected]>
105    
106            * Thuban/version.py (get_changelog_date):
107            Catch exceptions if ChangeLog does not exist.
108    
109            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
110    
111    2003-05-19  Frank Koormann  <[email protected]>
112    
113            Extended version information for Thuban
114    
115            * Thuban/version.py: New, version information for Thuban: Last
116            modification date and last ChangeLog entry date.
117    
118            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
119            information: Display Thuban, wxPython and Python version.
120    
121    2003-05-16  Bernhard Herzog  <[email protected]>
122    
123            * Thuban/Model/save.py: Remove some unused imports including the
124            __future__ import for nested_scopes as Thuban relies on Python 2.2
125            now.
126            (XMLWriter.encode): Remove the special case for a None argument.
127            In the saver encode is always called with a string argument.
128    
129    2003-05-16  Bernhard Herzog  <[email protected]>
130    
131            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
132            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
133            of the bug was that e.g. float("1.2") would fail. Thuban now
134            requires 2.4.x.
135            
136    2003-05-16  Frank Koormann   <[email protected]>
137    
138            Printing enhancement and WMF export (under Win32)
139    
140            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
141            ScreenRenderer. Renders Map, Legend and Scalebar for export.
142            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
143            PrintRender.
144    
145            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
146            to fullfil information needed for PrinterRenderer.
147            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
148            (MapCanvas.Print): Adapted to new MapPrintout.
149            (OutputTransform): General calculations to transform from canvas
150            coordinates to export/printing devices.
151    
152            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
153            new method_command to call ExportMap, with platform dependency (only
154            __WXMSW__)
155      
156            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
157            of scalebar drawing area as new parameters.
158            
159            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
160    
161            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
162            Update to extended scalebar.DrawScalebar header.
163    
164            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
165    
166            * test/test_scalebar.py: Made test executable as standalone.
167    
168    2003-05-16  Bernhard Herzog  <[email protected]>
169    
170            * Thuban/Model/table.py (Table): Remove this compatibility alias
171            for DBFTable.
172    
173            * test/test_table.py: Import DBFTable as Table because that alias
174            doesn't exist anymore.
175    
176            * Thuban/UI/classgen.py: Remove some unused imports
177    
178    2003-05-14  Jonathan Coles   <[email protected]>
179    
180            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
181            Fix docstring.
182            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
183            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
184            values of the supplied range to determine the beginning and end
185            bounds of the generated classes.
186    
187            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
188            do not have a leading 0 (.5 is now accepted as well as 0.5).
189    
190            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
191            call to ClassGenerator.GenUniformDistribution.
192    
193            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
194            layout bug with the 'Projection' label.
195    
196            * test/support.py (FloatTestCase): New. Needed for the Range tests.
197    
198            * test/test_range.py: New. Imported from SciParam.
199    
200    2003-05-12  Jonathan Coles   <[email protected]>
201    
202            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
203            to table.UniqueValues() with calls that retrieve all the values
204            from the table. This will need to be replaced by a method on table
205            which can simply return the list (perhaps more efficiently).
206    
207    2003-05-12  Jonathan Coles   <[email protected]>
208    
209            The return value of ClassGenerator.CalculateQuantiles has changed.
210            Refer to the documentation for details.
211    
212            * test/test_classgen.py: Modified Quantile tests to use the
213            new return values.
214    
215            * Thuban/Model/classgen.py
216            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
217            use new return values from CalculateQuantiles to produce the correct
218            range bounds in the Classification.
219            (ClassGenerator.CalculateQuantiles): Add more comments describing
220            the return values and parameters. Make minor adjustments to improve
221            the legibility of the code. Fix problem with adjusted not being set
222            in most cases.
223    
224    2003-05-12  Frank Koormann <[email protected]>
225            
226            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
227            and latin1. Fixes #1851 finally.
228    
229    2003-05-09  Jonathan Coles   <[email protected]>
230    
231            * test/test_classgen.py: New. Tests the Quantile algorithm.
232    
233            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
234            Clean up debugging statement, add comments, fix a small bug in the
235            returned adjusted percentiles.
236            
237    2003-05-09  Jonathan Coles   <[email protected]>
238    
239            Introduces Range class from SciParam into the ClassGroupRange class,
240            and such ranges can now be saved and loaded from disk.
241    
242            Quantiles are now available in the Classification Generator.
243    
244            Initial support for building Queries on a table. Doesn't do anything
245            but run some tests.
246    
247            * Thuban/Model/classification.py: Explicit imports.
248            (ClassGroupRange): Use the Range class to store the underlying
249            range information. The interface remains the same, except for
250            GetRange(), and you can also supply a Range object as the min
251            parameter to SetRange or __init__.
252    
253            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
254            string appropriately for use in Thuban. Fixes RTbug #1851.
255            (SessionLoader.end_projection): Handle the context of the
256            projection tag a bit better by looking at what objects are not
257            None. There was an assumption that a projection tag for a map
258            could occur before any layers.
259            (SessionLoader.start_clrange): Provide backward compatibility for
260            reading min/max values as well as the new range parameter.
261    
262            * Thuban/Model/map.py: Explicit imports.
263    
264            * Thuban/Model/resource.py: Import _.
265            (ProjFileSaver.write): write header using projfile.dtd.
266    
267            * Thuban/Model/save.py: Explicit imports.
268            (XMLWriter.encode): New. Encode the given string from a format
269            used by Thuban into UTF-8. Fixes RTbug #1851.
270    
271            * Thuban/UI/classgen.py: Explicit imports.
272            (ClassGenDialog.__init__): Clean up the code and add support
273            for Quantiles.
274            (ClassGenDialog.OnOK): Add support for Quantiles.
275            (GenQuantilesPanel): New. Input panel for Quantiles.
276            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
277            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
278    
279            * Thuban/Model/classgen.py: New. Contains all the classes named above.
280    
281            * Thuban/UI/classifier.py: Explicit imports.
282            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
283            ClassTable.SetValueAsCustom): Reworked to use new Range class.
284    
285            * Thuban/UI/legend.py: Explicit imports.
286    
287            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
288            a Table menu and associated method calls.
289            (MainWindow.choose_color): Removed. No longer needed.
290    
291            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
292            should be disabled if no projection is selected in the available
293            list.
294    
295            * Thuban/UI/renderer.py: Explicit imports.
296    
297            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
298            with correctly selecting the rows and issuing the right events.
299            Be sure to call Skip() to allow the grid to do some of its own
300            handling which allows the rows to actually be selected.
301            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
302            selecting multiple shapes.
303            (LayerTableFrame): Support for building Queries.
304            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
305    
306            * Thuban/UI/tree.py: Explicit imports.
307    
308            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
309            table view can call it.
310    
311            * test/test_classification.py: Explicit imports.
312            (TestClassification.test_ClassGroupRange): Fix test for new
313            Range class.
314    
315            * Doc/thuban.dtd: Add range parameter for clrange.
316    
317            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
318            object in ClassGroupRange, and also uesd for inputting ranges in
319            the classifer table and elsewhere.
320    
321            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
322            yet.
323    
324    2003-05-09  Frank Koormann <[email protected]>
325    
326            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
327    
328    2003-05-08  Frank Koormann <[email protected]>
329    
330            Coding style updates
331    
332            * test/test_scalebar.py: Replaced tab indentation by spaces.
333    
334            * Thuban/UI/scalebar.py: Explicit imports.
335    
336    2003-05-08  Frank Koormann <[email protected]>
337    
338            * Thuban/UI/scalebar.py
339            (ScaleBar.DrawScalebar): Format string bug fixed.
340    
341    2003-05-08  Frank Koormann <[email protected]>
342    
343            Reorganization of scalebar component (no wx in Thuban/Model)
344    
345            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
346            (deriveInterval):
347            Calculate scalebar interval and unit which fits in width for scale.
348            (roundInterval): Round float.
349    
350            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
351    
352            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
353    
354            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
355    
356  2003-05-08  Frank Koormann <[email protected]>  2003-05-08  Frank Koormann <[email protected]>
357    
358          * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):          * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):

Legend:
Removed from v.860  
changed lines
  Added in v.952

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26