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