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

Legend:
Removed from v.734  
changed lines
  Added in v.949

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26