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

Legend:
Removed from v.840  
changed lines
  Added in v.955

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26