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