1 |
|
2003-07-17 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen |
4 |
|
shots for the manual. The XCF file is the source image and |
5 |
|
has additional layers to support changes. |
6 |
|
|
7 |
|
* Doc/manual/thuban-manual.xml: Wrote an initial Introduction. |
8 |
|
|
9 |
|
* Thuban/UI/classifier.py (Classifier.__BuildClassification): |
10 |
|
Return both the new class and the field name. |
11 |
|
|
12 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't |
13 |
|
fit the map to the window as this changes any zoom level that |
14 |
|
the user may have set. |
15 |
|
|
16 |
|
2003-07-16 Jonathan Coles <[email protected]> |
17 |
|
|
18 |
|
* Thuban/Model/classgen.py (generate_singletons, |
19 |
|
generate_uniform_distribution, generate_quantiles): Remove |
20 |
|
fixes parameter, but maintain the same functionality by having |
21 |
|
the calling function pass a FixedRamp object for the ramp. |
22 |
|
(FixedRamp): New. Adapts a ramp to have fixed property values. |
23 |
|
|
24 |
|
* Thuban/Model/classification.py: Use new CLASS_CHANGED message. |
25 |
|
(Classification): Inherit from Publisher. |
26 |
|
(Classification.__init__): Remove the layer parameter. |
27 |
|
Classifications no longer need to have a parent layer. |
28 |
|
(Classification.GetField, Classification.GetFieldType, |
29 |
|
Classification.SetFieldInfo): Removed. The field name is stored |
30 |
|
in the layer, and the type can be retreived by calling |
31 |
|
Layer.GetFieldType(). |
32 |
|
(Classification._set_layer, Classification.GetLayer): Removed. |
33 |
|
Classifications no longer have a parent layer. |
34 |
|
|
35 |
|
* Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the |
36 |
|
classification. |
37 |
|
(Layer.SetShapeStore): Reset the classification first while |
38 |
|
we still have the old shape store to work with. |
39 |
|
(Layer.GetClassificationField, Layer.SetClassificationField): |
40 |
|
New. Method for getting/setting the field to classify on. |
41 |
|
(Layer.SetClassification): Simplified now that the layer |
42 |
|
simply has to hold a reference to the classification and not |
43 |
|
tell the classification who owns it. |
44 |
|
Fixes RTbug #2023. |
45 |
|
|
46 |
|
* Thuban/Model/load.py (SessionLoader.start_classification): |
47 |
|
Set the field name on the layer, not the classification. |
48 |
|
|
49 |
|
* Thuban/Model/messages.py: Add CLASS_CHANGED for when a |
50 |
|
classification is modified. |
51 |
|
|
52 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
53 |
|
Get the field name and type from the layer. |
54 |
|
|
55 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed |
56 |
|
parameter records to rows and add docstring. Fixes RTbug #1997. |
57 |
|
|
58 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed |
59 |
|
ramp when we need to fix certain values of a ramp rather than |
60 |
|
using the old fixes parameter. Fixes RTbug #2024. |
61 |
|
|
62 |
|
* Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType |
63 |
|
parameter. |
64 |
|
(ClassTable.Reset): Add fieldType parameter and use it, rather |
65 |
|
than asking the classification. |
66 |
|
(Classifier.__init__): Remember the original class's field |
67 |
|
and ask the layer for the field type, rather than the classification. |
68 |
|
(Classifier.__SetGridTable): Retrieve the field and field type |
69 |
|
for the table because they are not in the classification. |
70 |
|
(Classifier._OnTry, Classifier._OnRevert): Set the classification |
71 |
|
field on the layer in addition to the classification itself. |
72 |
|
|
73 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the |
74 |
|
classification field from layer. |
75 |
|
|
76 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the |
77 |
|
classification field from layer. Split up tests and remove |
78 |
|
*-imports. Fixes RTbug #1992. |
79 |
|
|
80 |
|
* test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class. |
81 |
|
|
82 |
|
* test/test_classification.py |
83 |
|
(TestClassification.test_classification): Remove tests for methods |
84 |
|
that no longer exist. |
85 |
|
|
86 |
|
* test/test_layer.py (SetShapeStoreTests.setUp): Classification |
87 |
|
__init__ no longer has a field parameter, use SetClassificationField. |
88 |
|
(SetShapeStoreTests.test_sanity): Use layer object to get class |
89 |
|
field info. |
90 |
|
|
91 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Use |
92 |
|
SetClassificationField on layer to set class field info. |
93 |
|
|
94 |
|
* test/test_viewport.py: Renamed from test/test_view.py. |
95 |
|
|
96 |
|
2003-07-16 Jan-Oliver Wagner <[email protected]> |
97 |
|
|
98 |
|
* Doc/manual/thuban-manual.xml: Added authors and an initial |
99 |
|
coarse structure. |
100 |
|
|
101 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
102 |
|
|
103 |
|
* test/support.py (FloatComparisonMixin): This is a mix-in class |
104 |
|
and therefore should not be derived from any other class. |
105 |
|
|
106 |
|
* test/test_range.py (RangeTest): FloatComparisonMixin is a |
107 |
|
mix-in, so derive from TestCase as well. |
108 |
|
|
109 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
110 |
|
|
111 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the |
112 |
|
draw_func handling a bit to remove one layer of indirection. This |
113 |
|
makes the renderer about 10% faster in the non-classifying case |
114 |
|
and the code a bit cleaner |
115 |
|
(MapRenderer.draw_point_shape): Add the pen and brush parameters |
116 |
|
and set them in the dc. Now the draw_point_shape method and |
117 |
|
wxproj's draw_polygon_shape function have basically the same |
118 |
|
signature so that both can be directly used as draw_func |
119 |
|
|
120 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Encode |
123 |
|
string values (in addition to the labels) as UTF 8 |
124 |
|
|
125 |
|
* Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the |
126 |
|
values if the field type is string |
127 |
|
|
128 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Test |
129 |
|
saving a session with non-ascii string classification values. |
130 |
|
|
131 |
|
* test/test_load.py (TestClassification.file_contents) |
132 |
|
(TestClassification.test): Check for non-ascii values in string |
133 |
|
classifications |
134 |
|
|
135 |
|
2003-07-14 Jonathan Coles <[email protected]> |
136 |
|
|
137 |
|
* test/test_view.py: New. Tests for ViewPort. |
138 |
|
|
139 |
|
2003-07-14 Frank Koormann <[email protected]> |
140 |
|
|
141 |
|
* Thuban/Model/load.py (SessionLoader.start_map): Encode map |
142 |
|
title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013 |
143 |
|
|
144 |
|
* test/test_load_0_8.py (TestUnicodeStrings): New, test load of |
145 |
|
unicode strings from session file: session title, map title and |
146 |
|
projection name. |
147 |
|
|
148 |
|
2003-07-10 Jonathan Coles <[email protected]> |
149 |
|
|
150 |
|
* Thuban/UI/viewport.py (Tool.MouseUp): Should have called |
151 |
|
drag_stop, not drag_move when the mouse is released. |
152 |
|
|
153 |
|
2003-07-10 Jonathan Coles <[email protected]> |
154 |
|
|
155 |
|
The most important part of this is the seperation of view.py into |
156 |
|
two pieces. viewport.py now has a class called ViewPort which |
157 |
|
contains all the non-wx parts of view.py and can therefore be |
158 |
|
tested. view.py contains only the wx-specific parts and is fairly |
159 |
|
simple. |
160 |
|
|
161 |
|
* Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes |
162 |
|
RTTbug #1992. |
163 |
|
* Thuban/UI/viewport.py: New. Contains non-wx view functionality. |
164 |
|
RTTbug #1992. |
165 |
|
|
166 |
|
* Thuban/Model/classgen.py (generate_singletons, |
167 |
|
generate_uniform_distribution, generate_quantiles): |
168 |
|
Added 'fixes' parameter so that property attributes can |
169 |
|
be held constant over the generated classification groups. |
170 |
|
(CustomRamp.GetProperties): Remove unused variables. |
171 |
|
|
172 |
|
* Thuban/Model/map.py (Map.SetProjection): Send the old |
173 |
|
projection as an argument to listeners of the MAP_PROJECTION_CHANGED |
174 |
|
event. |
175 |
|
|
176 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records' |
177 |
|
parameter which is a list of records that restricts which |
178 |
|
records are saved. Fixes RTbug #1997. |
179 |
|
|
180 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
181 |
|
Port exception dialog from GREAT-ER. Fixes RTbug #1993. |
182 |
|
|
183 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls |
184 |
|
to allow the user to fix line color/width on generated groups. |
185 |
|
(ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_* |
186 |
|
functions to optionally fix group properties. |
187 |
|
|
188 |
|
* Thuban/UI/main.py (main): Set exception hook to the |
189 |
|
ShowExceptionDialog. Fixes RTbug #1993. |
190 |
|
|
191 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise |
192 |
|
the table window when it is selectd to be shown. |
193 |
|
|
194 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an |
195 |
|
Export Selection button and move the export buttons underneath |
196 |
|
the table. |
197 |
|
(QueryTableFrame.UpdateStatusText): Added event argument so |
198 |
|
that it can respond to grid selection events. The status text |
199 |
|
is now updated even when the table is not associated with a |
200 |
|
layer as was previously assumed. |
201 |
|
(QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed. |
202 |
|
UpdateStatusText responds to these events. |
203 |
|
(QueryTableFrame.OnSaveAs): Renamed to doExport. |
204 |
|
(QueryTableFrame.doExport): Helper function that saves the |
205 |
|
entire table, or selected rows, to a file. |
206 |
|
(QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New. |
207 |
|
Respond to export button events and call doExport. |
208 |
|
|
209 |
|
* extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure |
210 |
|
the function doesn't return NULL without first setting a Python |
211 |
|
Error. |
212 |
|
|
213 |
|
* test/runtests.py (main): Only print "Unknown option" for |
214 |
|
unsupported options. |
215 |
|
|
216 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): Take |
217 |
|
optional epsilon argument to specify floating point accuracy. |
218 |
|
(FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual |
219 |
|
for each item test. |
220 |
|
|
221 |
|
* test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add |
222 |
|
tests for saving selected records. |
223 |
|
|
224 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
225 |
|
tests for saving selected records. |
226 |
|
|
227 |
|
* test/test_map.py (TestMapWithContents.test_set_projection): |
228 |
|
MAP_PROJECTION_CHANGED events send the old projection. |
229 |
|
|
230 |
|
* test/test_session.py |
231 |
|
(TestSessionWithContent.test_forward_map_projection): |
232 |
|
MAP_PROJECTION_CHANGED events send the old projection. |
233 |
|
|
234 |
|
* test/test_table.py (TableTest): Update tests to use non-deprecated |
235 |
|
functions. |
236 |
|
|
237 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
238 |
|
|
239 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width): The type |
240 |
|
constants in the column objects are the standard ones defined in |
241 |
|
the table module. |
242 |
|
|
243 |
|
* test/test_transientdb.py |
244 |
|
(TestTransientTable.test_transienttable_to_dbf): New. Test whether |
245 |
|
exporting transient tables as DBF works. This should catch the bug |
246 |
|
just fixed in TransientTableBase.Width. |
247 |
|
|
248 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
249 |
|
|
250 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the |
251 |
|
interpolated colors correctly. |
252 |
|
|
253 |
|
* test/test_classgen.py (TestCustomRamp.test_color_interpolation): |
254 |
|
New. Test case for the fix in classgen.py |
255 |
|
|
256 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
257 |
|
|
258 |
|
* test/runtests.py (main): Make the default output less verbose |
259 |
|
and add a verbosity option (-v) to get the old output |
260 |
|
|
261 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
262 |
|
|
263 |
|
* Resources/XML/thuban-0.9.dtd: New. This will become the DTD for |
264 |
|
0.9. |
265 |
|
|
266 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.JoinType): |
267 |
|
New. Return the join type |
268 |
|
|
269 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9 |
270 |
|
DTD |
271 |
|
(SessionSaver.write_data_containers): Save the join type for |
272 |
|
joined tables |
273 |
|
|
274 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9 |
275 |
|
namespace |
276 |
|
(SessionLoader.start_jointable): Handle the jointype attribute |
277 |
|
|
278 |
|
* test/test_load_0_8.py: New. Effectively a copy of test_load.py |
279 |
|
as of Thuban 0.8. These are now tests to determine whether Thuban |
280 |
|
can still read files generated by Thuban 0.8 |
281 |
|
|
282 |
|
* test/test_load.py (LoadSessionTest.dtd) |
283 |
|
(TestSingleLayer.file_contents) |
284 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
285 |
|
(TestLayerProjection.file_contents) |
286 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
287 |
|
(TestJoinedTable.file_contents) |
288 |
|
(TestLoadError.file_contents): Update for new DTD |
289 |
|
(TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test |
290 |
|
for new join type attribute |
291 |
|
|
292 |
|
* test/test_save.py (SaveSessionTest.dtd) |
293 |
|
(SaveSessionTest.testEmptySession) |
294 |
|
(SaveSessionTest.testSingleLayer) |
295 |
|
(SaveSessionTest.testLayerProjection) |
296 |
|
(SaveSessionTest.testRasterLayer) |
297 |
|
(SaveSessionTest.testClassifiedLayer) |
298 |
|
(SaveSessionTest.test_dbf_table) |
299 |
|
(SaveSessionTest.test_joined_table): Update for new DTD |
300 |
|
(SaveSessionTest.test_joined_table): Add test for new join type |
301 |
|
attribute |
302 |
|
|
303 |
|
2003-07-04 Bernhard Herzog <[email protected]> |
304 |
|
|
305 |
|
* Thuban/Model/table.py (_find_dbf_column_names): New. Helper |
306 |
|
function for table_to_dbf |
307 |
|
(table_to_dbf): Deal with names longer than the 10 character limit |
308 |
|
|
309 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
310 |
|
doc-string |
311 |
|
(TestTableToDBF.test_table_to_dbf_long_col_names): New test for |
312 |
|
long column names |
313 |
|
|
314 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
315 |
|
|
316 |
|
* Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax |
317 |
|
|
318 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
319 |
|
|
320 |
|
* Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton |
321 |
|
for the Thuban manual and README with some basic information about |
322 |
|
the manual |
323 |
|
|
324 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
325 |
|
|
326 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
327 |
|
Update doc-string |
328 |
|
(TransientJoinedTable.create): Do not modify the column objects of |
329 |
|
the input tables in place and copy all columns of the input tables |
330 |
|
into the joined table after all. |
331 |
|
|
332 |
|
* test/test_transientdb.py |
333 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
334 |
|
Update to reflect the new behavior |
335 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
336 |
|
Update to reflect the new behavior |
337 |
|
(TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place): |
338 |
|
New test case for a bug which modified the column objects in place |
339 |
|
|
340 |
|
2003-07-02 Jonathan Coles <[email protected]> |
341 |
|
|
342 |
|
* Thuban/Model/classgen.py (generate_singletons, |
343 |
|
generate_uniform_distribution, generate_quantiles, |
344 |
|
GenQuantiles0): Make sure maxValue isn't less than |
345 |
|
one, otherwise we could divide by zero. |
346 |
|
|
347 |
|
* test/test_classgen.py (ClassGenTest.doClassRangeTest, |
348 |
|
ClassGenTest.doClassSingleTest): Call doBoundsTest to |
349 |
|
check the end classification groups against the |
350 |
|
proper property values. |
351 |
|
(ClassGenTest.doBoundsTest): New. Checks the first and |
352 |
|
last classification groups to make sure their properties |
353 |
|
are the correct upper and lower bounds for a color ramp. |
354 |
|
|
355 |
|
2003-07-02 Jonathan Coles <[email protected]> |
356 |
|
|
357 |
|
* Thuban/Model/classgen.py (generate_singletons, |
358 |
|
generate_uniform_distribution, generate_quantiles, |
359 |
|
GenQuantiles0): The denominator was one to high when |
360 |
|
calculating the index for the ramp causing the index |
361 |
|
to never to reach one. |
362 |
|
|
363 |
|
2003-07-02 Jonathan Coles <[email protected]> |
364 |
|
|
365 |
|
Changed the singature of ClassGroupRange.__init__ and |
366 |
|
ClassGroupRange.SetRange() so that the min/max values are |
367 |
|
passed as a tuple. This makes a better calling scheme for |
368 |
|
when a Range object is passed instead. |
369 |
|
|
370 |
|
* Thuban/Model/classgen.py: Fixed parameters to |
371 |
|
ClassGroupRange constructor. |
372 |
|
|
373 |
|
* Thuban/Model/classification.py (ClassGroupRange.__init__): |
374 |
|
Consolidate the min/max parameters into a single _range which |
375 |
|
can either be a tuple or a Range object. |
376 |
|
(ClassGroupRange.SetRange): Consolidate the min/max parameters |
377 |
|
into a single _range which can either be a tuple or a Range object. |
378 |
|
|
379 |
|
* Thuban/Model/load.py (SessionLoader.start_clrange): Fix |
380 |
|
call to ClassGroupRange constructor to use a tuple. |
381 |
|
|
382 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Switch |
383 |
|
the classification instance variable to the new class |
384 |
|
before calling _set_layer otherwise subscribers to a |
385 |
|
LAYER_CHANGED event will not see any difference. |
386 |
|
|
387 |
|
* test/test_classification.py: Fix tests of ClassGroupRange |
388 |
|
so that they use the new signature. |
389 |
|
|
390 |
|
* test/test_load.py: Fix use of ClassGroupRange so that it |
391 |
|
uses the new signature. |
392 |
|
|
393 |
|
* test/test_load_0_2.py: Fix use of ClassGroupRange so that it |
394 |
|
uses the new signature. |
395 |
|
|
396 |
|
* test/test_save.py: Fix use of ClassGroupRange so that it |
397 |
|
uses the new signature. |
398 |
|
|
399 |
|
|
400 |
|
2003-07-01 Jonathan Coles <[email protected]> |
401 |
|
|
402 |
|
* Thuban/Model/classgen.py: Fixes RTbug #1972, 1971. |
403 |
|
Import used objects/class from color. |
404 |
|
(generate_singletons): We don't |
405 |
|
need the numGroups parameter anymore because we are using |
406 |
|
the new ramps with GetProperties(). |
407 |
|
(generate_uniform_distribution): Use new ramp method |
408 |
|
GetProperties(). |
409 |
|
(generate_quantiles, GenQuantiles0): Use new ramp method |
410 |
|
GetProperties(). |
411 |
|
(CustomRamp.SetNumGroups): Removed. The ramps now map |
412 |
|
a value from 0 to 1 to class properties so the number |
413 |
|
of groups is not needed ahead of time. |
414 |
|
(CustomRamp.next): Removed. CustomRamp does not support |
415 |
|
interation anymore. |
416 |
|
(CustomRamp.GetProperties): Returns a ClassGroupProperties |
417 |
|
object based on the index value from 0 to 1 that is |
418 |
|
passed to it. |
419 |
|
(GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp): |
420 |
|
Made into instances of Monochromatic class instread of |
421 |
|
deriving from it. |
422 |
|
(HotToCold.SetNumGroups): Removed. See CustomRamp. |
423 |
|
(HotToCold.next): Removed. See CustomRamp. |
424 |
|
|
425 |
|
* Thuban/Model/classification.py: Fixes RTbug #1973, 1971. |
426 |
|
(Classification.SetField, Classification.SetFieldType): |
427 |
|
Replaced with SetFieldInfo. |
428 |
|
(Classification.SetFieldInfo): New. Does a better job of |
429 |
|
what SetField and SetFieldType used to do by combining |
430 |
|
their function since they should really always be done |
431 |
|
at the same time. |
432 |
|
(Classification.SetLayer): Renamed to _set_layer. |
433 |
|
(Classification._set_layer): Should only be called from |
434 |
|
Layer's SetClassification. This does not cause a recursive |
435 |
|
call as SetLayer did because we know that Layer knows about |
436 |
|
the classification. |
437 |
|
|
438 |
|
* Thuban/Model/color.py: Fixes RTbug #1971. |
439 |
|
(_Transparent): Renamed from Transparent so it doesn't |
440 |
|
conflict with the module variable. |
441 |
|
(Transparent, Black): Renamed from Color.Transparent, |
442 |
|
Color.Black so they are not class variables. |
443 |
|
|
444 |
|
* Thuban/Model/layer.py: Fixes RTbug #1971, 1973. |
445 |
|
(Layer.Destroy): We don't need to call SetClassification |
446 |
|
anymore to clear out the back reference in the classifcation |
447 |
|
to the layer. It's better to set it to None using _set_layer, |
448 |
|
and we won't be creating another clas object too. |
449 |
|
(Layer.SetClassification): Classification._set_layer is not |
450 |
|
recursive so remove all the locking variables. Also clean |
451 |
|
up the code so that it remains unchanged if something fails. |
452 |
|
|
453 |
|
* Thuban/Model/load.py: Fixes RTbug #1971. |
454 |
|
(SessionLoader.start_classification): Call |
455 |
|
Classification.SetFieldInfo(). |
456 |
|
|
457 |
|
* Thuban/Model/save.py: Removed import of Color which wasn't |
458 |
|
being used. |
459 |
|
|
460 |
|
* Thuban/UI/classgen.py: Fixes RTbug #1972. |
461 |
|
(ClassGenDialog.__init__): Color ramps are now instances |
462 |
|
already so we don't need to create any new objects. |
463 |
|
(ClassGenDialog.OnOK): Check for numGroups is no longer |
464 |
|
necessary because we never use it. |
465 |
|
|
466 |
|
* Thuban/UI/classifier.py: Fixes RTbug #1971. |
467 |
|
(Classifier.__BuildClassification, Classifier.__SetGridTable): |
468 |
|
Call Classification.SetFieldInfo() instead of SetFieldType. |
469 |
|
|
470 |
|
* Thuban/UI/renderer.py: Fixes RTbug #1971. |
471 |
|
|
472 |
|
* Thuban/UI/view.py: Fixes RTbug #1974, 1971. |
473 |
|
(MapCanvas.__init__): Subscribe to the idle time event. Set |
474 |
|
background color to white. |
475 |
|
(MapCanvas.OnPaint): Set a flag indicating that we should |
476 |
|
render the map during idle time. If we already have a bitmap |
477 |
|
just draw it now. |
478 |
|
(MapCanvas.OnIdle): New. Render the map only during idle time. |
479 |
|
This also fixes a problem with the busy cursor under gtk. |
480 |
|
|
481 |
|
* test/test_classgen.py (ClassGenTest.test_generate_singletons): |
482 |
|
Fix calls to generate_singletons because the signature changed. |
483 |
|
|
484 |
|
* test/test_classification.py: Fix color references and |
485 |
|
change calls to Classification.[SetField|SetFieldType] to |
486 |
|
SetFieldInfo. |
487 |
|
|
488 |
|
* test/test_load.py: Fix color references. |
489 |
|
|
490 |
|
* test/test_load_0_2.py: Fix color references. |
491 |
|
|
492 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): |
493 |
|
Change calls to Classification.[SetField|SetFieldType] to |
494 |
|
SetFieldInfo. |
495 |
|
|
496 |
|
2003-07-01 Frank Koormann <[email protected]> |
497 |
|
|
498 |
|
MERGE from the greater-ms3 branch. |
499 |
|
|
500 |
|
* test/test_transientdb.py |
501 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
502 |
|
New. Test join of two tables with partly equal column names. |
503 |
|
|
504 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): |
505 |
|
If duplicates in left and right tables column names are found, |
506 |
|
append '_' (underscores) to the name until it is unique. |
507 |
|
Create always new internal names for the resulting table and reference |
508 |
|
columns in the join statement with <table>.<column> |
509 |
|
|
510 |
|
2003-07-01 Bernhard Herzog <[email protected]> |
511 |
|
|
512 |
|
* test/test_transientdb.py |
513 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
514 |
|
New. Test whether joining on columns with the same names in both |
515 |
|
tables works. |
516 |
|
|
517 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): Make |
518 |
|
sure to use the right internal names even when joining on field |
519 |
|
with the same names in both tables. Also, detect duplicate names |
520 |
|
in the joined table correctly. |
521 |
|
|
522 |
|
2003-07-01 Frank Koormann <[email protected]> |
523 |
|
|
524 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
525 |
|
Reverse List of layers to render in same order as in desktop legend. |
526 |
|
|
527 |
|
2003-06-30 Jonathan Coles <[email protected]> |
528 |
|
|
529 |
|
* Thuban/version.py (make_tuple): Takes a version string |
530 |
|
and splits it into a tuple of at most three integers. |
531 |
|
Used make_tuple() to make tuple versions of the version |
532 |
|
numbers. |
533 |
|
|
534 |
|
* Thuban/UI/about.py: Add Thuban email addresses. |
535 |
|
|
536 |
|
2003-06-30 Jonathan Coles <[email protected]> |
537 |
|
|
538 |
|
* Thuban/version.py: SQLite/PySQLite version dependencies |
539 |
|
were too high. |
540 |
|
|
541 |
|
2003-06-30 Jonathan Coles <[email protected]> |
542 |
|
|
543 |
|
* Thuban/version.py: Update version to 0.8.1 |
544 |
|
|
545 |
|
* MANIFEST.in: Added Projections so that default.proj is |
546 |
|
included. |
547 |
|
|
548 |
|
2003-06-26 Jonathan Coles <[email protected]> |
549 |
|
|
550 |
|
New About box with lots more information including library |
551 |
|
versions and credits. More/better version checking before |
552 |
|
Thuban starts. |
553 |
|
|
554 |
|
* Thuban/UI/about.py: New. New About box that displays |
555 |
|
library version information and credits. |
556 |
|
|
557 |
|
* Thuban/version.py: Added new 'versions' dictionary which |
558 |
|
contains the verions of various libraries which are checked |
559 |
|
when the module loads. |
560 |
|
(verify_versions): Check all version numbers and returns |
561 |
|
a list of errors. |
562 |
|
|
563 |
|
* Thuban/UI/classifier.py (Classifier.__EnableButtons): |
564 |
|
Reset the status of the buttons as the situation warrants, |
565 |
|
but in a better more reliable way by not relying on the |
566 |
|
current status to determine what needs to change. |
567 |
|
|
568 |
|
* Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed. |
569 |
|
(verify_versions): Remove most of the code since it is |
570 |
|
now in Thuban.version.verify_versions.o |
571 |
|
|
572 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Call new |
573 |
|
About box in Thuban.UI.about. |
574 |
|
|
575 |
|
* extensions/thuban/gdalwarp.cpp (get_gdal_version): New. |
576 |
|
Returns the version of gdal library being used as a string. |
577 |
|
|
578 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
579 |
|
Removed. |
580 |
|
(get_proj_version): Return the version of PROJ that the file |
581 |
|
was compiled with. |
582 |
|
(get_gtk_version): Return th version of GTK that the file |
583 |
|
was compiled with. |
584 |
|
|
585 |
|
2003-06-25 Jonathan Coles <[email protected]> |
586 |
|
|
587 |
|
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |
588 |
|
of the SelectPropertiesDialog should be self so the window |
589 |
|
appears on top. |
590 |
|
(ClassGroupPropertiesCtrl.DoEdit): The parent |
591 |
|
of the SelectPropertiesDialog should be self so the window |
592 |
|
appears on top. |
593 |
|
|
594 |
|
* Thuban/UI/resource.py: Cleaned up how we determine file |
595 |
|
extensions. |
596 |
|
(GetImageResource): Return an wxImage from our Resources. |
597 |
|
|
598 |
|
2003-06-24 Jonathan Coles <[email protected]> |
599 |
|
|
600 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
601 |
|
Check that a layer has a classification before trying |
602 |
|
to get it. Raster layers don't have classifications. |
603 |
|
|
604 |
|
2003-06-23 Jonathan Coles <[email protected]> |
605 |
|
|
606 |
|
* setup.py: Add Resources/XML to resource list. |
607 |
|
|
608 |
|
2003-06-23 Jonathan Coles <[email protected]> |
609 |
|
|
610 |
|
* setup.cfg: Fix copyright dates |
611 |
|
|
612 |
|
2003-06-23 Jonathan Coles <[email protected]> |
613 |
|
|
614 |
|
* MANIFEST.in: Update with Resources/XML |
615 |
|
|
616 |
|
* setup.py: Don't include Locale resources yet as we don't |
617 |
|
have any and it causes problems building the distribution |
618 |
|
for Windows. Update version to 0.8.0. |
619 |
|
|
620 |
|
* Doc/thuban.dtd: Removed since it is now in Resources/XML. |
621 |
|
|
622 |
|
* Thuban/UI/mainwindow.py: Add blank line at the end because |
623 |
|
file was not being read correctly building the Windows |
624 |
|
distribution. |
625 |
|
|
626 |
|
2003-06-23 Jonathan Coles <[email protected]> |
627 |
|
|
628 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Fix text. |
629 |
|
|
630 |
|
* Thuban/version.py: Temporarily update longversion for |
631 |
|
the 0.8 release so that it doesn't have the cvs revision. |
632 |
|
|
633 |
|
2003-06-23 Jonathan Coles <[email protected]> |
634 |
|
|
635 |
|
* Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield |
636 |
|
to make sure that we don't create reentrant possibilities with |
637 |
|
wxYield. |
638 |
|
|
639 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor() |
640 |
|
directly to avoid the wxSafeYield() call which generates an |
641 |
|
OnPaint event causing infinite recursion. Don't try to catch |
642 |
|
exception anymore. This was for before there were limits on map |
643 |
|
scaling. |
644 |
|
|
645 |
|
2003-06-23 Bernhard Herzog <[email protected]> |
646 |
|
|
647 |
|
Bug fix for RT #1961: |
648 |
|
|
649 |
|
* Thuban/Model/load.py (SessionLoader.start_derivedshapesource): |
650 |
|
Register DerivedShapestores with the session |
651 |
|
|
652 |
|
* Thuban/Model/session.py (Session.Tables): Make sure each table |
653 |
|
is only listed once. |
654 |
|
|
655 |
|
* test/test_load.py (TestJoinedTable.test): Add check_format call. |
656 |
|
Update file contents to match the one written out. |
657 |
|
|
658 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
659 |
|
|
660 |
|
* test/xmlsupport.py (SaxEventLister.startElementNS) |
661 |
|
(SaxEventLister.endElementNS): Do not include the qname. Python |
662 |
|
2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it |
663 |
|
is (presumably incorrectly) None, whereas it's a string with the |
664 |
|
element name in the later versions. |
665 |
|
|
666 |
|
* test/test_xmlsupport.py (TestEventList.test_even_list_simple) |
667 |
|
(TestEventList.test_even_list_namespace): Update tests to reflect |
668 |
|
the new behaviour |
669 |
|
(TestEventList.test_even_list_id_normalization): Fix doc-string |
670 |
|
|
671 |
|
2003-06-20 Jonathan Coles <[email protected]> |
672 |
|
|
673 |
|
* Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden |
674 |
|
by deriving classes to determine if that layer supports shapes. |
675 |
|
(Layer): Override HasShapes and return true. |
676 |
|
|
677 |
|
* Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor() |
678 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
679 |
|
(GenUniquePanel._OnRetrieve): Set busy cursor while retrieving |
680 |
|
table data. |
681 |
|
|
682 |
|
* Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor): |
683 |
|
New. Wrappers around the wxWindows functions that allow us to |
684 |
|
make additional calls such as wxYield which gives the native |
685 |
|
system a chance to update the cursor correctly. |
686 |
|
|
687 |
|
* Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor() |
688 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
689 |
|
|
690 |
|
* Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor() |
691 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
692 |
|
(MapCanvas.find_shape_at): Check if the current search layer |
693 |
|
support shapes, otherwise go on to the next layer. |
694 |
|
|
695 |
|
* test/test_layer.py: Add tests in each type of layer for |
696 |
|
HasClassification() and HasShapes() |
697 |
|
|
698 |
|
2003-06-20 Jonathan Coles <[email protected]> |
699 |
|
|
700 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after |
701 |
|
turning on the busy cursor to allow the system to change the |
702 |
|
cursor before we begin painting. This fixes a problem that |
703 |
|
was occuring only under GTK. Fixes RTbug #1840. |
704 |
|
|
705 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
706 |
|
|
707 |
|
* Resources/XML/thuban-0.8.dtd: New DTD for the new file format |
708 |
|
version. |
709 |
|
|
710 |
|
* Thuban/Model/save.py (sort_data_stores): New. Make topological |
711 |
|
sort of the data sources so they can be written with sources that |
712 |
|
data sources that depend on other data sources come after the |
713 |
|
sources they depend on. |
714 |
|
(SessionSaver.__init__): Add idmap instance variable to map from |
715 |
|
objects to the ids used in the file. |
716 |
|
(SessionSaver.get_id, SessionSaver.define_id) |
717 |
|
(SessionSaver.has_id): New. Methods to manage the idmap |
718 |
|
(SessionSaver.write): Use thuban-0.8.dtd |
719 |
|
(SessionSaver.write_session): Add a namespace on the session and |
720 |
|
write out the data sources before the maps. |
721 |
|
(SessionSaver.write_data_containers): New. Write the data |
722 |
|
containers. |
723 |
|
(SessionSaver.write_layer): Layer elements now refer to a |
724 |
|
shapestore and don't contain filenames anymore. |
725 |
|
|
726 |
|
* Thuban/Model/load.py (LoadError): Exception class to raise when |
727 |
|
errors in the files are discovered |
728 |
|
(SessionLoader.__init__): Define dispatchers for elements with a |
729 |
|
thuban-0.8 namespace too. |
730 |
|
(SessionLoader.check_attrs): New helper method to check and |
731 |
|
convert attributes |
732 |
|
(AttrDesc): New. Helper class for SessionLoader.check_attrs |
733 |
|
(SessionLoader.start_fileshapesource) |
734 |
|
(SessionLoader.start_derivedshapesource) |
735 |
|
(SessionLoader.start_filetable, SessionLoader.start_jointable): |
736 |
|
Handlers for the new elements in the new fileformat |
737 |
|
(SessionLoader.start_layer): Handle the shapestore attribute in |
738 |
|
addition to filename. |
739 |
|
(SessionLoader.start_table, SessionLoader.end_table): Removed. |
740 |
|
They were never used in the old formats and aren't needed for the |
741 |
|
new. |
742 |
|
|
743 |
|
* Thuban/Model/session.py (Session.DataContainers): New method to |
744 |
|
return all "data containers", i.e. shapestores and tables |
745 |
|
|
746 |
|
* test/xmlsupport.py (SaxEventLister.__init__) |
747 |
|
(SaxEventLister.startElementNS, sax_eventlist): Add support to |
748 |
|
normalize IDs. |
749 |
|
|
750 |
|
* test/test_xmlsupport.py |
751 |
|
(TestEventList.test_even_list_id_normalization): New test case for |
752 |
|
id normalization |
753 |
|
|
754 |
|
* test/test_load.py (LoadSessionTest.check_format): Use ID |
755 |
|
normalization |
756 |
|
(LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New |
757 |
|
class atrributes used for ID normalization |
758 |
|
(TestSingleLayer, TestLayerVisibility, TestLabels.test) |
759 |
|
(TestLayerProjection.test, TestRasterLayer.test): Adapt to new |
760 |
|
file format |
761 |
|
(TestJoinedTable): New test for loading sessions with joined |
762 |
|
tables. |
763 |
|
(TestLoadError): New. Test whether missing required attributes |
764 |
|
cause a LoadError. |
765 |
|
|
766 |
|
* test/test_save.py (SaveSessionTest.thubanids) |
767 |
|
(SaveSessionTest.thubanidrefs): New class attributes for ID |
768 |
|
normalization in .thuban files. |
769 |
|
(SaveSessionTest.compare_xml): Use id-normalization. |
770 |
|
(SaveSessionTest.testEmptySession) |
771 |
|
(SaveSessionTest.testLayerProjection) |
772 |
|
(SaveSessionTest.testRasterLayer) |
773 |
|
(SaveSessionTest.testClassifiedLayer): Adapt to new file format. |
774 |
|
(SaveSessionTest.testLayerProjection): The filename used was the |
775 |
|
same as for testSingleLayer. Use a different one. |
776 |
|
(SaveSessionTest.test_dbf_table) |
777 |
|
(SaveSessionTest.test_joined_table): New test cases for saving the |
778 |
|
new data sources structures. |
779 |
|
(TestStoreSort, MockDataStore): Classes to test the sorting of the |
780 |
|
data stores for writing. |
781 |
|
|
782 |
|
* test/runtests.py: Add CVS keywords |
783 |
|
|
784 |
|
2003-06-20 Jonathan Coles <[email protected]> |
785 |
|
|
786 |
|
* test/test_session.py |
787 |
|
(UnreferencedTablesTests.test_unreferenced_tables_with_joins): |
788 |
|
Use the cultural_landmark-point.dbf file for the store so that |
789 |
|
the table rows and shape count match. |
790 |
|
|
791 |
|
2003-06-20 Jonathan Coles <[email protected]> |
792 |
|
|
793 |
|
* Thuban/Model/data.py (DerivedShapeStore.__init__): Raise |
794 |
|
an exception if the number of shapes is different from the |
795 |
|
number of rows in the table. Address RTbug #1933. |
796 |
|
|
797 |
|
* test/test_layer.py (TestLayer.test_derived_store): Add |
798 |
|
a test for the new exception in DerivedShapeStore.__init__. |
799 |
|
|
800 |
|
* test/support.py (FloatTestCase): Removed since there is |
801 |
|
already FloatComparisonMixin. Fixes RTbug #1954. |
802 |
|
(FloatComparisonMixin.assertFloatEqual): Include test for |
803 |
|
infinity that was part of FloatTestCase. |
804 |
|
|
805 |
|
* test/test_range.py (RangeTest): Inherit from |
806 |
|
support.FloatComparisonMixin now that we don't have |
807 |
|
support.FloatTestCase. |
808 |
|
|
809 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
810 |
|
|
811 |
|
* test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use |
812 |
|
the implementation in xmlsupport instead. |
813 |
|
(SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport |
814 |
|
|
815 |
|
* test/test_proj.py: Import sax_eventlist from xmlsupport instead |
816 |
|
of test_save |
817 |
|
|
818 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
819 |
|
|
820 |
|
* test/test_load.py (LoadSessionTest.check_format): New helper |
821 |
|
method to make sure the test files we load might have been written |
822 |
|
by the current thuban version. |
823 |
|
(ClassificationTest.TestLayers, TestSingleLayer.test) |
824 |
|
(TestLayerVisibility.test, TestClassification.test) |
825 |
|
(TestLabels.test, TestLayerProjection.test, TestRasterLayer.test): |
826 |
|
Add check_format() calls and fix the thuban data to match the data |
827 |
|
that would be written by saving the session loaded from it. |
828 |
|
|
829 |
|
* test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of |
830 |
|
the same class and function in test_save. |
831 |
|
|
832 |
|
* test/test_xmlsupport.py (TestEventList): New. test cases for |
833 |
|
sax_eventlist |
834 |
|
|
835 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
836 |
|
|
837 |
|
* Resources/XML/thuban.dtd: Add comment about which versions of |
838 |
|
Thuban are covered by this DTD |
839 |
|
(map): Fix content model for layers and raster layers. There can |
840 |
|
be any number or layers and raster layers in any order. |
841 |
|
|
842 |
|
2003-06-20 Jonathan Coles <[email protected]> |
843 |
|
|
844 |
|
This is mainly about fixing RTbug #1949. |
845 |
|
|
846 |
|
* Thuban/Model/classification.py: Remove "from __future__" |
847 |
|
import statement since python 2.2 is the earliest supported |
848 |
|
version. |
849 |
|
|
850 |
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): New. |
851 |
|
Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES |
852 |
|
depending on the units this projection *forwards* into. |
853 |
|
|
854 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
855 |
|
Remove unnecessary use of lambdas and nested functions. |
856 |
|
|
857 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale |
858 |
|
adjustment here if the map projection uses degrees. |
859 |
|
|
860 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove |
861 |
|
scale adjust code since it is now done before calling |
862 |
|
this method. Don't do anything if the map projection |
863 |
|
is None. |
864 |
|
|
865 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
866 |
|
|
867 |
|
Move version specific load tests to their own file. |
868 |
|
|
869 |
|
* test/test_load.py: Expand the doc-string to explain a bit how to |
870 |
|
handle file format changes. |
871 |
|
(TestClassification.test): Update the docstring as this test is |
872 |
|
not about Thuban 0.2 anymore. |
873 |
|
|
874 |
|
* test/test_load_0_2.py: New file with the load tests for thuban |
875 |
|
files created with Thuban 0.2 and earlier. |
876 |
|
|
877 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
878 |
|
|
879 |
|
Add XML validation to some of the tests. Validation will only be |
880 |
|
done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html). |
881 |
|
To make the DTD available to the test cases it's moved into |
882 |
|
Resources/XML |
883 |
|
|
884 |
|
* Resources/XML/thuban.dtd: New. This is now the real Thuban DTD |
885 |
|
for versions up to and including 0.2. Two slight changes: added an |
886 |
|
encoding specification and fixed the comment which refered to |
887 |
|
GRASS, not Thuban |
888 |
|
|
889 |
|
* test/xmlsupport.py: New support module for tests involving XML. |
890 |
|
Currently there's a mix-in class for XML validation. |
891 |
|
|
892 |
|
* test/test_xmlsupport.py: New. Tests for the xmlsupport module |
893 |
|
|
894 |
|
* test/test_save.py (SaveSessionTest): Derive from ValidationTest |
895 |
|
so that we can validate the |
896 |
|
(SaveSessionTest.testEmptySession) |
897 |
|
(SaveSessionTest.testSingleLayer) |
898 |
|
(SaveSessionTest.testSingleLayer) |
899 |
|
(SaveSessionTest.testLayerProjection) |
900 |
|
(SaveSessionTest.testRasterLayer) |
901 |
|
(SaveSessionTest.testClassifiedLayer): Validate the generated XML |
902 |
|
|
903 |
|
* test/runtests.py (main): Call print_additional_summary instead |
904 |
|
of print_garbage_information |
905 |
|
|
906 |
|
* test/support.py (resource_dir): New function to return the |
907 |
|
"Resource" subdirectory |
908 |
|
(print_additional_summary): New function to combine several |
909 |
|
summary functions |
910 |
|
(run_tests): Use print_additional_summary instead of calling |
911 |
|
print_garbage_information directly |
912 |
|
|
913 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
914 |
|
|
915 |
|
* Doc/thuban.dtd (classification): Correct the content model of |
916 |
|
the classification element. |
917 |
|
(projection): Add the "name" attribute |
918 |
|
|
919 |
|
2003-06-19 Frank Koormann <[email protected]> |
920 |
|
|
921 |
|
MERGE from the greater-ms3 branch. |
922 |
|
|
923 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to |
924 |
|
scale if projection is latlong to get better estimate. |
925 |
|
|
926 |
|
Fix problem of hidden properties dialog under windows after double |
927 |
|
click on layer tree: |
928 |
|
The tree control always gets an Expanded / Collapsed event after |
929 |
|
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
930 |
|
raises the already displayed window. |
931 |
|
|
932 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
933 |
|
raiseProperties initialized to prevent endless loops |
934 |
|
(LegendTree._OnItemActivated): Depending on self.raiseProperties |
935 |
|
simply raise the properties or open the dialog and issue a second |
936 |
|
event. |
937 |
|
|
938 |
|
2003-06-18 Jonathan Coles <[email protected]> |
939 |
|
|
940 |
|
* setup.py: Fix a few problems that occured under Windows. |
941 |
|
|
942 |
|
2003-06-18 Jonathan Coles <[email protected]> |
943 |
|
|
944 |
|
When Thuban loaded the map was redrawn twice because the |
945 |
|
legend was being opened after the mainwindow was created |
946 |
|
and not during its creation. This meant the map was drawn |
947 |
|
initially and then had to be redrawn when the legend |
948 |
|
caused the display to change. Now the legend is opened |
949 |
|
in the mainwindow constructor which resolves this issue. |
950 |
|
|
951 |
|
Also, although we were checking for the existence of |
952 |
|
gdal and gdalwarp modules, the gdalwarp extension was |
953 |
|
still being compiled (which may fail if the system doesn't |
954 |
|
have gdal installed). the build_ext command to setup.py |
955 |
|
now accepts the flags --with-gdal and --without-gdal. |
956 |
|
If --without-gdal is specified setup.py will try to |
957 |
|
use the gdal parameters specified by gdal-config. Under |
958 |
|
windows, those parameters have to be set in setup.py |
959 |
|
as with proj4 an wxWindows. |
960 |
|
|
961 |
|
* setup.py: Use a list instead of seperate variables for |
962 |
|
extension parameters so we can create a generic function |
963 |
|
that runs an appropriate *-config script. |
964 |
|
(run_cs_script): Renamed from run_wx_script and modified |
965 |
|
to accept a second argument which is a list of lists to |
966 |
|
be filled in by the values returned from running the command. |
967 |
|
(thuban_build_ext): New. Extends the build_ext command and |
968 |
|
provides the options --with-gdal/--without-gdal which then |
969 |
|
optionally includes the gdalwarp extension. |
970 |
|
|
971 |
|
* Thuban/Model/resource.py: First check if we can import |
972 |
|
the gdalwarp Thuban extension before checking for gdal. |
973 |
|
Also added some comments. |
974 |
|
|
975 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if |
976 |
|
the map is None which may be the case if none has been loaded |
977 |
|
yet. |
978 |
|
|
979 |
|
* Thuban/UI/main.py (main): Remove call to ShowLegend. |
980 |
|
|
981 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend(). |
982 |
|
|
983 |
|
* Thuban/UI/renderer.py: Check for gdal support before importing |
984 |
|
gdalwarp. |
985 |
|
(MapRenderer.render_map): Only try to optimize if we have gdal |
986 |
|
support otherwise nothing will get drawn. |
987 |
|
|
988 |
|
* Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called |
989 |
|
during startup before a map has been created. Check if map is None |
990 |
|
before using it and do nothing if it is. |
991 |
|
|
992 |
|
2003-06-17 Jonathan Coles <[email protected]> |
993 |
|
|
994 |
|
Fix the problem with raster layers under Windows that caused |
995 |
|
Thuban to crash. The view should respond to layer projection |
996 |
|
changed events to update the display. Changes to a projection |
997 |
|
should not cause the map to be set to full extent. |
998 |
|
|
999 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
1000 |
|
current_map_proj to remember the current map projection so that |
1001 |
|
when the projection changes we know what the previous projection |
1002 |
|
was. |
1003 |
|
(MapCanvas.SetMap): Unsubscribe and subscribe to |
1004 |
|
LAYER_PROJECTION_CHANGED events. |
1005 |
|
(MapCanvas.projection_changed): Split into two methods that respond |
1006 |
|
to map and layer projection changes. |
1007 |
|
(MapCanvas.map_projection_changed): New. Takes the current view and |
1008 |
|
projects it using the new projection. This does not cause the |
1009 |
|
map to be redrawn at full extent. |
1010 |
|
(MapCanvas.layer_projection_changed): New. Cause a redraw which |
1011 |
|
will draw each layer in its new projection. |
1012 |
|
|
1013 |
|
* extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call |
1014 |
|
VSIFClose() not VSIFCloseL() to close the file. Fixes a crash |
1015 |
|
under Windows. |
1016 |
|
|
1017 |
|
* extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be |
1018 |
|
to twice sizeof(void*) because there are two digits for each |
1019 |
|
hex byte. |
1020 |
|
|
1021 |
|
2003-06-16 Bernhard Herzog <[email protected]> |
1022 |
|
|
1023 |
|
Update to the layer interface: Direct access to the table, |
1024 |
|
shapetable, shapefile and filename attributes is now actively |
1025 |
|
deprecated by issuing deprecation warnings for all places where |
1026 |
|
this happens. |
1027 |
|
|
1028 |
|
* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access |
1029 |
|
to the instance variables table, shapetable, shapefile and |
1030 |
|
filename via __getattr__ so that we can issue a deprecation |
1031 |
|
warning. |
1032 |
|
(Layer.SetShapeStore): Don't set the deprecated instance variables |
1033 |
|
any more |
1034 |
|
(Layer.SetShapeStore): Don't use deprecated layer instance |
1035 |
|
variables |
1036 |
|
(Layer.Destroy): No need to explicitly remove the instance |
1037 |
|
variables any more |
1038 |
|
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer |
1039 |
|
instance variables |
1040 |
|
|
1041 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
1042 |
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve) |
1043 |
|
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't |
1044 |
|
use deprecated layer instance variables |
1045 |
|
|
1046 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Don't use |
1047 |
|
deprecated layer instance variables |
1048 |
|
|
1049 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
1050 |
|
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer |
1051 |
|
instance variables |
1052 |
|
|
1053 |
|
* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use |
1054 |
|
deprecated layer instance variables |
1055 |
|
|
1056 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use |
1057 |
|
deprecated layer instance variables |
1058 |
|
|
1059 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Don't use |
1060 |
|
deprecated layer instance variables |
1061 |
|
|
1062 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer) |
1063 |
|
(MapRenderer.polygon_render_param): Don't use deprecated layer instance |
1064 |
|
variables |
1065 |
|
|
1066 |
|
* test/runtests.py (main): Turn Thuban's deprecation warnings into |
1067 |
|
errors so that they're cought by the tests |
1068 |
|
|
1069 |
|
* test/test_load.py (TestSingleLayer.test): Don't use deprecated |
1070 |
|
layer instance variables |
1071 |
|
|
1072 |
|
2003-06-16 Jonathan Coles <[email protected]> |
1073 |
|
|
1074 |
|
Fix a problem under Windows whereby if the user double-clicks on a |
1075 |
|
layer in the legend that tree item will expand or collapse as well |
1076 |
|
as open the layer properties dialog. The state of the tree item |
1077 |
|
should not be affected. |
1078 |
|
|
1079 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Add instance variable |
1080 |
|
preventExpandCollapse and subscribe to expanding and collapsing |
1081 |
|
events. |
1082 |
|
(LegendTree.OnItemExpandCollapse): New. Responds to expanding and |
1083 |
|
collapsing events and will veto the event if it has been triggered |
1084 |
|
by the user double clicking on a layer. |
1085 |
|
(LegendTree._OnItemActivated): Set preventExpandCollapse to indicate |
1086 |
|
that an expanding/collapsing event should be vetoed. |
1087 |
|
|
1088 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
1089 |
|
|
1090 |
|
* Thuban/UI/classifier.py (Classifier.OnClose) |
1091 |
|
(Classifier.map_layers_removed) |
1092 |
|
(Classifier.layer_shapestore_replaced): Unsubscribe the messages |
1093 |
|
in OnClose and not in map_layers_removed or |
1094 |
|
layer_shapestore_replaced to make sure it always happens when the |
1095 |
|
dialog is closed |
1096 |
|
|
1097 |
|
2003-06-13 Jonathan Coles <[email protected]> |
1098 |
|
|
1099 |
|
This puts back a fix for Windows where a panel is needed so that |
1100 |
|
the background of the table view appears correctly. |
1101 |
|
|
1102 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
1103 |
|
object that can be used by derived classes to place any |
1104 |
|
controls (including the grid) onto. |
1105 |
|
(QueryTableFrame.__init__): Use the panel as the parent window |
1106 |
|
for all the controls. Reparent the grid so that the panel is |
1107 |
|
the parent. Call UpdateStatusText() to correctly initialize |
1108 |
|
the status bar. |
1109 |
|
|
1110 |
|
2003-06-13 Jonathan Coles <[email protected]> |
1111 |
|
|
1112 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
1113 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
1114 |
|
but otherwise behaves like the other classes. This is needed |
1115 |
|
for the TableView which isn't really a dialog and needs to |
1116 |
|
have a status bar and control buttons. |
1117 |
|
|
1118 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
1119 |
|
instance variable to keep track of how many rows are selected. |
1120 |
|
Subscribe once to the the events we are interested in. |
1121 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
1122 |
|
hasn't been turned off. |
1123 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
1124 |
|
hasn't been turned off. |
1125 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
1126 |
|
as an event listener (which changes the event handler stack) |
1127 |
|
simply set an instance variable to False. This is checked in |
1128 |
|
the event handlers. |
1129 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
1130 |
|
selected rows. |
1131 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
1132 |
|
status bar and control buttons. |
1133 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
1134 |
|
Explicitly set which items are selected in the operator choice and |
1135 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
1136 |
|
Subscribe to grid cell selection events so we can update the |
1137 |
|
status bar. |
1138 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
1139 |
|
how many rows are in the grid, how many columns, and how many |
1140 |
|
rows are selected. |
1141 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
1142 |
|
Call UpdateStatusText when cells are (de)selected. |
1143 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
1144 |
|
combo if either the selected item index is 0 or if the string |
1145 |
|
cannot be found in the predefined list (this happens if the |
1146 |
|
user changes the text). Fixes RTbug #1940. |
1147 |
|
Only turn off the grid event listeners if there a query comes |
1148 |
|
back with a none empty list of ids. in the case that the list |
1149 |
|
is empty this causes a grid.ClearSelection() call to actually |
1150 |
|
clear the grid selection which causes the selected items in |
1151 |
|
the map to be deselected. Fixes RTbug #1939. |
1152 |
|
|
1153 |
|
* test/test_save.py (XMLWriterTest.Encode): Check return values. |
1154 |
|
Fixes RTbug #1851. |
1155 |
|
|
1156 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
1157 |
|
|
1158 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
1159 |
|
self.selected_shape with the current selection to make sure the |
1160 |
|
contents of the dialog are up to date when it's shown for the |
1161 |
|
first time. |
1162 |
|
The dialog used to work without this by luck. The recent fix to |
1163 |
|
the connector module 'broke' a 'feature' the identify view was |
1164 |
|
relying on, i.e that subscribing to a message in response to |
1165 |
|
receiving a message of that type would mean that the new |
1166 |
|
subscriber would also be called for the same message. |
1167 |
|
|
1168 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1169 |
|
|
1170 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
1171 |
|
the image is rendered. Fixes RTbug #1937. |
1172 |
|
|
1173 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1174 |
|
|
1175 |
|
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
1176 |
|
user directory if it doesn't exist on a posix system. |
1177 |
|
Fixes RTbug #1815. |
1178 |
|
|
1179 |
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
1180 |
|
called to get_application_dir here, so that the directory |
1181 |
|
will only be called if this method is invoked. |
1182 |
|
|
1183 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
1184 |
|
the projfilepath if no projection is selected. |
1185 |
|
|
1186 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1187 |
|
|
1188 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
1189 |
|
the scalebar if the current map has no projection set. |
1190 |
|
|
1191 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
1192 |
|
projfilepath label to just the basename of the projection file |
1193 |
|
rather than include the entire path. |
1194 |
|
|
1195 |
|
* Thuban/Model/resource.py: Fix missed proj functions that |
1196 |
|
needed to be renamed. |
1197 |
|
|
1198 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1199 |
|
|
1200 |
|
* Thuban/Model/classification.py: Removed assert statements that |
1201 |
|
tested if the variable was an instance of Color. |
1202 |
|
|
1203 |
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
1204 |
|
used. |
1205 |
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
1206 |
|
Fixes RTbug #1835. |
1207 |
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
1208 |
|
Needed now that the class doesn't inherit from Color. |
1209 |
|
|
1210 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1211 |
|
|
1212 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
1213 |
|
check unicode strings. |
1214 |
|
|
1215 |
|
* test/test_layer.py: Check for existence of gdal. |
1216 |
|
|
1217 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1218 |
|
|
1219 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
1220 |
|
that was in load.py |
1221 |
|
|
1222 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
1223 |
|
that was in save.py |
1224 |
|
|
1225 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1226 |
|
|
1227 |
|
This is largely a collection of bug fixes. We also handle the |
1228 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
1229 |
|
classes were moved into there own files to resolve some circular |
1230 |
|
import references and because they shouldn't really be in the |
1231 |
|
file that is dediciated to reading/writing session files since |
1232 |
|
they are also used elsewhere. |
1233 |
|
|
1234 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
1235 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
1236 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
1237 |
|
|
1238 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
1239 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
1240 |
|
Addresses RTbug #1877. |
1241 |
|
|
1242 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
1243 |
|
xmlreader.py. |
1244 |
|
|
1245 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1246 |
|
|
1247 |
|
This is largely a collection of bug fixes. We also handle the |
1248 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
1249 |
|
classes were moved into there own files to resolve some circular |
1250 |
|
import references and because they shouldn't really be in the |
1251 |
|
file that is dediciated to reading/writing session files since |
1252 |
|
they are also used elsewhere. |
1253 |
|
|
1254 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
1255 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
1256 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
1257 |
|
|
1258 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
1259 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
1260 |
|
Addresses RTbug #1877. |
1261 |
|
|
1262 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
1263 |
|
xmlreader.py. |
1264 |
|
|
1265 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
1266 |
|
file xmlwriter.py. |
1267 |
|
|
1268 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
1269 |
|
function_names_with_underscores style. |
1270 |
|
(has_gdal_support): New function that returns true if the gdal |
1271 |
|
library is available. Addresses RTbug #1877. |
1272 |
|
|
1273 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
1274 |
|
Display a message box if the gdal library is not available, but |
1275 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
1276 |
|
|
1277 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
1278 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
1279 |
|
when using integers versus floats. |
1280 |
|
|
1281 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
1282 |
|
determine if the "Add Image Layer" menu option should be |
1283 |
|
greyed out or not. Addresses RTbug #1877. |
1284 |
|
|
1285 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
1286 |
|
|
1287 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
1288 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
1289 |
|
Only draw the raster layer if the gdal library is available. |
1290 |
|
Addresses RTbug #1877. |
1291 |
|
|
1292 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
1293 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
1294 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
1295 |
|
ValueError that is raised. |
1296 |
|
|
1297 |
|
* test/test_proj.py: Use renamed projection resource functions. |
1298 |
|
|
1299 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
1300 |
|
test for saving classified layers. Fixes RTbug #1902. |
1301 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
1302 |
|
|
1303 |
|
2003-06-12 Jan-Oliver Wagner <[email protected]> |
1304 |
|
|
1305 |
|
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
1306 |
|
|
1307 |
|
* Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog. |
1308 |
|
|
1309 |
|
* Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from |
1310 |
|
multiplechoicedialog.py rather than from the wxPython library. |
1311 |
|
|
1312 |
|
2003-06-11 Frank Koormann <[email protected]> |
1313 |
|
|
1314 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
1315 |
|
update. |
1316 |
|
|
1317 |
|
2003-06-11 Frank Koormann <[email protected]> |
1318 |
|
|
1319 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
1320 |
|
determine the absolute .thuban/thuban directory under |
1321 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
1322 |
|
|
1323 |
|
* Thuban/Model/resource.py: Use get_application_dir |
1324 |
|
|
1325 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
1326 |
|
Use get_application_dir. |
1327 |
|
|
1328 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
1329 |
|
|
1330 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
1331 |
|
the messages MAP_LAYERS_REMOVED messages |
1332 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
1333 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
1334 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
1335 |
|
dialog is showing is removed. |
1336 |
|
|
1337 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
1338 |
|
|
1339 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
1340 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
1341 |
|
modify it while iterating over it. |
1342 |
|
|
1343 |
|
* test/test_connector.py |
1344 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
1345 |
|
unsubscribing in a receiver works correctly. See docstring for |
1346 |
|
details |
1347 |
|
|
1348 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
1349 |
|
|
1350 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
1351 |
|
message. |
1352 |
|
|
1353 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
1354 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
1355 |
|
LAYER_CHANGED will still be sent if the classification changes. |
1356 |
|
|
1357 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
1358 |
|
parameter so we can subscribe to some of its messages |
1359 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
1360 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
1361 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
1362 |
|
subscribed to in __init__ |
1363 |
|
(Classifier.map_layers_removed) |
1364 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
1365 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
1366 |
|
|
1367 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
1368 |
|
the map to the Classifier dialog |
1369 |
|
|
1370 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
1371 |
|
SubscriberMixin as well so we can test messages |
1372 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
1373 |
|
messages |
1374 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
1375 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
1376 |
|
for the modified flag too |
1377 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
1378 |
|
to check whether SetShapeStore sets the modified flag |
1379 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
1380 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
1381 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
1382 |
|
Add tests for the messages. This checks both the new |
1383 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
1384 |
|
|
1385 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
1386 |
|
|
1387 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
1388 |
|
the menu items. |
1389 |
|
|
1390 |
|
2003-06-05 Frank Koormann <[email protected]> |
1391 |
|
|
1392 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
1393 |
|
Layout reimplemented without panel. Make life easier to fit the list |
1394 |
|
in the dialog. |
1395 |
|
|
1396 |
|
2003-06-05 Frank Koormann <[email protected]> |
1397 |
|
|
1398 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
1399 |
|
once on initialisation (Former implementation resulted in multiple |
1400 |
|
entries for each projection). |
1401 |
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
1402 |
|
if set, select the projection found under the specified name. This |
1403 |
|
overwrites any other selection estimate. |
1404 |
|
Removed projchoice filling from this method. |
1405 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
1406 |
|
Updated call of ProjFrame.__FillAvailList |
1407 |
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
1408 |
|
|
1409 |
|
* Resources/Projections/defaults.proj: Extended defaults representing |
1410 |
|
various common European projections. |
1411 |
|
|
1412 |
|
2003-06-05 Frank Koormann <[email protected]> |
1413 |
|
|
1414 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
1415 |
|
Use ListCtrl instead of GridCtrl |
1416 |
|
|
1417 |
|
* Thuban/Model/resource.py: |
1418 |
|
Guess location of .thuban directory from tempdir parent directory. |
1419 |
|
|
1420 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
1421 |
|
Guess location of .thuban directory from tempdir parent directory. |
1422 |
|
|
1423 |
|
2003-06-04 Bernhard Herzog <[email protected]> |
1424 |
|
|
1425 |
|
Do not cache the values returned by the tree widget's |
1426 |
|
GetFirstChild and GetNextChild methods because it led to lots of |
1427 |
|
segfaults. The new way requires more brute force but is more |
1428 |
|
reliable. |
1429 |
|
|
1430 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
1431 |
|
variable layer2id |
1432 |
|
(LegendTree.find_layer): New method to do with brute force what |
1433 |
|
layer2id tried to accomplish |
1434 |
|
(LegendTree._OnMsgLayerChanged) |
1435 |
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
1436 |
|
Use find_layer instead of layer2id |
1437 |
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
1438 |
|
update layer2id anymore |
1439 |
|
(LegendTree._OnMsgMapLayersRemoved) |
1440 |
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
1441 |
|
|
1442 |
|
2003-06-03 Thomas Koester <[email protected]> |
1443 |
|
|
1444 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
1445 |
|
|
1446 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
1447 |
|
|
1448 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
1449 |
|
New commands. |
1450 |
|
(main_menu): Add the new commands. |
1451 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
1452 |
|
command. |
1453 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
1454 |
|
command. |
1455 |
|
|
1456 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
1457 |
|
set the modified flag |
1458 |
|
|
1459 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
1460 |
|
whether the modified flag is set properly |
1461 |
|
|
1462 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
1463 |
|
instead of issue so that the modified flags get updated. |
1464 |
|
|
1465 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
1466 |
|
instead of Publisher to reflect reality better and to accomodate |
1467 |
|
the fact that SetTitle now calls changed instead of issue |
1468 |
|
|
1469 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
1470 |
|
|
1471 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
1472 |
|
acquisition has to happen before the try in a try-finally. |
1473 |
|
|
1474 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
1475 |
|
|
1476 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
1477 |
|
possible that a layer is removed that is not currently selected in |
1478 |
|
the legend so don't check for this. |
1479 |
|
|
1480 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
1481 |
|
|
1482 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
1483 |
|
variables to None that have direct or indirect references to |
1484 |
|
shapefiles or dbf files to make sure that they do go away and the |
1485 |
|
files are closed. |
1486 |
|
|
1487 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
1488 |
|
|
1489 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
1490 |
|
availImgListIndices when a new image list is created |
1491 |
|
|
1492 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
1493 |
|
|
1494 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
1495 |
|
changing_selection to indicate whether the LegendTree code itself |
1496 |
|
is currently changing the selection |
1497 |
|
(LegendTree.normalize_selection): New method to normalize the |
1498 |
|
selection by selecting the layer item even if the user clicked on |
1499 |
|
the classification. |
1500 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
1501 |
|
around a bug in wx which doesn't keep track of the selection |
1502 |
|
properly when subtrees are deleted. |
1503 |
|
|
1504 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
1505 |
|
|
1506 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
1507 |
|
maximum and minimum scale factors. |
1508 |
|
|
1509 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
1510 |
|
changes in classgen.py |
1511 |
|
|
1512 |
|
2003-05-30 Jonathan Coles <[email protected]> |
1513 |
|
|
1514 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
1515 |
|
all the methods functions. Fixes RTBug #1903. |
1516 |
|
|
1517 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
1518 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
1519 |
|
RTBug #1907. |
1520 |
|
|
1521 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
1522 |
|
of the ClassGenerator class. Put try/finally blocks around |
1523 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
1524 |
|
RTBug #1904. |
1525 |
|
|
1526 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
1527 |
|
|
1528 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
1529 |
|
time something changed which caused some state to be lost such |
1530 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
1531 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
1532 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
1533 |
|
the legend but not in the map. |
1534 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
1535 |
|
methods that can be used by other methods. |
1536 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
1537 |
|
if they are available. |
1538 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
1539 |
|
that we override the wxTreeCtrl method. Iterate over children |
1540 |
|
and call __RemoveLayer. |
1541 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
1542 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
1543 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
1544 |
|
Should only be called with the id of a layer branch. |
1545 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
1546 |
|
Returns the root item or creates one if necessary. |
1547 |
|
|
1548 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
1549 |
|
ProjectRasterFile with tuple arguments instead of strings. |
1550 |
|
|
1551 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
1552 |
|
with try/finally. Fixes RTBug #1904. |
1553 |
|
|
1554 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
1555 |
|
with try/finally. Fixes RTBug #1904. |
1556 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
1557 |
|
simply center it on the display. Fixes RTBug #1849. |
1558 |
|
|
1559 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
1560 |
|
to be compiled as a standalone app. Now the code can only be |
1561 |
|
called from Python which simplifies the parameter passing. |
1562 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
1563 |
|
checks for a destination dataset. Add more clean up code. |
1564 |
|
|
1565 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
1566 |
|
TestMapWithContents.test_lower_layer_bottom): |
1567 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
1568 |
|
Fixes RTBug #1907. |
1569 |
|
|
1570 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
1571 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
1572 |
|
|
1573 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
1574 |
|
|
1575 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
1576 |
|
unsubscribes all that is subcribed in __init__. |
1577 |
|
|
1578 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
1579 |
|
|
1580 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
1581 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
1582 |
|
Layer/Duplicate command. |
1583 |
|
(layer_duplicate command): New. |
1584 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
1585 |
|
|
1586 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
1587 |
|
|
1588 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
1589 |
|
renderer so that NULL/None values get displayed differently (by a |
1590 |
|
gray rectangle). |
1591 |
|
(TableGrid.__init__): Override the default renderers |
1592 |
|
|
1593 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
1594 |
|
|
1595 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
1596 |
|
classification to "None" if the type of the field has changed. |
1597 |
|
|
1598 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
1599 |
|
test for the Layer.SetShapeStore method |
1600 |
|
|
1601 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
1602 |
|
|
1603 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
1604 |
|
does not necessarily have a filename). |
1605 |
|
|
1606 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
1607 |
|
|
1608 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
1609 |
|
sort the selection list for the dialog. |
1610 |
|
|
1611 |
|
2003-05-28 Frank Koormann <[email protected]> |
1612 |
|
|
1613 |
|
* extensions/thuban/wxproj.cpp |
1614 |
|
(project_point): Removed cast to int for projected point coordinates. |
1615 |
|
(shape_centroid): Return last point if all polygon vertices fall |
1616 |
|
to one point. |
1617 |
|
|
1618 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
1619 |
|
|
1620 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
1621 |
|
with layers that don't have shapestores, i.e. raster layers. |
1622 |
|
|
1623 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
1624 |
|
|
1625 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
1626 |
|
when determining the title from the filename. |
1627 |
|
|
1628 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
1629 |
|
reflect changes in the way the title is derived from the filename |
1630 |
|
|
1631 |
|
2003-05-28 Frank Koormann <[email protected]> |
1632 |
|
|
1633 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
1634 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
1635 |
|
|
1636 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
1637 |
|
|
1638 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
1639 |
|
delegate SelectedLayer. |
1640 |
|
(MainWindow.LayerUnjoinTable): Implement. |
1641 |
|
(_can_unjoin): New. Helper function for the sensitivity of the |
1642 |
|
layer/unjoin command. |
1643 |
|
|
1644 |
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
1645 |
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
1646 |
|
shapestore. Used to figure out how to unjoin. |
1647 |
|
(DerivedShapeStore.Shapefile): Fix a typo. |
1648 |
|
|
1649 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
1650 |
|
|
1651 |
|
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
1652 |
|
well |
1653 |
|
(JoinDialog.__init__): Use the layer parameter and only build the |
1654 |
|
left choice when a layer is given |
1655 |
|
(JoinDialog.OnJoin): Handle layer joins as well |
1656 |
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
1657 |
|
that the user selects the "Select..." item. The sensitivitly |
1658 |
|
updating is now in update_sensitivity |
1659 |
|
(JoinDialog.y): New method to refactor the sensitivity update of |
1660 |
|
the join button into its own method. |
1661 |
|
|
1662 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
1663 |
|
|
1664 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
1665 |
|
|
1666 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
1667 |
|
iff there are unreferenced tables in the session |
1668 |
|
|
1669 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
1670 |
|
|
1671 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
1672 |
|
|
1673 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
1674 |
|
to return tables that are not referenced by other tables or shape |
1675 |
|
stores and can be removed. |
1676 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
1677 |
|
removing the table |
1678 |
|
|
1679 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
1680 |
|
(MainWindow.TableClose): Implement. |
1681 |
|
|
1682 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
1683 |
|
messages so that the frame will be automatically closed when a new |
1684 |
|
session is opened or the table is removed. |
1685 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
1686 |
|
__init__ |
1687 |
|
(TableFrame.close_on_session_replaced) |
1688 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
1689 |
|
the window |
1690 |
|
|
1691 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
1692 |
|
(TestSessionSimple.test_remove_table): Move the test to |
1693 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
1694 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
1695 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
1696 |
|
UnreferencedTables method. |
1697 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
1698 |
|
tests for UnreferencedTables. |
1699 |
|
|
1700 |
|
2003-05-27 Frank Koormann <[email protected]> |
1701 |
|
|
1702 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
1703 |
|
display has some unwanted side effects. Removed again. |
1704 |
|
|
1705 |
|
2003-05-27 Frank Koormann <[email protected]> |
1706 |
|
|
1707 |
|
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
1708 |
|
|
1709 |
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
1710 |
|
|
1711 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
1712 |
|
|
1713 |
|
* test/test_menu.py (MenuTest.test): Added test for |
1714 |
|
Menu.RemoveItem(). |
1715 |
|
|
1716 |
|
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
1717 |
|
the menu. |
1718 |
|
|
1719 |
|
2003-05-27 Frank Koormann <[email protected]> |
1720 |
|
|
1721 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
1722 |
|
window) |
1723 |
|
|
1724 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
1725 |
|
all dialogs in the dialogs dictionary and the canvas. |
1726 |
|
|
1727 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
1728 |
|
parent, i.e. can fall behind other windows. |
1729 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
1730 |
|
dictionary before removing it. |
1731 |
|
|
1732 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
1733 |
|
|
1734 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
1735 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
1736 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
1737 |
|
|
1738 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
1739 |
|
|
1740 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
1741 |
|
tableview dialog |
1742 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
1743 |
|
Also, don't use the table's titles as the dialog names. The titles |
1744 |
|
aren't guaranteed to be unique. |
1745 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
1746 |
|
table |
1747 |
|
|
1748 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
1749 |
|
|
1750 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
1751 |
|
effect can be achieved by simply closing the window showing the |
1752 |
|
table. |
1753 |
|
(MainWindow.TableHide): Removed. |
1754 |
|
(main_menu): Removed "table_hide" |
1755 |
|
|
1756 |
|
2003-05-27 Frank Koormann <[email protected]> |
1757 |
|
|
1758 |
|
Fix legend tree display problems under Win32 |
1759 |
|
|
1760 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
1761 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
1762 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
1763 |
|
|
1764 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
1765 |
|
|
1766 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
1767 |
|
|
1768 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
1769 |
|
'after' now allows to insert separators almost anywhere in the menu. |
1770 |
|
|
1771 |
|
2003-05-27 Frank Koormann <[email protected]> |
1772 |
|
|
1773 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
1774 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
1775 |
|
Win32 but is ignored under GTK. |
1776 |
|
|
1777 |
|
2003-05-26 Frank Koormann <[email protected]> |
1778 |
|
|
1779 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
1780 |
|
Center Choices. |
1781 |
|
|
1782 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
1783 |
|
|
1784 |
|
Remove the Precision methods again. They're too DBF specific to be |
1785 |
|
part of the table interface and they're only used in table_to_dbf |
1786 |
|
anyway. |
1787 |
|
|
1788 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
1789 |
|
fixed precision of 12 for doubles. |
1790 |
|
(TransientTableBase.Precision): Removed |
1791 |
|
(AutoTransientTable.Width): Delegate to self.table. |
1792 |
|
|
1793 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
1794 |
|
(MemoryTable.Precision): Removed. |
1795 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
1796 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
1797 |
|
column object specifies something else. |
1798 |
|
|
1799 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
1800 |
|
test for table_to_dbf |
1801 |
|
|
1802 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
1803 |
|
|
1804 |
|
* test/test_transientdb.py |
1805 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
1806 |
|
|
1807 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
1808 |
|
|
1809 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
1810 |
|
implementation. Mark parts of the file format strings for |
1811 |
|
localization. |
1812 |
|
|
1813 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
1814 |
|
file and add the table to the tables managed by the session |
1815 |
|
|
1816 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
1817 |
|
New. test case for OpenTableFile |
1818 |
|
|
1819 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
1820 |
|
|
1821 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
1822 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
1823 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
1824 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
1825 |
|
|
1826 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
1827 |
|
|
1828 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
1829 |
|
already a selection present, update the grid accordingly. |
1830 |
|
|
1831 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
1832 |
|
resizeable and increase its initial size. |
1833 |
|
|
1834 |
|
2003-05-26 Frank Koormann <[email protected]> |
1835 |
|
|
1836 |
|
Table export functionality |
1837 |
|
|
1838 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
1839 |
|
Return width (in characters) for a column. |
1840 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
1841 |
|
(table_to_dbf): Write table to dbf file. |
1842 |
|
(table_to_csv): Write table to csv file. |
1843 |
|
|
1844 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
1845 |
|
TransientTableBase.Precision): Return column width and precision. |
1846 |
|
|
1847 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
1848 |
|
or table_to_csv depending on file selection. |
1849 |
|
|
1850 |
|
* test/test_dbf_table.py: |
1851 |
|
Test table_to_dbf (extension of former part of test). |
1852 |
|
|
1853 |
|
* test/test_csv_table.py: |
1854 |
|
Test table_to_csv. |
1855 |
|
|
1856 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
1857 |
|
|
1858 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
1859 |
|
Use QueryTableFrame instead of TableFrame. |
1860 |
|
|
1861 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
1862 |
|
table window with 'Layer Table:' instead of 'Table:'. |
1863 |
|
|
1864 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
1865 |
|
|
1866 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
1867 |
|
|
1868 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
1869 |
|
only if it exists. |
1870 |
|
|
1871 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
1872 |
|
and call its init-method with a default title. Remove Title() method. |
1873 |
|
|
1874 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
1875 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
1876 |
|
a default title. Remove Title() method. |
1877 |
|
|
1878 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
1879 |
|
|
1880 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
1881 |
|
AddShapeStore analogously to AddTable. |
1882 |
|
|
1883 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
1884 |
|
New. Test for AddShapeStore |
1885 |
|
|
1886 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
1887 |
|
|
1888 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
1889 |
|
|
1890 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
1891 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
1892 |
|
The latter implements the selection GUI without dependency on a layer. |
1893 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
1894 |
|
to a layer. |
1895 |
|
|
1896 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
1897 |
|
implementation that still needs work. |
1898 |
|
|
1899 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
1900 |
|
|
1901 |
|
2003-05-22 Frank Koormann <[email protected]> |
1902 |
|
|
1903 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
1904 |
|
Added "outer_join = False" as optional parameter. |
1905 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
1906 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
1907 |
|
the left table. Records not matching are filled with 0 / None. |
1908 |
|
|
1909 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
1910 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
1911 |
|
|
1912 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1913 |
|
|
1914 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
1915 |
|
somewhat safer way. Storing the traceback in a local variable can |
1916 |
|
lead to memory leaks |
1917 |
|
|
1918 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1919 |
|
|
1920 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
1921 |
|
the wxMessageDialog's Destroy() method. |
1922 |
|
|
1923 |
|
2003-05-22 Frank Koormann <[email protected]> |
1924 |
|
|
1925 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
1926 |
|
TransientTable.Title() |
1927 |
|
|
1928 |
|
2003-05-22 Frank Koormann <[email protected]> |
1929 |
|
|
1930 |
|
Join Dialog, initial version. |
1931 |
|
|
1932 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
1933 |
|
|
1934 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
1935 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
1936 |
|
in all occurences. |
1937 |
|
|
1938 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
1939 |
|
Typo fixed. |
1940 |
|
|
1941 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1942 |
|
|
1943 |
|
Give the tables titles so that the GUI can display more meaningful |
1944 |
|
names. For now the titles are fixed but depend on e.g. filenames |
1945 |
|
or the titles of the joined tables. |
1946 |
|
|
1947 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
1948 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
1949 |
|
|
1950 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
1951 |
|
|
1952 |
|
* test/test_transientdb.py |
1953 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
1954 |
|
for the Title method |
1955 |
|
(TestTransientTable.test_transient_joined_table) |
1956 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
1957 |
|
methods |
1958 |
|
|
1959 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
1960 |
|
Test for the Title method |
1961 |
|
|
1962 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
1963 |
|
the Title method |
1964 |
|
|
1965 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1966 |
|
|
1967 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
1968 |
|
Provide a better way to destroy the layers |
1969 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
1970 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
1971 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
1972 |
|
the new way to destroy the layers. |
1973 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
1974 |
|
DerivedShapeStore |
1975 |
|
|
1976 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
1977 |
|
filename if the shape store actually has one. |
1978 |
|
|
1979 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1980 |
|
|
1981 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
1982 |
|
for the filename |
1983 |
|
|
1984 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
1985 |
|
for the FileName method |
1986 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
1987 |
|
|
1988 |
|
2003-05-22 Thomas Koester <[email protected]> |
1989 |
|
|
1990 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
1991 |
|
from SciParam that now really is immutable. |
1992 |
|
|
1993 |
|
2003-05-22 Frank Koormann <[email protected]> |
1994 |
|
|
1995 |
|
Layer Top/Bottom placement added to legend. |
1996 |
|
|
1997 |
|
* Thuban/UI/legend.py |
1998 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
1999 |
|
bound to tool events. |
2000 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
2001 |
|
New, methods binding the event methods with the map methods. |
2002 |
|
|
2003 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
2004 |
|
layer at top/bottom of layer stack. |
2005 |
|
|
2006 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
2007 |
|
|
2008 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
2009 |
|
|
2010 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
2011 |
|
|
2012 |
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
2013 |
|
remove tables |
2014 |
|
|
2015 |
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
2016 |
|
Test for RemoveTable |
2017 |
|
|
2018 |
|
2003-05-22 Thomas Koester <[email protected]> |
2019 |
|
|
2020 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
2021 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
2022 |
|
|
2023 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
2024 |
|
|
2025 |
|
Implement a way to discover dependencies between tables and |
2026 |
|
shapestores. |
2027 |
|
|
2028 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
2029 |
|
(TransientJoinedTable.Dependencies) |
2030 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
2031 |
|
interface |
2032 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
2033 |
|
objects in addition to the corresponding transient tables. |
2034 |
|
|
2035 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
2036 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
2037 |
|
interface |
2038 |
|
|
2039 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
2040 |
|
ShapefileStore |
2041 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
2042 |
|
AutoTransientTable |
2043 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
2044 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
2045 |
|
methods for filename and type |
2046 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
2047 |
|
interface |
2048 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
2049 |
|
difference to SimpleStore is that it depends not on a shapefile |
2050 |
|
but another shapestore which expresses the dependencies a bit |
2051 |
|
better |
2052 |
|
(SimpleStore.__init__): Add deprecation warning. |
2053 |
|
|
2054 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
2055 |
|
Test for the Dependencies method. |
2056 |
|
|
2057 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
2058 |
|
New. Test for the Dependencies method. |
2059 |
|
|
2060 |
|
* test/test_transientdb.py |
2061 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
2062 |
|
Test for the Dependencies method. |
2063 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
2064 |
|
Dependencies method. |
2065 |
|
|
2066 |
|
* test/test_session.py (TestSessionSimple.setUp) |
2067 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
2068 |
|
destroy the sessions. |
2069 |
|
(TestSessionSimple.test_initial_state) |
2070 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
2071 |
|
so that it's destroyed by tearDown |
2072 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
2073 |
|
OpenShapefile and the object it returns |
2074 |
|
|
2075 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
2076 |
|
|
2077 |
|
* Thuban/Model/session.py (Session.AddTable): New method to |
2078 |
|
register tables with the session. |
2079 |
|
(Session.Tables): Return the tables registered with AddTable too. |
2080 |
|
|
2081 |
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
2082 |
|
Test case for the AddTable method |
2083 |
|
|
2084 |
|
2003-05-22 Frank Koormann <[email protected]> |
2085 |
|
|
2086 |
|
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
2087 |
|
lower right corner, center labels for selections, initialize controls |
2088 |
|
in reasonable order for keyboard navigation. |
2089 |
|
|
2090 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout) |
2091 |
|
(ProjFrame.__DoOnProjAvail): Determine position of current projection |
2092 |
|
using the wxListBox.FindString() method. Still a problem (#1886) |
2093 |
|
|
2094 |
|
* Thuban/UI/classifier.py |
2095 |
|
(Classifier.__init__, SelectPropertiesDialog.__init__) |
2096 |
|
|
2097 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__, |
2098 |
|
(ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the |
2099 |
|
different classification types from here to __init__. |
2100 |
|
(GenUniquePanel.__init__): Set the column width of the first field |
2101 |
|
in the Field ListCtrl to the full width. |
2102 |
|
|
2103 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As' |
2104 |
|
Button to 'Export'. Center Buttons in Selection Box, set Focus to |
2105 |
|
Grid. |
2106 |
|
(LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN, |
2107 |
|
changes focus to the Selection when pressing "Alt-S". |
2108 |
|
|
2109 |
|
* Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out |
2110 |
|
the text if not visible. The italic font sometimes exceeds the |
2111 |
|
rendering area. |
2112 |
|
|
2113 |
|
2003-05-21 Jonathan Coles <[email protected]> |
2114 |
|
|
2115 |
|
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
2116 |
|
to OnClose so that Thuban closes correctly. |
2117 |
|
|
2118 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Call |
2119 |
|
DockFrame.OnClose, not DockFrame._OnClose. |
2120 |
|
|
2121 |
|
2003-05-21 Jonathan Coles <[email protected]> |
2122 |
|
|
2123 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove |
2124 |
|
references to 'inf' and use new Range __init__ to pass floats |
2125 |
|
directly rather than converting them to strings first. |
2126 |
|
Fixes RTBug #1876. |
2127 |
|
|
2128 |
|
* Thuban/Model/classification.py (ClassGroupRange.SetRange): |
2129 |
|
Use new Range ___init__ to pass floats. |
2130 |
|
|
2131 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Test if the |
2132 |
|
filename is a valid image file. Throw IOError otherwise. |
2133 |
|
|
2134 |
|
* Thuban/Model/range.py: Brought over new Range from SciParam that |
2135 |
|
is immutable and has an __init__ which can accept floats. |
2136 |
|
|
2137 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile |
2138 |
|
into try block. AddLayer doesn't throw any exceptions anymore. |
2139 |
|
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into |
2140 |
|
try block. |
2141 |
|
|
2142 |
|
* Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as |
2143 |
|
the first item in choices. Fixes RTBug #1882. |
2144 |
|
|
2145 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale |
2146 |
|
has gone to 0 which is a serious problem. abort. |
2147 |
|
(MapRenderer.draw_raster_layer): Catch IOError seperately and |
2148 |
|
print the error from GDAL. |
2149 |
|
|
2150 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Call |
2151 |
|
ToggleEventListeners to turn on listening. |
2152 |
|
(TableGrid.ToggleEventListeners): New. Turns event listening on |
2153 |
|
and off so as to prevent excessive messages. |
2154 |
|
(LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners |
2155 |
|
to suppress excessive messages when selecting many rows. |
2156 |
|
Fixes RTBug #1880. |
2157 |
|
|
2158 |
|
* Thuban/UI/view.py: Added checks against if scale == 0. This |
2159 |
|
is a serious problem that can occur when an image without |
2160 |
|
geo data is loading and causes the map projection bounds to |
2161 |
|
go to infinity. Right now, the solution is to simply try |
2162 |
|
to recover. |
2163 |
|
|
2164 |
|
* extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure |
2165 |
|
to set the MFILEReceiver attributes even if the data is NULL. |
2166 |
|
|
2167 |
|
* extensions/thuban/gdalwarp.cpp: Improved the error handling |
2168 |
|
and passed GDAL messages back up to the Python layer. Also |
2169 |
|
tried to fix some memory leaks that were present in the original |
2170 |
|
utility but didn't matter because the program aborted. |
2171 |
|
|
2172 |
|
* test/test_range.py: Copied over tests from SciParam. Removed |
2173 |
|
tests against importing. Fixes RTBug #1867. |
2174 |
|
|
2175 |
|
2003-05-21 Bernhard Herzog <[email protected]> |
2176 |
|
|
2177 |
|
* test/test_load.py: Remove unused imports and restructure the |
2178 |
|
test code |
2179 |
|
(LoadSessionTest): Split into one class for each test and turn |
2180 |
|
LoadSessionTest itself into the base class for all such session |
2181 |
|
tests. |
2182 |
|
(ClassificationTest): New base class for load tests that test |
2183 |
|
classifications |
2184 |
|
(TestSingleLayer, TestLayerVisibility, TestClassification) |
2185 |
|
(TestLabels, TestLayerProjection, TestRasterLayer): New classes |
2186 |
|
for the individual tests |
2187 |
|
|
2188 |
|
* test/support.py (FileLoadTestCase.filename): New base class for |
2189 |
|
file loading tests |
2190 |
|
|
2191 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
2192 |
|
|
2193 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
2194 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
2195 |
|
Added 'Gauss Krueger Zone 6'. |
2196 |
|
|
2197 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
2198 |
|
filled transparent to have the raster image visible at once. |
2199 |
|
|
2200 |
|
2003-05-21 Frank Koormann <[email protected]> |
2201 |
|
|
2202 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
2203 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
2204 |
|
still uses "underscored" names. |
2205 |
|
|
2206 |
|
2003-05-20 Jonathan Coles <[email protected]> |
2207 |
|
|
2208 |
|
This puts back Raster layer support. These layers support projections |
2209 |
|
through the GDAL library. Currently, the CVS version is being used. |
2210 |
|
There are no Debian packages available although this may change soon. |
2211 |
|
A GDAL driver was extended to support writing to memory rather to |
2212 |
|
files. |
2213 |
|
|
2214 |
|
There is still some work that needs to be done, such as some error |
2215 |
|
handling when loading invalid images or when there is a problem |
2216 |
|
projecting the image. This putback simply checks in the majority |
2217 |
|
of the work. |
2218 |
|
|
2219 |
|
* setup.py: Add gdalwarp library extension. |
2220 |
|
|
2221 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
2222 |
|
Defaults to False, but can be overridden by subclasses if they |
2223 |
|
support classification. |
2224 |
|
(RasterLayer): New. Defines a new layer that represents an |
2225 |
|
image. |
2226 |
|
|
2227 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
2228 |
|
tag handler. |
2229 |
|
(SessionLoader.start_layer): Encode the filename. |
2230 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
2231 |
|
New. Supports reading a rasterlayer tag. |
2232 |
|
|
2233 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
2234 |
|
|
2235 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
2236 |
|
get a string in Latin1. If we get such as string convert it to |
2237 |
|
unicode first, otherwise leave if alone before encoding. |
2238 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
2239 |
|
and RasterLayers. |
2240 |
|
|
2241 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
2242 |
|
The right argument may not be a string, it could also be a Column. |
2243 |
|
|
2244 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
2245 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
2246 |
|
|
2247 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
2248 |
|
the dialog is constructed so that we can support layers that |
2249 |
|
do not have classifications. |
2250 |
|
(Classifier._OnTry): Only build a classification if the layer |
2251 |
|
supports one. |
2252 |
|
|
2253 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
2254 |
|
instance of Layer into checks against BaseLayer. |
2255 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
2256 |
|
the layer supports classification. |
2257 |
|
|
2258 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
2259 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
2260 |
|
user chooses Cancel when they are asked to save changes. |
2261 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
2262 |
|
user to select an image file. Create a new RasterLayer and add |
2263 |
|
it to the map. |
2264 |
|
|
2265 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
2266 |
|
for rendering RasterLayer layers. |
2267 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
2268 |
|
the GDALWarp python wrapper and constructs an image from the |
2269 |
|
data returned. |
2270 |
|
|
2271 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
2272 |
|
Choices symbols to match those used in the table query method. |
2273 |
|
Replace deprecated method calls on table with new method names. |
2274 |
|
|
2275 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
2276 |
|
how small the scale can get. This still needs more testing. |
2277 |
|
|
2278 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
2279 |
|
Provides a driver to output in .bmp format. |
2280 |
|
|
2281 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
2282 |
|
New. Provides IO routines which write to memory, rather than a file. |
2283 |
|
|
2284 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
2285 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
2286 |
|
that can be accessed from python. |
2287 |
|
|
2288 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
2289 |
|
a raster layer. |
2290 |
|
|
2291 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
2292 |
|
layer image data. |
2293 |
|
|
2294 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
2295 |
|
|
2296 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
2297 |
|
tests associated with the raster layer code. |
2298 |
|
|
2299 |
|
* test/test_transientdb.py |
2300 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
2301 |
|
for using a Column object as the "right" parameter to a query. |
2302 |
|
|
2303 |
|
2003-05-19 Frank Koormann <[email protected]> |
2304 |
|
|
2305 |
|
* Thuban/version.py (get_changelog_date): |
2306 |
|
Catch exceptions if ChangeLog does not exist. |
2307 |
|
|
2308 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
2309 |
|
|
2310 |
2003-05-19 Frank Koormann <[email protected]> |
2003-05-19 Frank Koormann <[email protected]> |
2311 |
|
|
2312 |
Extended version information for Thuban |
Extended version information for Thuban |