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