1 |
|
2003-05-21 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
4 |
|
to OnClose so that Thuban closes correctly. |
5 |
|
|
6 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
7 |
|
DockFrame.OnClose, not DockFrame._OnClose. |
8 |
|
|
9 |
|
2003-05-21 Jonathan Coles <[email protected]> |
10 |
|
|
11 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
12 |
|
references to 'inf' and use new Range __init__ to pass floats |
13 |
|
directly rather than converting them to strings first. |
14 |
|
Fixes RTBug #1876. |
15 |
|
|
16 |
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
17 |
|
Use new Range ___init__ to pass floats. |
18 |
|
|
19 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
20 |
|
filename is a valid image file. Throw IOError otherwise. |
21 |
|
|
22 |
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
23 |
|
is immutable and has an __init__ which can accept floats. |
24 |
|
|
25 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
26 |
|
into try block. AddLayer doesn't throw any exceptions anymore. |
27 |
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
28 |
|
try block. |
29 |
|
|
30 |
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
31 |
|
the first item in choices. Fixes RTBug #1882. |
32 |
|
|
33 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
34 |
|
has gone to 0 which is a serious problem. abort. |
35 |
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
36 |
|
print the error from GDAL. |
37 |
|
|
38 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
39 |
|
ToggleEventListeners to turn on listening. |
40 |
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
41 |
|
and off so as to prevent excessive messages. |
42 |
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
43 |
|
to suppress excessive messages when selecting many rows. |
44 |
|
Fixes RTBug #1880. |
45 |
|
|
46 |
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
47 |
|
is a serious problem that can occur when an image without |
48 |
|
geo data is loading and causes the map projection bounds to |
49 |
|
go to infinity. Right now, the solution is to simply try |
50 |
|
to recover. |
51 |
|
|
52 |
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
53 |
|
to set the MFILEReceiver attributes even if the data is NULL. |
54 |
|
|
55 |
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
56 |
|
and passed GDAL messages back up to the Python layer. Also |
57 |
|
tried to fix some memory leaks that were present in the original |
58 |
|
utility but didn't matter because the program aborted. |
59 |
|
|
60 |
|
* test/test_range.py: Copied over tests from SciParam. Removed |
61 |
|
tests against importing. Fixes RTBug #1867. |
62 |
|
|
63 |
|
2003-05-21 Bernhard Herzog <[email protected]> |
64 |
|
|
65 |
|
* test/test_load.py: Remove unused imports and restructure the |
66 |
|
test code |
67 |
|
(LoadSessionTest): Split into one class for each test and turn |
68 |
|
LoadSessionTest itself into the base class for all such session |
69 |
|
tests. |
70 |
|
(ClassificationTest): New base class for load tests that test |
71 |
|
classifications |
72 |
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
73 |
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
74 |
|
for the individual tests |
75 |
|
|
76 |
|
* test/support.py (FileLoadTestCase.filename): New base class for |
77 |
|
file loading tests |
78 |
|
|
79 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
80 |
|
|
81 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
82 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
83 |
|
Added 'Gauss Krueger Zone 6'. |
84 |
|
|
85 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
86 |
|
filled transparent to have the raster image visible at once. |
87 |
|
|
88 |
|
2003-05-21 Frank Koormann <[email protected]> |
89 |
|
|
90 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
91 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
92 |
|
still uses "underscored" names. |
93 |
|
|
94 |
|
2003-05-20 Jonathan Coles <[email protected]> |
95 |
|
|
96 |
|
This puts back Raster layer support. These layers support projections |
97 |
|
through the GDAL library. Currently, the CVS version is being used. |
98 |
|
There are no Debian packages available although this may change soon. |
99 |
|
A GDAL driver was extended to support writing to memory rather to |
100 |
|
files. |
101 |
|
|
102 |
|
There is still some work that needs to be done, such as some error |
103 |
|
handling when loading invalid images or when there is a problem |
104 |
|
projecting the image. This putback simply checks in the majority |
105 |
|
of the work. |
106 |
|
|
107 |
|
* setup.py: Add gdalwarp library extension. |
108 |
|
|
109 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
110 |
|
Defaults to False, but can be overridden by subclasses if they |
111 |
|
support classification. |
112 |
|
(RasterLayer): New. Defines a new layer that represents an |
113 |
|
image. |
114 |
|
|
115 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
116 |
|
tag handler. |
117 |
|
(SessionLoader.start_layer): Encode the filename. |
118 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
119 |
|
New. Supports reading a rasterlayer tag. |
120 |
|
|
121 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
122 |
|
|
123 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
124 |
|
get a string in Latin1. If we get such as string convert it to |
125 |
|
unicode first, otherwise leave if alone before encoding. |
126 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
127 |
|
and RasterLayers. |
128 |
|
|
129 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
130 |
|
The right argument may not be a string, it could also be a Column. |
131 |
|
|
132 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
133 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
134 |
|
|
135 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
136 |
|
the dialog is constructed so that we can support layers that |
137 |
|
do not have classifications. |
138 |
|
(Classifier._OnTry): Only build a classification if the layer |
139 |
|
supports one. |
140 |
|
|
141 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
142 |
|
instance of Layer into checks against BaseLayer. |
143 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
144 |
|
the layer supports classification. |
145 |
|
|
146 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
147 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
148 |
|
user chooses Cancel when they are asked to save changes. |
149 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
150 |
|
user to select an image file. Create a new RasterLayer and add |
151 |
|
it to the map. |
152 |
|
|
153 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
154 |
|
for rendering RasterLayer layers. |
155 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
156 |
|
the GDALWarp python wrapper and constructs an image from the |
157 |
|
data returned. |
158 |
|
|
159 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
160 |
|
Choices symbols to match those used in the table query method. |
161 |
|
Replace deprecated method calls on table with new method names. |
162 |
|
|
163 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
164 |
|
how small the scale can get. This still needs more testing. |
165 |
|
|
166 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
167 |
|
Provides a driver to output in .bmp format. |
168 |
|
|
169 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
170 |
|
New. Provides IO routines which write to memory, rather than a file. |
171 |
|
|
172 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
173 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
174 |
|
that can be accessed from python. |
175 |
|
|
176 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
177 |
|
a raster layer. |
178 |
|
|
179 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
180 |
|
layer image data. |
181 |
|
|
182 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
183 |
|
|
184 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
185 |
|
tests associated with the raster layer code. |
186 |
|
|
187 |
|
* test/test_transientdb.py |
188 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
189 |
|
for using a Column object as the "right" parameter to a query. |
190 |
|
|
191 |
|
2003-05-19 Frank Koormann <[email protected]> |
192 |
|
|
193 |
|
* Thuban/version.py (get_changelog_date): |
194 |
|
Catch exceptions if ChangeLog does not exist. |
195 |
|
|
196 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
197 |
|
|
198 |
|
2003-05-19 Frank Koormann <[email protected]> |
199 |
|
|
200 |
|
Extended version information for Thuban |
201 |
|
|
202 |
|
* Thuban/version.py: New, version information for Thuban: Last |
203 |
|
modification date and last ChangeLog entry date. |
204 |
|
|
205 |
|
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
206 |
|
information: Display Thuban, wxPython and Python version. |
207 |
|
|
208 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
209 |
|
|
210 |
|
* Thuban/Model/save.py: Remove some unused imports including the |
211 |
|
__future__ import for nested_scopes as Thuban relies on Python 2.2 |
212 |
|
now. |
213 |
|
(XMLWriter.encode): Remove the special case for a None argument. |
214 |
|
In the saver encode is always called with a string argument. |
215 |
|
|
216 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
217 |
|
|
218 |
|
* Thuban/UI/__init__.py: Remove the work-around for the locale bug |
219 |
|
in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom |
220 |
|
of the bug was that e.g. float("1.2") would fail. Thuban now |
221 |
|
requires 2.4.x. |
222 |
|
|
223 |
|
2003-05-16 Frank Koormann <[email protected]> |
224 |
|
|
225 |
|
Printing enhancement and WMF export (under Win32) |
226 |
|
|
227 |
|
* Thuban/UI/renderer.py (ExportRenderer): New, derived from |
228 |
|
ScreenRenderer. Renders Map, Legend and Scalebar for export. |
229 |
|
(PrinterRenderer): New, derived from ExportRenderer. Replaces the old |
230 |
|
PrintRender. |
231 |
|
|
232 |
|
* Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set |
233 |
|
to fullfil information needed for PrinterRenderer. |
234 |
|
(MapCanvas.Export): New. Export Map (currently only to WMF on Win32). |
235 |
|
(MapCanvas.Print): Adapted to new MapPrintout. |
236 |
|
(OutputTransform): General calculations to transform from canvas |
237 |
|
coordinates to export/printing devices. |
238 |
|
|
239 |
|
* Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also |
240 |
|
new method_command to call ExportMap, with platform dependency (only |
241 |
|
__WXMSW__) |
242 |
|
|
243 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size |
244 |
|
of scalebar drawing area as new parameters. |
245 |
|
|
246 |
|
* Thuban/Model/scalebar.py (roundInterval): round long instead of int |
247 |
|
|
248 |
|
* Thuban/UI/legend.py (ScalebarBitmap.__SetScale): |
249 |
|
Update to extended scalebar.DrawScalebar header. |
250 |
|
|
251 |
|
* test/test_export.py: New, test Thuban.UI.view.OutputTransform() |
252 |
|
|
253 |
|
* test/test_scalebar.py: Made test executable as standalone. |
254 |
|
|
255 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
256 |
|
|
257 |
|
* Thuban/Model/table.py (Table): Remove this compatibility alias |
258 |
|
for DBFTable. |
259 |
|
|
260 |
|
* test/test_table.py: Import DBFTable as Table because that alias |
261 |
|
doesn't exist anymore. |
262 |
|
|
263 |
|
* Thuban/UI/classgen.py: Remove some unused imports |
264 |
|
|
265 |
|
2003-05-14 Jonathan Coles <[email protected]> |
266 |
|
|
267 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList): |
268 |
|
Fix docstring. |
269 |
|
(ClassGenerator.GenUniformDistribution): Fix spelling of method name. |
270 |
|
(ClassGenerator.GenQuantiles): Use the left/right brackets and min/max |
271 |
|
values of the supplied range to determine the beginning and end |
272 |
|
bounds of the generated classes. |
273 |
|
|
274 |
|
* Thuban/Model/range.py (Range.number_re): Now accepts floats that |
275 |
|
do not have a leading 0 (.5 is now accepted as well as 0.5). |
276 |
|
|
277 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method |
278 |
|
call to ClassGenerator.GenUniformDistribution. |
279 |
|
|
280 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows |
281 |
|
layout bug with the 'Projection' label. |
282 |
|
|
283 |
|
* test/support.py (FloatTestCase): New. Needed for the Range tests. |
284 |
|
|
285 |
|
* test/test_range.py: New. Imported from SciParam. |
286 |
|
|
287 |
|
2003-05-12 Jonathan Coles <[email protected]> |
288 |
|
|
289 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
290 |
|
to table.UniqueValues() with calls that retrieve all the values |
291 |
|
from the table. This will need to be replaced by a method on table |
292 |
|
which can simply return the list (perhaps more efficiently). |
293 |
|
|
294 |
|
2003-05-12 Jonathan Coles <[email protected]> |
295 |
|
|
296 |
|
The return value of ClassGenerator.CalculateQuantiles has changed. |
297 |
|
Refer to the documentation for details. |
298 |
|
|
299 |
|
* test/test_classgen.py: Modified Quantile tests to use the |
300 |
|
new return values. |
301 |
|
|
302 |
|
* Thuban/Model/classgen.py |
303 |
|
(ClassGenerator.GenQuantiles): Add comments describing the parameters, |
304 |
|
use new return values from CalculateQuantiles to produce the correct |
305 |
|
range bounds in the Classification. |
306 |
|
(ClassGenerator.CalculateQuantiles): Add more comments describing |
307 |
|
the return values and parameters. Make minor adjustments to improve |
308 |
|
the legibility of the code. Fix problem with adjusted not being set |
309 |
|
in most cases. |
310 |
|
|
311 |
|
2003-05-12 Frank Koormann <[email protected]> |
312 |
|
|
313 |
|
* Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode |
314 |
|
and latin1. Fixes #1851 finally. |
315 |
|
|
316 |
|
2003-05-09 Jonathan Coles <[email protected]> |
317 |
|
|
318 |
|
* test/test_classgen.py: New. Tests the Quantile algorithm. |
319 |
|
|
320 |
|
* Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles): |
321 |
|
Clean up debugging statement, add comments, fix a small bug in the |
322 |
|
returned adjusted percentiles. |
323 |
|
|
324 |
|
2003-05-09 Jonathan Coles <[email protected]> |
325 |
|
|
326 |
|
Introduces Range class from SciParam into the ClassGroupRange class, |
327 |
|
and such ranges can now be saved and loaded from disk. |
328 |
|
|
329 |
|
Quantiles are now available in the Classification Generator. |
330 |
|
|
331 |
|
Initial support for building Queries on a table. Doesn't do anything |
332 |
|
but run some tests. |
333 |
|
|
334 |
|
* Thuban/Model/classification.py: Explicit imports. |
335 |
|
(ClassGroupRange): Use the Range class to store the underlying |
336 |
|
range information. The interface remains the same, except for |
337 |
|
GetRange(), and you can also supply a Range object as the min |
338 |
|
parameter to SetRange or __init__. |
339 |
|
|
340 |
|
* Thuban/Model/load.py (XMLReader.encode): New. Encodes the given |
341 |
|
string appropriately for use in Thuban. Fixes RTbug #1851. |
342 |
|
(SessionLoader.end_projection): Handle the context of the |
343 |
|
projection tag a bit better by looking at what objects are not |
344 |
|
None. There was an assumption that a projection tag for a map |
345 |
|
could occur before any layers. |
346 |
|
(SessionLoader.start_clrange): Provide backward compatibility for |
347 |
|
reading min/max values as well as the new range parameter. |
348 |
|
|
349 |
|
* Thuban/Model/map.py: Explicit imports. |
350 |
|
|
351 |
|
* Thuban/Model/resource.py: Import _. |
352 |
|
(ProjFileSaver.write): write header using projfile.dtd. |
353 |
|
|
354 |
|
* Thuban/Model/save.py: Explicit imports. |
355 |
|
(XMLWriter.encode): New. Encode the given string from a format |
356 |
|
used by Thuban into UTF-8. Fixes RTbug #1851. |
357 |
|
|
358 |
|
* Thuban/UI/classgen.py: Explicit imports. |
359 |
|
(ClassGenDialog.__init__): Clean up the code and add support |
360 |
|
for Quantiles. |
361 |
|
(ClassGenDialog.OnOK): Add support for Quantiles. |
362 |
|
(GenQuantilesPanel): New. Input panel for Quantiles. |
363 |
|
(ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, |
364 |
|
GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py |
365 |
|
|
366 |
|
* Thuban/Model/classgen.py: New. Contains all the classes named above. |
367 |
|
|
368 |
|
* Thuban/UI/classifier.py: Explicit imports. |
369 |
|
(ClassTable.GetValueAsCust, ClassTable.__ParseInput, |
370 |
|
ClassTable.SetValueAsCustom): Reworked to use new Range class. |
371 |
|
|
372 |
|
* Thuban/UI/legend.py: Explicit imports. |
373 |
|
|
374 |
|
* Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added |
375 |
|
a Table menu and associated method calls. |
376 |
|
(MainWindow.choose_color): Removed. No longer needed. |
377 |
|
|
378 |
|
* Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button |
379 |
|
should be disabled if no projection is selected in the available |
380 |
|
list. |
381 |
|
|
382 |
|
* Thuban/UI/renderer.py: Explicit imports. |
383 |
|
|
384 |
|
* Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues |
385 |
|
with correctly selecting the rows and issuing the right events. |
386 |
|
Be sure to call Skip() to allow the grid to do some of its own |
387 |
|
handling which allows the rows to actually be selected. |
388 |
|
(LayerTableGrid.select_shapes): Rename from select_shape. Supports |
389 |
|
selecting multiple shapes. |
390 |
|
(LayerTableFrame): Support for building Queries. |
391 |
|
(LayerTableFrame.select_shapes): Allow multiple shapes to be selected. |
392 |
|
|
393 |
|
* Thuban/UI/tree.py: Explicit imports. |
394 |
|
|
395 |
|
* Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the |
396 |
|
table view can call it. |
397 |
|
|
398 |
|
* test/test_classification.py: Explicit imports. |
399 |
|
(TestClassification.test_ClassGroupRange): Fix test for new |
400 |
|
Range class. |
401 |
|
|
402 |
|
* Doc/thuban.dtd: Add range parameter for clrange. |
403 |
|
|
404 |
|
* Thuban/Model/range.py: Taken from SciParam. Used as the underlying |
405 |
|
object in ClassGroupRange, and also uesd for inputting ranges in |
406 |
|
the classifer table and elsewhere. |
407 |
|
|
408 |
|
* Thuban/UI/join.py: New. Initial Join dialog. No real functionality |
409 |
|
yet. |
410 |
|
|
411 |
2003-05-09 Frank Koormann <[email protected]> |
2003-05-09 Frank Koormann <[email protected]> |
412 |
|
|
413 |
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |