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