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

Legend:
Removed from v.833  
changed lines
  Added in v.899

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26