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