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]> |
2003-05-27 Bernhard Herzog <[email protected]> |
561 |
|
|
562 |
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |