/[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 848 by frank, Wed May 7 07:20:52 2003 UTC revision 908 by bh, Fri May 16 15:01:18 2003 UTC
# Line 1  Line 1 
1    2003-05-16  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/table.py (Table): Remove this compatibility alias
4            for DBFTable.
5    
6            * test/test_table.py: Import DBFTable as Table because that alias
7            doesn't exist anymore.
8    
9            * Thuban/UI/classgen.py: Remove some unused imports
10    
11    2003-05-14  Jonathan Coles   <[email protected]>
12    
13            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
14            Fix docstring.
15            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
16            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
17            values of the supplied range to determine the beginning and end
18            bounds of the generated classes.
19    
20            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
21            do not have a leading 0 (.5 is now accepted as well as 0.5).
22    
23            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
24            call to ClassGenerator.GenUniformDistribution.
25    
26            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
27            layout bug with the 'Projection' label.
28    
29            * test/support.py (FloatTestCase): New. Needed for the Range tests.
30    
31            * test/test_range.py: New. Imported from SciParam.
32    
33    2003-05-12  Jonathan Coles   <[email protected]>
34    
35            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
36            to table.UniqueValues() with calls that retrieve all the values
37            from the table. This will need to be replaced by a method on table
38            which can simply return the list (perhaps more efficiently).
39    
40    2003-05-12  Jonathan Coles   <[email protected]>
41    
42            The return value of ClassGenerator.CalculateQuantiles has changed.
43            Refer to the documentation for details.
44    
45            * test/test_classgen.py: Modified Quantile tests to use the
46            new return values.
47    
48            * Thuban/Model/classgen.py
49            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
50            use new return values from CalculateQuantiles to produce the correct
51            range bounds in the Classification.
52            (ClassGenerator.CalculateQuantiles): Add more comments describing
53            the return values and parameters. Make minor adjustments to improve
54            the legibility of the code. Fix problem with adjusted not being set
55            in most cases.
56    
57    2003-05-12  Frank Koormann <[email protected]>
58            
59            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
60            and latin1. Fixes #1851 finally.
61    
62    2003-05-09  Jonathan Coles   <[email protected]>
63    
64            * test/test_classgen.py: New. Tests the Quantile algorithm.
65    
66            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
67            Clean up debugging statement, add comments, fix a small bug in the
68            returned adjusted percentiles.
69            
70    2003-05-09  Jonathan Coles   <[email protected]>
71    
72            Introduces Range class from SciParam into the ClassGroupRange class,
73            and such ranges can now be saved and loaded from disk.
74    
75            Quantiles are now available in the Classification Generator.
76    
77            Initial support for building Queries on a table. Doesn't do anything
78            but run some tests.
79    
80            * Thuban/Model/classification.py: Explicit imports.
81            (ClassGroupRange): Use the Range class to store the underlying
82            range information. The interface remains the same, except for
83            GetRange(), and you can also supply a Range object as the min
84            parameter to SetRange or __init__.
85    
86            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
87            string appropriately for use in Thuban. Fixes RTbug #1851.
88            (SessionLoader.end_projection): Handle the context of the
89            projection tag a bit better by looking at what objects are not
90            None. There was an assumption that a projection tag for a map
91            could occur before any layers.
92            (SessionLoader.start_clrange): Provide backward compatibility for
93            reading min/max values as well as the new range parameter.
94    
95            * Thuban/Model/map.py: Explicit imports.
96    
97            * Thuban/Model/resource.py: Import _.
98            (ProjFileSaver.write): write header using projfile.dtd.
99    
100            * Thuban/Model/save.py: Explicit imports.
101            (XMLWriter.encode): New. Encode the given string from a format
102            used by Thuban into UTF-8. Fixes RTbug #1851.
103    
104            * Thuban/UI/classgen.py: Explicit imports.
105            (ClassGenDialog.__init__): Clean up the code and add support
106            for Quantiles.
107            (ClassGenDialog.OnOK): Add support for Quantiles.
108            (GenQuantilesPanel): New. Input panel for Quantiles.
109            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
110            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
111    
112            * Thuban/Model/classgen.py: New. Contains all the classes named above.
113    
114            * Thuban/UI/classifier.py: Explicit imports.
115            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
116            ClassTable.SetValueAsCustom): Reworked to use new Range class.
117    
118            * Thuban/UI/legend.py: Explicit imports.
119    
120            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
121            a Table menu and associated method calls.
122            (MainWindow.choose_color): Removed. No longer needed.
123    
124            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
125            should be disabled if no projection is selected in the available
126            list.
127    
128            * Thuban/UI/renderer.py: Explicit imports.
129    
130            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
131            with correctly selecting the rows and issuing the right events.
132            Be sure to call Skip() to allow the grid to do some of its own
133            handling which allows the rows to actually be selected.
134            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
135            selecting multiple shapes.
136            (LayerTableFrame): Support for building Queries.
137            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
138    
139            * Thuban/UI/tree.py: Explicit imports.
140    
141            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
142            table view can call it.
143    
144            * test/test_classification.py: Explicit imports.
145            (TestClassification.test_ClassGroupRange): Fix test for new
146            Range class.
147    
148            * Doc/thuban.dtd: Add range parameter for clrange.
149    
150            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
151            object in ClassGroupRange, and also uesd for inputting ranges in
152            the classifer table and elsewhere.
153    
154            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
155            yet.
156    
157    2003-05-09  Frank Koormann <[email protected]>
158    
159            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
160    
161    2003-05-08  Frank Koormann <[email protected]>
162    
163            Coding style updates
164    
165            * test/test_scalebar.py: Replaced tab indentation by spaces.
166    
167            * Thuban/UI/scalebar.py: Explicit imports.
168    
169    2003-05-08  Frank Koormann <[email protected]>
170    
171            * Thuban/UI/scalebar.py
172            (ScaleBar.DrawScalebar): Format string bug fixed.
173    
174    2003-05-08  Frank Koormann <[email protected]>
175    
176            Reorganization of scalebar component (no wx in Thuban/Model)
177    
178            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
179            (deriveInterval):
180            Calculate scalebar interval and unit which fits in width for scale.
181            (roundInterval): Round float.
182    
183            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
184    
185            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
186    
187            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
188    
189    2003-05-08  Frank Koormann <[email protected]>
190    
191            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
192            Initialize ScaleBar with canvas.map
193    
194            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
195            round intervals to display smarter lengths
196            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
197            layer. If the maps has no projection applied grey the scalebar.
198    
199    2003-05-07  Frank Koormann <[email protected]>
200            
201            Basic Scalebar features added.
202    
203            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
204    
205            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
206            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
207            and the renderer.
208    
209            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
210    
211            * Thuban/UI/messages.py: SCALE_CHANGED added.
212    
213    2003-05-07  Bernhard Herzog  <[email protected]>
214    
215            * Thuban/Model/session.py (Session.__init__): New instance
216            variable shapestores to hold a list of all open shapestore objects
217            (Session.ShapeStores): New. Accessor method for the shapestores
218            list.
219            (Session._add_shapestore, Session._clean_weak_store_refs): New.
220            Internal methods to maintain the shapestores list.
221            (Session.Tables): New. Return all tables open in the session.
222            (Session.OpenShapefile): Insert the new ShapeStore into the
223            shapestores list.
224    
225            * test/test_session.py (TestSessionSimple.test_initial_state): Add
226            tests for ShapeStores and Tables
227            (TestSessionWithContent.test_shape_stores)
228            (TestSessionWithContent.test_tables): New. Test cases for
229            ShapeStores and Tables
230    
231    2003-05-07  Bernhard Herzog  <[email protected]>
232    
233            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
234            Add comments about the optimizations used.
235            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
236            Implement the ReadValue table interface method.
237    
238            * test/test_transientdb.py
239            (TestTransientTable.run_iceland_political_tests)
240            (TestTransientTable.test_transient_joined_table): Add tests for
241            ReadValue
242    
243  2003-05-07  Frank Koormann <[email protected]>  2003-05-07  Frank Koormann <[email protected]>
244    
245          * Resources/Bitmaps/fulllayerextent.xpm,          * Resources/Bitmaps/fulllayerextent.xpm,

Legend:
Removed from v.848  
changed lines
  Added in v.908

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26