/[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 766 by bh, Tue Apr 29 12:42:27 2003 UTC revision 958 by bh, Wed May 21 17:12:30 2003 UTC
# Line 1  Line 1 
1    2003-05-21  Bernhard Herzog  <[email protected]>
2    
3            * test/test_load.py: Remove unused imports and restructure the
4            test code
5            (LoadSessionTest): Split into one class for each test and turn
6            LoadSessionTest itself into the base class for all such session
7            tests.
8            (ClassificationTest): New base class for load tests that test
9            classifications
10            (TestSingleLayer, TestLayerVisibility, TestClassification)
11            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
12            for the individual tests
13    
14            * test/support.py (FileLoadTestCase.filename): New base class for
15            file loading tests
16    
17    2003-05-21  Jan-Oliver Wagner <[email protected]>
18    
19            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
20            Mercator' to 'UTM Zone 32' as a more convenient example.
21            Added 'Gauss Krueger Zone 6'.
22    
23            * Data/iceland_sample_raster.thuban: political polygon now
24            filled transparent to have the raster image visible at once.
25    
26    2003-05-21  Frank Koormann  <[email protected]>
27    
28            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
29            OnClose() to keep in sync with extensions. Internally Thuban
30            still uses "underscored" names.
31    
32    2003-05-20  Jonathan Coles   <[email protected]>
33    
34            This puts back Raster layer support. These layers support projections
35            through the GDAL library. Currently, the CVS version is being used.
36            There are no Debian packages available although this may change soon.
37            A GDAL driver was extended to support writing to memory rather to
38            files.
39    
40            There is still some work that needs to be done, such as some error
41            handling when loading invalid images or when there is a problem
42            projecting the image. This putback simply checks in the majority
43            of the work.
44    
45            * setup.py: Add gdalwarp library extension.
46    
47            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
48            Defaults to False, but can be overridden by subclasses if they
49            support classification.
50            (RasterLayer): New. Defines a new layer that represents an
51            image.
52    
53            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
54            tag handler.
55            (SessionLoader.start_layer): Encode the filename.
56            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
57            New. Supports reading a rasterlayer tag.
58    
59            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
60    
61            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
62            get a string in Latin1. If we get such as string convert it to
63            unicode first, otherwise leave if alone before encoding.
64            (SessionSaver.write_layer): Add support for writing both Layers
65            and RasterLayers.
66    
67            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
68            The right argument may not be a string, it could also be a Column.
69    
70            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
71            Make initial window size 600x400. Fixes RTBug #1872.
72    
73            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
74            the dialog is constructed so that we can support layers that
75            do not have classifications.
76            (Classifier._OnTry): Only build a classification if the layer
77            supports one.
78    
79            * Thuban/UI/legend.py: Change all checks that a layer is an
80            instance of Layer into checks against BaseLayer.
81            (LegendTree.__FillTreeLayer): Only add children to a branch if
82            the layer supports classification.
83    
84            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
85            MainWindow.OpenSession): Don't proceed with an action if the
86            user chooses Cancel when they are asked to save changes.
87            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
88            user to select an image file. Create a new RasterLayer and add
89            it to the map.
90    
91            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
92            for rendering RasterLayer layers.
93            (MapRenderer.draw_raster_layer): Actually method that calls
94            the GDALWarp python wrapper and constructs an image from the
95            data returned.
96    
97            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
98            Choices symbols to match those used in the table query method.
99            Replace deprecated method calls on table with new method names.
100    
101            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
102            how small the scale can get. This still needs more testing.
103    
104            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
105            Provides a driver to output in .bmp format.
106    
107            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
108            New. Provides IO routines which write to memory, rather than a file.
109    
110            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
111            of the gdalwarp utility provided in GDAL. Added function calls
112            that can be accessed from python.
113    
114            * Data/iceland_sample_raster.thuban: New. Sample file that uses
115            a raster layer.
116    
117            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
118            layer image data.
119    
120            * Doc/thuban.dtd: Added rasterlayer attribute definition.
121    
122            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
123            tests associated with the raster layer code.
124    
125            * test/test_transientdb.py
126            (TestTransientTable.test_auto_transient_table_query): Added a test
127            for using a Column object as the "right" parameter to a query.
128    
129    2003-05-19  Frank Koormann  <[email protected]>
130    
131            * Thuban/version.py (get_changelog_date):
132            Catch exceptions if ChangeLog does not exist.
133    
134            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
135    
136    2003-05-19  Frank Koormann  <[email protected]>
137    
138            Extended version information for Thuban
139    
140            * Thuban/version.py: New, version information for Thuban: Last
141            modification date and last ChangeLog entry date.
142    
143            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
144            information: Display Thuban, wxPython and Python version.
145    
146    2003-05-16  Bernhard Herzog  <[email protected]>
147    
148            * Thuban/Model/save.py: Remove some unused imports including the
149            __future__ import for nested_scopes as Thuban relies on Python 2.2
150            now.
151            (XMLWriter.encode): Remove the special case for a None argument.
152            In the saver encode is always called with a string argument.
153    
154    2003-05-16  Bernhard Herzog  <[email protected]>
155    
156            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
157            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
158            of the bug was that e.g. float("1.2") would fail. Thuban now
159            requires 2.4.x.
160            
161    2003-05-16  Frank Koormann   <[email protected]>
162    
163            Printing enhancement and WMF export (under Win32)
164    
165            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
166            ScreenRenderer. Renders Map, Legend and Scalebar for export.
167            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
168            PrintRender.
169    
170            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
171            to fullfil information needed for PrinterRenderer.
172            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
173            (MapCanvas.Print): Adapted to new MapPrintout.
174            (OutputTransform): General calculations to transform from canvas
175            coordinates to export/printing devices.
176    
177            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
178            new method_command to call ExportMap, with platform dependency (only
179            __WXMSW__)
180      
181            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
182            of scalebar drawing area as new parameters.
183            
184            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
185    
186            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
187            Update to extended scalebar.DrawScalebar header.
188    
189            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
190    
191            * test/test_scalebar.py: Made test executable as standalone.
192    
193    2003-05-16  Bernhard Herzog  <[email protected]>
194    
195            * Thuban/Model/table.py (Table): Remove this compatibility alias
196            for DBFTable.
197    
198            * test/test_table.py: Import DBFTable as Table because that alias
199            doesn't exist anymore.
200    
201            * Thuban/UI/classgen.py: Remove some unused imports
202    
203    2003-05-14  Jonathan Coles   <[email protected]>
204    
205            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
206            Fix docstring.
207            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
208            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
209            values of the supplied range to determine the beginning and end
210            bounds of the generated classes.
211    
212            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
213            do not have a leading 0 (.5 is now accepted as well as 0.5).
214    
215            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
216            call to ClassGenerator.GenUniformDistribution.
217    
218            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
219            layout bug with the 'Projection' label.
220    
221            * test/support.py (FloatTestCase): New. Needed for the Range tests.
222    
223            * test/test_range.py: New. Imported from SciParam.
224    
225    2003-05-12  Jonathan Coles   <[email protected]>
226    
227            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
228            to table.UniqueValues() with calls that retrieve all the values
229            from the table. This will need to be replaced by a method on table
230            which can simply return the list (perhaps more efficiently).
231    
232    2003-05-12  Jonathan Coles   <[email protected]>
233    
234            The return value of ClassGenerator.CalculateQuantiles has changed.
235            Refer to the documentation for details.
236    
237            * test/test_classgen.py: Modified Quantile tests to use the
238            new return values.
239    
240            * Thuban/Model/classgen.py
241            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
242            use new return values from CalculateQuantiles to produce the correct
243            range bounds in the Classification.
244            (ClassGenerator.CalculateQuantiles): Add more comments describing
245            the return values and parameters. Make minor adjustments to improve
246            the legibility of the code. Fix problem with adjusted not being set
247            in most cases.
248    
249    2003-05-12  Frank Koormann <[email protected]>
250            
251            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
252            and latin1. Fixes #1851 finally.
253    
254    2003-05-09  Jonathan Coles   <[email protected]>
255    
256            * test/test_classgen.py: New. Tests the Quantile algorithm.
257    
258            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
259            Clean up debugging statement, add comments, fix a small bug in the
260            returned adjusted percentiles.
261            
262    2003-05-09  Jonathan Coles   <[email protected]>
263    
264            Introduces Range class from SciParam into the ClassGroupRange class,
265            and such ranges can now be saved and loaded from disk.
266    
267            Quantiles are now available in the Classification Generator.
268    
269            Initial support for building Queries on a table. Doesn't do anything
270            but run some tests.
271    
272            * Thuban/Model/classification.py: Explicit imports.
273            (ClassGroupRange): Use the Range class to store the underlying
274            range information. The interface remains the same, except for
275            GetRange(), and you can also supply a Range object as the min
276            parameter to SetRange or __init__.
277    
278            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
279            string appropriately for use in Thuban. Fixes RTbug #1851.
280            (SessionLoader.end_projection): Handle the context of the
281            projection tag a bit better by looking at what objects are not
282            None. There was an assumption that a projection tag for a map
283            could occur before any layers.
284            (SessionLoader.start_clrange): Provide backward compatibility for
285            reading min/max values as well as the new range parameter.
286    
287            * Thuban/Model/map.py: Explicit imports.
288    
289            * Thuban/Model/resource.py: Import _.
290            (ProjFileSaver.write): write header using projfile.dtd.
291    
292            * Thuban/Model/save.py: Explicit imports.
293            (XMLWriter.encode): New. Encode the given string from a format
294            used by Thuban into UTF-8. Fixes RTbug #1851.
295    
296            * Thuban/UI/classgen.py: Explicit imports.
297            (ClassGenDialog.__init__): Clean up the code and add support
298            for Quantiles.
299            (ClassGenDialog.OnOK): Add support for Quantiles.
300            (GenQuantilesPanel): New. Input panel for Quantiles.
301            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
302            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
303    
304            * Thuban/Model/classgen.py: New. Contains all the classes named above.
305    
306            * Thuban/UI/classifier.py: Explicit imports.
307            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
308            ClassTable.SetValueAsCustom): Reworked to use new Range class.
309    
310            * Thuban/UI/legend.py: Explicit imports.
311    
312            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
313            a Table menu and associated method calls.
314            (MainWindow.choose_color): Removed. No longer needed.
315    
316            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
317            should be disabled if no projection is selected in the available
318            list.
319    
320            * Thuban/UI/renderer.py: Explicit imports.
321    
322            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
323            with correctly selecting the rows and issuing the right events.
324            Be sure to call Skip() to allow the grid to do some of its own
325            handling which allows the rows to actually be selected.
326            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
327            selecting multiple shapes.
328            (LayerTableFrame): Support for building Queries.
329            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
330    
331            * Thuban/UI/tree.py: Explicit imports.
332    
333            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
334            table view can call it.
335    
336            * test/test_classification.py: Explicit imports.
337            (TestClassification.test_ClassGroupRange): Fix test for new
338            Range class.
339    
340            * Doc/thuban.dtd: Add range parameter for clrange.
341    
342            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
343            object in ClassGroupRange, and also uesd for inputting ranges in
344            the classifer table and elsewhere.
345    
346            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
347            yet.
348    
349    2003-05-09  Frank Koormann <[email protected]>
350    
351            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
352    
353    2003-05-08  Frank Koormann <[email protected]>
354    
355            Coding style updates
356    
357            * test/test_scalebar.py: Replaced tab indentation by spaces.
358    
359            * Thuban/UI/scalebar.py: Explicit imports.
360    
361    2003-05-08  Frank Koormann <[email protected]>
362    
363            * Thuban/UI/scalebar.py
364            (ScaleBar.DrawScalebar): Format string bug fixed.
365    
366    2003-05-08  Frank Koormann <[email protected]>
367    
368            Reorganization of scalebar component (no wx in Thuban/Model)
369    
370            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
371            (deriveInterval):
372            Calculate scalebar interval and unit which fits in width for scale.
373            (roundInterval): Round float.
374    
375            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
376    
377            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
378    
379            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
380    
381    2003-05-08  Frank Koormann <[email protected]>
382    
383            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
384            Initialize ScaleBar with canvas.map
385    
386            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
387            round intervals to display smarter lengths
388            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
389            layer. If the maps has no projection applied grey the scalebar.
390    
391    2003-05-07  Frank Koormann <[email protected]>
392            
393            Basic Scalebar features added.
394    
395            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
396    
397            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
398            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
399            and the renderer.
400    
401            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
402    
403            * Thuban/UI/messages.py: SCALE_CHANGED added.
404    
405    2003-05-07  Bernhard Herzog  <[email protected]>
406    
407            * Thuban/Model/session.py (Session.__init__): New instance
408            variable shapestores to hold a list of all open shapestore objects
409            (Session.ShapeStores): New. Accessor method for the shapestores
410            list.
411            (Session._add_shapestore, Session._clean_weak_store_refs): New.
412            Internal methods to maintain the shapestores list.
413            (Session.Tables): New. Return all tables open in the session.
414            (Session.OpenShapefile): Insert the new ShapeStore into the
415            shapestores list.
416    
417            * test/test_session.py (TestSessionSimple.test_initial_state): Add
418            tests for ShapeStores and Tables
419            (TestSessionWithContent.test_shape_stores)
420            (TestSessionWithContent.test_tables): New. Test cases for
421            ShapeStores and Tables
422    
423    2003-05-07  Bernhard Herzog  <[email protected]>
424    
425            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
426            Add comments about the optimizations used.
427            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
428            Implement the ReadValue table interface method.
429    
430            * test/test_transientdb.py
431            (TestTransientTable.run_iceland_political_tests)
432            (TestTransientTable.test_transient_joined_table): Add tests for
433            ReadValue
434    
435    2003-05-07  Frank Koormann <[email protected]>
436    
437            * Resources/Bitmaps/fulllayerextent.xpm,
438            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
439            new icons.
440    
441    2003-05-06  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
444            New. Simply delegate to the transient table's version.
445    
446            * test/test_transientdb.py
447            (TestTransientTable.test_auto_transient_table_query): New. Test
448            case for AutoTransientTable's SimpleQuery
449    
450    2003-05-06  Bernhard Herzog  <[email protected]>
451    
452            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
453            Implement a simple query method for the query dialog
454            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
455            the row index or shapeid.
456            (TransientTable.create): Insert the right value of the row index
457            (TransientJoinedTable.create): Copy the row index of the left
458            table to the joined result table
459    
460            * test/test_transientdb.py
461            (TestTransientTable.test_transient_table_read_twice): Fix
462            doc-string
463            (TestTransientTable.test_transient_table_query): New. Test for the
464            SimpleQuery method
465    
466    2003-05-06  Bernhard Herzog  <[email protected]>
467    
468            Convert all table users to use the new table interface. This only
469            covers Thuban itself, not GREAT-ER or other applications built on
470            Thuban yet, so the compatibility interface stays in place for the
471            time being but it now issues DeprecationWarnings.
472    
473            Finally, the new Table interface has a new method, HasColumn.
474    
475            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
476            issue deprecation warnings when they're. The warnings refer to the
477            caller of the method.
478            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
479            for the deprecation warnings
480    
481            * test/test_table.py: Ignore the deprecation warnings for the old
482            table in the tests in this module. The purpose of the tests is to
483            test the old interface, after all.
484    
485            * test/test_transientdb.py
486            (TestTransientTable.run_iceland_political_tests): Use the
487            constants for the types. Add a test for HasColumn
488            (TestTransientTable.test_transient_joined_table): Adapt to new
489            table interface. Add a test for HasColumn
490            (TestTransientTable.test_transient_table_read_twice): Adapt to new
491            table interface
492    
493            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
494            Adapt to new table interface
495    
496            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
497            new table interface
498    
499            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
500            (RecordTable.SetTable): Adapt to new table interface
501    
502            * Thuban/UI/classifier.py (Classifier.__init__)
503            (Classifier.__init__): Adapt to new table interface
504    
505            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
506            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
507            to new table interface
508    
509            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
510            (AutoTransientTable.HasColumn): Implement the new table interface
511            method
512            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
513            (AutoTransientTable.UniqueValues): Adapt to new table interface
514    
515            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
516            Adapt to new table interface
517    
518            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
519            simplify opening shapefiles a bit easier.
520            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
521            (TestLayer.test_point_layer): Use the new helper method
522            (TestLayer.test_get_field_type): New. Test for the GetFieldType
523            method
524    
525            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
526            the new table method
527    
528            * test/test_memory_table.py (TestMemoryTable.test_has_column):
529            Test for the new table method HasColumn
530    
531    2003-05-06  Jonathan Coles   <[email protected]>
532    
533            Addresses the "Selection Extent" wish of RTbug #1787.
534    
535            * Resources/Bitmaps/fulllayerextent.xpm,
536            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
537            extent. These are just place holders for the real bitmaps.
538    
539            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
540            calculate the bounding box once (the first time compute_bbox() is
541            called).
542            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
543            the bounding box for the shapes in lat/long coordinates.
544    
545            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
546            option.
547            (MainWindow.has_selected_shapes): New. Returns true if there are
548            any selected shapes.
549            (MainWindow.FullSelectionExtent): New. Calls
550            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
551            (_has_selected_shapes): New. Returns true if there are any
552            selected shapes.
553    
554            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
555            true if there are any selected shapes.
556    
557            * Thuban/UI/view.py (MapCanvas): Added delegated method
558            HasSelectedShapes.
559            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
560            shapes on the canvas using the map projection (if any).
561    
562            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
563            for Layer.ShapesBoundingBox().
564    
565    2003-05-06  Bernhard Herzog  <[email protected]>
566    
567            * Resources/Projections/defaults.proj: Fix spelling of Mercator
568    
569    2003-05-05  Jonathan Coles   <[email protected]>
570    
571            Addresses the "Full Layer Extent" wish of RTbug #1787.
572    
573            * Resources/Projections/defaults.proj: Added UK National Grid.
574    
575            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
576            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
577            when the user selects the menu option.
578    
579            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
580            scales the given layer on the canvas using the map projection.
581    
582    2003-05-05  Bernhard Herzog  <[email protected]>
583    
584            Convert the table implementations to a new table interface. All
585            tables use a common mixin class to provide backwards compatibility
586            until all table users have been updated.
587    
588            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
589            provide backwards compatibility for table classes implementing the
590            new interface
591            (DBFTable, MemoryTable): Implement the new table interface. Use
592            OldTableInterfaceMixin as base for compatibility
593            (DBFColumn, MemoryColumn): New. Column description for DBFTable
594            and MemoryTable resp.
595    
596            * test/test_dbf_table.py: New. Test cases for the DBFTable with
597            the new table interface.
598    
599            * test/test_memory_table.py: New. Test cases for the MemoryTable
600            with the new table interface.
601    
602            * test/test_table.py: Document the all tests in this file as only
603            for backwards compatibility. The equivalent tests for the new
604            interface are in test_memory_table.py and test_dbf_table.py
605            (MemoryTableTest.test_read): field_info should be returning tuples
606            with four items
607            (MemoryTableTest.test_write): Make doc-string a more precise.
608    
609            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
610            table interface. Derive from from OldTableInterfaceMixin for
611            compatibility.
612            (TransientTableBase.create): New intance variable column_map to
613            map from names and indices to column objects
614            (TransientTable.create): Use the new table interface of the input
615            table
616            (AutoTransientTable): Convert to new table interface. Derive from
617            from OldTableInterfaceMixin for compatibility.
618            (AutoTransientTable.write_record): Removed. It's not implemented
619            yet and we still have to decide how to handle writing with the new
620            table and data framework.
621    
622            * test/test_transientdb.py
623            (TestTransientTable.run_iceland_political_tests)
624            (TestTransientTable.test_transient_joined_table): Use the new
625            table interface
626    
627    2003-05-05  Jonathan Coles   <[email protected]>
628    
629            This is namely a collection of UI updates to improve user interactivity.
630            Tabbing between controls now exists and you can use ESC to close dialog
631            boxes; ENTER will active the default button.
632    
633            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
634            order that the controls are created so that tabbing works correctly.
635            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
636            wxDialog can handle the default button correctly.
637            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
638            same reasons as for OnOK.
639            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
640            when we ask the table for the maximum/minimum values of a field
641            which could take a very long time.
642    
643            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
644            order that the controls are created so that tabbing works correctly.
645            (SelectPropertiesDialog.__init__): Rearrange the order that the
646            controls are created so that tabbing works correctly.
647    
648            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
649            to derive from a wxDialog but behave like the original implementation
650            which was derived from a wxFrame. wxDialog provides useful key
651            handling functionality like ESC calling OnCancel and ENTER calling
652            OnOK which is lost with wxFrame.
653    
654            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
655            new dialogs.
656    
657            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
658            order that the controls are created so that tabbing works correctly.
659            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
660            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
661            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
662            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
663            can provide the "UK National Grid" as a default projection.
664            (UTMPanel.__init__): Rearrange the order that the controls are
665            created so that tabbing works correctly.
666    
667    2003-05-05  Bernhard Herzog  <[email protected]>
668    
669            * extensions/thuban/wxproj.cpp: Fix some of the comments.
670            (project_point): If a map projection but no layer projection is
671            given, convert degrees to radians before applying the map
672            projection.
673    
674            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
675            (TableGrid.allow_messages): New methods to make it possible to
676            inhibit message sending.
677            (TableGrid.issue): Only send the message if not inhibited.
678            (LayerTableGrid.select_shape): Use the new methods to make sure
679            that no ROW_SELECTED message is sent while we're updating the
680            selected rows to match the selected shapes.
681    
682    2003-05-02  Jan-Oliver Wagner <[email protected]>
683    
684            Implementation of MemoryTable.
685    
686            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
687            implementation that operates on a list of tuples. All of the data
688            are kept in the memory.
689    
690            * test/test_table.py (MemoryTableTest): New.
691    
692            * test/test_transientdb.py (SimpleTable): Removed.
693            (TestTransientTable.test_transient_joined_table,
694            (TestTransientTable.test_transient_table_read_twice): Replaced
695            SimpleTable by MemoryTable.
696    
697    2003-04-30  Jonathan Coles   <[email protected]>
698    
699            * Data/iceland_sample.thuban: Now contains correct projections
700            for each of the layers.
701    
702            * Resources/Projections/defaults.proj: Geographic projection
703            contains unit conversion parameter.
704    
705    2003-04-30  Jonathan Coles   <[email protected]>
706    
707            The most important part of this putback is the projection changes.
708            It should now be possible to specify the projection that a layer
709            is in and then specify a different projection for the map. The
710            projection dialog has an extra parameter for a geographic projection
711            which lets the user select if the input is in degrees or radians.
712    
713            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
714            to say that the parameter is a tuple of unprojected
715            points (which is what the callers to this method were assuming).
716            Also, since the points are unprojected we need to projected them.
717    
718            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
719            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
720            groups are selected, move the layer up/down. Fixes RTbug #1833.
721    
722            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
723    
724            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
725            parameter in call to SetClientData.
726            (GeoPanel): Add support for selecting the units that the
727            source data is in (Radians or Degrees).
728    
729            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
730            the rendering loop by reducing the number of if's, removing the
731            unnecessary try/except block, and checking if the old group
732            is the same as the new one (which happens a lot if there is
733            no classification, or lots of shapes are in the same group).
734    
735            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
736            around the redraw routine to try to catch problems that the user
737            may create by selecting invalid projections for the data set and
738            map. Clears the display if there are any problems and prints the
739            error.
740            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
741            rectangle.
742    
743            * extensions/thuban/wxproj.cpp (project_point): First invert the
744            supplied point (which should be in projected coordinates) using
745            the layer's projection and then project the point using the
746            map's projection.
747            (project_points): Use project_point() to project each point.
748    
749    2003-04-30  Jan-Oliver Wagner <[email protected]>
750    
751            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
752            don't set the Classification to None if the classfication field
753            is None (ie only a DEFAULT).
754    
755    2003-04-30  Bernhard Herzog  <[email protected]>
756    
757            * Thuban/UI/view.py: Fix some typos.
758    
759            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
760            not pop up the dialog if the selection becomes empty (this could
761            happen if e.g. a new selection is opened while the identify tool
762            is active and dialog had been closed)
763    
764    2003-04-30  Bernhard Herzog  <[email protected]>
765    
766            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
767            instance variable read_record_last_result
768            (TransientTableBase.read_record): Make sure reading the same
769            record twice works. The implementation uses the new instance
770            variable read_record_last_result
771    
772            * test/test_transientdb.py
773            (TestTransientTable.test_transient_table_read_twice): New test
774            case for the above bug-fix.
775    
776    2003-04-29  Jonathan Coles   <[email protected]>
777    
778            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
779    
780            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
781    
782            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
783            (ClassTable.SetValueAsCustom): Rename keyword argument in
784            ClassGroup* constructors to match argument name.
785    
786    2003-04-29  Bernhard Herzog  <[email protected]>
787    
788            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
789            transient DB if it exists to make sure it doesn't leave a journal
790            file in the temp directory.
791    
792            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
793            self.conn to None after closing the connection to make sure it's
794            not closed twice
795    
796    2003-04-29  Jonathan Coles   <[email protected]>
797    
798            Add a visible parameter in the layer XML tag. The default value is
799            "true". If anything other than "false" is specified we also assume
800            "true". Addresses RTbug #1025.
801    
802            * Doc/thuban.dtd: Add visible parameter to a layer.
803    
804            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
805            of visible from 1 to True.
806            (Layer.__init__): Change default value of visible from 1 to True.
807    
808            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
809            parameter.
810    
811            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
812            parameter.
813    
814            * test/test_load.py: Add new test data contents_test_visible.
815            (LoadSessionTest.setUp): save test data.
816            (LoadSessionTest.testLayerVisibility): Test if the visible flag
817            is loaded correctly.
818    
819            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
820            for saving an invisible layer.
821    
822    2003-04-29  Jonathan Coles   <[email protected]>
823    
824            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
825            legend dialog box and tell it to change its map to the one
826            supplied to SetMap(). Fixes RTbug #1770.
827    
828  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
829    
830          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 878 
878          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
879          session object alive for a long time.          session object alive for a long time.
880    
881  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
882    
883          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
884          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

Legend:
Removed from v.766  
changed lines
  Added in v.958

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26