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