1 |
|
2003-06-12 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
4 |
|
the image is rendered. Fixes RTbug #1937. |
5 |
|
|
6 |
|
2003-06-12 Jonathan Coles <[email protected]> |
7 |
|
|
8 |
|
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
9 |
|
user directory if it doesn't exist on a posix system. |
10 |
|
Fixes RTbug #1815. |
11 |
|
|
12 |
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
13 |
|
called to get_application_dir here, so that the directory |
14 |
|
will only be called if this method is invoked. |
15 |
|
|
16 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
17 |
|
the projfilepath if no projection is selected. |
18 |
|
|
19 |
|
2003-06-12 Jonathan Coles <[email protected]> |
20 |
|
|
21 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
22 |
|
the scalebar if the current map has no projection set. |
23 |
|
|
24 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
25 |
|
projfilepath label to just the basename of the projection file |
26 |
|
rather than include the entire path. |
27 |
|
|
28 |
|
* Thuban/Model/resource.py: Fix missed proj functions that |
29 |
|
needed to be renamed. |
30 |
|
|
31 |
|
2003-06-12 Jonathan Coles <[email protected]> |
32 |
|
|
33 |
|
* Thuban/Model/classification.py: Removed assert statements that |
34 |
|
tested if the variable was an instance of Color. |
35 |
|
|
36 |
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
37 |
|
used. |
38 |
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
39 |
|
Fixes RTbug #1835. |
40 |
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
41 |
|
Needed now that the class doesn't inherit from Color. |
42 |
|
|
43 |
|
2003-06-12 Jonathan Coles <[email protected]> |
44 |
|
|
45 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
46 |
|
check unicode strings. |
47 |
|
|
48 |
|
* test/test_layer.py: Check for existence of gdal. |
49 |
|
|
50 |
|
2003-06-12 Jonathan Coles <[email protected]> |
51 |
|
|
52 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
53 |
|
that was in load.py |
54 |
|
|
55 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
56 |
|
that was in save.py |
57 |
|
|
58 |
|
2003-06-12 Jonathan Coles <[email protected]> |
59 |
|
|
60 |
|
This is largely a collection of bug fixes. We also handle the |
61 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
62 |
|
classes were moved into there own files to resolve some circular |
63 |
|
import references and because they shouldn't really be in the |
64 |
|
file that is dediciated to reading/writing session files since |
65 |
|
they are also used elsewhere. |
66 |
|
|
67 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
68 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
69 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
70 |
|
|
71 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
72 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
73 |
|
Addresses RTbug #1877. |
74 |
|
|
75 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
76 |
|
xmlreader.py. |
77 |
|
|
78 |
|
2003-06-12 Jonathan Coles <[email protected]> |
79 |
|
|
80 |
|
This is largely a collection of bug fixes. We also handle the |
81 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
82 |
|
classes were moved into there own files to resolve some circular |
83 |
|
import references and because they shouldn't really be in the |
84 |
|
file that is dediciated to reading/writing session files since |
85 |
|
they are also used elsewhere. |
86 |
|
|
87 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
88 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
89 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
90 |
|
|
91 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
92 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
93 |
|
Addresses RTbug #1877. |
94 |
|
|
95 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
96 |
|
xmlreader.py. |
97 |
|
|
98 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
99 |
|
file xmlwriter.py. |
100 |
|
|
101 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
102 |
|
function_names_with_underscores style. |
103 |
|
(has_gdal_support): New function that returns true if the gdal |
104 |
|
library is available. Addresses RTbug #1877. |
105 |
|
|
106 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
107 |
|
Display a message box if the gdal library is not available, but |
108 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
109 |
|
|
110 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
111 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
112 |
|
when using integers versus floats. |
113 |
|
|
114 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
115 |
|
determine if the "Add Image Layer" menu option should be |
116 |
|
greyed out or not. Addresses RTbug #1877. |
117 |
|
|
118 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
119 |
|
|
120 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
121 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
122 |
|
Only draw the raster layer if the gdal library is available. |
123 |
|
Addresses RTbug #1877. |
124 |
|
|
125 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
126 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
127 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
128 |
|
ValueError that is raised. |
129 |
|
|
130 |
|
* test/test_proj.py: Use renamed projection resource functions. |
131 |
|
|
132 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
133 |
|
test for saving classified layers. Fixes RTbug #1902. |
134 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
135 |
|
|
136 |
|
2003-06-12 Jan-Oliver Wagner <[email protected]> |
137 |
|
|
138 |
|
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
139 |
|
|
140 |
|
* Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog. |
141 |
|
|
142 |
|
* Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from |
143 |
|
multiplechoicedialog.py rather than from the wxPython library. |
144 |
|
|
145 |
|
2003-06-11 Frank Koormann <[email protected]> |
146 |
|
|
147 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
148 |
|
update. |
149 |
|
|
150 |
|
2003-06-11 Frank Koormann <[email protected]> |
151 |
|
|
152 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
153 |
|
determine the absolute .thuban/thuban directory under |
154 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
155 |
|
|
156 |
|
* Thuban/Model/resource.py: Use get_application_dir |
157 |
|
|
158 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
159 |
|
Use get_application_dir. |
160 |
|
|
161 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
164 |
|
the messages MAP_LAYERS_REMOVED messages |
165 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
166 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
167 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
168 |
|
dialog is showing is removed. |
169 |
|
|
170 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
171 |
|
|
172 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
173 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
174 |
|
modify it while iterating over it. |
175 |
|
|
176 |
|
* test/test_connector.py |
177 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
178 |
|
unsubscribing in a receiver works correctly. See docstring for |
179 |
|
details |
180 |
|
|
181 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
182 |
|
|
183 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
184 |
|
message. |
185 |
|
|
186 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
187 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
188 |
|
LAYER_CHANGED will still be sent if the classification changes. |
189 |
|
|
190 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
191 |
|
parameter so we can subscribe to some of its messages |
192 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
193 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
194 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
195 |
|
subscribed to in __init__ |
196 |
|
(Classifier.map_layers_removed) |
197 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
198 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
199 |
|
|
200 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
201 |
|
the map to the Classifier dialog |
202 |
|
|
203 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
204 |
|
SubscriberMixin as well so we can test messages |
205 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
206 |
|
messages |
207 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
208 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
209 |
|
for the modified flag too |
210 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
211 |
|
to check whether SetShapeStore sets the modified flag |
212 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
213 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
214 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
215 |
|
Add tests for the messages. This checks both the new |
216 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
217 |
|
|
218 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
219 |
|
|
220 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
221 |
|
the menu items. |
222 |
|
|
223 |
|
2003-06-05 Frank Koormann <[email protected]> |
224 |
|
|
225 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
226 |
|
Layout reimplemented without panel. Make life easier to fit the list |
227 |
|
in the dialog. |
228 |
|
|
229 |
|
2003-06-05 Frank Koormann <[email protected]> |
230 |
|
|
231 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
232 |
|
once on initialisation (Former implementation resulted in multiple |
233 |
|
entries for each projection). |
234 |
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
235 |
|
if set, select the projection found under the specified name. This |
236 |
|
overwrites any other selection estimate. |
237 |
|
Removed projchoice filling from this method. |
238 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
239 |
|
Updated call of ProjFrame.__FillAvailList |
240 |
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
241 |
|
|
242 |
|
* Resources/Projections/defaults.proj: Extended defaults representing |
243 |
|
various common European projections. |
244 |
|
|
245 |
|
2003-06-05 Frank Koormann <[email protected]> |
246 |
|
|
247 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
248 |
|
Use ListCtrl instead of GridCtrl |
249 |
|
|
250 |
|
* Thuban/Model/resource.py: |
251 |
|
Guess location of .thuban directory from tempdir parent directory. |
252 |
|
|
253 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
254 |
|
Guess location of .thuban directory from tempdir parent directory. |
255 |
|
|
256 |
|
2003-06-04 Bernhard Herzog <[email protected]> |
257 |
|
|
258 |
|
Do not cache the values returned by the tree widget's |
259 |
|
GetFirstChild and GetNextChild methods because it led to lots of |
260 |
|
segfaults. The new way requires more brute force but is more |
261 |
|
reliable. |
262 |
|
|
263 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
264 |
|
variable layer2id |
265 |
|
(LegendTree.find_layer): New method to do with brute force what |
266 |
|
layer2id tried to accomplish |
267 |
|
(LegendTree._OnMsgLayerChanged) |
268 |
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
269 |
|
Use find_layer instead of layer2id |
270 |
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
271 |
|
update layer2id anymore |
272 |
|
(LegendTree._OnMsgMapLayersRemoved) |
273 |
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
274 |
|
|
275 |
|
2003-06-03 Thomas Koester <[email protected]> |
276 |
|
|
277 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
278 |
|
|
279 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
280 |
|
|
281 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
282 |
|
New commands. |
283 |
|
(main_menu): Add the new commands. |
284 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
285 |
|
command. |
286 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
287 |
|
command. |
288 |
|
|
289 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
290 |
|
set the modified flag |
291 |
|
|
292 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
293 |
|
whether the modified flag is set properly |
294 |
|
|
295 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
296 |
|
instead of issue so that the modified flags get updated. |
297 |
|
|
298 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
299 |
|
instead of Publisher to reflect reality better and to accomodate |
300 |
|
the fact that SetTitle now calls changed instead of issue |
301 |
|
|
302 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
303 |
|
|
304 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
305 |
|
acquisition has to happen before the try in a try-finally. |
306 |
|
|
307 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
308 |
|
|
309 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
310 |
|
possible that a layer is removed that is not currently selected in |
311 |
|
the legend so don't check for this. |
312 |
|
|
313 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
314 |
|
|
315 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
316 |
|
variables to None that have direct or indirect references to |
317 |
|
shapefiles or dbf files to make sure that they do go away and the |
318 |
|
files are closed. |
319 |
|
|
320 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
321 |
|
|
322 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
323 |
|
availImgListIndices when a new image list is created |
324 |
|
|
325 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
326 |
|
|
327 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
328 |
|
changing_selection to indicate whether the LegendTree code itself |
329 |
|
is currently changing the selection |
330 |
|
(LegendTree.normalize_selection): New method to normalize the |
331 |
|
selection by selecting the layer item even if the user clicked on |
332 |
|
the classification. |
333 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
334 |
|
around a bug in wx which doesn't keep track of the selection |
335 |
|
properly when subtrees are deleted. |
336 |
|
|
337 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
338 |
|
|
339 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
340 |
|
maximum and minimum scale factors. |
341 |
|
|
342 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
343 |
|
changes in classgen.py |
344 |
|
|
345 |
|
2003-05-30 Jonathan Coles <[email protected]> |
346 |
|
|
347 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
348 |
|
all the methods functions. Fixes RTBug #1903. |
349 |
|
|
350 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
351 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
352 |
|
RTBug #1907. |
353 |
|
|
354 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
355 |
|
of the ClassGenerator class. Put try/finally blocks around |
356 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
357 |
|
RTBug #1904. |
358 |
|
|
359 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
360 |
|
|
361 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
362 |
|
time something changed which caused some state to be lost such |
363 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
364 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
365 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
366 |
|
the legend but not in the map. |
367 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
368 |
|
methods that can be used by other methods. |
369 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
370 |
|
if they are available. |
371 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
372 |
|
that we override the wxTreeCtrl method. Iterate over children |
373 |
|
and call __RemoveLayer. |
374 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
375 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
376 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
377 |
|
Should only be called with the id of a layer branch. |
378 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
379 |
|
Returns the root item or creates one if necessary. |
380 |
|
|
381 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
382 |
|
ProjectRasterFile with tuple arguments instead of strings. |
383 |
|
|
384 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
385 |
|
with try/finally. Fixes RTBug #1904. |
386 |
|
|
387 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
388 |
|
with try/finally. Fixes RTBug #1904. |
389 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
390 |
|
simply center it on the display. Fixes RTBug #1849. |
391 |
|
|
392 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
393 |
|
to be compiled as a standalone app. Now the code can only be |
394 |
|
called from Python which simplifies the parameter passing. |
395 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
396 |
|
checks for a destination dataset. Add more clean up code. |
397 |
|
|
398 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
399 |
|
TestMapWithContents.test_lower_layer_bottom): |
400 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
401 |
|
Fixes RTBug #1907. |
402 |
|
|
403 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
404 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
405 |
|
|
406 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
407 |
|
|
408 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
409 |
|
unsubscribes all that is subcribed in __init__. |
410 |
|
|
411 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
412 |
|
|
413 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
414 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
415 |
|
Layer/Duplicate command. |
416 |
|
(layer_duplicate command): New. |
417 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
418 |
|
|
419 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
420 |
|
|
421 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
422 |
|
renderer so that NULL/None values get displayed differently (by a |
423 |
|
gray rectangle). |
424 |
|
(TableGrid.__init__): Override the default renderers |
425 |
|
|
426 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
427 |
|
|
428 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
429 |
|
classification to "None" if the type of the field has changed. |
430 |
|
|
431 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
432 |
|
test for the Layer.SetShapeStore method |
433 |
|
|
434 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
435 |
|
|
436 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
437 |
|
does not necessarily have a filename). |
438 |
|
|
439 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
440 |
|
|
441 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
442 |
|
sort the selection list for the dialog. |
443 |
|
|
444 |
|
2003-05-28 Frank Koormann <[email protected]> |
445 |
|
|
446 |
|
* extensions/thuban/wxproj.cpp |
447 |
|
(project_point): Removed cast to int for projected point coordinates. |
448 |
|
(shape_centroid): Return last point if all polygon vertices fall |
449 |
|
to one point. |
450 |
|
|
451 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
452 |
|
|
453 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
454 |
|
with layers that don't have shapestores, i.e. raster layers. |
455 |
|
|
456 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
457 |
|
|
458 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
459 |
|
when determining the title from the filename. |
460 |
|
|
461 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
462 |
|
reflect changes in the way the title is derived from the filename |
463 |
|
|
464 |
|
2003-05-28 Frank Koormann <[email protected]> |
465 |
|
|
466 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
467 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
468 |
|
|
469 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
470 |
|
|
471 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
472 |
|
delegate SelectedLayer. |
473 |
|
(MainWindow.LayerUnjoinTable): Implement. |
474 |
|
(_can_unjoin): New. Helper function for the sensitivity of the |
475 |
|
layer/unjoin command. |
476 |
|
|
477 |
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
478 |
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
479 |
|
shapestore. Used to figure out how to unjoin. |
480 |
|
(DerivedShapeStore.Shapefile): Fix a typo. |
481 |
|
|
482 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
483 |
|
|
484 |
|
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
485 |
|
well |
486 |
|
(JoinDialog.__init__): Use the layer parameter and only build the |
487 |
|
left choice when a layer is given |
488 |
|
(JoinDialog.OnJoin): Handle layer joins as well |
489 |
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
490 |
|
that the user selects the "Select..." item. The sensitivitly |
491 |
|
updating is now in update_sensitivity |
492 |
|
(JoinDialog.y): New method to refactor the sensitivity update of |
493 |
|
the join button into its own method. |
494 |
|
|
495 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
496 |
|
|
497 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
498 |
|
|
499 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
500 |
|
iff there are unreferenced tables in the session |
501 |
|
|
502 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
503 |
|
|
504 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
505 |
|
|
506 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
507 |
|
to return tables that are not referenced by other tables or shape |
508 |
|
stores and can be removed. |
509 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
510 |
|
removing the table |
511 |
|
|
512 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
513 |
|
(MainWindow.TableClose): Implement. |
514 |
|
|
515 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
516 |
|
messages so that the frame will be automatically closed when a new |
517 |
|
session is opened or the table is removed. |
518 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
519 |
|
__init__ |
520 |
|
(TableFrame.close_on_session_replaced) |
521 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
522 |
|
the window |
523 |
|
|
524 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
525 |
|
(TestSessionSimple.test_remove_table): Move the test to |
526 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
527 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
528 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
529 |
|
UnreferencedTables method. |
530 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
531 |
|
tests for UnreferencedTables. |
532 |
|
|
533 |
|
2003-05-27 Frank Koormann <[email protected]> |
534 |
|
|
535 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
536 |
|
display has some unwanted side effects. Removed again. |
537 |
|
|
538 |
|
2003-05-27 Frank Koormann <[email protected]> |
539 |
|
|
540 |
|
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
541 |
|
|
542 |
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
543 |
|
|
544 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
545 |
|
|
546 |
|
* test/test_menu.py (MenuTest.test): Added test for |
547 |
|
Menu.RemoveItem(). |
548 |
|
|
549 |
|
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
550 |
|
the menu. |
551 |
|
|
552 |
|
2003-05-27 Frank Koormann <[email protected]> |
553 |
|
|
554 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
555 |
|
window) |
556 |
|
|
557 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
558 |
|
all dialogs in the dialogs dictionary and the canvas. |
559 |
|
|
560 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
561 |
|
parent, i.e. can fall behind other windows. |
562 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
563 |
|
dictionary before removing it. |
564 |
|
|
565 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
566 |
|
|
567 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
568 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
569 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
570 |
|
|
571 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
572 |
|
|
573 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
574 |
|
tableview dialog |
575 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
576 |
|
Also, don't use the table's titles as the dialog names. The titles |
577 |
|
aren't guaranteed to be unique. |
578 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
579 |
|
table |
580 |
|
|
581 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
582 |
|
|
583 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
584 |
|
effect can be achieved by simply closing the window showing the |
585 |
|
table. |
586 |
|
(MainWindow.TableHide): Removed. |
587 |
|
(main_menu): Removed "table_hide" |
588 |
|
|
589 |
|
2003-05-27 Frank Koormann <[email protected]> |
590 |
|
|
591 |
|
Fix legend tree display problems under Win32 |
592 |
|
|
593 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
594 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
595 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
596 |
|
|
597 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
598 |
|
|
599 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
600 |
|
|
601 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
602 |
|
'after' now allows to insert separators almost anywhere in the menu. |
603 |
|
|
604 |
|
2003-05-27 Frank Koormann <[email protected]> |
605 |
|
|
606 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
607 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
608 |
|
Win32 but is ignored under GTK. |
609 |
|
|
610 |
|
2003-05-26 Frank Koormann <[email protected]> |
611 |
|
|
612 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
613 |
|
Center Choices. |
614 |
|
|
615 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
616 |
|
|
617 |
|
Remove the Precision methods again. They're too DBF specific to be |
618 |
|
part of the table interface and they're only used in table_to_dbf |
619 |
|
anyway. |
620 |
|
|
621 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
622 |
|
fixed precision of 12 for doubles. |
623 |
|
(TransientTableBase.Precision): Removed |
624 |
|
(AutoTransientTable.Width): Delegate to self.table. |
625 |
|
|
626 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
627 |
|
(MemoryTable.Precision): Removed. |
628 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
629 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
630 |
|
column object specifies something else. |
631 |
|
|
632 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
633 |
|
test for table_to_dbf |
634 |
|
|
635 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
636 |
|
|
637 |
|
* test/test_transientdb.py |
638 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
639 |
|
|
640 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
641 |
|
|
642 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
643 |
|
implementation. Mark parts of the file format strings for |
644 |
|
localization. |
645 |
|
|
646 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
647 |
|
file and add the table to the tables managed by the session |
648 |
|
|
649 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
650 |
|
New. test case for OpenTableFile |
651 |
|
|
652 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
653 |
|
|
654 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
655 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
656 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
657 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
658 |
|
|
659 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
660 |
|
|
661 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
662 |
|
already a selection present, update the grid accordingly. |
663 |
|
|
664 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
665 |
|
resizeable and increase its initial size. |
666 |
|
|
667 |
|
2003-05-26 Frank Koormann <[email protected]> |
668 |
|
|
669 |
|
Table export functionality |
670 |
|
|
671 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
672 |
|
Return width (in characters) for a column. |
673 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
674 |
|
(table_to_dbf): Write table to dbf file. |
675 |
|
(table_to_csv): Write table to csv file. |
676 |
|
|
677 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
678 |
|
TransientTableBase.Precision): Return column width and precision. |
679 |
|
|
680 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
681 |
|
or table_to_csv depending on file selection. |
682 |
|
|
683 |
|
* test/test_dbf_table.py: |
684 |
|
Test table_to_dbf (extension of former part of test). |
685 |
|
|
686 |
|
* test/test_csv_table.py: |
687 |
|
Test table_to_csv. |
688 |
|
|
689 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
690 |
|
|
691 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
692 |
|
Use QueryTableFrame instead of TableFrame. |
693 |
|
|
694 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
695 |
|
table window with 'Layer Table:' instead of 'Table:'. |
696 |
|
|
697 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
698 |
|
|
699 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
700 |
|
|
701 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
702 |
|
only if it exists. |
703 |
|
|
704 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
705 |
|
and call its init-method with a default title. Remove Title() method. |
706 |
|
|
707 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
708 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
709 |
|
a default title. Remove Title() method. |
710 |
|
|
711 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
712 |
|
|
713 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
714 |
|
AddShapeStore analogously to AddTable. |
715 |
|
|
716 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
717 |
|
New. Test for AddShapeStore |
718 |
|
|
719 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
720 |
|
|
721 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
722 |
|
|
723 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
724 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
725 |
|
The latter implements the selection GUI without dependency on a layer. |
726 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
727 |
|
to a layer. |
728 |
|
|
729 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
730 |
|
implementation that still needs work. |
731 |
|
|
732 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
733 |
|
|
734 |
|
2003-05-22 Frank Koormann <[email protected]> |
735 |
|
|
736 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
737 |
|
Added "outer_join = False" as optional parameter. |
738 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
739 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
740 |
|
the left table. Records not matching are filled with 0 / None. |
741 |
|
|
742 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
743 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
744 |
|
|
745 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
746 |
|
|
747 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
748 |
|
somewhat safer way. Storing the traceback in a local variable can |
749 |
|
lead to memory leaks |
750 |
|
|
751 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
752 |
|
|
753 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
754 |
|
the wxMessageDialog's Destroy() method. |
755 |
|
|
756 |
|
2003-05-22 Frank Koormann <[email protected]> |
757 |
|
|
758 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
759 |
|
TransientTable.Title() |
760 |
|
|
761 |
|
2003-05-22 Frank Koormann <[email protected]> |
762 |
|
|
763 |
|
Join Dialog, initial version. |
764 |
|
|
765 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
766 |
|
|
767 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
768 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
769 |
|
in all occurences. |
770 |
|
|
771 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
772 |
|
Typo fixed. |
773 |
|
|
774 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
775 |
|
|
776 |
|
Give the tables titles so that the GUI can display more meaningful |
777 |
|
names. For now the titles are fixed but depend on e.g. filenames |
778 |
|
or the titles of the joined tables. |
779 |
|
|
780 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
781 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
782 |
|
|
783 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
784 |
|
|
785 |
|
* test/test_transientdb.py |
786 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
787 |
|
for the Title method |
788 |
|
(TestTransientTable.test_transient_joined_table) |
789 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
790 |
|
methods |
791 |
|
|
792 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
793 |
|
Test for the Title method |
794 |
|
|
795 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
796 |
|
the Title method |
797 |
|
|
798 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
799 |
|
|
800 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
801 |
|
Provide a better way to destroy the layers |
802 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
803 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
804 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
805 |
|
the new way to destroy the layers. |
806 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
807 |
|
DerivedShapeStore |
808 |
|
|
809 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
810 |
|
filename if the shape store actually has one. |
811 |
|
|
812 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
813 |
|
|
814 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
815 |
|
for the filename |
816 |
|
|
817 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
818 |
|
for the FileName method |
819 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
820 |
|
|
821 |
|
2003-05-22 Thomas Koester <[email protected]> |
822 |
|
|
823 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
824 |
|
from SciParam that now really is immutable. |
825 |
|
|
826 |
|
2003-05-22 Frank Koormann <[email protected]> |
827 |
|
|
828 |
|
Layer Top/Bottom placement added to legend. |
829 |
|
|
830 |
|
* Thuban/UI/legend.py |
831 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
832 |
|
bound to tool events. |
833 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
834 |
|
New, methods binding the event methods with the map methods. |
835 |
|
|
836 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
837 |
|
layer at top/bottom of layer stack. |
838 |
|
|
839 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
840 |
|
|
841 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
842 |
|
|
843 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
844 |
|
|
845 |
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
846 |
|
remove tables |
847 |
|
|
848 |
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
849 |
|
Test for RemoveTable |
850 |
|
|
851 |
|
2003-05-22 Thomas Koester <[email protected]> |
852 |
|
|
853 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
854 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
855 |
|
|
856 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
857 |
|
|
858 |
|
Implement a way to discover dependencies between tables and |
859 |
|
shapestores. |
860 |
|
|
861 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
862 |
|
(TransientJoinedTable.Dependencies) |
863 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
864 |
|
interface |
865 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
866 |
|
objects in addition to the corresponding transient tables. |
867 |
|
|
868 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
869 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
870 |
|
interface |
871 |
|
|
872 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
873 |
|
ShapefileStore |
874 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
875 |
|
AutoTransientTable |
876 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
877 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
878 |
|
methods for filename and type |
879 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
880 |
|
interface |
881 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
882 |
|
difference to SimpleStore is that it depends not on a shapefile |
883 |
|
but another shapestore which expresses the dependencies a bit |
884 |
|
better |
885 |
|
(SimpleStore.__init__): Add deprecation warning. |
886 |
|
|
887 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
888 |
|
Test for the Dependencies method. |
889 |
|
|
890 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
891 |
|
New. Test for the Dependencies method. |
892 |
|
|
893 |
|
* test/test_transientdb.py |
894 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
895 |
|
Test for the Dependencies method. |
896 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
897 |
|
Dependencies method. |
898 |
|
|
899 |
|
* test/test_session.py (TestSessionSimple.setUp) |
900 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
901 |
|
destroy the sessions. |
902 |
|
(TestSessionSimple.test_initial_state) |
903 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
904 |
|
so that it's destroyed by tearDown |
905 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
906 |
|
OpenShapefile and the object it returns |
907 |
|
|
908 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
909 |
|
|
910 |
|
* Thuban/Model/session.py (Session.AddTable): New method to |
911 |
|
register tables with the session. |
912 |
|
(Session.Tables): Return the tables registered with AddTable too. |
913 |
|
|
914 |
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
915 |
|
Test case for the AddTable method |
916 |
|
|
917 |
|
2003-05-22 Frank Koormann <[email protected]> |
918 |
|
|
919 |
|
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
920 |
|
lower right corner, center labels for selections, initialize controls |
921 |
|
in reasonable order for keyboard navigation. |
922 |
|
|
923 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout) |
924 |
|
(ProjFrame.__DoOnProjAvail): Determine position of current projection |
925 |
|
using the wxListBox.FindString() method. Still a problem (#1886) |
926 |
|
|
927 |
|
* Thuban/UI/classifier.py |
928 |
|
(Classifier.__init__, SelectPropertiesDialog.__init__) |
929 |
|
|
930 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__, |
931 |
|
(ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the |
932 |
|
different classification types from here to __init__. |
933 |
|
(GenUniquePanel.__init__): Set the column width of the first field |
934 |
|
in the Field ListCtrl to the full width. |
935 |
|
|
936 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As' |
937 |
|
Button to 'Export'. Center Buttons in Selection Box, set Focus to |
938 |
|
Grid. |
939 |
|
(LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN, |
940 |
|
changes focus to the Selection when pressing "Alt-S". |
941 |
|
|
942 |
|
* Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out |
943 |
|
the text if not visible. The italic font sometimes exceeds the |
944 |
|
rendering area. |
945 |
|
|
946 |
|
2003-05-21 Jonathan Coles <[email protected]> |
947 |
|
|
948 |
|
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
949 |
|
to OnClose so that Thuban closes correctly. |
950 |
|
|
951 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
952 |
|
DockFrame.OnClose, not DockFrame._OnClose. |
953 |
|
|
954 |
|
2003-05-21 Jonathan Coles <[email protected]> |
955 |
|
|
956 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
957 |
|
references to 'inf' and use new Range __init__ to pass floats |
958 |
|
directly rather than converting them to strings first. |
959 |
|
Fixes RTBug #1876. |
960 |
|
|
961 |
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
962 |
|
Use new Range ___init__ to pass floats. |
963 |
|
|
964 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
965 |
|
filename is a valid image file. Throw IOError otherwise. |
966 |
|
|
967 |
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
968 |
|
is immutable and has an __init__ which can accept floats. |
969 |
|
|
970 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
971 |
|
into try block. AddLayer doesn't throw any exceptions anymore. |
972 |
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
973 |
|
try block. |
974 |
|
|
975 |
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
976 |
|
the first item in choices. Fixes RTBug #1882. |
977 |
|
|
978 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
979 |
|
has gone to 0 which is a serious problem. abort. |
980 |
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
981 |
|
print the error from GDAL. |
982 |
|
|
983 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
984 |
|
ToggleEventListeners to turn on listening. |
985 |
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
986 |
|
and off so as to prevent excessive messages. |
987 |
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
988 |
|
to suppress excessive messages when selecting many rows. |
989 |
|
Fixes RTBug #1880. |
990 |
|
|
991 |
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
992 |
|
is a serious problem that can occur when an image without |
993 |
|
geo data is loading and causes the map projection bounds to |
994 |
|
go to infinity. Right now, the solution is to simply try |
995 |
|
to recover. |
996 |
|
|
997 |
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
998 |
|
to set the MFILEReceiver attributes even if the data is NULL. |
999 |
|
|
1000 |
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
1001 |
|
and passed GDAL messages back up to the Python layer. Also |
1002 |
|
tried to fix some memory leaks that were present in the original |
1003 |
|
utility but didn't matter because the program aborted. |
1004 |
|
|
1005 |
|
* test/test_range.py: Copied over tests from SciParam. Removed |
1006 |
|
tests against importing. Fixes RTBug #1867. |
1007 |
|
|
1008 |
|
2003-05-21 Bernhard Herzog <[email protected]> |
1009 |
|
|
1010 |
|
* test/test_load.py: Remove unused imports and restructure the |
1011 |
|
test code |
1012 |
|
(LoadSessionTest): Split into one class for each test and turn |
1013 |
|
LoadSessionTest itself into the base class for all such session |
1014 |
|
tests. |
1015 |
|
(ClassificationTest): New base class for load tests that test |
1016 |
|
classifications |
1017 |
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
1018 |
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
1019 |
|
for the individual tests |
1020 |
|
|
1021 |
|
* test/support.py (FileLoadTestCase.filename): New base class for |
1022 |
|
file loading tests |
1023 |
|
|
1024 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
1025 |
|
|
1026 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
1027 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
1028 |
|
Added 'Gauss Krueger Zone 6'. |
1029 |
|
|
1030 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
1031 |
|
filled transparent to have the raster image visible at once. |
1032 |
|
|
1033 |
|
2003-05-21 Frank Koormann <[email protected]> |
1034 |
|
|
1035 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
1036 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
1037 |
|
still uses "underscored" names. |
1038 |
|
|
1039 |
|
2003-05-20 Jonathan Coles <[email protected]> |
1040 |
|
|
1041 |
|
This puts back Raster layer support. These layers support projections |
1042 |
|
through the GDAL library. Currently, the CVS version is being used. |
1043 |
|
There are no Debian packages available although this may change soon. |
1044 |
|
A GDAL driver was extended to support writing to memory rather to |
1045 |
|
files. |
1046 |
|
|
1047 |
|
There is still some work that needs to be done, such as some error |
1048 |
|
handling when loading invalid images or when there is a problem |
1049 |
|
projecting the image. This putback simply checks in the majority |
1050 |
|
of the work. |
1051 |
|
|
1052 |
|
* setup.py: Add gdalwarp library extension. |
1053 |
|
|
1054 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
1055 |
|
Defaults to False, but can be overridden by subclasses if they |
1056 |
|
support classification. |
1057 |
|
(RasterLayer): New. Defines a new layer that represents an |
1058 |
|
image. |
1059 |
|
|
1060 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
1061 |
|
tag handler. |
1062 |
|
(SessionLoader.start_layer): Encode the filename. |
1063 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
1064 |
|
New. Supports reading a rasterlayer tag. |
1065 |
|
|
1066 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
1067 |
|
|
1068 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
1069 |
|
get a string in Latin1. If we get such as string convert it to |
1070 |
|
unicode first, otherwise leave if alone before encoding. |
1071 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
1072 |
|
and RasterLayers. |
1073 |
|
|
1074 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
1075 |
|
The right argument may not be a string, it could also be a Column. |
1076 |
|
|
1077 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
1078 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
1079 |
|
|
1080 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
1081 |
|
the dialog is constructed so that we can support layers that |
1082 |
|
do not have classifications. |
1083 |
|
(Classifier._OnTry): Only build a classification if the layer |
1084 |
|
supports one. |
1085 |
|
|
1086 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
1087 |
|
instance of Layer into checks against BaseLayer. |
1088 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
1089 |
|
the layer supports classification. |
1090 |
|
|
1091 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
1092 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
1093 |
|
user chooses Cancel when they are asked to save changes. |
1094 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
1095 |
|
user to select an image file. Create a new RasterLayer and add |
1096 |
|
it to the map. |
1097 |
|
|
1098 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
1099 |
|
for rendering RasterLayer layers. |
1100 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
1101 |
|
the GDALWarp python wrapper and constructs an image from the |
1102 |
|
data returned. |
1103 |
|
|
1104 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
1105 |
|
Choices symbols to match those used in the table query method. |
1106 |
|
Replace deprecated method calls on table with new method names. |
1107 |
|
|
1108 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
1109 |
|
how small the scale can get. This still needs more testing. |
1110 |
|
|
1111 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
1112 |
|
Provides a driver to output in .bmp format. |
1113 |
|
|
1114 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
1115 |
|
New. Provides IO routines which write to memory, rather than a file. |
1116 |
|
|
1117 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
1118 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
1119 |
|
that can be accessed from python. |
1120 |
|
|
1121 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
1122 |
|
a raster layer. |
1123 |
|
|
1124 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
1125 |
|
layer image data. |
1126 |
|
|
1127 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
1128 |
|
|
1129 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
1130 |
|
tests associated with the raster layer code. |
1131 |
|
|
1132 |
|
* test/test_transientdb.py |
1133 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
1134 |
|
for using a Column object as the "right" parameter to a query. |
1135 |
|
|
1136 |
|
2003-05-19 Frank Koormann <[email protected]> |
1137 |
|
|
1138 |
|
* Thuban/version.py (get_changelog_date): |
1139 |
|
Catch exceptions if ChangeLog does not exist. |
1140 |
|
|
1141 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
1142 |
|
|
1143 |
2003-05-19 Frank Koormann <[email protected]> |
2003-05-19 Frank Koormann <[email protected]> |
1144 |
|
|
1145 |
Extended version information for Thuban |
Extended version information for Thuban |