1 |
|
2003-05-22 Thomas Koester <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
4 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
5 |
|
|
6 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
Implement a way to discover dependencies between tables and |
9 |
|
shapestores. |
10 |
|
|
11 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
12 |
|
(TransientJoinedTable.Dependencies) |
13 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
14 |
|
interface |
15 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
16 |
|
objects in addition to the corresponding transient tables. |
17 |
|
|
18 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
19 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
20 |
|
interface |
21 |
|
|
22 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
23 |
|
ShapefileStore |
24 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
25 |
|
AutoTransientTable |
26 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
27 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
28 |
|
methods for filename and type |
29 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
30 |
|
interface |
31 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
32 |
|
difference to SimpleStore is that it depends not on a shapefile |
33 |
|
but another shapestore which expresses the dependencies a bit |
34 |
|
better |
35 |
|
(SimpleStore.__init__): Add deprecation warning. |
36 |
|
|
37 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
38 |
|
Test for the Dependencies method. |
39 |
|
|
40 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
41 |
|
New. Test for the Dependencies method. |
42 |
|
|
43 |
|
* test/test_transientdb.py |
44 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
45 |
|
Test for the Dependencies method. |
46 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
47 |
|
Dependencies method. |
48 |
|
|
49 |
|
* test/test_session.py (TestSessionSimple.setUp) |
50 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
51 |
|
destroy the sessions. |
52 |
|
(TestSessionSimple.test_initial_state) |
53 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
54 |
|
so that it's destroyed by tearDown |
55 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
56 |
|
OpenShapefile and the object it returns |
57 |
|
|
58 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* Thuban/Model/session.py (Session.AddTable): New method to |
61 |
|
register tables with the session. |
62 |
|
(Session.Tables): Return the tables registered with AddTable too. |
63 |
|
|
64 |
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
65 |
|
Test case for the AddTable method |
66 |
|
|
67 |
|
2003-05-22 Frank Koormann <[email protected]> |
68 |
|
|
69 |
|
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
70 |
|
lower right corner, center labels for selections, initialize controls |
71 |
|
in reasonable order for keyboard navigation. |
72 |
|
|
73 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout) |
74 |
|
(ProjFrame.__DoOnProjAvail): Determine position of current projection |
75 |
|
using the wxListBox.FindString() method. Still a problem (#1886) |
76 |
|
|
77 |
|
* Thuban/UI/classifier.py |
78 |
|
(Classifier.__init__, SelectPropertiesDialog.__init__) |
79 |
|
|
80 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__, |
81 |
|
(ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the |
82 |
|
different classification types from here to __init__. |
83 |
|
(GenUniquePanel.__init__): Set the column width of the first field |
84 |
|
in the Field ListCtrl to the full width. |
85 |
|
|
86 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As' |
87 |
|
Button to 'Export'. Center Buttons in Selection Box, set Focus to |
88 |
|
Grid. |
89 |
|
(LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN, |
90 |
|
changes focus to the Selection when pressing "Alt-S". |
91 |
|
|
92 |
|
* Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out |
93 |
|
the text if not visible. The italic font sometimes exceeds the |
94 |
|
rendering area. |
95 |
|
|
96 |
|
2003-05-21 Jonathan Coles <[email protected]> |
97 |
|
|
98 |
|
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
99 |
|
to OnClose so that Thuban closes correctly. |
100 |
|
|
101 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
102 |
|
DockFrame.OnClose, not DockFrame._OnClose. |
103 |
|
|
104 |
|
2003-05-21 Jonathan Coles <[email protected]> |
105 |
|
|
106 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
107 |
|
references to 'inf' and use new Range __init__ to pass floats |
108 |
|
directly rather than converting them to strings first. |
109 |
|
Fixes RTBug #1876. |
110 |
|
|
111 |
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
112 |
|
Use new Range ___init__ to pass floats. |
113 |
|
|
114 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
115 |
|
filename is a valid image file. Throw IOError otherwise. |
116 |
|
|
117 |
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
118 |
|
is immutable and has an __init__ which can accept floats. |
119 |
|
|
120 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
121 |
|
into try block. AddLayer doesn't throw any exceptions anymore. |
122 |
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
123 |
|
try block. |
124 |
|
|
125 |
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
126 |
|
the first item in choices. Fixes RTBug #1882. |
127 |
|
|
128 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
129 |
|
has gone to 0 which is a serious problem. abort. |
130 |
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
131 |
|
print the error from GDAL. |
132 |
|
|
133 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
134 |
|
ToggleEventListeners to turn on listening. |
135 |
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
136 |
|
and off so as to prevent excessive messages. |
137 |
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
138 |
|
to suppress excessive messages when selecting many rows. |
139 |
|
Fixes RTBug #1880. |
140 |
|
|
141 |
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
142 |
|
is a serious problem that can occur when an image without |
143 |
|
geo data is loading and causes the map projection bounds to |
144 |
|
go to infinity. Right now, the solution is to simply try |
145 |
|
to recover. |
146 |
|
|
147 |
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
148 |
|
to set the MFILEReceiver attributes even if the data is NULL. |
149 |
|
|
150 |
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
151 |
|
and passed GDAL messages back up to the Python layer. Also |
152 |
|
tried to fix some memory leaks that were present in the original |
153 |
|
utility but didn't matter because the program aborted. |
154 |
|
|
155 |
|
* test/test_range.py: Copied over tests from SciParam. Removed |
156 |
|
tests against importing. Fixes RTBug #1867. |
157 |
|
|
158 |
|
2003-05-21 Bernhard Herzog <[email protected]> |
159 |
|
|
160 |
|
* test/test_load.py: Remove unused imports and restructure the |
161 |
|
test code |
162 |
|
(LoadSessionTest): Split into one class for each test and turn |
163 |
|
LoadSessionTest itself into the base class for all such session |
164 |
|
tests. |
165 |
|
(ClassificationTest): New base class for load tests that test |
166 |
|
classifications |
167 |
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
168 |
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
169 |
|
for the individual tests |
170 |
|
|
171 |
|
* test/support.py (FileLoadTestCase.filename): New base class for |
172 |
|
file loading tests |
173 |
|
|
174 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
175 |
|
|
176 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
177 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
178 |
|
Added 'Gauss Krueger Zone 6'. |
179 |
|
|
180 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
181 |
|
filled transparent to have the raster image visible at once. |
182 |
|
|
183 |
|
2003-05-21 Frank Koormann <[email protected]> |
184 |
|
|
185 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
186 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
187 |
|
still uses "underscored" names. |
188 |
|
|
189 |
|
2003-05-20 Jonathan Coles <[email protected]> |
190 |
|
|
191 |
|
This puts back Raster layer support. These layers support projections |
192 |
|
through the GDAL library. Currently, the CVS version is being used. |
193 |
|
There are no Debian packages available although this may change soon. |
194 |
|
A GDAL driver was extended to support writing to memory rather to |
195 |
|
files. |
196 |
|
|
197 |
|
There is still some work that needs to be done, such as some error |
198 |
|
handling when loading invalid images or when there is a problem |
199 |
|
projecting the image. This putback simply checks in the majority |
200 |
|
of the work. |
201 |
|
|
202 |
|
* setup.py: Add gdalwarp library extension. |
203 |
|
|
204 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
205 |
|
Defaults to False, but can be overridden by subclasses if they |
206 |
|
support classification. |
207 |
|
(RasterLayer): New. Defines a new layer that represents an |
208 |
|
image. |
209 |
|
|
210 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
211 |
|
tag handler. |
212 |
|
(SessionLoader.start_layer): Encode the filename. |
213 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
214 |
|
New. Supports reading a rasterlayer tag. |
215 |
|
|
216 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
217 |
|
|
218 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
219 |
|
get a string in Latin1. If we get such as string convert it to |
220 |
|
unicode first, otherwise leave if alone before encoding. |
221 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
222 |
|
and RasterLayers. |
223 |
|
|
224 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
225 |
|
The right argument may not be a string, it could also be a Column. |
226 |
|
|
227 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
228 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
229 |
|
|
230 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
231 |
|
the dialog is constructed so that we can support layers that |
232 |
|
do not have classifications. |
233 |
|
(Classifier._OnTry): Only build a classification if the layer |
234 |
|
supports one. |
235 |
|
|
236 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
237 |
|
instance of Layer into checks against BaseLayer. |
238 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
239 |
|
the layer supports classification. |
240 |
|
|
241 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
242 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
243 |
|
user chooses Cancel when they are asked to save changes. |
244 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
245 |
|
user to select an image file. Create a new RasterLayer and add |
246 |
|
it to the map. |
247 |
|
|
248 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
249 |
|
for rendering RasterLayer layers. |
250 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
251 |
|
the GDALWarp python wrapper and constructs an image from the |
252 |
|
data returned. |
253 |
|
|
254 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
255 |
|
Choices symbols to match those used in the table query method. |
256 |
|
Replace deprecated method calls on table with new method names. |
257 |
|
|
258 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
259 |
|
how small the scale can get. This still needs more testing. |
260 |
|
|
261 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
262 |
|
Provides a driver to output in .bmp format. |
263 |
|
|
264 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
265 |
|
New. Provides IO routines which write to memory, rather than a file. |
266 |
|
|
267 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
268 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
269 |
|
that can be accessed from python. |
270 |
|
|
271 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
272 |
|
a raster layer. |
273 |
|
|
274 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
275 |
|
layer image data. |
276 |
|
|
277 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
278 |
|
|
279 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
280 |
|
tests associated with the raster layer code. |
281 |
|
|
282 |
|
* test/test_transientdb.py |
283 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
284 |
|
for using a Column object as the "right" parameter to a query. |
285 |
|
|
286 |
|
2003-05-19 Frank Koormann <[email protected]> |
287 |
|
|
288 |
|
* Thuban/version.py (get_changelog_date): |
289 |
|
Catch exceptions if ChangeLog does not exist. |
290 |
|
|
291 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
292 |
|
|
293 |
|
2003-05-19 Frank Koormann <[email protected]> |
294 |
|
|
295 |
|
Extended version information for Thuban |
296 |
|
|
297 |
|
* Thuban/version.py: New, version information for Thuban: Last |
298 |
|
modification date and last ChangeLog entry date. |
299 |
|
|
300 |
|
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
301 |
|
information: Display Thuban, wxPython and Python version. |
302 |
|
|
303 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
304 |
|
|
305 |
|
* Thuban/Model/save.py: Remove some unused imports including the |
306 |
|
__future__ import for nested_scopes as Thuban relies on Python 2.2 |
307 |
|
now. |
308 |
|
(XMLWriter.encode): Remove the special case for a None argument. |
309 |
|
In the saver encode is always called with a string argument. |
310 |
|
|
311 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
312 |
|
|
313 |
|
* Thuban/UI/__init__.py: Remove the work-around for the locale bug |
314 |
|
in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom |
315 |
|
of the bug was that e.g. float("1.2") would fail. Thuban now |
316 |
|
requires 2.4.x. |
317 |
|
|
318 |
|
2003-05-16 Frank Koormann <[email protected]> |
319 |
|
|
320 |
|
Printing enhancement and WMF export (under Win32) |
321 |
|
|
322 |
|
* Thuban/UI/renderer.py (ExportRenderer): New, derived from |
323 |
|
ScreenRenderer. Renders Map, Legend and Scalebar for export. |
324 |
|
(PrinterRenderer): New, derived from ExportRenderer. Replaces the old |
325 |
|
PrintRender. |
326 |
|
|
327 |
|
* Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set |
328 |
|
to fullfil information needed for PrinterRenderer. |
329 |
|
(MapCanvas.Export): New. Export Map (currently only to WMF on Win32). |
330 |
|
(MapCanvas.Print): Adapted to new MapPrintout. |
331 |
|
(OutputTransform): General calculations to transform from canvas |
332 |
|
coordinates to export/printing devices. |
333 |
|
|
334 |
|
* Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also |
335 |
|
new method_command to call ExportMap, with platform dependency (only |
336 |
|
__WXMSW__) |
337 |
|
|
338 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size |
339 |
|
of scalebar drawing area as new parameters. |
340 |
|
|
341 |
|
* Thuban/Model/scalebar.py (roundInterval): round long instead of int |
342 |
|
|
343 |
|
* Thuban/UI/legend.py (ScalebarBitmap.__SetScale): |
344 |
|
Update to extended scalebar.DrawScalebar header. |
345 |
|
|
346 |
|
* test/test_export.py: New, test Thuban.UI.view.OutputTransform() |
347 |
|
|
348 |
|
* test/test_scalebar.py: Made test executable as standalone. |
349 |
|
|
350 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
351 |
|
|
352 |
|
* Thuban/Model/table.py (Table): Remove this compatibility alias |
353 |
|
for DBFTable. |
354 |
|
|
355 |
|
* test/test_table.py: Import DBFTable as Table because that alias |
356 |
|
doesn't exist anymore. |
357 |
|
|
358 |
|
* Thuban/UI/classgen.py: Remove some unused imports |
359 |
|
|
360 |
|
2003-05-14 Jonathan Coles <[email protected]> |
361 |
|
|
362 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList): |
363 |
|
Fix docstring. |
364 |
|
(ClassGenerator.GenUniformDistribution): Fix spelling of method name. |
365 |
|
(ClassGenerator.GenQuantiles): Use the left/right brackets and min/max |
366 |
|
values of the supplied range to determine the beginning and end |
367 |
|
bounds of the generated classes. |
368 |
|
|
369 |
|
* Thuban/Model/range.py (Range.number_re): Now accepts floats that |
370 |
|
do not have a leading 0 (.5 is now accepted as well as 0.5). |
371 |
|
|
372 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method |
373 |
|
call to ClassGenerator.GenUniformDistribution. |
374 |
|
|
375 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows |
376 |
|
layout bug with the 'Projection' label. |
377 |
|
|
378 |
|
* test/support.py (FloatTestCase): New. Needed for the Range tests. |
379 |
|
|
380 |
|
* test/test_range.py: New. Imported from SciParam. |
381 |
|
|
382 |
|
2003-05-12 Jonathan Coles <[email protected]> |
383 |
|
|
384 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
385 |
|
to table.UniqueValues() with calls that retrieve all the values |
386 |
|
from the table. This will need to be replaced by a method on table |
387 |
|
which can simply return the list (perhaps more efficiently). |
388 |
|
|
389 |
|
2003-05-12 Jonathan Coles <[email protected]> |
390 |
|
|
391 |
|
The return value of ClassGenerator.CalculateQuantiles has changed. |
392 |
|
Refer to the documentation for details. |
393 |
|
|
394 |
|
* test/test_classgen.py: Modified Quantile tests to use the |
395 |
|
new return values. |
396 |
|
|
397 |
|
* Thuban/Model/classgen.py |
398 |
|
(ClassGenerator.GenQuantiles): Add comments describing the parameters, |
399 |
|
use new return values from CalculateQuantiles to produce the correct |
400 |
|
range bounds in the Classification. |
401 |
|
(ClassGenerator.CalculateQuantiles): Add more comments describing |
402 |
|
the return values and parameters. Make minor adjustments to improve |
403 |
|
the legibility of the code. Fix problem with adjusted not being set |
404 |
|
in most cases. |
405 |
|
|
406 |
|
2003-05-12 Frank Koormann <[email protected]> |
407 |
|
|
408 |
|
* Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode |
409 |
|
and latin1. Fixes #1851 finally. |
410 |
|
|
411 |
|
2003-05-09 Jonathan Coles <[email protected]> |
412 |
|
|
413 |
|
* test/test_classgen.py: New. Tests the Quantile algorithm. |
414 |
|
|
415 |
|
* Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles): |
416 |
|
Clean up debugging statement, add comments, fix a small bug in the |
417 |
|
returned adjusted percentiles. |
418 |
|
|
419 |
|
2003-05-09 Jonathan Coles <[email protected]> |
420 |
|
|
421 |
|
Introduces Range class from SciParam into the ClassGroupRange class, |
422 |
|
and such ranges can now be saved and loaded from disk. |
423 |
|
|
424 |
|
Quantiles are now available in the Classification Generator. |
425 |
|
|
426 |
|
Initial support for building Queries on a table. Doesn't do anything |
427 |
|
but run some tests. |
428 |
|
|
429 |
|
* Thuban/Model/classification.py: Explicit imports. |
430 |
|
(ClassGroupRange): Use the Range class to store the underlying |
431 |
|
range information. The interface remains the same, except for |
432 |
|
GetRange(), and you can also supply a Range object as the min |
433 |
|
parameter to SetRange or __init__. |
434 |
|
|
435 |
|
* Thuban/Model/load.py (XMLReader.encode): New. Encodes the given |
436 |
|
string appropriately for use in Thuban. Fixes RTbug #1851. |
437 |
|
(SessionLoader.end_projection): Handle the context of the |
438 |
|
projection tag a bit better by looking at what objects are not |
439 |
|
None. There was an assumption that a projection tag for a map |
440 |
|
could occur before any layers. |
441 |
|
(SessionLoader.start_clrange): Provide backward compatibility for |
442 |
|
reading min/max values as well as the new range parameter. |
443 |
|
|
444 |
|
* Thuban/Model/map.py: Explicit imports. |
445 |
|
|
446 |
|
* Thuban/Model/resource.py: Import _. |
447 |
|
(ProjFileSaver.write): write header using projfile.dtd. |
448 |
|
|
449 |
|
* Thuban/Model/save.py: Explicit imports. |
450 |
|
(XMLWriter.encode): New. Encode the given string from a format |
451 |
|
used by Thuban into UTF-8. Fixes RTbug #1851. |
452 |
|
|
453 |
|
* Thuban/UI/classgen.py: Explicit imports. |
454 |
|
(ClassGenDialog.__init__): Clean up the code and add support |
455 |
|
for Quantiles. |
456 |
|
(ClassGenDialog.OnOK): Add support for Quantiles. |
457 |
|
(GenQuantilesPanel): New. Input panel for Quantiles. |
458 |
|
(ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, |
459 |
|
GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py |
460 |
|
|
461 |
|
* Thuban/Model/classgen.py: New. Contains all the classes named above. |
462 |
|
|
463 |
|
* Thuban/UI/classifier.py: Explicit imports. |
464 |
|
(ClassTable.GetValueAsCust, ClassTable.__ParseInput, |
465 |
|
ClassTable.SetValueAsCustom): Reworked to use new Range class. |
466 |
|
|
467 |
|
* Thuban/UI/legend.py: Explicit imports. |
468 |
|
|
469 |
|
* Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added |
470 |
|
a Table menu and associated method calls. |
471 |
|
(MainWindow.choose_color): Removed. No longer needed. |
472 |
|
|
473 |
|
* Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button |
474 |
|
should be disabled if no projection is selected in the available |
475 |
|
list. |
476 |
|
|
477 |
|
* Thuban/UI/renderer.py: Explicit imports. |
478 |
|
|
479 |
|
* Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues |
480 |
|
with correctly selecting the rows and issuing the right events. |
481 |
|
Be sure to call Skip() to allow the grid to do some of its own |
482 |
|
handling which allows the rows to actually be selected. |
483 |
|
(LayerTableGrid.select_shapes): Rename from select_shape. Supports |
484 |
|
selecting multiple shapes. |
485 |
|
(LayerTableFrame): Support for building Queries. |
486 |
|
(LayerTableFrame.select_shapes): Allow multiple shapes to be selected. |
487 |
|
|
488 |
|
* Thuban/UI/tree.py: Explicit imports. |
489 |
|
|
490 |
|
* Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the |
491 |
|
table view can call it. |
492 |
|
|
493 |
|
* test/test_classification.py: Explicit imports. |
494 |
|
(TestClassification.test_ClassGroupRange): Fix test for new |
495 |
|
Range class. |
496 |
|
|
497 |
|
* Doc/thuban.dtd: Add range parameter for clrange. |
498 |
|
|
499 |
|
* Thuban/Model/range.py: Taken from SciParam. Used as the underlying |
500 |
|
object in ClassGroupRange, and also uesd for inputting ranges in |
501 |
|
the classifer table and elsewhere. |
502 |
|
|
503 |
|
* Thuban/UI/join.py: New. Initial Join dialog. No real functionality |
504 |
|
yet. |
505 |
|
|
506 |
|
2003-05-09 Frank Koormann <[email protected]> |
507 |
|
|
508 |
|
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |
509 |
|
|
510 |
|
2003-05-08 Frank Koormann <[email protected]> |
511 |
|
|
512 |
|
Coding style updates |
513 |
|
|
514 |
|
* test/test_scalebar.py: Replaced tab indentation by spaces. |
515 |
|
|
516 |
|
* Thuban/UI/scalebar.py: Explicit imports. |
517 |
|
|
518 |
|
2003-05-08 Frank Koormann <[email protected]> |
519 |
|
|
520 |
|
* Thuban/UI/scalebar.py |
521 |
|
(ScaleBar.DrawScalebar): Format string bug fixed. |
522 |
|
|
523 |
|
2003-05-08 Frank Koormann <[email protected]> |
524 |
|
|
525 |
|
Reorganization of scalebar component (no wx in Thuban/Model) |
526 |
|
|
527 |
|
* Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py |
528 |
|
(deriveInterval): |
529 |
|
Calculate scalebar interval and unit which fits in width for scale. |
530 |
|
(roundInterval): Round float. |
531 |
|
|
532 |
|
* Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering |
533 |
|
|
534 |
|
* test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods. |
535 |
|
|
536 |
|
* Thuban/UI/legend.py: Import Thuban.UI.scalebar |
537 |
|
|
538 |
|
2003-05-08 Frank Koormann <[email protected]> |
539 |
|
|
540 |
|
* Thuban/UI/legend.py (ScalebarBitmap.SetCanvas): |
541 |
|
Initialize ScaleBar with canvas.map |
542 |
|
|
543 |
|
* Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New, |
544 |
|
round intervals to display smarter lengths |
545 |
|
(ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a |
546 |
|
layer. If the maps has no projection applied grey the scalebar. |
547 |
|
|
548 |
|
2003-05-07 Frank Koormann <[email protected]> |
549 |
|
|
550 |
|
Basic Scalebar features added. |
551 |
|
|
552 |
|
* Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering. |
553 |
|
|
554 |
|
* Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap |
555 |
|
(ScaleBarBitmap): New, links the scalebar bitmap with view messages |
556 |
|
and the renderer. |
557 |
|
|
558 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED. |
559 |
|
|
560 |
|
* Thuban/UI/messages.py: SCALE_CHANGED added. |
561 |
|
|
562 |
|
2003-05-07 Bernhard Herzog <[email protected]> |
563 |
|
|
564 |
|
* Thuban/Model/session.py (Session.__init__): New instance |
565 |
|
variable shapestores to hold a list of all open shapestore objects |
566 |
|
(Session.ShapeStores): New. Accessor method for the shapestores |
567 |
|
list. |
568 |
|
(Session._add_shapestore, Session._clean_weak_store_refs): New. |
569 |
|
Internal methods to maintain the shapestores list. |
570 |
|
(Session.Tables): New. Return all tables open in the session. |
571 |
|
(Session.OpenShapefile): Insert the new ShapeStore into the |
572 |
|
shapestores list. |
573 |
|
|
574 |
|
* test/test_session.py (TestSessionSimple.test_initial_state): Add |
575 |
|
tests for ShapeStores and Tables |
576 |
|
(TestSessionWithContent.test_shape_stores) |
577 |
|
(TestSessionWithContent.test_tables): New. Test cases for |
578 |
|
ShapeStores and Tables |
579 |
|
|
580 |
|
2003-05-07 Bernhard Herzog <[email protected]> |
581 |
|
|
582 |
|
* Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict): |
583 |
|
Add comments about the optimizations used. |
584 |
|
(AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New. |
585 |
|
Implement the ReadValue table interface method. |
586 |
|
|
587 |
|
* test/test_transientdb.py |
588 |
|
(TestTransientTable.run_iceland_political_tests) |
589 |
|
(TestTransientTable.test_transient_joined_table): Add tests for |
590 |
|
ReadValue |
591 |
|
|
592 |
|
2003-05-07 Frank Koormann <[email protected]> |
593 |
|
|
594 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
595 |
|
Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with |
596 |
|
new icons. |
597 |
|
|
598 |
2003-05-06 Bernhard Herzog <[email protected]> |
2003-05-06 Bernhard Herzog <[email protected]> |
599 |
|
|
600 |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |