/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.811  
changed lines
  Added in v.906

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26