/[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 972 by jonathan, Wed May 21 17:32:05 2003 UTC
# Line 1  Line 1 
1    2003-05-21  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
4            references to 'inf' and use new Range __init__ to pass floats
5            directly rather than converting them to strings first.
6            Fixes RTBug #1876.
7    
8            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
9            Use new Range ___init__ to pass floats.
10    
11            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
12            filename is a valid image file. Throw IOError otherwise.
13    
14            * Thuban/Model/range.py: Brought over new Range from SciParam that
15            is immutable and has an __init__ which can accept floats.
16    
17            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
18            into try block. AddLayer doesn't throw any exceptions anymore.
19            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
20            try block.
21    
22            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
23            the first item in choices. Fixes RTBug #1882.
24    
25            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
26            has gone to 0 which is a serious problem. abort.
27            (MapRenderer.draw_raster_layer): Catch IOError seperately and
28            print the error from GDAL.
29    
30            * Thuban/UI/tableview.py (TableGrid.__init__): Call
31            ToggleEventListeners to turn on listening.
32            (TableGrid.ToggleEventListeners): New. Turns event listening on
33            and off so as to prevent excessive messages.
34            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
35            to suppress excessive messages when selecting many rows.
36            Fixes RTBug #1880.
37    
38            * Thuban/UI/view.py: Added checks against if scale == 0. This
39            is a serious problem that can occur when an image without
40            geo data is loading and causes the map projection bounds to
41            go to infinity. Right now, the solution is to simply try
42            to recover.
43    
44            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
45            to set the MFILEReceiver attributes even if the data is NULL.
46    
47            * extensions/thuban/gdalwarp.cpp: Improved the error handling
48            and passed GDAL messages back up to the Python layer. Also
49            tried to fix some memory leaks that were present in the original
50            utility but didn't matter because the program aborted.
51    
52            * test/test_range.py: Copied over tests from SciParam. Removed
53            tests against importing. Fixes RTBug #1867.
54    
55    2003-05-21  Bernhard Herzog  <[email protected]>
56    
57            * test/test_load.py: Remove unused imports and restructure the
58            test code
59            (LoadSessionTest): Split into one class for each test and turn
60            LoadSessionTest itself into the base class for all such session
61            tests.
62            (ClassificationTest): New base class for load tests that test
63            classifications
64            (TestSingleLayer, TestLayerVisibility, TestClassification)
65            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
66            for the individual tests
67    
68            * test/support.py (FileLoadTestCase.filename): New base class for
69            file loading tests
70    
71    2003-05-21  Jan-Oliver Wagner <[email protected]>
72    
73            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
74            Mercator' to 'UTM Zone 32' as a more convenient example.
75            Added 'Gauss Krueger Zone 6'.
76    
77            * Data/iceland_sample_raster.thuban: political polygon now
78            filled transparent to have the raster image visible at once.
79    
80    2003-05-21  Frank Koormann  <[email protected]>
81    
82            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
83            OnClose() to keep in sync with extensions. Internally Thuban
84            still uses "underscored" names.
85    
86    2003-05-20  Jonathan Coles   <[email protected]>
87    
88            This puts back Raster layer support. These layers support projections
89            through the GDAL library. Currently, the CVS version is being used.
90            There are no Debian packages available although this may change soon.
91            A GDAL driver was extended to support writing to memory rather to
92            files.
93    
94            There is still some work that needs to be done, such as some error
95            handling when loading invalid images or when there is a problem
96            projecting the image. This putback simply checks in the majority
97            of the work.
98    
99            * setup.py: Add gdalwarp library extension.
100    
101            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
102            Defaults to False, but can be overridden by subclasses if they
103            support classification.
104            (RasterLayer): New. Defines a new layer that represents an
105            image.
106    
107            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
108            tag handler.
109            (SessionLoader.start_layer): Encode the filename.
110            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
111            New. Supports reading a rasterlayer tag.
112    
113            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
114    
115            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
116            get a string in Latin1. If we get such as string convert it to
117            unicode first, otherwise leave if alone before encoding.
118            (SessionSaver.write_layer): Add support for writing both Layers
119            and RasterLayers.
120    
121            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
122            The right argument may not be a string, it could also be a Column.
123    
124            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
125            Make initial window size 600x400. Fixes RTBug #1872.
126    
127            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
128            the dialog is constructed so that we can support layers that
129            do not have classifications.
130            (Classifier._OnTry): Only build a classification if the layer
131            supports one.
132    
133            * Thuban/UI/legend.py: Change all checks that a layer is an
134            instance of Layer into checks against BaseLayer.
135            (LegendTree.__FillTreeLayer): Only add children to a branch if
136            the layer supports classification.
137    
138            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
139            MainWindow.OpenSession): Don't proceed with an action if the
140            user chooses Cancel when they are asked to save changes.
141            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
142            user to select an image file. Create a new RasterLayer and add
143            it to the map.
144    
145            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
146            for rendering RasterLayer layers.
147            (MapRenderer.draw_raster_layer): Actually method that calls
148            the GDALWarp python wrapper and constructs an image from the
149            data returned.
150    
151            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
152            Choices symbols to match those used in the table query method.
153            Replace deprecated method calls on table with new method names.
154    
155            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
156            how small the scale can get. This still needs more testing.
157    
158            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
159            Provides a driver to output in .bmp format.
160    
161            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
162            New. Provides IO routines which write to memory, rather than a file.
163    
164            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
165            of the gdalwarp utility provided in GDAL. Added function calls
166            that can be accessed from python.
167    
168            * Data/iceland_sample_raster.thuban: New. Sample file that uses
169            a raster layer.
170    
171            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
172            layer image data.
173    
174            * Doc/thuban.dtd: Added rasterlayer attribute definition.
175    
176            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
177            tests associated with the raster layer code.
178    
179            * test/test_transientdb.py
180            (TestTransientTable.test_auto_transient_table_query): Added a test
181            for using a Column object as the "right" parameter to a query.
182    
183    2003-05-19  Frank Koormann  <[email protected]>
184    
185            * Thuban/version.py (get_changelog_date):
186            Catch exceptions if ChangeLog does not exist.
187    
188            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
189    
190    2003-05-19  Frank Koormann  <[email protected]>
191    
192            Extended version information for Thuban
193    
194            * Thuban/version.py: New, version information for Thuban: Last
195            modification date and last ChangeLog entry date.
196    
197            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
198            information: Display Thuban, wxPython and Python version.
199    
200    2003-05-16  Bernhard Herzog  <[email protected]>
201    
202            * Thuban/Model/save.py: Remove some unused imports including the
203            __future__ import for nested_scopes as Thuban relies on Python 2.2
204            now.
205            (XMLWriter.encode): Remove the special case for a None argument.
206            In the saver encode is always called with a string argument.
207    
208    2003-05-16  Bernhard Herzog  <[email protected]>
209    
210            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
211            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
212            of the bug was that e.g. float("1.2") would fail. Thuban now
213            requires 2.4.x.
214            
215    2003-05-16  Frank Koormann   <[email protected]>
216    
217            Printing enhancement and WMF export (under Win32)
218    
219            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
220            ScreenRenderer. Renders Map, Legend and Scalebar for export.
221            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
222            PrintRender.
223    
224            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
225            to fullfil information needed for PrinterRenderer.
226            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
227            (MapCanvas.Print): Adapted to new MapPrintout.
228            (OutputTransform): General calculations to transform from canvas
229            coordinates to export/printing devices.
230    
231            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
232            new method_command to call ExportMap, with platform dependency (only
233            __WXMSW__)
234      
235            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
236            of scalebar drawing area as new parameters.
237            
238            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
239    
240            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
241            Update to extended scalebar.DrawScalebar header.
242    
243            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
244    
245            * test/test_scalebar.py: Made test executable as standalone.
246    
247    2003-05-16  Bernhard Herzog  <[email protected]>
248    
249            * Thuban/Model/table.py (Table): Remove this compatibility alias
250            for DBFTable.
251    
252            * test/test_table.py: Import DBFTable as Table because that alias
253            doesn't exist anymore.
254    
255            * Thuban/UI/classgen.py: Remove some unused imports
256    
257    2003-05-14  Jonathan Coles   <[email protected]>
258    
259            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
260            Fix docstring.
261            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
262            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
263            values of the supplied range to determine the beginning and end
264            bounds of the generated classes.
265    
266            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
267            do not have a leading 0 (.5 is now accepted as well as 0.5).
268    
269            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
270            call to ClassGenerator.GenUniformDistribution.
271    
272            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
273            layout bug with the 'Projection' label.
274    
275            * test/support.py (FloatTestCase): New. Needed for the Range tests.
276    
277            * test/test_range.py: New. Imported from SciParam.
278    
279    2003-05-12  Jonathan Coles   <[email protected]>
280    
281            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
282            to table.UniqueValues() with calls that retrieve all the values
283            from the table. This will need to be replaced by a method on table
284            which can simply return the list (perhaps more efficiently).
285    
286    2003-05-12  Jonathan Coles   <[email protected]>
287    
288            The return value of ClassGenerator.CalculateQuantiles has changed.
289            Refer to the documentation for details.
290    
291            * test/test_classgen.py: Modified Quantile tests to use the
292            new return values.
293    
294            * Thuban/Model/classgen.py
295            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
296            use new return values from CalculateQuantiles to produce the correct
297            range bounds in the Classification.
298            (ClassGenerator.CalculateQuantiles): Add more comments describing
299            the return values and parameters. Make minor adjustments to improve
300            the legibility of the code. Fix problem with adjusted not being set
301            in most cases.
302    
303    2003-05-12  Frank Koormann <[email protected]>
304            
305            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
306            and latin1. Fixes #1851 finally.
307    
308    2003-05-09  Jonathan Coles   <[email protected]>
309    
310            * test/test_classgen.py: New. Tests the Quantile algorithm.
311    
312            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
313            Clean up debugging statement, add comments, fix a small bug in the
314            returned adjusted percentiles.
315            
316  2003-05-09  Jonathan Coles   <[email protected]>  2003-05-09  Jonathan Coles   <[email protected]>
317    
318          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.972

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26