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