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