1 |
|
2003-05-27 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
4 |
|
window) |
5 |
|
|
6 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
7 |
|
all dialogs in the dialogs dictionary and the canvas. |
8 |
|
|
9 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
10 |
|
parent, i.e. can fall behind other windows. |
11 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
12 |
|
dictionary before removing it. |
13 |
|
|
14 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
15 |
|
|
16 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
17 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
18 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
19 |
|
|
20 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
21 |
|
|
22 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
23 |
|
tableview dialog |
24 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
25 |
|
Also, don't use the table's titles as the dialog names. The titles |
26 |
|
aren't guaranteed to be unique. |
27 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
28 |
|
table |
29 |
|
|
30 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
31 |
|
|
32 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
33 |
|
effect can be achieved by simply closing the window showing the |
34 |
|
table. |
35 |
|
(MainWindow.TableHide): Removed. |
36 |
|
(main_menu): Removed "table_hide" |
37 |
|
|
38 |
|
2003-05-27 Frank Koormann <[email protected]> |
39 |
|
|
40 |
|
Fix legend tree display problems under Win32 |
41 |
|
|
42 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
43 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
44 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
45 |
|
|
46 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
47 |
|
|
48 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
49 |
|
|
50 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
51 |
|
'after' now allows to insert separators almost anywhere in the menu. |
52 |
|
|
53 |
|
2003-05-27 Frank Koormann <[email protected]> |
54 |
|
|
55 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
56 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
57 |
|
Win32 but is ignored under GTK. |
58 |
|
|
59 |
|
2003-05-26 Frank Koormann <[email protected]> |
60 |
|
|
61 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
62 |
|
Center Choices. |
63 |
|
|
64 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
65 |
|
|
66 |
|
Remove the Precision methods again. They're too DBF specific to be |
67 |
|
part of the table interface and they're only used in table_to_dbf |
68 |
|
anyway. |
69 |
|
|
70 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
71 |
|
fixed precision of 12 for doubles. |
72 |
|
(TransientTableBase.Precision): Removed |
73 |
|
(AutoTransientTable.Width): Delegate to self.table. |
74 |
|
|
75 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
76 |
|
(MemoryTable.Precision): Removed. |
77 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
78 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
79 |
|
column object specifies something else. |
80 |
|
|
81 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
82 |
|
test for table_to_dbf |
83 |
|
|
84 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
85 |
|
|
86 |
|
* test/test_transientdb.py |
87 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
88 |
|
|
89 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
90 |
|
|
91 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
92 |
|
implementation. Mark parts of the file format strings for |
93 |
|
localization. |
94 |
|
|
95 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
96 |
|
file and add the table to the tables managed by the session |
97 |
|
|
98 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
99 |
|
New. test case for OpenTableFile |
100 |
|
|
101 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
102 |
|
|
103 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
104 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
105 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
106 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
107 |
|
|
108 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
109 |
|
|
110 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
111 |
|
already a selection present, update the grid accordingly. |
112 |
|
|
113 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
114 |
|
resizeable and increase its initial size. |
115 |
|
|
116 |
|
2003-05-26 Frank Koormann <[email protected]> |
117 |
|
|
118 |
|
Table export functionality |
119 |
|
|
120 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
121 |
|
Return width (in characters) for a column. |
122 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
123 |
|
(table_to_dbf): Write table to dbf file. |
124 |
|
(table_to_csv): Write table to csv file. |
125 |
|
|
126 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
127 |
|
TransientTableBase.Precision): Return column width and precision. |
128 |
|
|
129 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
130 |
|
or table_to_csv depending on file selection. |
131 |
|
|
132 |
|
* test/test_dbf_table.py: |
133 |
|
Test table_to_dbf (extension of former part of test). |
134 |
|
|
135 |
|
* test/test_csv_table.py: |
136 |
|
Test table_to_csv. |
137 |
|
|
138 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
139 |
|
|
140 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
141 |
|
Use QueryTableFrame instead of TableFrame. |
142 |
|
|
143 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
144 |
|
table window with 'Layer Table:' instead of 'Table:'. |
145 |
|
|
146 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
147 |
|
|
148 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
149 |
|
|
150 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
151 |
|
only if it exists. |
152 |
|
|
153 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
154 |
|
and call its init-method with a default title. Remove Title() method. |
155 |
|
|
156 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
157 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
158 |
|
a default title. Remove Title() method. |
159 |
|
|
160 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
161 |
|
|
162 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
163 |
|
AddShapeStore analogously to AddTable. |
164 |
|
|
165 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
166 |
|
New. Test for AddShapeStore |
167 |
|
|
168 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
169 |
|
|
170 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
171 |
|
|
172 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
173 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
174 |
|
The latter implements the selection GUI without dependency on a layer. |
175 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
176 |
|
to a layer. |
177 |
|
|
178 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
179 |
|
implementation that still needs work. |
180 |
|
|
181 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
182 |
|
|
183 |
|
2003-05-22 Frank Koormann <[email protected]> |
184 |
|
|
185 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
186 |
|
Added "outer_join = False" as optional parameter. |
187 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
188 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
189 |
|
the left table. Records not matching are filled with 0 / None. |
190 |
|
|
191 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
192 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
193 |
|
|
194 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
195 |
|
|
196 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
197 |
|
somewhat safer way. Storing the traceback in a local variable can |
198 |
|
lead to memory leaks |
199 |
|
|
200 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
201 |
|
|
202 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
203 |
|
the wxMessageDialog's Destroy() method. |
204 |
|
|
205 |
|
2003-05-22 Frank Koormann <[email protected]> |
206 |
|
|
207 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
208 |
|
TransientTable.Title() |
209 |
|
|
210 |
|
2003-05-22 Frank Koormann <[email protected]> |
211 |
|
|
212 |
|
Join Dialog, initial version. |
213 |
|
|
214 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
215 |
|
|
216 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
217 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
218 |
|
in all occurences. |
219 |
|
|
220 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
221 |
|
Typo fixed. |
222 |
|
|
223 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
224 |
|
|
225 |
|
Give the tables titles so that the GUI can display more meaningful |
226 |
|
names. For now the titles are fixed but depend on e.g. filenames |
227 |
|
or the titles of the joined tables. |
228 |
|
|
229 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
230 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
231 |
|
|
232 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
233 |
|
|
234 |
|
* test/test_transientdb.py |
235 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
236 |
|
for the Title method |
237 |
|
(TestTransientTable.test_transient_joined_table) |
238 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
239 |
|
methods |
240 |
|
|
241 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
242 |
|
Test for the Title method |
243 |
|
|
244 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
245 |
|
the Title method |
246 |
|
|
247 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
248 |
|
|
249 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
250 |
|
Provide a better way to destroy the layers |
251 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
252 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
253 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
254 |
|
the new way to destroy the layers. |
255 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
256 |
|
DerivedShapeStore |
257 |
|
|
258 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
259 |
|
filename if the shape store actually has one. |
260 |
|
|
261 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
262 |
|
|
263 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
264 |
|
for the filename |
265 |
|
|
266 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
267 |
|
for the FileName method |
268 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
269 |
|
|
270 |
|
2003-05-22 Thomas Koester <[email protected]> |
271 |
|
|
272 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
273 |
|
from SciParam that now really is immutable. |
274 |
|
|
275 |
|
2003-05-22 Frank Koormann <[email protected]> |
276 |
|
|
277 |
|
Layer Top/Bottom placement added to legend. |
278 |
|
|
279 |
|
* Thuban/UI/legend.py |
280 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
281 |
|
bound to tool events. |
282 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
283 |
|
New, methods binding the event methods with the map methods. |
284 |
|
|
285 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
286 |
|
layer at top/bottom of layer stack. |
287 |
|
|
288 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
289 |
|
|
290 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
291 |
|
|
292 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
293 |
|
|
294 |
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
295 |
|
remove tables |
296 |
|
|
297 |
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
298 |
|
Test for RemoveTable |
299 |
|
|
300 |
|
2003-05-22 Thomas Koester <[email protected]> |
301 |
|
|
302 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
303 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
304 |
|
|
305 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
306 |
|
|
307 |
|
Implement a way to discover dependencies between tables and |
308 |
|
shapestores. |
309 |
|
|
310 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
311 |
|
(TransientJoinedTable.Dependencies) |
312 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
313 |
|
interface |
314 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
315 |
|
objects in addition to the corresponding transient tables. |
316 |
|
|
317 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
318 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
319 |
|
interface |
320 |
|
|
321 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
322 |
|
ShapefileStore |
323 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
324 |
|
AutoTransientTable |
325 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
326 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
327 |
|
methods for filename and type |
328 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
329 |
|
interface |
330 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
331 |
|
difference to SimpleStore is that it depends not on a shapefile |
332 |
|
but another shapestore which expresses the dependencies a bit |
333 |
|
better |
334 |
|
(SimpleStore.__init__): Add deprecation warning. |
335 |
|
|
336 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
337 |
|
Test for the Dependencies method. |
338 |
|
|
339 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
340 |
|
New. Test for the Dependencies method. |
341 |
|
|
342 |
|
* test/test_transientdb.py |
343 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
344 |
|
Test for the Dependencies method. |
345 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
346 |
|
Dependencies method. |
347 |
|
|
348 |
|
* test/test_session.py (TestSessionSimple.setUp) |
349 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
350 |
|
destroy the sessions. |
351 |
|
(TestSessionSimple.test_initial_state) |
352 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
353 |
|
so that it's destroyed by tearDown |
354 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
355 |
|
OpenShapefile and the object it returns |
356 |
|
|
357 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
358 |
|
|
359 |
|
* Thuban/Model/session.py (Session.AddTable): New method to |
360 |
|
register tables with the session. |
361 |
|
(Session.Tables): Return the tables registered with AddTable too. |
362 |
|
|
363 |
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
364 |
|
Test case for the AddTable method |
365 |
|
|
366 |
|
2003-05-22 Frank Koormann <[email protected]> |
367 |
|
|
368 |
|
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
369 |
|
lower right corner, center labels for selections, initialize controls |
370 |
|
in reasonable order for keyboard navigation. |
371 |
|
|
372 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout) |
373 |
|
(ProjFrame.__DoOnProjAvail): Determine position of current projection |
374 |
|
using the wxListBox.FindString() method. Still a problem (#1886) |
375 |
|
|
376 |
|
* Thuban/UI/classifier.py |
377 |
|
(Classifier.__init__, SelectPropertiesDialog.__init__) |
378 |
|
|
379 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__, |
380 |
|
(ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the |
381 |
|
different classification types from here to __init__. |
382 |
|
(GenUniquePanel.__init__): Set the column width of the first field |
383 |
|
in the Field ListCtrl to the full width. |
384 |
|
|
385 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As' |
386 |
|
Button to 'Export'. Center Buttons in Selection Box, set Focus to |
387 |
|
Grid. |
388 |
|
(LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN, |
389 |
|
changes focus to the Selection when pressing "Alt-S". |
390 |
|
|
391 |
|
* Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out |
392 |
|
the text if not visible. The italic font sometimes exceeds the |
393 |
|
rendering area. |
394 |
|
|
395 |
|
2003-05-21 Jonathan Coles <[email protected]> |
396 |
|
|
397 |
|
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
398 |
|
to OnClose so that Thuban closes correctly. |
399 |
|
|
400 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
401 |
|
DockFrame.OnClose, not DockFrame._OnClose. |
402 |
|
|
403 |
|
2003-05-21 Jonathan Coles <[email protected]> |
404 |
|
|
405 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
406 |
|
references to 'inf' and use new Range __init__ to pass floats |
407 |
|
directly rather than converting them to strings first. |
408 |
|
Fixes RTBug #1876. |
409 |
|
|
410 |
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
411 |
|
Use new Range ___init__ to pass floats. |
412 |
|
|
413 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
414 |
|
filename is a valid image file. Throw IOError otherwise. |
415 |
|
|
416 |
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
417 |
|
is immutable and has an __init__ which can accept floats. |
418 |
|
|
419 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
420 |
|
into try block. AddLayer doesn't throw any exceptions anymore. |
421 |
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
422 |
|
try block. |
423 |
|
|
424 |
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
425 |
|
the first item in choices. Fixes RTBug #1882. |
426 |
|
|
427 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
428 |
|
has gone to 0 which is a serious problem. abort. |
429 |
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
430 |
|
print the error from GDAL. |
431 |
|
|
432 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
433 |
|
ToggleEventListeners to turn on listening. |
434 |
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
435 |
|
and off so as to prevent excessive messages. |
436 |
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
437 |
|
to suppress excessive messages when selecting many rows. |
438 |
|
Fixes RTBug #1880. |
439 |
|
|
440 |
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
441 |
|
is a serious problem that can occur when an image without |
442 |
|
geo data is loading and causes the map projection bounds to |
443 |
|
go to infinity. Right now, the solution is to simply try |
444 |
|
to recover. |
445 |
|
|
446 |
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
447 |
|
to set the MFILEReceiver attributes even if the data is NULL. |
448 |
|
|
449 |
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
450 |
|
and passed GDAL messages back up to the Python layer. Also |
451 |
|
tried to fix some memory leaks that were present in the original |
452 |
|
utility but didn't matter because the program aborted. |
453 |
|
|
454 |
|
* test/test_range.py: Copied over tests from SciParam. Removed |
455 |
|
tests against importing. Fixes RTBug #1867. |
456 |
|
|
457 |
|
2003-05-21 Bernhard Herzog <[email protected]> |
458 |
|
|
459 |
|
* test/test_load.py: Remove unused imports and restructure the |
460 |
|
test code |
461 |
|
(LoadSessionTest): Split into one class for each test and turn |
462 |
|
LoadSessionTest itself into the base class for all such session |
463 |
|
tests. |
464 |
|
(ClassificationTest): New base class for load tests that test |
465 |
|
classifications |
466 |
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
467 |
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
468 |
|
for the individual tests |
469 |
|
|
470 |
|
* test/support.py (FileLoadTestCase.filename): New base class for |
471 |
|
file loading tests |
472 |
|
|
473 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
474 |
|
|
475 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
476 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
477 |
|
Added 'Gauss Krueger Zone 6'. |
478 |
|
|
479 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
480 |
|
filled transparent to have the raster image visible at once. |
481 |
|
|
482 |
|
2003-05-21 Frank Koormann <[email protected]> |
483 |
|
|
484 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
485 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
486 |
|
still uses "underscored" names. |
487 |
|
|
488 |
|
2003-05-20 Jonathan Coles <[email protected]> |
489 |
|
|
490 |
|
This puts back Raster layer support. These layers support projections |
491 |
|
through the GDAL library. Currently, the CVS version is being used. |
492 |
|
There are no Debian packages available although this may change soon. |
493 |
|
A GDAL driver was extended to support writing to memory rather to |
494 |
|
files. |
495 |
|
|
496 |
|
There is still some work that needs to be done, such as some error |
497 |
|
handling when loading invalid images or when there is a problem |
498 |
|
projecting the image. This putback simply checks in the majority |
499 |
|
of the work. |
500 |
|
|
501 |
|
* setup.py: Add gdalwarp library extension. |
502 |
|
|
503 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
504 |
|
Defaults to False, but can be overridden by subclasses if they |
505 |
|
support classification. |
506 |
|
(RasterLayer): New. Defines a new layer that represents an |
507 |
|
image. |
508 |
|
|
509 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
510 |
|
tag handler. |
511 |
|
(SessionLoader.start_layer): Encode the filename. |
512 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
513 |
|
New. Supports reading a rasterlayer tag. |
514 |
|
|
515 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
516 |
|
|
517 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
518 |
|
get a string in Latin1. If we get such as string convert it to |
519 |
|
unicode first, otherwise leave if alone before encoding. |
520 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
521 |
|
and RasterLayers. |
522 |
|
|
523 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
524 |
|
The right argument may not be a string, it could also be a Column. |
525 |
|
|
526 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
527 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
528 |
|
|
529 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
530 |
|
the dialog is constructed so that we can support layers that |
531 |
|
do not have classifications. |
532 |
|
(Classifier._OnTry): Only build a classification if the layer |
533 |
|
supports one. |
534 |
|
|
535 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
536 |
|
instance of Layer into checks against BaseLayer. |
537 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
538 |
|
the layer supports classification. |
539 |
|
|
540 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
541 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
542 |
|
user chooses Cancel when they are asked to save changes. |
543 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
544 |
|
user to select an image file. Create a new RasterLayer and add |
545 |
|
it to the map. |
546 |
|
|
547 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
548 |
|
for rendering RasterLayer layers. |
549 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
550 |
|
the GDALWarp python wrapper and constructs an image from the |
551 |
|
data returned. |
552 |
|
|
553 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
554 |
|
Choices symbols to match those used in the table query method. |
555 |
|
Replace deprecated method calls on table with new method names. |
556 |
|
|
557 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
558 |
|
how small the scale can get. This still needs more testing. |
559 |
|
|
560 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
561 |
|
Provides a driver to output in .bmp format. |
562 |
|
|
563 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
564 |
|
New. Provides IO routines which write to memory, rather than a file. |
565 |
|
|
566 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
567 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
568 |
|
that can be accessed from python. |
569 |
|
|
570 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
571 |
|
a raster layer. |
572 |
|
|
573 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
574 |
|
layer image data. |
575 |
|
|
576 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
577 |
|
|
578 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
579 |
|
tests associated with the raster layer code. |
580 |
|
|
581 |
|
* test/test_transientdb.py |
582 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
583 |
|
for using a Column object as the "right" parameter to a query. |
584 |
|
|
585 |
|
2003-05-19 Frank Koormann <[email protected]> |
586 |
|
|
587 |
|
* Thuban/version.py (get_changelog_date): |
588 |
|
Catch exceptions if ChangeLog does not exist. |
589 |
|
|
590 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
591 |
|
|
592 |
|
2003-05-19 Frank Koormann <[email protected]> |
593 |
|
|
594 |
|
Extended version information for Thuban |
595 |
|
|
596 |
|
* Thuban/version.py: New, version information for Thuban: Last |
597 |
|
modification date and last ChangeLog entry date. |
598 |
|
|
599 |
|
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
600 |
|
information: Display Thuban, wxPython and Python version. |
601 |
|
|
602 |
2003-05-16 Bernhard Herzog <[email protected]> |
2003-05-16 Bernhard Herzog <[email protected]> |
603 |
|
|
604 |
* Thuban/Model/save.py: Remove some unused imports including the |
* Thuban/Model/save.py: Remove some unused imports including the |