1 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
4 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
5 |
|
Added 'Gauss Krueger Zone 6'. |
6 |
|
|
7 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
8 |
|
filled transparent to have the raster image visible at once. |
9 |
|
|
10 |
|
2003-05-21 Frank Koormann <[email protected]> |
11 |
|
|
12 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
13 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
14 |
|
still uses "underscored" names. |
15 |
|
|
16 |
|
2003-05-20 Jonathan Coles <[email protected]> |
17 |
|
|
18 |
|
This puts back Raster layer support. These layers support projections |
19 |
|
through the GDAL library. Currently, the CVS version is being used. |
20 |
|
There are no Debian packages available although this may change soon. |
21 |
|
A GDAL driver was extended to support writing to memory rather to |
22 |
|
files. |
23 |
|
|
24 |
|
There is still some work that needs to be done, such as some error |
25 |
|
handling when loading invalid images or when there is a problem |
26 |
|
projecting the image. This putback simply checks in the majority |
27 |
|
of the work. |
28 |
|
|
29 |
|
* setup.py: Add gdalwarp library extension. |
30 |
|
|
31 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
32 |
|
Defaults to False, but can be overridden by subclasses if they |
33 |
|
support classification. |
34 |
|
(RasterLayer): New. Defines a new layer that represents an |
35 |
|
image. |
36 |
|
|
37 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
38 |
|
tag handler. |
39 |
|
(SessionLoader.start_layer): Encode the filename. |
40 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
41 |
|
New. Supports reading a rasterlayer tag. |
42 |
|
|
43 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
44 |
|
|
45 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
46 |
|
get a string in Latin1. If we get such as string convert it to |
47 |
|
unicode first, otherwise leave if alone before encoding. |
48 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
49 |
|
and RasterLayers. |
50 |
|
|
51 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
52 |
|
The right argument may not be a string, it could also be a Column. |
53 |
|
|
54 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
55 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
56 |
|
|
57 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
58 |
|
the dialog is constructed so that we can support layers that |
59 |
|
do not have classifications. |
60 |
|
(Classifier._OnTry): Only build a classification if the layer |
61 |
|
supports one. |
62 |
|
|
63 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
64 |
|
instance of Layer into checks against BaseLayer. |
65 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
66 |
|
the layer supports classification. |
67 |
|
|
68 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
69 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
70 |
|
user chooses Cancel when they are asked to save changes. |
71 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
72 |
|
user to select an image file. Create a new RasterLayer and add |
73 |
|
it to the map. |
74 |
|
|
75 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
76 |
|
for rendering RasterLayer layers. |
77 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
78 |
|
the GDALWarp python wrapper and constructs an image from the |
79 |
|
data returned. |
80 |
|
|
81 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
82 |
|
Choices symbols to match those used in the table query method. |
83 |
|
Replace deprecated method calls on table with new method names. |
84 |
|
|
85 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
86 |
|
how small the scale can get. This still needs more testing. |
87 |
|
|
88 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
89 |
|
Provides a driver to output in .bmp format. |
90 |
|
|
91 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
92 |
|
New. Provides IO routines which write to memory, rather than a file. |
93 |
|
|
94 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
95 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
96 |
|
that can be accessed from python. |
97 |
|
|
98 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
99 |
|
a raster layer. |
100 |
|
|
101 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
102 |
|
layer image data. |
103 |
|
|
104 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
105 |
|
|
106 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
107 |
|
tests associated with the raster layer code. |
108 |
|
|
109 |
|
* test/test_transientdb.py |
110 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
111 |
|
for using a Column object as the "right" parameter to a query. |
112 |
|
|
113 |
|
2003-05-19 Frank Koormann <[email protected]> |
114 |
|
|
115 |
|
* Thuban/version.py (get_changelog_date): |
116 |
|
Catch exceptions if ChangeLog does not exist. |
117 |
|
|
118 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
119 |
|
|
120 |
|
2003-05-19 Frank Koormann <[email protected]> |
121 |
|
|
122 |
|
Extended version information for Thuban |
123 |
|
|
124 |
|
* Thuban/version.py: New, version information for Thuban: Last |
125 |
|
modification date and last ChangeLog entry date. |
126 |
|
|
127 |
|
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
128 |
|
information: Display Thuban, wxPython and Python version. |
129 |
|
|
130 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* Thuban/Model/save.py: Remove some unused imports including the |
133 |
|
__future__ import for nested_scopes as Thuban relies on Python 2.2 |
134 |
|
now. |
135 |
|
(XMLWriter.encode): Remove the special case for a None argument. |
136 |
|
In the saver encode is always called with a string argument. |
137 |
|
|
138 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
* Thuban/UI/__init__.py: Remove the work-around for the locale bug |
141 |
|
in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom |
142 |
|
of the bug was that e.g. float("1.2") would fail. Thuban now |
143 |
|
requires 2.4.x. |
144 |
|
|
145 |
|
2003-05-16 Frank Koormann <[email protected]> |
146 |
|
|
147 |
|
Printing enhancement and WMF export (under Win32) |
148 |
|
|
149 |
|
* Thuban/UI/renderer.py (ExportRenderer): New, derived from |
150 |
|
ScreenRenderer. Renders Map, Legend and Scalebar for export. |
151 |
|
(PrinterRenderer): New, derived from ExportRenderer. Replaces the old |
152 |
|
PrintRender. |
153 |
|
|
154 |
|
* Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set |
155 |
|
to fullfil information needed for PrinterRenderer. |
156 |
|
(MapCanvas.Export): New. Export Map (currently only to WMF on Win32). |
157 |
|
(MapCanvas.Print): Adapted to new MapPrintout. |
158 |
|
(OutputTransform): General calculations to transform from canvas |
159 |
|
coordinates to export/printing devices. |
160 |
|
|
161 |
|
* Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also |
162 |
|
new method_command to call ExportMap, with platform dependency (only |
163 |
|
__WXMSW__) |
164 |
|
|
165 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size |
166 |
|
of scalebar drawing area as new parameters. |
167 |
|
|
168 |
|
* Thuban/Model/scalebar.py (roundInterval): round long instead of int |
169 |
|
|
170 |
|
* Thuban/UI/legend.py (ScalebarBitmap.__SetScale): |
171 |
|
Update to extended scalebar.DrawScalebar header. |
172 |
|
|
173 |
|
* test/test_export.py: New, test Thuban.UI.view.OutputTransform() |
174 |
|
|
175 |
|
* test/test_scalebar.py: Made test executable as standalone. |
176 |
|
|
177 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
178 |
|
|
179 |
|
* Thuban/Model/table.py (Table): Remove this compatibility alias |
180 |
|
for DBFTable. |
181 |
|
|
182 |
|
* test/test_table.py: Import DBFTable as Table because that alias |
183 |
|
doesn't exist anymore. |
184 |
|
|
185 |
|
* Thuban/UI/classgen.py: Remove some unused imports |
186 |
|
|
187 |
|
2003-05-14 Jonathan Coles <[email protected]> |
188 |
|
|
189 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList): |
190 |
|
Fix docstring. |
191 |
|
(ClassGenerator.GenUniformDistribution): Fix spelling of method name. |
192 |
|
(ClassGenerator.GenQuantiles): Use the left/right brackets and min/max |
193 |
|
values of the supplied range to determine the beginning and end |
194 |
|
bounds of the generated classes. |
195 |
|
|
196 |
|
* Thuban/Model/range.py (Range.number_re): Now accepts floats that |
197 |
|
do not have a leading 0 (.5 is now accepted as well as 0.5). |
198 |
|
|
199 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method |
200 |
|
call to ClassGenerator.GenUniformDistribution. |
201 |
|
|
202 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows |
203 |
|
layout bug with the 'Projection' label. |
204 |
|
|
205 |
|
* test/support.py (FloatTestCase): New. Needed for the Range tests. |
206 |
|
|
207 |
|
* test/test_range.py: New. Imported from SciParam. |
208 |
|
|
209 |
|
2003-05-12 Jonathan Coles <[email protected]> |
210 |
|
|
211 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
212 |
|
to table.UniqueValues() with calls that retrieve all the values |
213 |
|
from the table. This will need to be replaced by a method on table |
214 |
|
which can simply return the list (perhaps more efficiently). |
215 |
|
|
216 |
|
2003-05-12 Jonathan Coles <[email protected]> |
217 |
|
|
218 |
|
The return value of ClassGenerator.CalculateQuantiles has changed. |
219 |
|
Refer to the documentation for details. |
220 |
|
|
221 |
|
* test/test_classgen.py: Modified Quantile tests to use the |
222 |
|
new return values. |
223 |
|
|
224 |
|
* Thuban/Model/classgen.py |
225 |
|
(ClassGenerator.GenQuantiles): Add comments describing the parameters, |
226 |
|
use new return values from CalculateQuantiles to produce the correct |
227 |
|
range bounds in the Classification. |
228 |
|
(ClassGenerator.CalculateQuantiles): Add more comments describing |
229 |
|
the return values and parameters. Make minor adjustments to improve |
230 |
|
the legibility of the code. Fix problem with adjusted not being set |
231 |
|
in most cases. |
232 |
|
|
233 |
|
2003-05-12 Frank Koormann <[email protected]> |
234 |
|
|
235 |
|
* Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode |
236 |
|
and latin1. Fixes #1851 finally. |
237 |
|
|
238 |
|
2003-05-09 Jonathan Coles <[email protected]> |
239 |
|
|
240 |
|
* test/test_classgen.py: New. Tests the Quantile algorithm. |
241 |
|
|
242 |
|
* Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles): |
243 |
|
Clean up debugging statement, add comments, fix a small bug in the |
244 |
|
returned adjusted percentiles. |
245 |
|
|
246 |
|
2003-05-09 Jonathan Coles <[email protected]> |
247 |
|
|
248 |
|
Introduces Range class from SciParam into the ClassGroupRange class, |
249 |
|
and such ranges can now be saved and loaded from disk. |
250 |
|
|
251 |
|
Quantiles are now available in the Classification Generator. |
252 |
|
|
253 |
|
Initial support for building Queries on a table. Doesn't do anything |
254 |
|
but run some tests. |
255 |
|
|
256 |
|
* Thuban/Model/classification.py: Explicit imports. |
257 |
|
(ClassGroupRange): Use the Range class to store the underlying |
258 |
|
range information. The interface remains the same, except for |
259 |
|
GetRange(), and you can also supply a Range object as the min |
260 |
|
parameter to SetRange or __init__. |
261 |
|
|
262 |
|
* Thuban/Model/load.py (XMLReader.encode): New. Encodes the given |
263 |
|
string appropriately for use in Thuban. Fixes RTbug #1851. |
264 |
|
(SessionLoader.end_projection): Handle the context of the |
265 |
|
projection tag a bit better by looking at what objects are not |
266 |
|
None. There was an assumption that a projection tag for a map |
267 |
|
could occur before any layers. |
268 |
|
(SessionLoader.start_clrange): Provide backward compatibility for |
269 |
|
reading min/max values as well as the new range parameter. |
270 |
|
|
271 |
|
* Thuban/Model/map.py: Explicit imports. |
272 |
|
|
273 |
|
* Thuban/Model/resource.py: Import _. |
274 |
|
(ProjFileSaver.write): write header using projfile.dtd. |
275 |
|
|
276 |
|
* Thuban/Model/save.py: Explicit imports. |
277 |
|
(XMLWriter.encode): New. Encode the given string from a format |
278 |
|
used by Thuban into UTF-8. Fixes RTbug #1851. |
279 |
|
|
280 |
|
* Thuban/UI/classgen.py: Explicit imports. |
281 |
|
(ClassGenDialog.__init__): Clean up the code and add support |
282 |
|
for Quantiles. |
283 |
|
(ClassGenDialog.OnOK): Add support for Quantiles. |
284 |
|
(GenQuantilesPanel): New. Input panel for Quantiles. |
285 |
|
(ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, |
286 |
|
GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py |
287 |
|
|
288 |
|
* Thuban/Model/classgen.py: New. Contains all the classes named above. |
289 |
|
|
290 |
|
* Thuban/UI/classifier.py: Explicit imports. |
291 |
|
(ClassTable.GetValueAsCust, ClassTable.__ParseInput, |
292 |
|
ClassTable.SetValueAsCustom): Reworked to use new Range class. |
293 |
|
|
294 |
|
* Thuban/UI/legend.py: Explicit imports. |
295 |
|
|
296 |
|
* Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added |
297 |
|
a Table menu and associated method calls. |
298 |
|
(MainWindow.choose_color): Removed. No longer needed. |
299 |
|
|
300 |
|
* Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button |
301 |
|
should be disabled if no projection is selected in the available |
302 |
|
list. |
303 |
|
|
304 |
|
* Thuban/UI/renderer.py: Explicit imports. |
305 |
|
|
306 |
|
* Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues |
307 |
|
with correctly selecting the rows and issuing the right events. |
308 |
|
Be sure to call Skip() to allow the grid to do some of its own |
309 |
|
handling which allows the rows to actually be selected. |
310 |
|
(LayerTableGrid.select_shapes): Rename from select_shape. Supports |
311 |
|
selecting multiple shapes. |
312 |
|
(LayerTableFrame): Support for building Queries. |
313 |
|
(LayerTableFrame.select_shapes): Allow multiple shapes to be selected. |
314 |
|
|
315 |
|
* Thuban/UI/tree.py: Explicit imports. |
316 |
|
|
317 |
|
* Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the |
318 |
|
table view can call it. |
319 |
|
|
320 |
|
* test/test_classification.py: Explicit imports. |
321 |
|
(TestClassification.test_ClassGroupRange): Fix test for new |
322 |
|
Range class. |
323 |
|
|
324 |
|
* Doc/thuban.dtd: Add range parameter for clrange. |
325 |
|
|
326 |
|
* Thuban/Model/range.py: Taken from SciParam. Used as the underlying |
327 |
|
object in ClassGroupRange, and also uesd for inputting ranges in |
328 |
|
the classifer table and elsewhere. |
329 |
|
|
330 |
|
* Thuban/UI/join.py: New. Initial Join dialog. No real functionality |
331 |
|
yet. |
332 |
|
|
333 |
|
2003-05-09 Frank Koormann <[email protected]> |
334 |
|
|
335 |
|
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |
336 |
|
|
337 |
|
2003-05-08 Frank Koormann <[email protected]> |
338 |
|
|
339 |
|
Coding style updates |
340 |
|
|
341 |
|
* test/test_scalebar.py: Replaced tab indentation by spaces. |
342 |
|
|
343 |
|
* Thuban/UI/scalebar.py: Explicit imports. |
344 |
|
|
345 |
|
2003-05-08 Frank Koormann <[email protected]> |
346 |
|
|
347 |
|
* Thuban/UI/scalebar.py |
348 |
|
(ScaleBar.DrawScalebar): Format string bug fixed. |
349 |
|
|
350 |
|
2003-05-08 Frank Koormann <[email protected]> |
351 |
|
|
352 |
|
Reorganization of scalebar component (no wx in Thuban/Model) |
353 |
|
|
354 |
|
* Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py |
355 |
|
(deriveInterval): |
356 |
|
Calculate scalebar interval and unit which fits in width for scale. |
357 |
|
(roundInterval): Round float. |
358 |
|
|
359 |
|
* Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering |
360 |
|
|
361 |
|
* test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods. |
362 |
|
|
363 |
|
* Thuban/UI/legend.py: Import Thuban.UI.scalebar |
364 |
|
|
365 |
|
2003-05-08 Frank Koormann <[email protected]> |
366 |
|
|
367 |
|
* Thuban/UI/legend.py (ScalebarBitmap.SetCanvas): |
368 |
|
Initialize ScaleBar with canvas.map |
369 |
|
|
370 |
|
* Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New, |
371 |
|
round intervals to display smarter lengths |
372 |
|
(ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a |
373 |
|
layer. If the maps has no projection applied grey the scalebar. |
374 |
|
|
375 |
|
2003-05-07 Frank Koormann <[email protected]> |
376 |
|
|
377 |
|
Basic Scalebar features added. |
378 |
|
|
379 |
|
* Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering. |
380 |
|
|
381 |
|
* Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap |
382 |
|
(ScaleBarBitmap): New, links the scalebar bitmap with view messages |
383 |
|
and the renderer. |
384 |
|
|
385 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED. |
386 |
|
|
387 |
|
* Thuban/UI/messages.py: SCALE_CHANGED added. |
388 |
|
|
389 |
|
2003-05-07 Bernhard Herzog <[email protected]> |
390 |
|
|
391 |
|
* Thuban/Model/session.py (Session.__init__): New instance |
392 |
|
variable shapestores to hold a list of all open shapestore objects |
393 |
|
(Session.ShapeStores): New. Accessor method for the shapestores |
394 |
|
list. |
395 |
|
(Session._add_shapestore, Session._clean_weak_store_refs): New. |
396 |
|
Internal methods to maintain the shapestores list. |
397 |
|
(Session.Tables): New. Return all tables open in the session. |
398 |
|
(Session.OpenShapefile): Insert the new ShapeStore into the |
399 |
|
shapestores list. |
400 |
|
|
401 |
|
* test/test_session.py (TestSessionSimple.test_initial_state): Add |
402 |
|
tests for ShapeStores and Tables |
403 |
|
(TestSessionWithContent.test_shape_stores) |
404 |
|
(TestSessionWithContent.test_tables): New. Test cases for |
405 |
|
ShapeStores and Tables |
406 |
|
|
407 |
|
2003-05-07 Bernhard Herzog <[email protected]> |
408 |
|
|
409 |
|
* Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict): |
410 |
|
Add comments about the optimizations used. |
411 |
|
(AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New. |
412 |
|
Implement the ReadValue table interface method. |
413 |
|
|
414 |
|
* test/test_transientdb.py |
415 |
|
(TestTransientTable.run_iceland_political_tests) |
416 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
417 |
|
ReadValue |
418 |
|
|
419 |
|
2003-05-07 Frank Koormann <[email protected]> |
420 |
|
|
421 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
422 |
|
Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with |
423 |
|
new icons. |
424 |
|
|
425 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
426 |
|
|
427 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
428 |
|
New. Simply delegate to the transient table's version. |
429 |
|
|
430 |
|
* test/test_transientdb.py |
431 |
|
(TestTransientTable.test_auto_transient_table_query): New. Test |
432 |
|
case for AutoTransientTable's SimpleQuery |
433 |
|
|
434 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
435 |
|
|
436 |
|
* Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery): |
437 |
|
Implement a simple query method for the query dialog |
438 |
|
(TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds |
439 |
|
the row index or shapeid. |
440 |
|
(TransientTable.create): Insert the right value of the row index |
441 |
|
(TransientJoinedTable.create): Copy the row index of the left |
442 |
|
table to the joined result table |
443 |
|
|
444 |
|
* test/test_transientdb.py |
445 |
|
(TestTransientTable.test_transient_table_read_twice): Fix |
446 |
|
doc-string |
447 |
|
(TestTransientTable.test_transient_table_query): New. Test for the |
448 |
|
SimpleQuery method |
449 |
|
|
450 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
451 |
|
|
452 |
|
Convert all table users to use the new table interface. This only |
453 |
|
covers Thuban itself, not GREAT-ER or other applications built on |
454 |
|
Thuban yet, so the compatibility interface stays in place for the |
455 |
|
time being but it now issues DeprecationWarnings. |
456 |
|
|
457 |
|
Finally, the new Table interface has a new method, HasColumn. |
458 |
|
|
459 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): All methods |
460 |
|
issue deprecation warnings when they're. The warnings refer to the |
461 |
|
caller of the method. |
462 |
|
(OldTableInterfaceMixin.__deprecation_warning): New. Helper method |
463 |
|
for the deprecation warnings |
464 |
|
|
465 |
|
* test/test_table.py: Ignore the deprecation warnings for the old |
466 |
|
table in the tests in this module. The purpose of the tests is to |
467 |
|
test the old interface, after all. |
468 |
|
|
469 |
|
* test/test_transientdb.py |
470 |
|
(TestTransientTable.run_iceland_political_tests): Use the |
471 |
|
constants for the types. Add a test for HasColumn |
472 |
|
(TestTransientTable.test_transient_joined_table): Adapt to new |
473 |
|
table interface. Add a test for HasColumn |
474 |
|
(TestTransientTable.test_transient_table_read_twice): Adapt to new |
475 |
|
table interface |
476 |
|
|
477 |
|
* Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue): |
478 |
|
Adapt to new table interface |
479 |
|
|
480 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to |
481 |
|
new table interface |
482 |
|
|
483 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list) |
484 |
|
(RecordTable.SetTable): Adapt to new table interface |
485 |
|
|
486 |
|
* Thuban/UI/classifier.py (Classifier.__init__) |
487 |
|
(Classifier.__init__): Adapt to new table interface |
488 |
|
|
489 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
490 |
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt |
491 |
|
to new table interface |
492 |
|
|
493 |
|
* Thuban/Model/transientdb.py (TransientTableBase.HasColumn) |
494 |
|
(AutoTransientTable.HasColumn): Implement the new table interface |
495 |
|
method |
496 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange) |
497 |
|
(AutoTransientTable.UniqueValues): Adapt to new table interface |
498 |
|
|
499 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType): |
500 |
|
Adapt to new table interface |
501 |
|
|
502 |
|
* test/test_layer.py (TestLayer.open_shapefile): Helper method to |
503 |
|
simplify opening shapefiles a bit easier. |
504 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
505 |
|
(TestLayer.test_point_layer): Use the new helper method |
506 |
|
(TestLayer.test_get_field_type): New. Test for the GetFieldType |
507 |
|
method |
508 |
|
|
509 |
|
* test/test_dbf_table.py (TestDBFTable.test_has_column): Test for |
510 |
|
the new table method |
511 |
|
|
512 |
|
* test/test_memory_table.py (TestMemoryTable.test_has_column): |
513 |
|
Test for the new table method HasColumn |
514 |
|
|
515 |
|
2003-05-06 Jonathan Coles <[email protected]> |
516 |
|
|
517 |
|
Addresses the "Selection Extent" wish of RTbug #1787. |
518 |
|
|
519 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
520 |
|
Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection |
521 |
|
extent. These are just place holders for the real bitmaps. |
522 |
|
|
523 |
|
* Thuban/Model/layer.py (Shape): Since a Shape is immutable only |
524 |
|
calculate the bounding box once (the first time compute_bbox() is |
525 |
|
called). |
526 |
|
(Layer.ShapesBoundingBox): New. Given a list of shape ids, return |
527 |
|
the bounding box for the shapes in lat/long coordinates. |
528 |
|
|
529 |
|
* Thuban/UI/mainwindow.py: Added new "Full selection extent" menu |
530 |
|
option. |
531 |
|
(MainWindow.has_selected_shapes): New. Returns true if there are |
532 |
|
any selected shapes. |
533 |
|
(MainWindow.FullSelectionExtent): New. Calls |
534 |
|
MapCanvas.FitSelectedToWindow() when the user selects the menu option. |
535 |
|
(_has_selected_shapes): New. Returns true if there are any |
536 |
|
selected shapes. |
537 |
|
|
538 |
|
* Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns |
539 |
|
true if there are any selected shapes. |
540 |
|
|
541 |
|
* Thuban/UI/view.py (MapCanvas): Added delegated method |
542 |
|
HasSelectedShapes. |
543 |
|
(MapCanvas.FitSelectedToWindow): New. Centers and scales any selected |
544 |
|
shapes on the canvas using the map projection (if any). |
545 |
|
|
546 |
|
* test/test_layer.py (TestLayer.test_arc_layer): Add some tests |
547 |
|
for Layer.ShapesBoundingBox(). |
548 |
|
|
549 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
550 |
|
|
551 |
|
* Resources/Projections/defaults.proj: Fix spelling of Mercator |
552 |
|
|
553 |
|
2003-05-05 Jonathan Coles <[email protected]> |
554 |
|
|
555 |
|
Addresses the "Full Layer Extent" wish of RTbug #1787. |
556 |
|
|
557 |
|
* Resources/Projections/defaults.proj: Added UK National Grid. |
558 |
|
|
559 |
|
* Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option. |
560 |
|
(MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow() |
561 |
|
when the user selects the menu option. |
562 |
|
|
563 |
|
* Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and |
564 |
|
scales the given layer on the canvas using the map projection. |
565 |
|
|
566 |
|
2003-05-05 Bernhard Herzog <[email protected]> |
567 |
|
|
568 |
|
Convert the table implementations to a new table interface. All |
569 |
|
tables use a common mixin class to provide backwards compatibility |
570 |
|
until all table users have been updated. |
571 |
|
|
572 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to |
573 |
|
provide backwards compatibility for table classes implementing the |
574 |
|
new interface |
575 |
|
(DBFTable, MemoryTable): Implement the new table interface. Use |
576 |
|
OldTableInterfaceMixin as base for compatibility |
577 |
|
(DBFColumn, MemoryColumn): New. Column description for DBFTable |
578 |
|
and MemoryTable resp. |
579 |
|
|
580 |
|
* test/test_dbf_table.py: New. Test cases for the DBFTable with |
581 |
|
the new table interface. |
582 |
|
|
583 |
|
* test/test_memory_table.py: New. Test cases for the MemoryTable |
584 |
|
with the new table interface. |
585 |
|
|
586 |
|
* test/test_table.py: Document the all tests in this file as only |
587 |
|
for backwards compatibility. The equivalent tests for the new |
588 |
|
interface are in test_memory_table.py and test_dbf_table.py |
589 |
|
(MemoryTableTest.test_read): field_info should be returning tuples |
590 |
|
with four items |
591 |
|
(MemoryTableTest.test_write): Make doc-string a more precise. |
592 |
|
|
593 |
|
* Thuban/Model/transientdb.py (TransientTableBase): Convert to new |
594 |
|
table interface. Derive from from OldTableInterfaceMixin for |
595 |
|
compatibility. |
596 |
|
(TransientTableBase.create): New intance variable column_map to |
597 |
|
map from names and indices to column objects |
598 |
|
(TransientTable.create): Use the new table interface of the input |
599 |
|
table |
600 |
|
(AutoTransientTable): Convert to new table interface. Derive from |
601 |
|
from OldTableInterfaceMixin for compatibility. |
602 |
|
(AutoTransientTable.write_record): Removed. It's not implemented |
603 |
|
yet and we still have to decide how to handle writing with the new |
604 |
|
table and data framework. |
605 |
|
|
606 |
|
* test/test_transientdb.py |
607 |
|
(TestTransientTable.run_iceland_political_tests) |
608 |
|
(TestTransientTable.test_transient_joined_table): Use the new |
609 |
|
table interface |
610 |
|
|
611 |
|
2003-05-05 Jonathan Coles <[email protected]> |
612 |
|
|
613 |
|
This is namely a collection of UI updates to improve user interactivity. |
614 |
|
Tabbing between controls now exists and you can use ESC to close dialog |
615 |
|
boxes; ENTER will active the default button. |
616 |
|
|
617 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the |
618 |
|
order that the controls are created so that tabbing works correctly. |
619 |
|
(ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the |
620 |
|
wxDialog can handle the default button correctly. |
621 |
|
(ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the |
622 |
|
same reasons as for OnOK. |
623 |
|
(GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor |
624 |
|
when we ask the table for the maximum/minimum values of a field |
625 |
|
which could take a very long time. |
626 |
|
|
627 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange the |
628 |
|
order that the controls are created so that tabbing works correctly. |
629 |
|
(SelectPropertiesDialog.__init__): Rearrange the order that the |
630 |
|
controls are created so that tabbing works correctly. |
631 |
|
|
632 |
|
* Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it |
633 |
|
to derive from a wxDialog but behave like the original implementation |
634 |
|
which was derived from a wxFrame. wxDialog provides useful key |
635 |
|
handling functionality like ESC calling OnCancel and ENTER calling |
636 |
|
OnOK which is lost with wxFrame. |
637 |
|
|
638 |
|
* Thuban/UI/mainwindow.py: Add "..." to menu items that will open |
639 |
|
new dialogs. |
640 |
|
|
641 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the |
642 |
|
order that the controls are created so that tabbing works correctly. |
643 |
|
(ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour. |
644 |
|
(ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour. |
645 |
|
(ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour. |
646 |
|
(ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we |
647 |
|
can provide the "UK National Grid" as a default projection. |
648 |
|
(UTMPanel.__init__): Rearrange the order that the controls are |
649 |
|
created so that tabbing works correctly. |
650 |
|
|
651 |
|
2003-05-05 Bernhard Herzog <[email protected]> |
652 |
|
|
653 |
|
* extensions/thuban/wxproj.cpp: Fix some of the comments. |
654 |
|
(project_point): If a map projection but no layer projection is |
655 |
|
given, convert degrees to radians before applying the map |
656 |
|
projection. |
657 |
|
|
658 |
|
* Thuban/UI/tableview.py (TableGrid.disallow_messages) |
659 |
|
(TableGrid.allow_messages): New methods to make it possible to |
660 |
|
inhibit message sending. |
661 |
|
(TableGrid.issue): Only send the message if not inhibited. |
662 |
|
(LayerTableGrid.select_shape): Use the new methods to make sure |
663 |
|
that no ROW_SELECTED message is sent while we're updating the |
664 |
|
selected rows to match the selected shapes. |
665 |
|
|
666 |
|
2003-05-02 Jan-Oliver Wagner <[email protected]> |
667 |
|
|
668 |
|
Implementation of MemoryTable. |
669 |
|
|
670 |
|
* Thuban/Model/table.py (MemoryTable): New. Quite simple table |
671 |
|
implementation that operates on a list of tuples. All of the data |
672 |
|
are kept in the memory. |
673 |
|
|
674 |
|
* test/test_table.py (MemoryTableTest): New. |
675 |
|
|
676 |
|
* test/test_transientdb.py (SimpleTable): Removed. |
677 |
|
(TestTransientTable.test_transient_joined_table, |
678 |
|
(TestTransientTable.test_transient_table_read_twice): Replaced |
679 |
|
SimpleTable by MemoryTable. |
680 |
|
|
681 |
|
2003-04-30 Jonathan Coles <[email protected]> |
682 |
|
|
683 |
|
* Data/iceland_sample.thuban: Now contains correct projections |
684 |
|
for each of the layers. |
685 |
|
|
686 |
|
* Resources/Projections/defaults.proj: Geographic projection |
687 |
|
contains unit conversion parameter. |
688 |
|
|
689 |
|
2003-04-30 Jonathan Coles <[email protected]> |
690 |
|
|
691 |
|
The most important part of this putback is the projection changes. |
692 |
|
It should now be possible to specify the projection that a layer |
693 |
|
is in and then specify a different projection for the map. The |
694 |
|
projection dialog has an extra parameter for a geographic projection |
695 |
|
which lets the user select if the input is in degrees or radians. |
696 |
|
|
697 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring |
698 |
|
to say that the parameter is a tuple of unprojected |
699 |
|
points (which is what the callers to this method were assuming). |
700 |
|
Also, since the points are unprojected we need to projected them. |
701 |
|
|
702 |
|
* Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp, |
703 |
|
LegendTree.MoveCurrentItemDown): If the layer or any of the layer's |
704 |
|
groups are selected, move the layer up/down. Fixes RTbug #1833. |
705 |
|
|
706 |
|
* Thuban/UI/mainwindow.py: Move menu item map_rename up. |
707 |
|
|
708 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing |
709 |
|
parameter in call to SetClientData. |
710 |
|
(GeoPanel): Add support for selecting the units that the |
711 |
|
source data is in (Radians or Degrees). |
712 |
|
|
713 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize |
714 |
|
the rendering loop by reducing the number of if's, removing the |
715 |
|
unnecessary try/except block, and checking if the old group |
716 |
|
is the same as the new one (which happens a lot if there is |
717 |
|
no classification, or lots of shapes are in the same group). |
718 |
|
|
719 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block |
720 |
|
around the redraw routine to try to catch problems that the user |
721 |
|
may create by selecting invalid projections for the data set and |
722 |
|
map. Clears the display if there are any problems and prints the |
723 |
|
error. |
724 |
|
(MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled |
725 |
|
rectangle. |
726 |
|
|
727 |
|
* extensions/thuban/wxproj.cpp (project_point): First invert the |
728 |
|
supplied point (which should be in projected coordinates) using |
729 |
|
the layer's projection and then project the point using the |
730 |
|
map's projection. |
731 |
|
(project_points): Use project_point() to project each point. |
732 |
|
|
733 |
|
2003-04-30 Jan-Oliver Wagner <[email protected]> |
734 |
|
|
735 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug: |
736 |
|
don't set the Classification to None if the classfication field |
737 |
|
is None (ie only a DEFAULT). |
738 |
|
|
739 |
|
2003-04-30 Bernhard Herzog <[email protected]> |
740 |
|
|
741 |
|
* Thuban/UI/view.py: Fix some typos. |
742 |
|
|
743 |
|
* Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do |
744 |
|
not pop up the dialog if the selection becomes empty (this could |
745 |
|
happen if e.g. a new selection is opened while the identify tool |
746 |
|
is active and dialog had been closed) |
747 |
|
|
748 |
|
2003-04-30 Bernhard Herzog <[email protected]> |
749 |
|
|
750 |
|
* Thuban/Model/transientdb.py (TransientTableBase.__init__): New |
751 |
|
instance variable read_record_last_result |
752 |
|
(TransientTableBase.read_record): Make sure reading the same |
753 |
|
record twice works. The implementation uses the new instance |
754 |
|
variable read_record_last_result |
755 |
|
|
756 |
|
* test/test_transientdb.py |
757 |
|
(TestTransientTable.test_transient_table_read_twice): New test |
758 |
|
case for the above bug-fix. |
759 |
|
|
760 |
|
2003-04-29 Jonathan Coles <[email protected]> |
761 |
|
|
762 |
|
* Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832. |
763 |
|
|
764 |
|
* Thuban/UI/classgen.py: Remove all uses of Str2Num. |
765 |
|
|
766 |
|
* Thuban/UI/classifier.py: Remove all uses of Str2Num. |
767 |
|
(ClassTable.SetValueAsCustom): Rename keyword argument in |
768 |
|
ClassGroup* constructors to match argument name. |
769 |
|
|
770 |
|
2003-04-29 Bernhard Herzog <[email protected]> |
771 |
|
|
772 |
|
* Thuban/Model/session.py (Session.Destroy): Explicitly close the |
773 |
|
transient DB if it exists to make sure it doesn't leave a journal |
774 |
|
file in the temp directory. |
775 |
|
|
776 |
|
* Thuban/Model/transientdb.py (TransientDatabase.close): Set |
777 |
|
self.conn to None after closing the connection to make sure it's |
778 |
|
not closed twice |
779 |
|
|
780 |
|
2003-04-29 Jonathan Coles <[email protected]> |
781 |
|
|
782 |
|
Add a visible parameter in the layer XML tag. The default value is |
783 |
|
"true". If anything other than "false" is specified we also assume |
784 |
|
"true". Addresses RTbug #1025. |
785 |
|
|
786 |
|
* Doc/thuban.dtd: Add visible parameter to a layer. |
787 |
|
|
788 |
|
* Thuban/Model/layer.py (BaseLayer.__init__): Change default value |
789 |
|
of visible from 1 to True. |
790 |
|
(Layer.__init__): Change default value of visible from 1 to True. |
791 |
|
|
792 |
|
* Thuban/Model/load.py (SessionLoader.start_layer): Read visible |
793 |
|
parameter. |
794 |
|
|
795 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save visible |
796 |
|
parameter. |
797 |
|
|
798 |
|
* test/test_load.py: Add new test data contents_test_visible. |
799 |
|
(LoadSessionTest.setUp): save test data. |
800 |
|
(LoadSessionTest.testLayerVisibility): Test if the visible flag |
801 |
|
is loaded correctly. |
802 |
|
|
803 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Add test |
804 |
|
for saving an invisible layer. |
805 |
|
|
806 |
|
2003-04-29 Jonathan Coles <[email protected]> |
807 |
|
|
808 |
|
* Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the |
809 |
|
legend dialog box and tell it to change its map to the one |
810 |
|
supplied to SetMap(). Fixes RTbug #1770. |
811 |
|
|
812 |
2003-04-29 Bernhard Herzog <[email protected]> |
2003-04-29 Bernhard Herzog <[email protected]> |
813 |
|
|
814 |
Next step of table implementation. Introduce a transient database |
Next step of table implementation. Introduce a transient database |
862 |
once. Plus it introduces a reference cycle that keeps can keep the |
once. Plus it introduces a reference cycle that keeps can keep the |
863 |
session object alive for a long time. |
session object alive for a long time. |
864 |
|
|
865 |
2003-04-25 Jonathan Coles <[email protected]> |
2003-04-29 Jonathan Coles <[email protected]> |
866 |
|
|
867 |
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
868 |
Projection an immutable item. Fixes RTbug #1825. |
Projection an immutable item. Fixes RTbug #1825. |