1 |
|
2003-07-18 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_classgen.py (TestFixedRamp.test): Extend test to check |
4 |
|
the non-fixed values as well. The old test would have accepted a |
5 |
|
fixed ramp that only returnes the fixed properties |
6 |
|
|
7 |
|
2003-07-17 Jonathan Coles <[email protected]> |
8 |
|
|
9 |
|
* Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen |
10 |
|
shots for the manual. The XCF file is the source image and |
11 |
|
has additional layers to support changes. |
12 |
|
|
13 |
|
* Doc/manual/thuban-manual.xml: Wrote an initial Introduction. |
14 |
|
|
15 |
|
* Thuban/UI/classifier.py (Classifier.__BuildClassification): |
16 |
|
Return both the new class and the field name. |
17 |
|
|
18 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't |
19 |
|
fit the map to the window as this changes any zoom level that |
20 |
|
the user may have set. |
21 |
|
|
22 |
|
2003-07-16 Jonathan Coles <[email protected]> |
23 |
|
|
24 |
|
* Thuban/Model/classgen.py (generate_singletons, |
25 |
|
generate_uniform_distribution, generate_quantiles): Remove |
26 |
|
fixes parameter, but maintain the same functionality by having |
27 |
|
the calling function pass a FixedRamp object for the ramp. |
28 |
|
(FixedRamp): New. Adapts a ramp to have fixed property values. |
29 |
|
|
30 |
|
* Thuban/Model/classification.py: Use new CLASS_CHANGED message. |
31 |
|
(Classification): Inherit from Publisher. |
32 |
|
(Classification.__init__): Remove the layer parameter. |
33 |
|
Classifications no longer need to have a parent layer. |
34 |
|
(Classification.GetField, Classification.GetFieldType, |
35 |
|
Classification.SetFieldInfo): Removed. The field name is stored |
36 |
|
in the layer, and the type can be retreived by calling |
37 |
|
Layer.GetFieldType(). |
38 |
|
(Classification._set_layer, Classification.GetLayer): Removed. |
39 |
|
Classifications no longer have a parent layer. |
40 |
|
|
41 |
|
* Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the |
42 |
|
classification. |
43 |
|
(Layer.SetShapeStore): Reset the classification first while |
44 |
|
we still have the old shape store to work with. |
45 |
|
(Layer.GetClassificationField, Layer.SetClassificationField): |
46 |
|
New. Method for getting/setting the field to classify on. |
47 |
|
(Layer.SetClassification): Simplified now that the layer |
48 |
|
simply has to hold a reference to the classification and not |
49 |
|
tell the classification who owns it. |
50 |
|
Fixes RTbug #2023. |
51 |
|
|
52 |
|
* Thuban/Model/load.py (SessionLoader.start_classification): |
53 |
|
Set the field name on the layer, not the classification. |
54 |
|
|
55 |
|
* Thuban/Model/messages.py: Add CLASS_CHANGED for when a |
56 |
|
classification is modified. |
57 |
|
|
58 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
59 |
|
Get the field name and type from the layer. |
60 |
|
|
61 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed |
62 |
|
parameter records to rows and add docstring. Fixes RTbug #1997. |
63 |
|
|
64 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed |
65 |
|
ramp when we need to fix certain values of a ramp rather than |
66 |
|
using the old fixes parameter. Fixes RTbug #2024. |
67 |
|
|
68 |
|
* Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType |
69 |
|
parameter. |
70 |
|
(ClassTable.Reset): Add fieldType parameter and use it, rather |
71 |
|
than asking the classification. |
72 |
|
(Classifier.__init__): Remember the original class's field |
73 |
|
and ask the layer for the field type, rather than the classification. |
74 |
|
(Classifier.__SetGridTable): Retrieve the field and field type |
75 |
|
for the table because they are not in the classification. |
76 |
|
(Classifier._OnTry, Classifier._OnRevert): Set the classification |
77 |
|
field on the layer in addition to the classification itself. |
78 |
|
|
79 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the |
80 |
|
classification field from layer. |
81 |
|
|
82 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the |
83 |
|
classification field from layer. Split up tests and remove |
84 |
|
*-imports. Fixes RTbug #1992. |
85 |
|
|
86 |
|
* test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class. |
87 |
|
|
88 |
|
* test/test_classification.py |
89 |
|
(TestClassification.test_classification): Remove tests for methods |
90 |
|
that no longer exist. |
91 |
|
|
92 |
|
* test/test_layer.py (SetShapeStoreTests.setUp): Classification |
93 |
|
__init__ no longer has a field parameter, use SetClassificationField. |
94 |
|
(SetShapeStoreTests.test_sanity): Use layer object to get class |
95 |
|
field info. |
96 |
|
|
97 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Use |
98 |
|
SetClassificationField on layer to set class field info. |
99 |
|
|
100 |
|
* test/test_viewport.py: Renamed from test/test_view.py. |
101 |
|
|
102 |
|
2003-07-16 Jan-Oliver Wagner <[email protected]> |
103 |
|
|
104 |
|
* Doc/manual/thuban-manual.xml: Added authors and an initial |
105 |
|
coarse structure. |
106 |
|
|
107 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
108 |
|
|
109 |
|
* test/support.py (FloatComparisonMixin): This is a mix-in class |
110 |
|
and therefore should not be derived from any other class. |
111 |
|
|
112 |
|
* test/test_range.py (RangeTest): FloatComparisonMixin is a |
113 |
|
mix-in, so derive from TestCase as well. |
114 |
|
|
115 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
116 |
|
|
117 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the |
118 |
|
draw_func handling a bit to remove one layer of indirection. This |
119 |
|
makes the renderer about 10% faster in the non-classifying case |
120 |
|
and the code a bit cleaner |
121 |
|
(MapRenderer.draw_point_shape): Add the pen and brush parameters |
122 |
|
and set them in the dc. Now the draw_point_shape method and |
123 |
|
wxproj's draw_polygon_shape function have basically the same |
124 |
|
signature so that both can be directly used as draw_func |
125 |
|
|
126 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
127 |
|
|
128 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Encode |
129 |
|
string values (in addition to the labels) as UTF 8 |
130 |
|
|
131 |
|
* Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the |
132 |
|
values if the field type is string |
133 |
|
|
134 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Test |
135 |
|
saving a session with non-ascii string classification values. |
136 |
|
|
137 |
|
* test/test_load.py (TestClassification.file_contents) |
138 |
|
(TestClassification.test): Check for non-ascii values in string |
139 |
|
classifications |
140 |
|
|
141 |
|
2003-07-14 Jonathan Coles <[email protected]> |
142 |
|
|
143 |
|
* test/test_view.py: New. Tests for ViewPort. |
144 |
|
|
145 |
|
2003-07-14 Frank Koormann <[email protected]> |
146 |
|
|
147 |
|
* Thuban/Model/load.py (SessionLoader.start_map): Encode map |
148 |
|
title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013 |
149 |
|
|
150 |
|
* test/test_load_0_8.py (TestUnicodeStrings): New, test load of |
151 |
|
unicode strings from session file: session title, map title and |
152 |
|
projection name. |
153 |
|
|
154 |
|
2003-07-10 Jonathan Coles <[email protected]> |
155 |
|
|
156 |
|
* Thuban/UI/viewport.py (Tool.MouseUp): Should have called |
157 |
|
drag_stop, not drag_move when the mouse is released. |
158 |
|
|
159 |
|
2003-07-10 Jonathan Coles <[email protected]> |
160 |
|
|
161 |
|
The most important part of this is the seperation of view.py into |
162 |
|
two pieces. viewport.py now has a class called ViewPort which |
163 |
|
contains all the non-wx parts of view.py and can therefore be |
164 |
|
tested. view.py contains only the wx-specific parts and is fairly |
165 |
|
simple. |
166 |
|
|
167 |
|
* Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes |
168 |
|
RTTbug #1992. |
169 |
|
* Thuban/UI/viewport.py: New. Contains non-wx view functionality. |
170 |
|
RTTbug #1992. |
171 |
|
|
172 |
|
* Thuban/Model/classgen.py (generate_singletons, |
173 |
|
generate_uniform_distribution, generate_quantiles): |
174 |
|
Added 'fixes' parameter so that property attributes can |
175 |
|
be held constant over the generated classification groups. |
176 |
|
(CustomRamp.GetProperties): Remove unused variables. |
177 |
|
|
178 |
|
* Thuban/Model/map.py (Map.SetProjection): Send the old |
179 |
|
projection as an argument to listeners of the MAP_PROJECTION_CHANGED |
180 |
|
event. |
181 |
|
|
182 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records' |
183 |
|
parameter which is a list of records that restricts which |
184 |
|
records are saved. Fixes RTbug #1997. |
185 |
|
|
186 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
187 |
|
Port exception dialog from GREAT-ER. Fixes RTbug #1993. |
188 |
|
|
189 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls |
190 |
|
to allow the user to fix line color/width on generated groups. |
191 |
|
(ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_* |
192 |
|
functions to optionally fix group properties. |
193 |
|
|
194 |
|
* Thuban/UI/main.py (main): Set exception hook to the |
195 |
|
ShowExceptionDialog. Fixes RTbug #1993. |
196 |
|
|
197 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise |
198 |
|
the table window when it is selectd to be shown. |
199 |
|
|
200 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an |
201 |
|
Export Selection button and move the export buttons underneath |
202 |
|
the table. |
203 |
|
(QueryTableFrame.UpdateStatusText): Added event argument so |
204 |
|
that it can respond to grid selection events. The status text |
205 |
|
is now updated even when the table is not associated with a |
206 |
|
layer as was previously assumed. |
207 |
|
(QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed. |
208 |
|
UpdateStatusText responds to these events. |
209 |
|
(QueryTableFrame.OnSaveAs): Renamed to doExport. |
210 |
|
(QueryTableFrame.doExport): Helper function that saves the |
211 |
|
entire table, or selected rows, to a file. |
212 |
|
(QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New. |
213 |
|
Respond to export button events and call doExport. |
214 |
|
|
215 |
|
* extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure |
216 |
|
the function doesn't return NULL without first setting a Python |
217 |
|
Error. |
218 |
|
|
219 |
|
* test/runtests.py (main): Only print "Unknown option" for |
220 |
|
unsupported options. |
221 |
|
|
222 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): Take |
223 |
|
optional epsilon argument to specify floating point accuracy. |
224 |
|
(FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual |
225 |
|
for each item test. |
226 |
|
|
227 |
|
* test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add |
228 |
|
tests for saving selected records. |
229 |
|
|
230 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
231 |
|
tests for saving selected records. |
232 |
|
|
233 |
|
* test/test_map.py (TestMapWithContents.test_set_projection): |
234 |
|
MAP_PROJECTION_CHANGED events send the old projection. |
235 |
|
|
236 |
|
* test/test_session.py |
237 |
|
(TestSessionWithContent.test_forward_map_projection): |
238 |
|
MAP_PROJECTION_CHANGED events send the old projection. |
239 |
|
|
240 |
|
* test/test_table.py (TableTest): Update tests to use non-deprecated |
241 |
|
functions. |
242 |
|
|
243 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
244 |
|
|
245 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width): The type |
246 |
|
constants in the column objects are the standard ones defined in |
247 |
|
the table module. |
248 |
|
|
249 |
|
* test/test_transientdb.py |
250 |
|
(TestTransientTable.test_transienttable_to_dbf): New. Test whether |
251 |
|
exporting transient tables as DBF works. This should catch the bug |
252 |
|
just fixed in TransientTableBase.Width. |
253 |
|
|
254 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
255 |
|
|
256 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the |
257 |
|
interpolated colors correctly. |
258 |
|
|
259 |
|
* test/test_classgen.py (TestCustomRamp.test_color_interpolation): |
260 |
|
New. Test case for the fix in classgen.py |
261 |
|
|
262 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
263 |
|
|
264 |
|
* test/runtests.py (main): Make the default output less verbose |
265 |
|
and add a verbosity option (-v) to get the old output |
266 |
|
|
267 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
268 |
|
|
269 |
|
* Resources/XML/thuban-0.9.dtd: New. This will become the DTD for |
270 |
|
0.9. |
271 |
|
|
272 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.JoinType): |
273 |
|
New. Return the join type |
274 |
|
|
275 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9 |
276 |
|
DTD |
277 |
|
(SessionSaver.write_data_containers): Save the join type for |
278 |
|
joined tables |
279 |
|
|
280 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9 |
281 |
|
namespace |
282 |
|
(SessionLoader.start_jointable): Handle the jointype attribute |
283 |
|
|
284 |
|
* test/test_load_0_8.py: New. Effectively a copy of test_load.py |
285 |
|
as of Thuban 0.8. These are now tests to determine whether Thuban |
286 |
|
can still read files generated by Thuban 0.8 |
287 |
|
|
288 |
|
* test/test_load.py (LoadSessionTest.dtd) |
289 |
|
(TestSingleLayer.file_contents) |
290 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
291 |
|
(TestLayerProjection.file_contents) |
292 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
293 |
|
(TestJoinedTable.file_contents) |
294 |
|
(TestLoadError.file_contents): Update for new DTD |
295 |
|
(TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test |
296 |
|
for new join type attribute |
297 |
|
|
298 |
|
* test/test_save.py (SaveSessionTest.dtd) |
299 |
|
(SaveSessionTest.testEmptySession) |
300 |
|
(SaveSessionTest.testSingleLayer) |
301 |
|
(SaveSessionTest.testLayerProjection) |
302 |
|
(SaveSessionTest.testRasterLayer) |
303 |
|
(SaveSessionTest.testClassifiedLayer) |
304 |
|
(SaveSessionTest.test_dbf_table) |
305 |
|
(SaveSessionTest.test_joined_table): Update for new DTD |
306 |
|
(SaveSessionTest.test_joined_table): Add test for new join type |
307 |
|
attribute |
308 |
|
|
309 |
|
2003-07-04 Bernhard Herzog <[email protected]> |
310 |
|
|
311 |
|
* Thuban/Model/table.py (_find_dbf_column_names): New. Helper |
312 |
|
function for table_to_dbf |
313 |
|
(table_to_dbf): Deal with names longer than the 10 character limit |
314 |
|
|
315 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
316 |
|
doc-string |
317 |
|
(TestTableToDBF.test_table_to_dbf_long_col_names): New test for |
318 |
|
long column names |
319 |
|
|
320 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
321 |
|
|
322 |
|
* Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax |
323 |
|
|
324 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
325 |
|
|
326 |
|
* Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton |
327 |
|
for the Thuban manual and README with some basic information about |
328 |
|
the manual |
329 |
|
|
330 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
331 |
|
|
332 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
333 |
|
Update doc-string |
334 |
|
(TransientJoinedTable.create): Do not modify the column objects of |
335 |
|
the input tables in place and copy all columns of the input tables |
336 |
|
into the joined table after all. |
337 |
|
|
338 |
|
* test/test_transientdb.py |
339 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
340 |
|
Update to reflect the new behavior |
341 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
342 |
|
Update to reflect the new behavior |
343 |
|
(TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place): |
344 |
|
New test case for a bug which modified the column objects in place |
345 |
|
|
346 |
|
2003-07-02 Jonathan Coles <[email protected]> |
347 |
|
|
348 |
|
* Thuban/Model/classgen.py (generate_singletons, |
349 |
|
generate_uniform_distribution, generate_quantiles, |
350 |
|
GenQuantiles0): Make sure maxValue isn't less than |
351 |
|
one, otherwise we could divide by zero. |
352 |
|
|
353 |
|
* test/test_classgen.py (ClassGenTest.doClassRangeTest, |
354 |
|
ClassGenTest.doClassSingleTest): Call doBoundsTest to |
355 |
|
check the end classification groups against the |
356 |
|
proper property values. |
357 |
|
(ClassGenTest.doBoundsTest): New. Checks the first and |
358 |
|
last classification groups to make sure their properties |
359 |
|
are the correct upper and lower bounds for a color ramp. |
360 |
|
|
361 |
|
2003-07-02 Jonathan Coles <[email protected]> |
362 |
|
|
363 |
|
* Thuban/Model/classgen.py (generate_singletons, |
364 |
|
generate_uniform_distribution, generate_quantiles, |
365 |
|
GenQuantiles0): The denominator was one to high when |
366 |
|
calculating the index for the ramp causing the index |
367 |
|
to never to reach one. |
368 |
|
|
369 |
|
2003-07-02 Jonathan Coles <[email protected]> |
370 |
|
|
371 |
|
Changed the singature of ClassGroupRange.__init__ and |
372 |
|
ClassGroupRange.SetRange() so that the min/max values are |
373 |
|
passed as a tuple. This makes a better calling scheme for |
374 |
|
when a Range object is passed instead. |
375 |
|
|
376 |
|
* Thuban/Model/classgen.py: Fixed parameters to |
377 |
|
ClassGroupRange constructor. |
378 |
|
|
379 |
|
* Thuban/Model/classification.py (ClassGroupRange.__init__): |
380 |
|
Consolidate the min/max parameters into a single _range which |
381 |
|
can either be a tuple or a Range object. |
382 |
|
(ClassGroupRange.SetRange): Consolidate the min/max parameters |
383 |
|
into a single _range which can either be a tuple or a Range object. |
384 |
|
|
385 |
|
* Thuban/Model/load.py (SessionLoader.start_clrange): Fix |
386 |
|
call to ClassGroupRange constructor to use a tuple. |
387 |
|
|
388 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Switch |
389 |
|
the classification instance variable to the new class |
390 |
|
before calling _set_layer otherwise subscribers to a |
391 |
|
LAYER_CHANGED event will not see any difference. |
392 |
|
|
393 |
|
* test/test_classification.py: Fix tests of ClassGroupRange |
394 |
|
so that they use the new signature. |
395 |
|
|
396 |
|
* test/test_load.py: Fix use of ClassGroupRange so that it |
397 |
|
uses the new signature. |
398 |
|
|
399 |
|
* test/test_load_0_2.py: Fix use of ClassGroupRange so that it |
400 |
|
uses the new signature. |
401 |
|
|
402 |
|
* test/test_save.py: Fix use of ClassGroupRange so that it |
403 |
|
uses the new signature. |
404 |
|
|
405 |
|
|
406 |
|
2003-07-01 Jonathan Coles <[email protected]> |
407 |
|
|
408 |
|
* Thuban/Model/classgen.py: Fixes RTbug #1972, 1971. |
409 |
|
Import used objects/class from color. |
410 |
|
(generate_singletons): We don't |
411 |
|
need the numGroups parameter anymore because we are using |
412 |
|
the new ramps with GetProperties(). |
413 |
|
(generate_uniform_distribution): Use new ramp method |
414 |
|
GetProperties(). |
415 |
|
(generate_quantiles, GenQuantiles0): Use new ramp method |
416 |
|
GetProperties(). |
417 |
|
(CustomRamp.SetNumGroups): Removed. The ramps now map |
418 |
|
a value from 0 to 1 to class properties so the number |
419 |
|
of groups is not needed ahead of time. |
420 |
|
(CustomRamp.next): Removed. CustomRamp does not support |
421 |
|
interation anymore. |
422 |
|
(CustomRamp.GetProperties): Returns a ClassGroupProperties |
423 |
|
object based on the index value from 0 to 1 that is |
424 |
|
passed to it. |
425 |
|
(GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp): |
426 |
|
Made into instances of Monochromatic class instread of |
427 |
|
deriving from it. |
428 |
|
(HotToCold.SetNumGroups): Removed. See CustomRamp. |
429 |
|
(HotToCold.next): Removed. See CustomRamp. |
430 |
|
|
431 |
|
* Thuban/Model/classification.py: Fixes RTbug #1973, 1971. |
432 |
|
(Classification.SetField, Classification.SetFieldType): |
433 |
|
Replaced with SetFieldInfo. |
434 |
|
(Classification.SetFieldInfo): New. Does a better job of |
435 |
|
what SetField and SetFieldType used to do by combining |
436 |
|
their function since they should really always be done |
437 |
|
at the same time. |
438 |
|
(Classification.SetLayer): Renamed to _set_layer. |
439 |
|
(Classification._set_layer): Should only be called from |
440 |
|
Layer's SetClassification. This does not cause a recursive |
441 |
|
call as SetLayer did because we know that Layer knows about |
442 |
|
the classification. |
443 |
|
|
444 |
|
* Thuban/Model/color.py: Fixes RTbug #1971. |
445 |
|
(_Transparent): Renamed from Transparent so it doesn't |
446 |
|
conflict with the module variable. |
447 |
|
(Transparent, Black): Renamed from Color.Transparent, |
448 |
|
Color.Black so they are not class variables. |
449 |
|
|
450 |
|
* Thuban/Model/layer.py: Fixes RTbug #1971, 1973. |
451 |
|
(Layer.Destroy): We don't need to call SetClassification |
452 |
|
anymore to clear out the back reference in the classifcation |
453 |
|
to the layer. It's better to set it to None using _set_layer, |
454 |
|
and we won't be creating another clas object too. |
455 |
|
(Layer.SetClassification): Classification._set_layer is not |
456 |
|
recursive so remove all the locking variables. Also clean |
457 |
|
up the code so that it remains unchanged if something fails. |
458 |
|
|
459 |
|
* Thuban/Model/load.py: Fixes RTbug #1971. |
460 |
|
(SessionLoader.start_classification): Call |
461 |
|
Classification.SetFieldInfo(). |
462 |
|
|
463 |
|
* Thuban/Model/save.py: Removed import of Color which wasn't |
464 |
|
being used. |
465 |
|
|
466 |
|
* Thuban/UI/classgen.py: Fixes RTbug #1972. |
467 |
|
(ClassGenDialog.__init__): Color ramps are now instances |
468 |
|
already so we don't need to create any new objects. |
469 |
|
(ClassGenDialog.OnOK): Check for numGroups is no longer |
470 |
|
necessary because we never use it. |
471 |
|
|
472 |
|
* Thuban/UI/classifier.py: Fixes RTbug #1971. |
473 |
|
(Classifier.__BuildClassification, Classifier.__SetGridTable): |
474 |
|
Call Classification.SetFieldInfo() instead of SetFieldType. |
475 |
|
|
476 |
|
* Thuban/UI/renderer.py: Fixes RTbug #1971. |
477 |
|
|
478 |
|
* Thuban/UI/view.py: Fixes RTbug #1974, 1971. |
479 |
|
(MapCanvas.__init__): Subscribe to the idle time event. Set |
480 |
|
background color to white. |
481 |
|
(MapCanvas.OnPaint): Set a flag indicating that we should |
482 |
|
render the map during idle time. If we already have a bitmap |
483 |
|
just draw it now. |
484 |
|
(MapCanvas.OnIdle): New. Render the map only during idle time. |
485 |
|
This also fixes a problem with the busy cursor under gtk. |
486 |
|
|
487 |
|
* test/test_classgen.py (ClassGenTest.test_generate_singletons): |
488 |
|
Fix calls to generate_singletons because the signature changed. |
489 |
|
|
490 |
|
* test/test_classification.py: Fix color references and |
491 |
|
change calls to Classification.[SetField|SetFieldType] to |
492 |
|
SetFieldInfo. |
493 |
|
|
494 |
|
* test/test_load.py: Fix color references. |
495 |
|
|
496 |
|
* test/test_load_0_2.py: Fix color references. |
497 |
|
|
498 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): |
499 |
|
Change calls to Classification.[SetField|SetFieldType] to |
500 |
|
SetFieldInfo. |
501 |
|
|
502 |
|
2003-07-01 Frank Koormann <[email protected]> |
503 |
|
|
504 |
|
MERGE from the greater-ms3 branch. |
505 |
|
|
506 |
|
* test/test_transientdb.py |
507 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
508 |
|
New. Test join of two tables with partly equal column names. |
509 |
|
|
510 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): |
511 |
|
If duplicates in left and right tables column names are found, |
512 |
|
append '_' (underscores) to the name until it is unique. |
513 |
|
Create always new internal names for the resulting table and reference |
514 |
|
columns in the join statement with <table>.<column> |
515 |
|
|
516 |
|
2003-07-01 Bernhard Herzog <[email protected]> |
517 |
|
|
518 |
|
* test/test_transientdb.py |
519 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
520 |
|
New. Test whether joining on columns with the same names in both |
521 |
|
tables works. |
522 |
|
|
523 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): Make |
524 |
|
sure to use the right internal names even when joining on field |
525 |
|
with the same names in both tables. Also, detect duplicate names |
526 |
|
in the joined table correctly. |
527 |
|
|
528 |
|
2003-07-01 Frank Koormann <[email protected]> |
529 |
|
|
530 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
531 |
|
Reverse List of layers to render in same order as in desktop legend. |
532 |
|
|
533 |
|
2003-06-30 Jonathan Coles <[email protected]> |
534 |
|
|
535 |
|
* Thuban/version.py (make_tuple): Takes a version string |
536 |
|
and splits it into a tuple of at most three integers. |
537 |
|
Used make_tuple() to make tuple versions of the version |
538 |
|
numbers. |
539 |
|
|
540 |
|
* Thuban/UI/about.py: Add Thuban email addresses. |
541 |
|
|
542 |
|
2003-06-30 Jonathan Coles <[email protected]> |
543 |
|
|
544 |
|
* Thuban/version.py: SQLite/PySQLite version dependencies |
545 |
|
were too high. |
546 |
|
|
547 |
|
2003-06-30 Jonathan Coles <[email protected]> |
548 |
|
|
549 |
|
* Thuban/version.py: Update version to 0.8.1 |
550 |
|
|
551 |
|
* MANIFEST.in: Added Projections so that default.proj is |
552 |
|
included. |
553 |
|
|
554 |
|
2003-06-26 Jonathan Coles <[email protected]> |
555 |
|
|
556 |
|
New About box with lots more information including library |
557 |
|
versions and credits. More/better version checking before |
558 |
|
Thuban starts. |
559 |
|
|
560 |
|
* Thuban/UI/about.py: New. New About box that displays |
561 |
|
library version information and credits. |
562 |
|
|
563 |
|
* Thuban/version.py: Added new 'versions' dictionary which |
564 |
|
contains the verions of various libraries which are checked |
565 |
|
when the module loads. |
566 |
|
(verify_versions): Check all version numbers and returns |
567 |
|
a list of errors. |
568 |
|
|
569 |
|
* Thuban/UI/classifier.py (Classifier.__EnableButtons): |
570 |
|
Reset the status of the buttons as the situation warrants, |
571 |
|
but in a better more reliable way by not relying on the |
572 |
|
current status to determine what needs to change. |
573 |
|
|
574 |
|
* Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed. |
575 |
|
(verify_versions): Remove most of the code since it is |
576 |
|
now in Thuban.version.verify_versions.o |
577 |
|
|
578 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Call new |
579 |
|
About box in Thuban.UI.about. |
580 |
|
|
581 |
|
* extensions/thuban/gdalwarp.cpp (get_gdal_version): New. |
582 |
|
Returns the version of gdal library being used as a string. |
583 |
|
|
584 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
585 |
|
Removed. |
586 |
|
(get_proj_version): Return the version of PROJ that the file |
587 |
|
was compiled with. |
588 |
|
(get_gtk_version): Return th version of GTK that the file |
589 |
|
was compiled with. |
590 |
|
|
591 |
|
2003-06-25 Jonathan Coles <[email protected]> |
592 |
|
|
593 |
|
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |
594 |
|
of the SelectPropertiesDialog should be self so the window |
595 |
|
appears on top. |
596 |
|
(ClassGroupPropertiesCtrl.DoEdit): The parent |
597 |
|
of the SelectPropertiesDialog should be self so the window |
598 |
|
appears on top. |
599 |
|
|
600 |
|
* Thuban/UI/resource.py: Cleaned up how we determine file |
601 |
|
extensions. |
602 |
|
(GetImageResource): Return an wxImage from our Resources. |
603 |
|
|
604 |
|
2003-06-24 Jonathan Coles <[email protected]> |
605 |
|
|
606 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
607 |
|
Check that a layer has a classification before trying |
608 |
|
to get it. Raster layers don't have classifications. |
609 |
|
|
610 |
|
2003-06-23 Jonathan Coles <[email protected]> |
611 |
|
|
612 |
|
* setup.py: Add Resources/XML to resource list. |
613 |
|
|
614 |
|
2003-06-23 Jonathan Coles <[email protected]> |
615 |
|
|
616 |
|
* setup.cfg: Fix copyright dates |
617 |
|
|
618 |
|
2003-06-23 Jonathan Coles <[email protected]> |
619 |
|
|
620 |
|
* MANIFEST.in: Update with Resources/XML |
621 |
|
|
622 |
|
* setup.py: Don't include Locale resources yet as we don't |
623 |
|
have any and it causes problems building the distribution |
624 |
|
for Windows. Update version to 0.8.0. |
625 |
|
|
626 |
|
* Doc/thuban.dtd: Removed since it is now in Resources/XML. |
627 |
|
|
628 |
|
* Thuban/UI/mainwindow.py: Add blank line at the end because |
629 |
|
file was not being read correctly building the Windows |
630 |
|
distribution. |
631 |
|
|
632 |
|
2003-06-23 Jonathan Coles <[email protected]> |
633 |
|
|
634 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Fix text. |
635 |
|
|
636 |
|
* Thuban/version.py: Temporarily update longversion for |
637 |
|
the 0.8 release so that it doesn't have the cvs revision. |
638 |
|
|
639 |
|
2003-06-23 Jonathan Coles <[email protected]> |
640 |
|
|
641 |
|
* Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield |
642 |
|
to make sure that we don't create reentrant possibilities with |
643 |
|
wxYield. |
644 |
|
|
645 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor() |
646 |
|
directly to avoid the wxSafeYield() call which generates an |
647 |
|
OnPaint event causing infinite recursion. Don't try to catch |
648 |
|
exception anymore. This was for before there were limits on map |
649 |
|
scaling. |
650 |
|
|
651 |
|
2003-06-23 Bernhard Herzog <[email protected]> |
652 |
|
|
653 |
|
Bug fix for RT #1961: |
654 |
|
|
655 |
|
* Thuban/Model/load.py (SessionLoader.start_derivedshapesource): |
656 |
|
Register DerivedShapestores with the session |
657 |
|
|
658 |
|
* Thuban/Model/session.py (Session.Tables): Make sure each table |
659 |
|
is only listed once. |
660 |
|
|
661 |
|
* test/test_load.py (TestJoinedTable.test): Add check_format call. |
662 |
|
Update file contents to match the one written out. |
663 |
|
|
664 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
665 |
|
|
666 |
|
* test/xmlsupport.py (SaxEventLister.startElementNS) |
667 |
|
(SaxEventLister.endElementNS): Do not include the qname. Python |
668 |
|
2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it |
669 |
|
is (presumably incorrectly) None, whereas it's a string with the |
670 |
|
element name in the later versions. |
671 |
|
|
672 |
|
* test/test_xmlsupport.py (TestEventList.test_even_list_simple) |
673 |
|
(TestEventList.test_even_list_namespace): Update tests to reflect |
674 |
|
the new behaviour |
675 |
|
(TestEventList.test_even_list_id_normalization): Fix doc-string |
676 |
|
|
677 |
|
2003-06-20 Jonathan Coles <[email protected]> |
678 |
|
|
679 |
|
* Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden |
680 |
|
by deriving classes to determine if that layer supports shapes. |
681 |
|
(Layer): Override HasShapes and return true. |
682 |
|
|
683 |
|
* Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor() |
684 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
685 |
|
(GenUniquePanel._OnRetrieve): Set busy cursor while retrieving |
686 |
|
table data. |
687 |
|
|
688 |
|
* Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor): |
689 |
|
New. Wrappers around the wxWindows functions that allow us to |
690 |
|
make additional calls such as wxYield which gives the native |
691 |
|
system a chance to update the cursor correctly. |
692 |
|
|
693 |
|
* Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor() |
694 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
695 |
|
|
696 |
|
* Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor() |
697 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
698 |
|
(MapCanvas.find_shape_at): Check if the current search layer |
699 |
|
support shapes, otherwise go on to the next layer. |
700 |
|
|
701 |
|
* test/test_layer.py: Add tests in each type of layer for |
702 |
|
HasClassification() and HasShapes() |
703 |
|
|
704 |
|
2003-06-20 Jonathan Coles <[email protected]> |
705 |
|
|
706 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after |
707 |
|
turning on the busy cursor to allow the system to change the |
708 |
|
cursor before we begin painting. This fixes a problem that |
709 |
|
was occuring only under GTK. Fixes RTbug #1840. |
710 |
|
|
711 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
712 |
|
|
713 |
|
* Resources/XML/thuban-0.8.dtd: New DTD for the new file format |
714 |
|
version. |
715 |
|
|
716 |
|
* Thuban/Model/save.py (sort_data_stores): New. Make topological |
717 |
|
sort of the data sources so they can be written with sources that |
718 |
|
data sources that depend on other data sources come after the |
719 |
|
sources they depend on. |
720 |
|
(SessionSaver.__init__): Add idmap instance variable to map from |
721 |
|
objects to the ids used in the file. |
722 |
|
(SessionSaver.get_id, SessionSaver.define_id) |
723 |
|
(SessionSaver.has_id): New. Methods to manage the idmap |
724 |
|
(SessionSaver.write): Use thuban-0.8.dtd |
725 |
|
(SessionSaver.write_session): Add a namespace on the session and |
726 |
|
write out the data sources before the maps. |
727 |
|
(SessionSaver.write_data_containers): New. Write the data |
728 |
|
containers. |
729 |
|
(SessionSaver.write_layer): Layer elements now refer to a |
730 |
|
shapestore and don't contain filenames anymore. |
731 |
|
|
732 |
|
* Thuban/Model/load.py (LoadError): Exception class to raise when |
733 |
|
errors in the files are discovered |
734 |
|
(SessionLoader.__init__): Define dispatchers for elements with a |
735 |
|
thuban-0.8 namespace too. |
736 |
|
(SessionLoader.check_attrs): New helper method to check and |
737 |
|
convert attributes |
738 |
|
(AttrDesc): New. Helper class for SessionLoader.check_attrs |
739 |
|
(SessionLoader.start_fileshapesource) |
740 |
|
(SessionLoader.start_derivedshapesource) |
741 |
|
(SessionLoader.start_filetable, SessionLoader.start_jointable): |
742 |
|
Handlers for the new elements in the new fileformat |
743 |
|
(SessionLoader.start_layer): Handle the shapestore attribute in |
744 |
|
addition to filename. |
745 |
|
(SessionLoader.start_table, SessionLoader.end_table): Removed. |
746 |
|
They were never used in the old formats and aren't needed for the |
747 |
|
new. |
748 |
|
|
749 |
|
* Thuban/Model/session.py (Session.DataContainers): New method to |
750 |
|
return all "data containers", i.e. shapestores and tables |
751 |
|
|
752 |
|
* test/xmlsupport.py (SaxEventLister.__init__) |
753 |
|
(SaxEventLister.startElementNS, sax_eventlist): Add support to |
754 |
|
normalize IDs. |
755 |
|
|
756 |
|
* test/test_xmlsupport.py |
757 |
|
(TestEventList.test_even_list_id_normalization): New test case for |
758 |
|
id normalization |
759 |
|
|
760 |
|
* test/test_load.py (LoadSessionTest.check_format): Use ID |
761 |
|
normalization |
762 |
|
(LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New |
763 |
|
class atrributes used for ID normalization |
764 |
|
(TestSingleLayer, TestLayerVisibility, TestLabels.test) |
765 |
|
(TestLayerProjection.test, TestRasterLayer.test): Adapt to new |
766 |
|
file format |
767 |
|
(TestJoinedTable): New test for loading sessions with joined |
768 |
|
tables. |
769 |
|
(TestLoadError): New. Test whether missing required attributes |
770 |
|
cause a LoadError. |
771 |
|
|
772 |
|
* test/test_save.py (SaveSessionTest.thubanids) |
773 |
|
(SaveSessionTest.thubanidrefs): New class attributes for ID |
774 |
|
normalization in .thuban files. |
775 |
|
(SaveSessionTest.compare_xml): Use id-normalization. |
776 |
|
(SaveSessionTest.testEmptySession) |
777 |
|
(SaveSessionTest.testLayerProjection) |
778 |
|
(SaveSessionTest.testRasterLayer) |
779 |
|
(SaveSessionTest.testClassifiedLayer): Adapt to new file format. |
780 |
|
(SaveSessionTest.testLayerProjection): The filename used was the |
781 |
|
same as for testSingleLayer. Use a different one. |
782 |
|
(SaveSessionTest.test_dbf_table) |
783 |
|
(SaveSessionTest.test_joined_table): New test cases for saving the |
784 |
|
new data sources structures. |
785 |
|
(TestStoreSort, MockDataStore): Classes to test the sorting of the |
786 |
|
data stores for writing. |
787 |
|
|
788 |
|
* test/runtests.py: Add CVS keywords |
789 |
|
|
790 |
|
2003-06-20 Jonathan Coles <[email protected]> |
791 |
|
|
792 |
|
* test/test_session.py |
793 |
|
(UnreferencedTablesTests.test_unreferenced_tables_with_joins): |
794 |
|
Use the cultural_landmark-point.dbf file for the store so that |
795 |
|
the table rows and shape count match. |
796 |
|
|
797 |
|
2003-06-20 Jonathan Coles <[email protected]> |
798 |
|
|
799 |
|
* Thuban/Model/data.py (DerivedShapeStore.__init__): Raise |
800 |
|
an exception if the number of shapes is different from the |
801 |
|
number of rows in the table. Address RTbug #1933. |
802 |
|
|
803 |
|
* test/test_layer.py (TestLayer.test_derived_store): Add |
804 |
|
a test for the new exception in DerivedShapeStore.__init__. |
805 |
|
|
806 |
|
* test/support.py (FloatTestCase): Removed since there is |
807 |
|
already FloatComparisonMixin. Fixes RTbug #1954. |
808 |
|
(FloatComparisonMixin.assertFloatEqual): Include test for |
809 |
|
infinity that was part of FloatTestCase. |
810 |
|
|
811 |
|
* test/test_range.py (RangeTest): Inherit from |
812 |
|
support.FloatComparisonMixin now that we don't have |
813 |
|
support.FloatTestCase. |
814 |
|
|
815 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
816 |
|
|
817 |
|
* test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use |
818 |
|
the implementation in xmlsupport instead. |
819 |
|
(SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport |
820 |
|
|
821 |
|
* test/test_proj.py: Import sax_eventlist from xmlsupport instead |
822 |
|
of test_save |
823 |
|
|
824 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
825 |
|
|
826 |
|
* test/test_load.py (LoadSessionTest.check_format): New helper |
827 |
|
method to make sure the test files we load might have been written |
828 |
|
by the current thuban version. |
829 |
|
(ClassificationTest.TestLayers, TestSingleLayer.test) |
830 |
|
(TestLayerVisibility.test, TestClassification.test) |
831 |
|
(TestLabels.test, TestLayerProjection.test, TestRasterLayer.test): |
832 |
|
Add check_format() calls and fix the thuban data to match the data |
833 |
|
that would be written by saving the session loaded from it. |
834 |
|
|
835 |
|
* test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of |
836 |
|
the same class and function in test_save. |
837 |
|
|
838 |
|
* test/test_xmlsupport.py (TestEventList): New. test cases for |
839 |
|
sax_eventlist |
840 |
|
|
841 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
842 |
|
|
843 |
|
* Resources/XML/thuban.dtd: Add comment about which versions of |
844 |
|
Thuban are covered by this DTD |
845 |
|
(map): Fix content model for layers and raster layers. There can |
846 |
|
be any number or layers and raster layers in any order. |
847 |
|
|
848 |
|
2003-06-20 Jonathan Coles <[email protected]> |
849 |
|
|
850 |
|
This is mainly about fixing RTbug #1949. |
851 |
|
|
852 |
|
* Thuban/Model/classification.py: Remove "from __future__" |
853 |
|
import statement since python 2.2 is the earliest supported |
854 |
|
version. |
855 |
|
|
856 |
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): New. |
857 |
|
Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES |
858 |
|
depending on the units this projection *forwards* into. |
859 |
|
|
860 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
861 |
|
Remove unnecessary use of lambdas and nested functions. |
862 |
|
|
863 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale |
864 |
|
adjustment here if the map projection uses degrees. |
865 |
|
|
866 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove |
867 |
|
scale adjust code since it is now done before calling |
868 |
|
this method. Don't do anything if the map projection |
869 |
|
is None. |
870 |
|
|
871 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
872 |
|
|
873 |
|
Move version specific load tests to their own file. |
874 |
|
|
875 |
|
* test/test_load.py: Expand the doc-string to explain a bit how to |
876 |
|
handle file format changes. |
877 |
|
(TestClassification.test): Update the docstring as this test is |
878 |
|
not about Thuban 0.2 anymore. |
879 |
|
|
880 |
|
* test/test_load_0_2.py: New file with the load tests for thuban |
881 |
|
files created with Thuban 0.2 and earlier. |
882 |
|
|
883 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
884 |
|
|
885 |
|
Add XML validation to some of the tests. Validation will only be |
886 |
|
done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html). |
887 |
|
To make the DTD available to the test cases it's moved into |
888 |
|
Resources/XML |
889 |
|
|
890 |
|
* Resources/XML/thuban.dtd: New. This is now the real Thuban DTD |
891 |
|
for versions up to and including 0.2. Two slight changes: added an |
892 |
|
encoding specification and fixed the comment which refered to |
893 |
|
GRASS, not Thuban |
894 |
|
|
895 |
|
* test/xmlsupport.py: New support module for tests involving XML. |
896 |
|
Currently there's a mix-in class for XML validation. |
897 |
|
|
898 |
|
* test/test_xmlsupport.py: New. Tests for the xmlsupport module |
899 |
|
|
900 |
|
* test/test_save.py (SaveSessionTest): Derive from ValidationTest |
901 |
|
so that we can validate the |
902 |
|
(SaveSessionTest.testEmptySession) |
903 |
|
(SaveSessionTest.testSingleLayer) |
904 |
|
(SaveSessionTest.testSingleLayer) |
905 |
|
(SaveSessionTest.testLayerProjection) |
906 |
|
(SaveSessionTest.testRasterLayer) |
907 |
|
(SaveSessionTest.testClassifiedLayer): Validate the generated XML |
908 |
|
|
909 |
|
* test/runtests.py (main): Call print_additional_summary instead |
910 |
|
of print_garbage_information |
911 |
|
|
912 |
|
* test/support.py (resource_dir): New function to return the |
913 |
|
"Resource" subdirectory |
914 |
|
(print_additional_summary): New function to combine several |
915 |
|
summary functions |
916 |
|
(run_tests): Use print_additional_summary instead of calling |
917 |
|
print_garbage_information directly |
918 |
|
|
919 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
920 |
|
|
921 |
|
* Doc/thuban.dtd (classification): Correct the content model of |
922 |
|
the classification element. |
923 |
|
(projection): Add the "name" attribute |
924 |
|
|
925 |
|
2003-06-19 Frank Koormann <[email protected]> |
926 |
|
|
927 |
|
MERGE from the greater-ms3 branch. |
928 |
|
|
929 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to |
930 |
|
scale if projection is latlong to get better estimate. |
931 |
|
|
932 |
|
Fix problem of hidden properties dialog under windows after double |
933 |
|
click on layer tree: |
934 |
|
The tree control always gets an Expanded / Collapsed event after |
935 |
|
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
936 |
|
raises the already displayed window. |
937 |
|
|
938 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
939 |
|
raiseProperties initialized to prevent endless loops |
940 |
|
(LegendTree._OnItemActivated): Depending on self.raiseProperties |
941 |
|
simply raise the properties or open the dialog and issue a second |
942 |
|
event. |
943 |
|
|
944 |
|
2003-06-18 Jonathan Coles <[email protected]> |
945 |
|
|
946 |
|
* setup.py: Fix a few problems that occured under Windows. |
947 |
|
|
948 |
|
2003-06-18 Jonathan Coles <[email protected]> |
949 |
|
|
950 |
|
When Thuban loaded the map was redrawn twice because the |
951 |
|
legend was being opened after the mainwindow was created |
952 |
|
and not during its creation. This meant the map was drawn |
953 |
|
initially and then had to be redrawn when the legend |
954 |
|
caused the display to change. Now the legend is opened |
955 |
|
in the mainwindow constructor which resolves this issue. |
956 |
|
|
957 |
|
Also, although we were checking for the existence of |
958 |
|
gdal and gdalwarp modules, the gdalwarp extension was |
959 |
|
still being compiled (which may fail if the system doesn't |
960 |
|
have gdal installed). the build_ext command to setup.py |
961 |
|
now accepts the flags --with-gdal and --without-gdal. |
962 |
|
If --without-gdal is specified setup.py will try to |
963 |
|
use the gdal parameters specified by gdal-config. Under |
964 |
|
windows, those parameters have to be set in setup.py |
965 |
|
as with proj4 an wxWindows. |
966 |
|
|
967 |
|
* setup.py: Use a list instead of seperate variables for |
968 |
|
extension parameters so we can create a generic function |
969 |
|
that runs an appropriate *-config script. |
970 |
|
(run_cs_script): Renamed from run_wx_script and modified |
971 |
|
to accept a second argument which is a list of lists to |
972 |
|
be filled in by the values returned from running the command. |
973 |
|
(thuban_build_ext): New. Extends the build_ext command and |
974 |
|
provides the options --with-gdal/--without-gdal which then |
975 |
|
optionally includes the gdalwarp extension. |
976 |
|
|
977 |
|
* Thuban/Model/resource.py: First check if we can import |
978 |
|
the gdalwarp Thuban extension before checking for gdal. |
979 |
|
Also added some comments. |
980 |
|
|
981 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if |
982 |
|
the map is None which may be the case if none has been loaded |
983 |
|
yet. |
984 |
|
|
985 |
|
* Thuban/UI/main.py (main): Remove call to ShowLegend. |
986 |
|
|
987 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend(). |
988 |
|
|
989 |
|
* Thuban/UI/renderer.py: Check for gdal support before importing |
990 |
|
gdalwarp. |
991 |
|
(MapRenderer.render_map): Only try to optimize if we have gdal |
992 |
|
support otherwise nothing will get drawn. |
993 |
|
|
994 |
|
* Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called |
995 |
|
during startup before a map has been created. Check if map is None |
996 |
|
before using it and do nothing if it is. |
997 |
|
|
998 |
|
2003-06-17 Jonathan Coles <[email protected]> |
999 |
|
|
1000 |
|
Fix the problem with raster layers under Windows that caused |
1001 |
|
Thuban to crash. The view should respond to layer projection |
1002 |
|
changed events to update the display. Changes to a projection |
1003 |
|
should not cause the map to be set to full extent. |
1004 |
|
|
1005 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
1006 |
|
current_map_proj to remember the current map projection so that |
1007 |
|
when the projection changes we know what the previous projection |
1008 |
|
was. |
1009 |
|
(MapCanvas.SetMap): Unsubscribe and subscribe to |
1010 |
|
LAYER_PROJECTION_CHANGED events. |
1011 |
|
(MapCanvas.projection_changed): Split into two methods that respond |
1012 |
|
to map and layer projection changes. |
1013 |
|
(MapCanvas.map_projection_changed): New. Takes the current view and |
1014 |
|
projects it using the new projection. This does not cause the |
1015 |
|
map to be redrawn at full extent. |
1016 |
|
(MapCanvas.layer_projection_changed): New. Cause a redraw which |
1017 |
|
will draw each layer in its new projection. |
1018 |
|
|
1019 |
|
* extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call |
1020 |
|
VSIFClose() not VSIFCloseL() to close the file. Fixes a crash |
1021 |
|
under Windows. |
1022 |
|
|
1023 |
|
* extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be |
1024 |
|
to twice sizeof(void*) because there are two digits for each |
1025 |
|
hex byte. |
1026 |
|
|
1027 |
|
2003-06-16 Bernhard Herzog <[email protected]> |
1028 |
|
|
1029 |
|
Update to the layer interface: Direct access to the table, |
1030 |
|
shapetable, shapefile and filename attributes is now actively |
1031 |
|
deprecated by issuing deprecation warnings for all places where |
1032 |
|
this happens. |
1033 |
|
|
1034 |
|
* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access |
1035 |
|
to the instance variables table, shapetable, shapefile and |
1036 |
|
filename via __getattr__ so that we can issue a deprecation |
1037 |
|
warning. |
1038 |
|
(Layer.SetShapeStore): Don't set the deprecated instance variables |
1039 |
|
any more |
1040 |
|
(Layer.SetShapeStore): Don't use deprecated layer instance |
1041 |
|
variables |
1042 |
|
(Layer.Destroy): No need to explicitly remove the instance |
1043 |
|
variables any more |
1044 |
|
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer |
1045 |
|
instance variables |
1046 |
|
|
1047 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
1048 |
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve) |
1049 |
|
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't |
1050 |
|
use deprecated layer instance variables |
1051 |
|
|
1052 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Don't use |
1053 |
|
deprecated layer instance variables |
1054 |
|
|
1055 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
1056 |
|
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer |
1057 |
|
instance variables |
1058 |
|
|
1059 |
|
* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use |
1060 |
|
deprecated layer instance variables |
1061 |
|
|
1062 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use |
1063 |
|
deprecated layer instance variables |
1064 |
|
|
1065 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Don't use |
1066 |
|
deprecated layer instance variables |
1067 |
|
|
1068 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer) |
1069 |
|
(MapRenderer.polygon_render_param): Don't use deprecated layer instance |
1070 |
|
variables |
1071 |
|
|
1072 |
|
* test/runtests.py (main): Turn Thuban's deprecation warnings into |
1073 |
|
errors so that they're cought by the tests |
1074 |
|
|
1075 |
|
* test/test_load.py (TestSingleLayer.test): Don't use deprecated |
1076 |
|
layer instance variables |
1077 |
|
|
1078 |
|
2003-06-16 Jonathan Coles <[email protected]> |
1079 |
|
|
1080 |
|
Fix a problem under Windows whereby if the user double-clicks on a |
1081 |
|
layer in the legend that tree item will expand or collapse as well |
1082 |
|
as open the layer properties dialog. The state of the tree item |
1083 |
|
should not be affected. |
1084 |
|
|
1085 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Add instance variable |
1086 |
|
preventExpandCollapse and subscribe to expanding and collapsing |
1087 |
|
events. |
1088 |
|
(LegendTree.OnItemExpandCollapse): New. Responds to expanding and |
1089 |
|
collapsing events and will veto the event if it has been triggered |
1090 |
|
by the user double clicking on a layer. |
1091 |
|
(LegendTree._OnItemActivated): Set preventExpandCollapse to indicate |
1092 |
|
that an expanding/collapsing event should be vetoed. |
1093 |
|
|
1094 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
1095 |
|
|
1096 |
|
* Thuban/UI/classifier.py (Classifier.OnClose) |
1097 |
|
(Classifier.map_layers_removed) |
1098 |
|
(Classifier.layer_shapestore_replaced): Unsubscribe the messages |
1099 |
|
in OnClose and not in map_layers_removed or |
1100 |
|
layer_shapestore_replaced to make sure it always happens when the |
1101 |
|
dialog is closed |
1102 |
|
|
1103 |
|
2003-06-13 Jonathan Coles <[email protected]> |
1104 |
|
|
1105 |
|
This puts back a fix for Windows where a panel is needed so that |
1106 |
|
the background of the table view appears correctly. |
1107 |
|
|
1108 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
1109 |
|
object that can be used by derived classes to place any |
1110 |
|
controls (including the grid) onto. |
1111 |
|
(QueryTableFrame.__init__): Use the panel as the parent window |
1112 |
|
for all the controls. Reparent the grid so that the panel is |
1113 |
|
the parent. Call UpdateStatusText() to correctly initialize |
1114 |
|
the status bar. |
1115 |
|
|
1116 |
|
2003-06-13 Jonathan Coles <[email protected]> |
1117 |
|
|
1118 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
1119 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
1120 |
|
but otherwise behaves like the other classes. This is needed |
1121 |
|
for the TableView which isn't really a dialog and needs to |
1122 |
|
have a status bar and control buttons. |
1123 |
|
|
1124 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
1125 |
|
instance variable to keep track of how many rows are selected. |
1126 |
|
Subscribe once to the the events we are interested in. |
1127 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
1128 |
|
hasn't been turned off. |
1129 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
1130 |
|
hasn't been turned off. |
1131 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
1132 |
|
as an event listener (which changes the event handler stack) |
1133 |
|
simply set an instance variable to False. This is checked in |
1134 |
|
the event handlers. |
1135 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
1136 |
|
selected rows. |
1137 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
1138 |
|
status bar and control buttons. |
1139 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
1140 |
|
Explicitly set which items are selected in the operator choice and |
1141 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
1142 |
|
Subscribe to grid cell selection events so we can update the |
1143 |
|
status bar. |
1144 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
1145 |
|
how many rows are in the grid, how many columns, and how many |
1146 |
|
rows are selected. |
1147 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
1148 |
|
Call UpdateStatusText when cells are (de)selected. |
1149 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
1150 |
|
combo if either the selected item index is 0 or if the string |
1151 |
|
cannot be found in the predefined list (this happens if the |
1152 |
|
user changes the text). Fixes RTbug #1940. |
1153 |
|
Only turn off the grid event listeners if there a query comes |
1154 |
|
back with a none empty list of ids. in the case that the list |
1155 |
|
is empty this causes a grid.ClearSelection() call to actually |
1156 |
|
clear the grid selection which causes the selected items in |
1157 |
|
the map to be deselected. Fixes RTbug #1939. |
1158 |
|
|
1159 |
|
* test/test_save.py (XMLWriterTest.Encode): Check return values. |
1160 |
|
Fixes RTbug #1851. |
1161 |
|
|
1162 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
1163 |
|
|
1164 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
1165 |
|
self.selected_shape with the current selection to make sure the |
1166 |
|
contents of the dialog are up to date when it's shown for the |
1167 |
|
first time. |
1168 |
|
The dialog used to work without this by luck. The recent fix to |
1169 |
|
the connector module 'broke' a 'feature' the identify view was |
1170 |
|
relying on, i.e that subscribing to a message in response to |
1171 |
|
receiving a message of that type would mean that the new |
1172 |
|
subscriber would also be called for the same message. |
1173 |
|
|
1174 |
|
2003-06-12 Jonathan Coles <[email protected]> |
1175 |
|
|
1176 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
1177 |
|
the image is rendered. Fixes RTbug #1937. |
1178 |
|
|
1179 |
2003-06-12 Jonathan Coles <[email protected]> |
2003-06-12 Jonathan Coles <[email protected]> |
1180 |
|
|
1181 |
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
1182 |
user directory if it doesn't exist on a posix system. |
user directory if it doesn't exist on a posix system. |
1183 |
|
Fixes RTbug #1815. |
1184 |
|
|
1185 |
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
1186 |
called to get_application_dir here, so that the directory |
called to get_application_dir here, so that the directory |