/[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 817 by jonathan, Mon May 5 15:05:36 2003 UTC revision 897 by jonathan, Mon May 12 11:21:25 2003 UTC
# Line 1  Line 1 
1    2003-05-12  Jonathan Coles   <[email protected]>
2    
3            The return value of ClassGenerator.CalculateQuantiles has changed.
4            Refer to the documentation for details.
5    
6            * test/test_classgen.py: Modified Quantile tests to use the
7            new return values.
8    
9            * Thuban/Model/classgen.py
10            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
11            use new return values from CalculateQuantiles to produce the correct
12            range bounds in the Classification.
13            (ClassGenerator.CalculateQuantiles): Add more comments describing
14            the return values and parameters. Make minor adjustments to improve
15            the legibility of the code. Fix problem with adjusted not being set
16            in most cases.
17    
18    2003-05-12  Frank Koormann <[email protected]>
19            
20            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
21            and latin1. Fixes #1851 finally.
22    
23    2003-05-09  Jonathan Coles   <[email protected]>
24    
25            * test/test_classgen.py: New. Tests the Quantile algorithm.
26    
27            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
28            Clean up debugging statement, add comments, fix a small bug in the
29            returned adjusted percentiles.
30            
31    2003-05-09  Jonathan Coles   <[email protected]>
32    
33            Introduces Range class from SciParam into the ClassGroupRange class,
34            and such ranges can now be saved and loaded from disk.
35    
36            Quantiles are now available in the Classification Generator.
37    
38            Initial support for building Queries on a table. Doesn't do anything
39            but run some tests.
40    
41            * Thuban/Model/classification.py: Explicit imports.
42            (ClassGroupRange): Use the Range class to store the underlying
43            range information. The interface remains the same, except for
44            GetRange(), and you can also supply a Range object as the min
45            parameter to SetRange or __init__.
46    
47            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
48            string appropriately for use in Thuban. Fixes RTbug #1851.
49            (SessionLoader.end_projection): Handle the context of the
50            projection tag a bit better by looking at what objects are not
51            None. There was an assumption that a projection tag for a map
52            could occur before any layers.
53            (SessionLoader.start_clrange): Provide backward compatibility for
54            reading min/max values as well as the new range parameter.
55    
56            * Thuban/Model/map.py: Explicit imports.
57    
58            * Thuban/Model/resource.py: Import _.
59            (ProjFileSaver.write): write header using projfile.dtd.
60    
61            * Thuban/Model/save.py: Explicit imports.
62            (XMLWriter.encode): New. Encode the given string from a format
63            used by Thuban into UTF-8. Fixes RTbug #1851.
64    
65            * Thuban/UI/classgen.py: Explicit imports.
66            (ClassGenDialog.__init__): Clean up the code and add support
67            for Quantiles.
68            (ClassGenDialog.OnOK): Add support for Quantiles.
69            (GenQuantilesPanel): New. Input panel for Quantiles.
70            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
71            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
72    
73            * Thuban/Model/classgen.py: New. Contains all the classes named above.
74    
75            * Thuban/UI/classifier.py: Explicit imports.
76            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
77            ClassTable.SetValueAsCustom): Reworked to use new Range class.
78    
79            * Thuban/UI/legend.py: Explicit imports.
80    
81            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
82            a Table menu and associated method calls.
83            (MainWindow.choose_color): Removed. No longer needed.
84    
85            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
86            should be disabled if no projection is selected in the available
87            list.
88    
89            * Thuban/UI/renderer.py: Explicit imports.
90    
91            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
92            with correctly selecting the rows and issuing the right events.
93            Be sure to call Skip() to allow the grid to do some of its own
94            handling which allows the rows to actually be selected.
95            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
96            selecting multiple shapes.
97            (LayerTableFrame): Support for building Queries.
98            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
99    
100            * Thuban/UI/tree.py: Explicit imports.
101    
102            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
103            table view can call it.
104    
105            * test/test_classification.py: Explicit imports.
106            (TestClassification.test_ClassGroupRange): Fix test for new
107            Range class.
108    
109            * Doc/thuban.dtd: Add range parameter for clrange.
110    
111            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
112            object in ClassGroupRange, and also uesd for inputting ranges in
113            the classifer table and elsewhere.
114    
115            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
116            yet.
117    
118    2003-05-09  Frank Koormann <[email protected]>
119    
120            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
121    
122    2003-05-08  Frank Koormann <[email protected]>
123    
124            Coding style updates
125    
126            * test/test_scalebar.py: Replaced tab indentation by spaces.
127    
128            * Thuban/UI/scalebar.py: Explicit imports.
129    
130    2003-05-08  Frank Koormann <[email protected]>
131    
132            * Thuban/UI/scalebar.py
133            (ScaleBar.DrawScalebar): Format string bug fixed.
134    
135    2003-05-08  Frank Koormann <[email protected]>
136    
137            Reorganization of scalebar component (no wx in Thuban/Model)
138    
139            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
140            (deriveInterval):
141            Calculate scalebar interval and unit which fits in width for scale.
142            (roundInterval): Round float.
143    
144            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
145    
146            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
147    
148            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
149    
150    2003-05-08  Frank Koormann <[email protected]>
151    
152            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
153            Initialize ScaleBar with canvas.map
154    
155            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
156            round intervals to display smarter lengths
157            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
158            layer. If the maps has no projection applied grey the scalebar.
159    
160    2003-05-07  Frank Koormann <[email protected]>
161            
162            Basic Scalebar features added.
163    
164            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
165    
166            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
167            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
168            and the renderer.
169    
170            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
171    
172            * Thuban/UI/messages.py: SCALE_CHANGED added.
173    
174    2003-05-07  Bernhard Herzog  <[email protected]>
175    
176            * Thuban/Model/session.py (Session.__init__): New instance
177            variable shapestores to hold a list of all open shapestore objects
178            (Session.ShapeStores): New. Accessor method for the shapestores
179            list.
180            (Session._add_shapestore, Session._clean_weak_store_refs): New.
181            Internal methods to maintain the shapestores list.
182            (Session.Tables): New. Return all tables open in the session.
183            (Session.OpenShapefile): Insert the new ShapeStore into the
184            shapestores list.
185    
186            * test/test_session.py (TestSessionSimple.test_initial_state): Add
187            tests for ShapeStores and Tables
188            (TestSessionWithContent.test_shape_stores)
189            (TestSessionWithContent.test_tables): New. Test cases for
190            ShapeStores and Tables
191    
192    2003-05-07  Bernhard Herzog  <[email protected]>
193    
194            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
195            Add comments about the optimizations used.
196            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
197            Implement the ReadValue table interface method.
198    
199            * test/test_transientdb.py
200            (TestTransientTable.run_iceland_political_tests)
201            (TestTransientTable.test_transient_joined_table): Add tests for
202            ReadValue
203    
204    2003-05-07  Frank Koormann <[email protected]>
205    
206            * Resources/Bitmaps/fulllayerextent.xpm,
207            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
208            new icons.
209    
210    2003-05-06  Bernhard Herzog  <[email protected]>
211    
212            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
213            New. Simply delegate to the transient table's version.
214    
215            * test/test_transientdb.py
216            (TestTransientTable.test_auto_transient_table_query): New. Test
217            case for AutoTransientTable's SimpleQuery
218    
219    2003-05-06  Bernhard Herzog  <[email protected]>
220    
221            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
222            Implement a simple query method for the query dialog
223            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
224            the row index or shapeid.
225            (TransientTable.create): Insert the right value of the row index
226            (TransientJoinedTable.create): Copy the row index of the left
227            table to the joined result table
228    
229            * test/test_transientdb.py
230            (TestTransientTable.test_transient_table_read_twice): Fix
231            doc-string
232            (TestTransientTable.test_transient_table_query): New. Test for the
233            SimpleQuery method
234    
235    2003-05-06  Bernhard Herzog  <[email protected]>
236    
237            Convert all table users to use the new table interface. This only
238            covers Thuban itself, not GREAT-ER or other applications built on
239            Thuban yet, so the compatibility interface stays in place for the
240            time being but it now issues DeprecationWarnings.
241    
242            Finally, the new Table interface has a new method, HasColumn.
243    
244            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
245            issue deprecation warnings when they're. The warnings refer to the
246            caller of the method.
247            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
248            for the deprecation warnings
249    
250            * test/test_table.py: Ignore the deprecation warnings for the old
251            table in the tests in this module. The purpose of the tests is to
252            test the old interface, after all.
253    
254            * test/test_transientdb.py
255            (TestTransientTable.run_iceland_political_tests): Use the
256            constants for the types. Add a test for HasColumn
257            (TestTransientTable.test_transient_joined_table): Adapt to new
258            table interface. Add a test for HasColumn
259            (TestTransientTable.test_transient_table_read_twice): Adapt to new
260            table interface
261    
262            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
263            Adapt to new table interface
264    
265            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
266            new table interface
267    
268            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
269            (RecordTable.SetTable): Adapt to new table interface
270    
271            * Thuban/UI/classifier.py (Classifier.__init__)
272            (Classifier.__init__): Adapt to new table interface
273    
274            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
275            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
276            to new table interface
277    
278            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
279            (AutoTransientTable.HasColumn): Implement the new table interface
280            method
281            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
282            (AutoTransientTable.UniqueValues): Adapt to new table interface
283    
284            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
285            Adapt to new table interface
286    
287            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
288            simplify opening shapefiles a bit easier.
289            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
290            (TestLayer.test_point_layer): Use the new helper method
291            (TestLayer.test_get_field_type): New. Test for the GetFieldType
292            method
293    
294            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
295            the new table method
296    
297            * test/test_memory_table.py (TestMemoryTable.test_has_column):
298            Test for the new table method HasColumn
299    
300    2003-05-06  Jonathan Coles   <[email protected]>
301    
302            Addresses the "Selection Extent" wish of RTbug #1787.
303    
304            * Resources/Bitmaps/fulllayerextent.xpm,
305            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
306            extent. These are just place holders for the real bitmaps.
307    
308            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
309            calculate the bounding box once (the first time compute_bbox() is
310            called).
311            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
312            the bounding box for the shapes in lat/long coordinates.
313    
314            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
315            option.
316            (MainWindow.has_selected_shapes): New. Returns true if there are
317            any selected shapes.
318            (MainWindow.FullSelectionExtent): New. Calls
319            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
320            (_has_selected_shapes): New. Returns true if there are any
321            selected shapes.
322    
323            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
324            true if there are any selected shapes.
325    
326            * Thuban/UI/view.py (MapCanvas): Added delegated method
327            HasSelectedShapes.
328            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
329            shapes on the canvas using the map projection (if any).
330    
331            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
332            for Layer.ShapesBoundingBox().
333    
334    2003-05-06  Bernhard Herzog  <[email protected]>
335    
336            * Resources/Projections/defaults.proj: Fix spelling of Mercator
337    
338    2003-05-05  Jonathan Coles   <[email protected]>
339    
340            Addresses the "Full Layer Extent" wish of RTbug #1787.
341    
342            * Resources/Projections/defaults.proj: Added UK National Grid.
343    
344            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
345            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
346            when the user selects the menu option.
347    
348            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
349            scales the given layer on the canvas using the map projection.
350    
351    2003-05-05  Bernhard Herzog  <[email protected]>
352    
353            Convert the table implementations to a new table interface. All
354            tables use a common mixin class to provide backwards compatibility
355            until all table users have been updated.
356    
357            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
358            provide backwards compatibility for table classes implementing the
359            new interface
360            (DBFTable, MemoryTable): Implement the new table interface. Use
361            OldTableInterfaceMixin as base for compatibility
362            (DBFColumn, MemoryColumn): New. Column description for DBFTable
363            and MemoryTable resp.
364    
365            * test/test_dbf_table.py: New. Test cases for the DBFTable with
366            the new table interface.
367    
368            * test/test_memory_table.py: New. Test cases for the MemoryTable
369            with the new table interface.
370    
371            * test/test_table.py: Document the all tests in this file as only
372            for backwards compatibility. The equivalent tests for the new
373            interface are in test_memory_table.py and test_dbf_table.py
374            (MemoryTableTest.test_read): field_info should be returning tuples
375            with four items
376            (MemoryTableTest.test_write): Make doc-string a more precise.
377    
378            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
379            table interface. Derive from from OldTableInterfaceMixin for
380            compatibility.
381            (TransientTableBase.create): New intance variable column_map to
382            map from names and indices to column objects
383            (TransientTable.create): Use the new table interface of the input
384            table
385            (AutoTransientTable): Convert to new table interface. Derive from
386            from OldTableInterfaceMixin for compatibility.
387            (AutoTransientTable.write_record): Removed. It's not implemented
388            yet and we still have to decide how to handle writing with the new
389            table and data framework.
390    
391            * test/test_transientdb.py
392            (TestTransientTable.run_iceland_political_tests)
393            (TestTransientTable.test_transient_joined_table): Use the new
394            table interface
395    
396  2003-05-05  Jonathan Coles   <[email protected]>  2003-05-05  Jonathan Coles   <[email protected]>
397    
398          This is namely a collection of UI updates to improve user interactivity.          This is namely a collection of UI updates to improve user interactivity.

Legend:
Removed from v.817  
changed lines
  Added in v.897

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26