1 |
|
2003-06-03 Thomas Koester <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
4 |
|
|
5 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
6 |
|
|
7 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
8 |
|
New commands. |
9 |
|
(main_menu): Add the new commands. |
10 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
11 |
|
command. |
12 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
13 |
|
command. |
14 |
|
|
15 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
16 |
|
set the modified flag |
17 |
|
|
18 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
19 |
|
whether the modified flag is set properly |
20 |
|
|
21 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
22 |
|
instead of issue so that the modified flags get updated. |
23 |
|
|
24 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
25 |
|
instead of Publisher to reflect reality better and to accomodate |
26 |
|
the fact that SetTitle now calls changed instead of issue |
27 |
|
|
28 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
29 |
|
|
30 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
31 |
|
acquisition has to happen before the try in a try-finally. |
32 |
|
|
33 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
34 |
|
|
35 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
36 |
|
possible that a layer is removed that is not currently selected in |
37 |
|
the legend so don't check for this. |
38 |
|
|
39 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
40 |
|
|
41 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
42 |
|
variables to None that have direct or indirect references to |
43 |
|
shapefiles or dbf files to make sure that they do go away and the |
44 |
|
files are closed. |
45 |
|
|
46 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
49 |
|
availImgListIndices when a new image list is created |
50 |
|
|
51 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
52 |
|
|
53 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
54 |
|
changing_selection to indicate whether the LegendTree code itself |
55 |
|
is currently changing the selection |
56 |
|
(LegendTree.normalize_selection): New method to normalize the |
57 |
|
selection by selecting the layer item even if the user clicked on |
58 |
|
the classification. |
59 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
60 |
|
around a bug in wx which doesn't keep track of the selection |
61 |
|
properly when subtrees are deleted. |
62 |
|
|
63 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
64 |
|
|
65 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
66 |
|
maximum and minimum scale factors. |
67 |
|
|
68 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
69 |
|
changes in classgen.py |
70 |
|
|
71 |
|
2003-05-30 Jonathan Coles <[email protected]> |
72 |
|
|
73 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
74 |
|
all the methods functions. Fixes RTBug #1903. |
75 |
|
|
76 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
77 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
78 |
|
RTBug #1907. |
79 |
|
|
80 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
81 |
|
of the ClassGenerator class. Put try/finally blocks around |
82 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
83 |
|
RTBug #1904. |
84 |
|
|
85 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
86 |
|
|
87 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
88 |
|
time something changed which caused some state to be lost such |
89 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
90 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
91 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
92 |
|
the legend but not in the map. |
93 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
94 |
|
methods that can be used by other methods. |
95 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
96 |
|
if they are available. |
97 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
98 |
|
that we override the wxTreeCtrl method. Iterate over children |
99 |
|
and call __RemoveLayer. |
100 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
101 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
102 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
103 |
|
Should only be called with the id of a layer branch. |
104 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
105 |
|
Returns the root item or creates one if necessary. |
106 |
|
|
107 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
108 |
|
ProjectRasterFile with tuple arguments instead of strings. |
109 |
|
|
110 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
111 |
|
with try/finally. Fixes RTBug #1904. |
112 |
|
|
113 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
114 |
|
with try/finally. Fixes RTBug #1904. |
115 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
116 |
|
simply center it on the display. Fixes RTBug #1849. |
117 |
|
|
118 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
119 |
|
to be compiled as a standalone app. Now the code can only be |
120 |
|
called from Python which simplifies the parameter passing. |
121 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
122 |
|
checks for a destination dataset. Add more clean up code. |
123 |
|
|
124 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
125 |
|
TestMapWithContents.test_lower_layer_bottom): |
126 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
127 |
|
Fixes RTBug #1907. |
128 |
|
|
129 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
130 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
131 |
|
|
132 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
133 |
|
|
134 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
135 |
|
unsubscribes all that is subcribed in __init__. |
136 |
|
|
137 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
138 |
|
|
139 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
140 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
141 |
|
Layer/Duplicate command. |
142 |
|
(layer_duplicate command): New. |
143 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
144 |
|
|
145 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
146 |
|
|
147 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
148 |
|
renderer so that NULL/None values get displayed differently (by a |
149 |
|
gray rectangle). |
150 |
|
(TableGrid.__init__): Override the default renderers |
151 |
|
|
152 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
153 |
|
|
154 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
155 |
|
classification to "None" if the type of the field has changed. |
156 |
|
|
157 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
158 |
|
test for the Layer.SetShapeStore method |
159 |
|
|
160 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
161 |
|
|
162 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
163 |
|
does not necessarily have a filename). |
164 |
|
|
165 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
166 |
|
|
167 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
168 |
|
sort the selection list for the dialog. |
169 |
|
|
170 |
|
2003-05-28 Frank Koormann <[email protected]> |
171 |
|
|
172 |
|
* extensions/thuban/wxproj.cpp |
173 |
|
(project_point): Removed cast to int for projected point coordinates. |
174 |
|
(shape_centroid): Return last point if all polygon vertices fall |
175 |
|
to one point. |
176 |
|
|
177 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
178 |
|
|
179 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
180 |
|
with layers that don't have shapestores, i.e. raster layers. |
181 |
|
|
182 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
183 |
|
|
184 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
185 |
|
when determining the title from the filename. |
186 |
|
|
187 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
188 |
|
reflect changes in the way the title is derived from the filename |
189 |
|
|
190 |
|
2003-05-28 Frank Koormann <[email protected]> |
191 |
|
|
192 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
193 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
194 |
|
|
195 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
196 |
|
|
197 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
198 |
|
delegate SelectedLayer. |
199 |
|
(MainWindow.LayerUnjoinTable): Implement. |
200 |
|
(_can_unjoin): New. Helper function for the sensitivity of the |
201 |
|
layer/unjoin command. |
202 |
|
|
203 |
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
204 |
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
205 |
|
shapestore. Used to figure out how to unjoin. |
206 |
|
(DerivedShapeStore.Shapefile): Fix a typo. |
207 |
|
|
208 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
209 |
|
|
210 |
|
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
211 |
|
well |
212 |
|
(JoinDialog.__init__): Use the layer parameter and only build the |
213 |
|
left choice when a layer is given |
214 |
|
(JoinDialog.OnJoin): Handle layer joins as well |
215 |
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
216 |
|
that the user selects the "Select..." item. The sensitivitly |
217 |
|
updating is now in update_sensitivity |
218 |
|
(JoinDialog.y): New method to refactor the sensitivity update of |
219 |
|
the join button into its own method. |
220 |
|
|
221 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
222 |
|
|
223 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
224 |
|
|
225 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
226 |
|
iff there are unreferenced tables in the session |
227 |
|
|
228 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
229 |
|
|
230 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
231 |
|
|
232 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
233 |
|
to return tables that are not referenced by other tables or shape |
234 |
|
stores and can be removed. |
235 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
236 |
|
removing the table |
237 |
|
|
238 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
239 |
|
(MainWindow.TableClose): Implement. |
240 |
|
|
241 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
242 |
|
messages so that the frame will be automatically closed when a new |
243 |
|
session is opened or the table is removed. |
244 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
245 |
|
__init__ |
246 |
|
(TableFrame.close_on_session_replaced) |
247 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
248 |
|
the window |
249 |
|
|
250 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
251 |
|
(TestSessionSimple.test_remove_table): Move the test to |
252 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
253 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
254 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
255 |
|
UnreferencedTables method. |
256 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
257 |
|
tests for UnreferencedTables. |
258 |
|
|
259 |
|
2003-05-27 Frank Koormann <[email protected]> |
260 |
|
|
261 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
262 |
|
display has some unwanted side effects. Removed again. |
263 |
|
|
264 |
|
2003-05-27 Frank Koormann <[email protected]> |
265 |
|
|
266 |
|
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
267 |
|
|
268 |
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
269 |
|
|
270 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
271 |
|
|
272 |
|
* test/test_menu.py (MenuTest.test): Added test for |
273 |
|
Menu.RemoveItem(). |
274 |
|
|
275 |
|
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
276 |
|
the menu. |
277 |
|
|
278 |
|
2003-05-27 Frank Koormann <[email protected]> |
279 |
|
|
280 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
281 |
|
window) |
282 |
|
|
283 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
284 |
|
all dialogs in the dialogs dictionary and the canvas. |
285 |
|
|
286 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
287 |
|
parent, i.e. can fall behind other windows. |
288 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
289 |
|
dictionary before removing it. |
290 |
|
|
291 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
292 |
|
|
293 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
294 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
295 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
296 |
|
|
297 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
298 |
|
|
299 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
300 |
|
tableview dialog |
301 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
302 |
|
Also, don't use the table's titles as the dialog names. The titles |
303 |
|
aren't guaranteed to be unique. |
304 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
305 |
|
table |
306 |
|
|
307 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
308 |
|
|
309 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
310 |
|
effect can be achieved by simply closing the window showing the |
311 |
|
table. |
312 |
|
(MainWindow.TableHide): Removed. |
313 |
|
(main_menu): Removed "table_hide" |
314 |
|
|
315 |
|
2003-05-27 Frank Koormann <[email protected]> |
316 |
|
|
317 |
|
Fix legend tree display problems under Win32 |
318 |
|
|
319 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
320 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
321 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
322 |
|
|
323 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
324 |
|
|
325 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
326 |
|
|
327 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
328 |
|
'after' now allows to insert separators almost anywhere in the menu. |
329 |
|
|
330 |
|
2003-05-27 Frank Koormann <[email protected]> |
331 |
|
|
332 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
333 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
334 |
|
Win32 but is ignored under GTK. |
335 |
|
|
336 |
|
2003-05-26 Frank Koormann <[email protected]> |
337 |
|
|
338 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
339 |
|
Center Choices. |
340 |
|
|
341 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
342 |
|
|
343 |
|
Remove the Precision methods again. They're too DBF specific to be |
344 |
|
part of the table interface and they're only used in table_to_dbf |
345 |
|
anyway. |
346 |
|
|
347 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
348 |
|
fixed precision of 12 for doubles. |
349 |
|
(TransientTableBase.Precision): Removed |
350 |
|
(AutoTransientTable.Width): Delegate to self.table. |
351 |
|
|
352 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
353 |
|
(MemoryTable.Precision): Removed. |
354 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
355 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
356 |
|
column object specifies something else. |
357 |
|
|
358 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
359 |
|
test for table_to_dbf |
360 |
|
|
361 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
362 |
|
|
363 |
|
* test/test_transientdb.py |
364 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
365 |
|
|
366 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
367 |
|
|
368 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
369 |
|
implementation. Mark parts of the file format strings for |
370 |
|
localization. |
371 |
|
|
372 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
373 |
|
file and add the table to the tables managed by the session |
374 |
|
|
375 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
376 |
|
New. test case for OpenTableFile |
377 |
|
|
378 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
379 |
|
|
380 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
381 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
382 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
383 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
384 |
|
|
385 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
386 |
|
|
387 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
388 |
|
already a selection present, update the grid accordingly. |
389 |
|
|
390 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
391 |
|
resizeable and increase its initial size. |
392 |
|
|
393 |
|
2003-05-26 Frank Koormann <[email protected]> |
394 |
|
|
395 |
|
Table export functionality |
396 |
|
|
397 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
398 |
|
Return width (in characters) for a column. |
399 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
400 |
|
(table_to_dbf): Write table to dbf file. |
401 |
|
(table_to_csv): Write table to csv file. |
402 |
|
|
403 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
404 |
|
TransientTableBase.Precision): Return column width and precision. |
405 |
|
|
406 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
407 |
|
or table_to_csv depending on file selection. |
408 |
|
|
409 |
|
* test/test_dbf_table.py: |
410 |
|
Test table_to_dbf (extension of former part of test). |
411 |
|
|
412 |
|
* test/test_csv_table.py: |
413 |
|
Test table_to_csv. |
414 |
|
|
415 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
416 |
|
|
417 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
418 |
|
Use QueryTableFrame instead of TableFrame. |
419 |
|
|
420 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
421 |
|
table window with 'Layer Table:' instead of 'Table:'. |
422 |
|
|
423 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
424 |
|
|
425 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
426 |
|
|
427 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
428 |
|
only if it exists. |
429 |
|
|
430 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
431 |
|
and call its init-method with a default title. Remove Title() method. |
432 |
|
|
433 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
434 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
435 |
|
a default title. Remove Title() method. |
436 |
|
|
437 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
438 |
|
|
439 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
440 |
|
AddShapeStore analogously to AddTable. |
441 |
|
|
442 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
443 |
|
New. Test for AddShapeStore |
444 |
|
|
445 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
446 |
|
|
447 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
448 |
|
|
449 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
450 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
451 |
|
The latter implements the selection GUI without dependency on a layer. |
452 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
453 |
|
to a layer. |
454 |
|
|
455 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
456 |
|
implementation that still needs work. |
457 |
|
|
458 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
459 |
|
|
460 |
|
2003-05-22 Frank Koormann <[email protected]> |
461 |
|
|
462 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
463 |
|
Added "outer_join = False" as optional parameter. |
464 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
465 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
466 |
|
the left table. Records not matching are filled with 0 / None. |
467 |
|
|
468 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
469 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
470 |
|
|
471 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
472 |
|
|
473 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
474 |
|
somewhat safer way. Storing the traceback in a local variable can |
475 |
|
lead to memory leaks |
476 |
|
|
477 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
478 |
|
|
479 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
480 |
|
the wxMessageDialog's Destroy() method. |
481 |
|
|
482 |
|
2003-05-22 Frank Koormann <[email protected]> |
483 |
|
|
484 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
485 |
|
TransientTable.Title() |
486 |
|
|
487 |
|
2003-05-22 Frank Koormann <[email protected]> |
488 |
|
|
489 |
|
Join Dialog, initial version. |
490 |
|
|
491 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
492 |
|
|
493 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
494 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
495 |
|
in all occurences. |
496 |
|
|
497 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
498 |
|
Typo fixed. |
499 |
|
|
500 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
501 |
|
|
502 |
|
Give the tables titles so that the GUI can display more meaningful |
503 |
|
names. For now the titles are fixed but depend on e.g. filenames |
504 |
|
or the titles of the joined tables. |
505 |
|
|
506 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
507 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
508 |
|
|
509 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
510 |
|
|
511 |
|
* test/test_transientdb.py |
512 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
513 |
|
for the Title method |
514 |
|
(TestTransientTable.test_transient_joined_table) |
515 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
516 |
|
methods |
517 |
|
|
518 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
519 |
|
Test for the Title method |
520 |
|
|
521 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
522 |
|
the Title method |
523 |
|
|
524 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
525 |
|
|
526 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
527 |
|
Provide a better way to destroy the layers |
528 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
529 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
530 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
531 |
|
the new way to destroy the layers. |
532 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
533 |
|
DerivedShapeStore |
534 |
|
|
535 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
536 |
|
filename if the shape store actually has one. |
537 |
|
|
538 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
539 |
|
|
540 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
541 |
|
for the filename |
542 |
|
|
543 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
544 |
|
for the FileName method |
545 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
546 |
|
|
547 |
|
2003-05-22 Thomas Koester <[email protected]> |
548 |
|
|
549 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
550 |
|
from SciParam that now really is immutable. |
551 |
|
|
552 |
|
2003-05-22 Frank Koormann <[email protected]> |
553 |
|
|
554 |
|
Layer Top/Bottom placement added to legend. |
555 |
|
|
556 |
|
* Thuban/UI/legend.py |
557 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
558 |
|
bound to tool events. |
559 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
560 |
|
New, methods binding the event methods with the map methods. |
561 |
|
|
562 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
563 |
|
layer at top/bottom of layer stack. |
564 |
|
|
565 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
566 |
|
|
567 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
568 |
|
|
569 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
570 |
|
|
571 |
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
572 |
|
remove tables |
573 |
|
|
574 |
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
575 |
|
Test for RemoveTable |
576 |
|
|
577 |
|
2003-05-22 Thomas Koester <[email protected]> |
578 |
|
|
579 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
580 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
581 |
|
|
582 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
583 |
|
|
584 |
|
Implement a way to discover dependencies between tables and |
585 |
|
shapestores. |
586 |
|
|
587 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
588 |
|
(TransientJoinedTable.Dependencies) |
589 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
590 |
|
interface |
591 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
592 |
|
objects in addition to the corresponding transient tables. |
593 |
|
|
594 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
595 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
596 |
|
interface |
597 |
|
|
598 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
599 |
|
ShapefileStore |
600 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
601 |
|
AutoTransientTable |
602 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
603 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
604 |
|
methods for filename and type |
605 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
606 |
|
interface |
607 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
608 |
|
difference to SimpleStore is that it depends not on a shapefile |
609 |
|
but another shapestore which expresses the dependencies a bit |
610 |
|
better |
611 |
|
(SimpleStore.__init__): Add deprecation warning. |
612 |
|
|
613 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
614 |
|
Test for the Dependencies method. |
615 |
|
|
616 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
617 |
|
New. Test for the Dependencies method. |
618 |
|
|
619 |
|
* test/test_transientdb.py |
620 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
621 |
|
Test for the Dependencies method. |
622 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
623 |
|
Dependencies method. |
624 |
|
|
625 |
|
* test/test_session.py (TestSessionSimple.setUp) |
626 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
627 |
|
destroy the sessions. |
628 |
|
(TestSessionSimple.test_initial_state) |
629 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
630 |
|
so that it's destroyed by tearDown |
631 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
632 |
|
OpenShapefile and the object it returns |
633 |
|
|
634 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
635 |
|
|
636 |
|
* Thuban/Model/session.py (Session.AddTable): New method to |
637 |
|
register tables with the session. |
638 |
|
(Session.Tables): Return the tables registered with AddTable too. |
639 |
|
|
640 |
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
641 |
|
Test case for the AddTable method |
642 |
|
|
643 |
|
2003-05-22 Frank Koormann <[email protected]> |
644 |
|
|
645 |
|
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
646 |
|
lower right corner, center labels for selections, initialize controls |
647 |
|
in reasonable order for keyboard navigation. |
648 |
|
|
649 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout) |
650 |
|
(ProjFrame.__DoOnProjAvail): Determine position of current projection |
651 |
|
using the wxListBox.FindString() method. Still a problem (#1886) |
652 |
|
|
653 |
|
* Thuban/UI/classifier.py |
654 |
|
(Classifier.__init__, SelectPropertiesDialog.__init__) |
655 |
|
|
656 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__, |
657 |
|
(ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the |
658 |
|
different classification types from here to __init__. |
659 |
|
(GenUniquePanel.__init__): Set the column width of the first field |
660 |
|
in the Field ListCtrl to the full width. |
661 |
|
|
662 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As' |
663 |
|
Button to 'Export'. Center Buttons in Selection Box, set Focus to |
664 |
|
Grid. |
665 |
|
(LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN, |
666 |
|
changes focus to the Selection when pressing "Alt-S". |
667 |
|
|
668 |
|
* Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out |
669 |
|
the text if not visible. The italic font sometimes exceeds the |
670 |
|
rendering area. |
671 |
|
|
672 |
|
2003-05-21 Jonathan Coles <[email protected]> |
673 |
|
|
674 |
|
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
675 |
|
to OnClose so that Thuban closes correctly. |
676 |
|
|
677 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
678 |
|
DockFrame.OnClose, not DockFrame._OnClose. |
679 |
|
|
680 |
|
2003-05-21 Jonathan Coles <[email protected]> |
681 |
|
|
682 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
683 |
|
references to 'inf' and use new Range __init__ to pass floats |
684 |
|
directly rather than converting them to strings first. |
685 |
|
Fixes RTBug #1876. |
686 |
|
|
687 |
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
688 |
|
Use new Range ___init__ to pass floats. |
689 |
|
|
690 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
691 |
|
filename is a valid image file. Throw IOError otherwise. |
692 |
|
|
693 |
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
694 |
|
is immutable and has an __init__ which can accept floats. |
695 |
|
|
696 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
697 |
|
into try block. AddLayer doesn't throw any exceptions anymore. |
698 |
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
699 |
|
try block. |
700 |
|
|
701 |
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
702 |
|
the first item in choices. Fixes RTBug #1882. |
703 |
|
|
704 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
705 |
|
has gone to 0 which is a serious problem. abort. |
706 |
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
707 |
|
print the error from GDAL. |
708 |
|
|
709 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
710 |
|
ToggleEventListeners to turn on listening. |
711 |
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
712 |
|
and off so as to prevent excessive messages. |
713 |
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
714 |
|
to suppress excessive messages when selecting many rows. |
715 |
|
Fixes RTBug #1880. |
716 |
|
|
717 |
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
718 |
|
is a serious problem that can occur when an image without |
719 |
|
geo data is loading and causes the map projection bounds to |
720 |
|
go to infinity. Right now, the solution is to simply try |
721 |
|
to recover. |
722 |
|
|
723 |
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
724 |
|
to set the MFILEReceiver attributes even if the data is NULL. |
725 |
|
|
726 |
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
727 |
|
and passed GDAL messages back up to the Python layer. Also |
728 |
|
tried to fix some memory leaks that were present in the original |
729 |
|
utility but didn't matter because the program aborted. |
730 |
|
|
731 |
|
* test/test_range.py: Copied over tests from SciParam. Removed |
732 |
|
tests against importing. Fixes RTBug #1867. |
733 |
|
|
734 |
|
2003-05-21 Bernhard Herzog <[email protected]> |
735 |
|
|
736 |
|
* test/test_load.py: Remove unused imports and restructure the |
737 |
|
test code |
738 |
|
(LoadSessionTest): Split into one class for each test and turn |
739 |
|
LoadSessionTest itself into the base class for all such session |
740 |
|
tests. |
741 |
|
(ClassificationTest): New base class for load tests that test |
742 |
|
classifications |
743 |
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
744 |
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
745 |
|
for the individual tests |
746 |
|
|
747 |
|
* test/support.py (FileLoadTestCase.filename): New base class for |
748 |
|
file loading tests |
749 |
|
|
750 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
751 |
|
|
752 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
753 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
754 |
|
Added 'Gauss Krueger Zone 6'. |
755 |
|
|
756 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
757 |
|
filled transparent to have the raster image visible at once. |
758 |
|
|
759 |
|
2003-05-21 Frank Koormann <[email protected]> |
760 |
|
|
761 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
762 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
763 |
|
still uses "underscored" names. |
764 |
|
|
765 |
|
2003-05-20 Jonathan Coles <[email protected]> |
766 |
|
|
767 |
|
This puts back Raster layer support. These layers support projections |
768 |
|
through the GDAL library. Currently, the CVS version is being used. |
769 |
|
There are no Debian packages available although this may change soon. |
770 |
|
A GDAL driver was extended to support writing to memory rather to |
771 |
|
files. |
772 |
|
|
773 |
|
There is still some work that needs to be done, such as some error |
774 |
|
handling when loading invalid images or when there is a problem |
775 |
|
projecting the image. This putback simply checks in the majority |
776 |
|
of the work. |
777 |
|
|
778 |
|
* setup.py: Add gdalwarp library extension. |
779 |
|
|
780 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
781 |
|
Defaults to False, but can be overridden by subclasses if they |
782 |
|
support classification. |
783 |
|
(RasterLayer): New. Defines a new layer that represents an |
784 |
|
image. |
785 |
|
|
786 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
787 |
|
tag handler. |
788 |
|
(SessionLoader.start_layer): Encode the filename. |
789 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
790 |
|
New. Supports reading a rasterlayer tag. |
791 |
|
|
792 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
793 |
|
|
794 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
795 |
|
get a string in Latin1. If we get such as string convert it to |
796 |
|
unicode first, otherwise leave if alone before encoding. |
797 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
798 |
|
and RasterLayers. |
799 |
|
|
800 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
801 |
|
The right argument may not be a string, it could also be a Column. |
802 |
|
|
803 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
804 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
805 |
|
|
806 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
807 |
|
the dialog is constructed so that we can support layers that |
808 |
|
do not have classifications. |
809 |
|
(Classifier._OnTry): Only build a classification if the layer |
810 |
|
supports one. |
811 |
|
|
812 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
813 |
|
instance of Layer into checks against BaseLayer. |
814 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
815 |
|
the layer supports classification. |
816 |
|
|
817 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
818 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
819 |
|
user chooses Cancel when they are asked to save changes. |
820 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
821 |
|
user to select an image file. Create a new RasterLayer and add |
822 |
|
it to the map. |
823 |
|
|
824 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
825 |
|
for rendering RasterLayer layers. |
826 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
827 |
|
the GDALWarp python wrapper and constructs an image from the |
828 |
|
data returned. |
829 |
|
|
830 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
831 |
|
Choices symbols to match those used in the table query method. |
832 |
|
Replace deprecated method calls on table with new method names. |
833 |
|
|
834 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
835 |
|
how small the scale can get. This still needs more testing. |
836 |
|
|
837 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
838 |
|
Provides a driver to output in .bmp format. |
839 |
|
|
840 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
841 |
|
New. Provides IO routines which write to memory, rather than a file. |
842 |
|
|
843 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
844 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
845 |
|
that can be accessed from python. |
846 |
|
|
847 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
848 |
|
a raster layer. |
849 |
|
|
850 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
851 |
|
layer image data. |
852 |
|
|
853 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
854 |
|
|
855 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
856 |
|
tests associated with the raster layer code. |
857 |
|
|
858 |
|
* test/test_transientdb.py |
859 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
860 |
|
for using a Column object as the "right" parameter to a query. |
861 |
|
|
862 |
|
2003-05-19 Frank Koormann <[email protected]> |
863 |
|
|
864 |
|
* Thuban/version.py (get_changelog_date): |
865 |
|
Catch exceptions if ChangeLog does not exist. |
866 |
|
|
867 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
868 |
|
|
869 |
2003-05-19 Frank Koormann <[email protected]> |
2003-05-19 Frank Koormann <[email protected]> |
870 |
|
|
871 |
Extended version information for Thuban |
Extended version information for Thuban |