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