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