1 |
|
2004-11-30 Martin Schulze <[email protected]> |
2 |
|
|
3 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
4 |
|
Improved the test for the internal compare method |
5 |
|
|
6 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
7 |
|
|
8 |
|
* Thuban/UI/about.py (About.__init__): Added |
9 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
10 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
11 |
|
to Developer. |
12 |
|
|
13 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
14 |
|
|
15 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
16 |
|
Removed Jan from author list as he did not change enough significant |
17 |
|
lines yet. |
18 |
|
|
19 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
20 |
|
of the Extension. |
21 |
|
|
22 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
23 |
|
|
24 |
|
* po/hu.po: New. Hungarian translation. Contributed |
25 |
|
by Norbert Solymosi. |
26 |
|
|
27 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
28 |
|
|
29 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
30 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
31 |
|
debug prints |
32 |
|
|
33 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
34 |
|
|
35 |
|
Fix broken tests for svg extension and added svg legend |
36 |
|
to Experimental menu. |
37 |
|
|
38 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
39 |
|
the test run correctly even if the extension is a package. |
40 |
|
Also removed the "import Thuban" which makes no sense. |
41 |
|
|
42 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
43 |
|
test module also be executed from the global test routine. |
44 |
|
This is done by looking for the absense of the DISPLAY variable. |
45 |
|
|
46 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
47 |
|
to Experimental menu since this module has yet not reached a stable |
48 |
|
status (ie. 1.0). |
49 |
|
|
50 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
51 |
|
|
52 |
|
* Extensions/svgexport/svgmapwriter.py: |
53 |
|
Added verbose variable and some logging depending on it. |
54 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
55 |
|
because counting i is not necessary. |
56 |
|
(class Pen, class Brush): Added simple __str__ methods. |
57 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
58 |
|
not exported to svg file) Note: holes still unhandled. |
59 |
|
|
60 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
61 |
|
Made a baseclass TestWithDC for test needed a DC. |
62 |
|
Added tests for bug #2698 (transparent polygons are not |
63 |
|
exported to svg file): |
64 |
|
Testobjectexport.test_transparent_polygon() |
65 |
|
|
66 |
|
* Thuban/Model/base.py (UnsetModified): |
67 |
|
Fixed some typos in docstring. |
68 |
|
|
69 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
70 |
|
Added hints on the used algorithm for handling holes. |
71 |
|
|
72 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
73 |
|
|
74 |
|
Some face lifting for the examples. |
75 |
|
|
76 |
|
* Examples/__init__.py: Make this directory a package. |
77 |
|
|
78 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
79 |
|
|
80 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
81 |
|
menu to Examples menu. |
82 |
|
|
83 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
84 |
|
minor changes. |
85 |
|
|
86 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
87 |
|
|
88 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
89 |
|
|
90 |
|
Changed way of extension registry for wms and added extension |
91 |
|
registry for umn_mapserver extension. |
92 |
|
|
93 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
94 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
95 |
|
|
96 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
97 |
|
|
98 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
99 |
|
importing of the actual umn mapserver management modules. |
100 |
|
Included a test for the required Python MapScript. |
101 |
|
|
102 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
103 |
|
|
104 |
|
Changed way of extension registry for importAPR, bboxdump |
105 |
|
and added extension registry for svgexport.extension registry for |
106 |
|
svgexport. |
107 |
|
|
108 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
109 |
|
of the actual importAPR module. |
110 |
|
|
111 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
112 |
|
__init__.py). |
113 |
|
|
114 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
115 |
|
����of the actual bboxdump module. |
116 |
|
|
117 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
118 |
|
����__init__.py). |
119 |
|
|
120 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
121 |
|
of the svgsaver module. |
122 |
|
|
123 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
124 |
|
to Experimental menu since this module has yet not reached a stable |
125 |
|
status (ie. 1.0). |
126 |
|
|
127 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
128 |
|
|
129 |
|
Now the hit test considers the size of point symbols. |
130 |
|
|
131 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
132 |
|
'size' defaulting to the previously fixed value 5. |
133 |
|
Extended doc-string. |
134 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
135 |
|
for symbols. |
136 |
|
Now the size of the largest point symbol is determined to find out |
137 |
|
about whether the point has been hit. |
138 |
|
This fixes the problem that only clicks inside a fixed distance of |
139 |
|
5 where found. |
140 |
|
|
141 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
142 |
|
|
143 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
144 |
|
selected symbols. |
145 |
|
|
146 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
147 |
|
Added consideration of the specific size of point symbols. |
148 |
|
The property for each point symbol is retrieved and the size applied |
149 |
|
for the rendering method. |
150 |
|
Added doc-string. |
151 |
|
|
152 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
153 |
|
|
154 |
|
Changed way of Extension Registry for gns2shp and profiling. |
155 |
|
|
156 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
157 |
|
__init__.py). |
158 |
|
|
159 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
160 |
|
of the actual gns2shp module. |
161 |
|
|
162 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
163 |
|
__init__.py). |
164 |
|
|
165 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
166 |
|
of the actual profiling module. |
167 |
|
|
168 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
169 |
|
|
170 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
171 |
|
|
172 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
173 |
|
|
174 |
|
Further elements for sizable point objects now |
175 |
|
making this feature usable though not yet complete. |
176 |
|
|
177 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
178 |
|
attribute 'size' for cldata when the shape layer is of point type. |
179 |
|
This also now make the test_load.py tests happy. |
180 |
|
|
181 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
182 |
|
gradient. |
183 |
|
|
184 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
185 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
186 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
187 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
188 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
189 |
|
for the size in case the corresponding layer is of point type. |
190 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
191 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
192 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
193 |
|
and refresh preview. |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
2004-10-04 Martin Schulze <[email protected]> |
198 |
|
|
199 |
|
* Extensions/wms/test/test_parser.py |
200 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
201 |
|
self-test for compareLists() |
202 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
203 |
|
self-test for compareDicts() |
204 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
205 |
|
to verify the test routine fails with non-equal arguments |
206 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
207 |
|
to verify the test routine fails with non-equal arguments |
208 |
|
|
209 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
210 |
|
|
211 |
|
First elements for sizeable point objects. |
212 |
|
|
213 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
214 |
|
|
215 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
216 |
|
|
217 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
218 |
|
of a corresponding argument is given. |
219 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
220 |
|
|
221 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
222 |
|
(ClassGroupProperties.__init__): Set default size. |
223 |
|
(ClassGroupProperties.SetProperties): Set the size. |
224 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
225 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
226 |
|
(ClassGroupProperties__eq__): Compare also size. |
227 |
|
(ClassGroupProperties__repr__): Print also size. |
228 |
|
|
229 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
230 |
|
the size attribute. |
231 |
|
|
232 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
233 |
|
Also, now there is a return value that indicates whether the drawing |
234 |
|
size exceeded the given rect extent and if so the new extent. |
235 |
|
Finally, point objects are drawn depending on the size. If either |
236 |
|
the width or height is exceeded, the new extent is returned. |
237 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
238 |
|
evaluate the return value and, if not None, adapt the grid widget size |
239 |
|
accordingly and redraw again. |
240 |
|
|
241 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
242 |
|
If the draw function is for points, call it with the size as additional |
243 |
|
parameter. |
244 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
245 |
|
the size. Compute the radius using the size. |
246 |
|
|
247 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
248 |
|
that Thuban supports size, apply this correctly. |
249 |
|
|
250 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
251 |
|
|
252 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
253 |
|
|
254 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
255 |
|
Map chapter. |
256 |
|
|
257 |
|
2004-10-01 Martin Schulze <[email protected]> |
258 |
|
|
259 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
260 |
|
argument for general use through properties-dialog selector |
261 |
|
|
262 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
263 |
|
both provided layer classes/types. |
264 |
|
|
265 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
266 |
|
map can be retrieved through the parent which is passed to the |
267 |
|
constructor anyway and doesn't require an argument of its own, |
268 |
|
required for the unification of arguments for general use through |
269 |
|
properties-dialog selector. |
270 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
271 |
|
whether a dialog is already opened (and raising it to the users |
272 |
|
attention) and creating a new dialog into a function of its own |
273 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
274 |
|
method |
275 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
276 |
|
global registration of properties dialog classes (which are indeed |
277 |
|
layer-specific). |
278 |
|
|
279 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
280 |
|
for general use through properties-dialog selector, the map can be |
281 |
|
retrieved through the parent and doesn't require an argument of |
282 |
|
its own. |
283 |
|
|
284 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
285 |
|
the provided WMS layer |
286 |
|
|
287 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
288 |
|
|
289 |
|
New feature: Registry for Extensions. |
290 |
|
|
291 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
292 |
|
Extensions. |
293 |
|
|
294 |
|
* Thuban/UI/about.py (About.__init__): Added description |
295 |
|
of the registered extensions with all of the information. |
296 |
|
|
297 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
298 |
|
|
299 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
300 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
301 |
|
Extensions/wms/wms.py: Added registration of the extension. |
302 |
|
|
303 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
304 |
|
|
305 |
|
More fixes to svgexport to make used ids unique and |
306 |
|
conforming to XML's Name production. |
307 |
|
|
308 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
309 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
310 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
311 |
|
Added Bernhard R. as author. |
312 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
313 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
314 |
|
Also transform second id part with "%d" and catch the TypeError |
315 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
316 |
|
Corrected typo inBernhard's author line. |
317 |
|
(SetBaseID): Return the transformed base id. Transform characters |
318 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
319 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
320 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
321 |
|
for used_baseids checks. |
322 |
|
|
323 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
324 |
|
|
325 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
326 |
|
Remove a debug print and some tab characters. |
327 |
|
|
328 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
329 |
|
|
330 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
331 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
332 |
|
the interaction of the three functions and the XML id contrains. |
333 |
|
|
334 |
|
|
335 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
336 |
|
|
337 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
338 |
|
Module. |
339 |
|
|
340 |
|
* Doc/README: Added info on ThubanModel.xmi. |
341 |
|
|
342 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
343 |
|
|
344 |
|
* Doc/README: New. Some info about how to generate technical |
345 |
|
documentation from the source code. |
346 |
|
This text was send to the Thuban developer mailing list on |
347 |
|
September 21st 2004 by Bernhard Reiter. |
348 |
|
|
349 |
|
2004-09-21 Bernhard Reiter <[email protected]> |
350 |
|
|
351 |
|
Improved the svgexport to only use unique ids. Will issues |
352 |
|
an error message dialoge when two layer names are the same. |
353 |
|
ShapeIDs are now added with a dash within the svg ids. |
354 |
|
|
355 |
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
356 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
357 |
|
(TestSVGRenderer): New test class with test_make_in() and |
358 |
|
test_check_for_layer_name_clash() |
359 |
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
360 |
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
361 |
|
satisfying test_check_for_layer_name_clash() |
362 |
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
363 |
|
test_make_in(). |
364 |
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
365 |
|
and wxICON_HAND. |
366 |
|
(write_to_svg): Put dc and rendering in a try statement and on |
367 |
|
catching SVGmapWriterError notify the user and delete the target file. |
368 |
|
|
369 |
|
2004-09-20 Bernhard Reiter <[email protected]> |
370 |
|
|
371 |
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
372 |
|
|
373 |
|
2004-09-03 Jan Sch�ngel <[email protected]> |
374 |
|
|
375 |
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
376 |
|
small bug with the line color. Now the line color will now only set |
377 |
|
if it is set in Thuban an not Transparent. |
378 |
|
|
379 |
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
380 |
|
deleting the layers from mapfile. Now all layers will delete backwards |
381 |
|
from the last. |
382 |
|
|
383 |
|
2004-08-20 Silke Reimer <[email protected]> |
384 |
|
|
385 |
|
* Thuban/Model/layer.py: |
386 |
|
Fixes bug in projection handling: Otherwise very large region might not |
387 |
|
have valid values in the layer's projection. |
388 |
|
|
389 |
|
2004-08-20 Silke Reimer <[email protected]> |
390 |
|
|
391 |
|
* Thuban/UI/about.py: |
392 |
|
small changes to be consistent with coding style. |
393 |
|
|
394 |
|
2004-08-13 Martin Schulze <[email protected]> |
395 |
|
|
396 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
397 |
|
Adjusted a comment |
398 |
|
|
399 |
|
2004-08-11 Silke Reimer <[email protected]> |
400 |
|
|
401 |
|
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
402 |
|
too many and too enhanced imports of locale |
403 |
|
|
404 |
|
2004-08-10 Silke Reimer <[email protected]> |
405 |
|
|
406 |
|
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
407 |
|
function unicodeToLocale() to convert special characters to users |
408 |
|
locale encoding |
409 |
|
|
410 |
|
2004-08-10 Jan-Oliver Wagner <[email protected]> |
411 |
|
|
412 |
|
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |
413 |
|
lower case letter' |
414 |
|
|
415 |
|
2004-08-09 Jan Sch�ngel <[email protected]> |
416 |
|
|
417 |
|
* ChangeLog: Rewrite the last ChangeLog entry to follow |
418 |
|
the standard way. |
419 |
|
|
420 |
|
* Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to |
421 |
|
the function where it is needed, because it don't works if it stands |
422 |
|
at the beginning. |
423 |
|
(MF_Layer.__init__): Removed the extra numclassed variable. Now |
424 |
|
numclasses from the mapscript will be used. |
425 |
|
(MF_Layer.get_index): New. Return the index of the layer in mapfile. |
426 |
|
(MF_Layer.set_classes): New. A Classlist will be set to the layer. |
427 |
|
(MF_Layer.set_metadata): New. A Metadata mapscript object will set. |
428 |
|
(MF_Layer.remove_allclasses): New. All class of the layer will remove. |
429 |
|
(MF_Map.create_new_layer): New. A new Layer is created and associated |
430 |
|
with the mapscript object. |
431 |
|
(MF_Map.set_layerorder): New. The Layer order like in thuban is set in |
432 |
|
the mapscript. |
433 |
|
(MF_Map.add_thubanlayer): Now a new layerobj is created if no one is |
434 |
|
linked to the layer in thuban, else the layerobject linked to the |
435 |
|
thubanlayer will be used. |
436 |
|
AnnotationLayer will now store the filename of the shapefile. |
437 |
|
(MF_Map.remove_layer): If a layer is removed the associated object |
438 |
|
must be set new. |
439 |
|
|
440 |
|
* Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all |
441 |
|
layers which are exists in thuban to the mapobj. All removed Layers |
442 |
|
will be removed from the mapobj. |
443 |
|
Added comments to all functions. |
444 |
|
(thuban_to_map): No layer will be removed here. |
445 |
|
|
446 |
|
* Extensions/umn_mapserver/mf_handle.py |
447 |
|
(_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now |
448 |
|
Layersettings for the mapserver kann be edited. |
449 |
|
|
450 |
|
* Extensions/umn_mapserver/mf_import.py: Now all layers which are |
451 |
|
imported, will be linked with the associated MF_Layer. |
452 |
|
(import_mapfile): All layers, which are not selected, will be removed. |
453 |
|
Disable the "import layer from mapfile" menu option. |
454 |
|
|
455 |
|
* Extensions/umn_mapserver/sample/iceland.map: Set the status of the |
456 |
|
Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the |
457 |
|
layer on permanently. |
458 |
|
|
459 |
|
2004-08-03 Jan Sch�ngel <[email protected]> |
460 |
|
|
461 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata): |
462 |
|
New. This function removes all metadata |
463 |
|
(MF_Layer.set_group): New. Set the group setting. |
464 |
|
(MF_Layer.get_group): New. Get the group setting. |
465 |
|
(MF_Map): Removed the extra numlayers variable, used the mapscript |
466 |
|
parameter instead. |
467 |
|
(MF_Map.get_numlayers): New. This get numlayers. |
468 |
|
(MF_Map.remove_all_layers): New. Removes all layers from the mapobj. |
469 |
|
(MF_Map.add_thubanlayer): Replaced the exception handling by a check |
470 |
|
if the object is an instance. Also added the annotation layer here to |
471 |
|
export, but only the layer is created in the mapfile. |
472 |
|
|
473 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed |
474 |
|
the check if a mapobj exist, because its not needed anymore. The |
475 |
|
export function is only available if a mapobj exist. |
476 |
|
Use the new function to remove all layers. |
477 |
|
|
478 |
|
* Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group |
479 |
|
option and the metadata button. The layer dialog is temporary disabled. |
480 |
|
(Metadata_CustomDataTable): Added some functions to show the grid |
481 |
|
correct. |
482 |
|
|
483 |
|
* Extensions/umn_mapserver/mf_import.py: Moved the code for showing |
484 |
|
the number of layer from import_mapfile to this function. |
485 |
|
(AnnotationLayer): New. This Class shows the Annotation layer in |
486 |
|
thuban. The layer don't do anything. It's only to show the layer |
487 |
|
and to save the layer order. |
488 |
|
(add_annotationlayer): New. Import an annotation layer to thuban. |
489 |
|
(select_layer2import): New. Import only layers to thuban and not |
490 |
|
the other settings like projection or scalebar. |
491 |
|
(create_new_mapfile): Moved the _has_umn_mapobj function and the |
492 |
|
create_new_mapfile functions from mf_handle.py to mf_import.py. |
493 |
|
|
494 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the group |
495 |
|
parameter to the roads and cultural layers. Also added a new |
496 |
|
Annotation Layer for the cultural points. |
497 |
|
|
498 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added the select |
499 |
|
option for the annotation layer. |
500 |
|
|
501 |
|
* Extensions/umn_mapserver/sample/index.html: Added the start |
502 |
|
parameter for the annotation layer. |
503 |
|
|
504 |
|
2004-08-01 Jan-Oliver Wagner <[email protected]> |
505 |
|
|
506 |
|
* Doc/manual/thuban-manual-de.xml (Chapter Session Management): |
507 |
|
translation completed. |
508 |
|
|
509 |
|
* Doc/manual/thuban-manual.xml (Chapter Session Management): |
510 |
|
Fixed unprecise description for Save Session. |
511 |
|
|
512 |
|
2004-07-31 Jan-Oliver Wagner <[email protected]> |
513 |
|
|
514 |
|
Started translation of Users Manual into german. |
515 |
|
|
516 |
|
* Doc/manual/thuban-manual-de.xml: New. German Users Manual. |
517 |
|
|
518 |
|
* Doc/manual/Makefile: Added build instructions for german |
519 |
|
users manual. |
520 |
|
|
521 |
|
* Doc/manual/thuban-manual.xml: Minor corrections in Introduction. |
522 |
|
|
523 |
|
2004-07-28 Jan Sch�ngel <[email protected]> |
524 |
|
|
525 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class |
526 |
|
functions. Now all metadata will handle by the function and its not |
527 |
|
needed to initialize it from outside. Therefor the associated mapobj |
528 |
|
will be stored in the Metadata Object. So we can use the special |
529 |
|
functions from the associated mapobj to get the Metadata. |
530 |
|
Therefor all initialization code for the metadata is removed from the |
531 |
|
other classes. |
532 |
|
(MF_Layer): Added a function to get the metadata object. |
533 |
|
(MF_Map): Added a function to set the mappath, the path where |
534 |
|
the mapfile ist stored. |
535 |
|
|
536 |
|
* Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code |
537 |
|
to set the extent in the mapfile. Now the code is set by the displayed |
538 |
|
data in the Thuban-view. |
539 |
|
(export_mapfile): The shapepath is now set empty, until relative |
540 |
|
pathnames are supported. |
541 |
|
|
542 |
|
* Extension/umn_mapserver/mf_handle.py: Added a dialog to handle |
543 |
|
metadata. Yet only mapfile metadata are supported. Layer and class |
544 |
|
supported are not implemented. |
545 |
|
Added a dialog to handle layer informations. The dialog only shows the |
546 |
|
selected layer at the moment. |
547 |
|
|
548 |
|
* Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the |
549 |
|
code for setting the extent in thuban. Now the extent is set to the |
550 |
|
given extent from the mapfile. |
551 |
|
Fixed a logical mistake. Now the extent is set when realy a layer is |
552 |
|
loaded, and not if one is selected to load. |
553 |
|
|
554 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and |
555 |
|
move the shown map in the browser. |
556 |
|
|
557 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added a new metadata |
558 |
|
line to the mapobj and added metadata to the political layer. |
559 |
|
|
560 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Changed the test |
561 |
|
for Metadata. |
562 |
|
|
563 |
|
2004-07-26 Martin Schulze <[email protected]> |
564 |
|
|
565 |
|
* Thuban/Lib/classmapper.py (ClassMapper.has): Added the new |
566 |
|
ClassMapper |
567 |
|
|
568 |
|
* test/test_classmapper.py (TestMapping.test_mapper): Added a Test |
569 |
|
case for the new ClassMapper |
570 |
|
|
571 |
|
|
572 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
573 |
|
|
574 |
|
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the |
575 |
|
visible extent of the map in projected coordinates |
576 |
|
|
577 |
|
* test/test_viewport.py (SimpleViewPortTest.test_default_size) |
578 |
|
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent() |
579 |
|
tests. |
580 |
|
(SimpleViewPortTest.test_visible_extent): New. The real test for |
581 |
|
VisibleExtent() |
582 |
|
|
583 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
584 |
|
|
585 |
|
* test/test_viewport.py: Use support.run_tests as the main |
586 |
|
function when running asa script. |
587 |
|
|
588 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
589 |
|
|
590 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
591 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
592 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
593 |
|
to "thuban_to_map" function. |
594 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
595 |
|
beginning of an generated mapfile. |
596 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
597 |
|
and not together in one variable. This is needed for the new |
598 |
|
write_creatorcomment function. |
599 |
|
|
600 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
601 |
|
import module "re". Also added Range and the ClassGroupRange import |
602 |
|
from Thuban. Both are needed for the new range expression import. |
603 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
604 |
|
style from a given mapfile expression. |
605 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
606 |
|
now stored in an extra variable and the clazz_name is set empty if no |
607 |
|
class name set in the mapfile. |
608 |
|
Changed the Error message for Range Expressions, becaus the new |
609 |
|
function create a error string which will be shown in the dialog. |
610 |
|
|
611 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
612 |
|
range expression import. |
613 |
|
|
614 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
615 |
|
|
616 |
|
* Extensions/umn_mapserver/README: Added hint that |
617 |
|
installation as root can be avoided. Removed all tabs. |
618 |
|
|
619 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
620 |
|
|
621 |
|
* test/test_viewport.py |
622 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
623 |
|
the projection of an empty map shown in a viewport doesn't lead to |
624 |
|
exceptions in the viewport's handler for the |
625 |
|
MAP_PROJECTION_CHANGED messages |
626 |
|
|
627 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
628 |
|
try to keep the same region visible when the map actually contains |
629 |
|
something |
630 |
|
|
631 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
632 |
|
|
633 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
634 |
|
mappath directly from the mapobj. Is needed because of the changes |
635 |
|
in mf_import.py. |
636 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
637 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
638 |
|
mapobj is empty there is no extent get from thuban an so no one can |
639 |
|
set to th mapobj. |
640 |
|
|
641 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
642 |
|
the discription. |
643 |
|
Split the funktion in to three smaller ones. The new functions are |
644 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
645 |
|
Removed the mapfilepath and filepath initialisation, because its know |
646 |
|
include in the new functions. |
647 |
|
Now nothing will be imported if cancel is pressed in the |
648 |
|
layer choice dialog. |
649 |
|
|
650 |
|
2004-07-14 Jan Sch�ngel <[email protected]> |
651 |
|
|
652 |
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
653 |
|
import. |
654 |
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
655 |
|
(MF_Class.__init__): Added a comment to the exception clause. |
656 |
|
Removed the extent init, because it was not needed anymore. |
657 |
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
658 |
|
the expression value from thuban if no label is defined. |
659 |
|
Added the code to export Range expressions from thuban to the mapfile. |
660 |
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
661 |
|
code. If the size of a map is not defined the size will be set to 1,1. |
662 |
|
This is necessary because if the extent is set, mapscript checks if |
663 |
|
the size is greater than zero. |
664 |
|
(MF_Web): Added the get and set function for the template. |
665 |
|
|
666 |
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
667 |
|
if a mapobject exists and used it to set the status of the menu items. |
668 |
|
If no mapfile exists the settings could not be edditied. |
669 |
|
Define after which menuitem the exportitem will include. |
670 |
|
|
671 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
672 |
|
Thuban.UI.mainwindow clause, because it is not needed. |
673 |
|
Added the command Refresh() to all "OnChangeColor()" functions, |
674 |
|
because the color preview window was not updated on a color change. |
675 |
|
Added the function to check if a mapobject exists and used it to set the |
676 |
|
status of the menu items. If no mapobject exists the settings could not |
677 |
|
be edditied. |
678 |
|
(Map_Dialog): Moved the imagetype selector from the |
679 |
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
680 |
|
(Web_Dialog): Removed the name label and added the template textbox. |
681 |
|
|
682 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
683 |
|
the exception handling on loading the layers by an if statement. It |
684 |
|
is not necessary to us the exception there. |
685 |
|
The Filepath creation now use os.path.join to build the path. |
686 |
|
|
687 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
688 |
|
definition from global to the setUp function. Now the testMap will |
689 |
|
initialize new on each test. |
690 |
|
|
691 |
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
692 |
|
classes in the Line Layer, to test logical Expressions. |
693 |
|
Set the status of the class "Point9" in the Point Layer to off |
694 |
|
|
695 |
|
2004-07-13 Bernhard Herzog <[email protected]> |
696 |
|
|
697 |
|
* Thuban/UI/baserenderer.py |
698 |
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
699 |
|
optimization that tries not to draw layers under a raster layer. |
700 |
|
The bug was harmless. All it effectively did was to produce The a |
701 |
|
strange messages about not being able to draw Layer instances for |
702 |
|
all vector layers below a raster layer which would be invisible |
703 |
|
anyway because the raster layer currently always covers the entire |
704 |
|
window |
705 |
|
|
706 |
|
2004-07-08 Jan Sch�ngel <[email protected]> |
707 |
|
|
708 |
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
709 |
|
a list of supported outputformats. This formats are not alle supported |
710 |
|
because there is no possibility to get the outputformat without the |
711 |
|
name known. Make some formal changes to the code. |
712 |
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
713 |
|
|
714 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
715 |
|
statement, because its not needed anymore. The Outputformat is now |
716 |
|
given as string from the object. Make some formal changes to the code. |
717 |
|
|
718 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
719 |
|
most of the new setting which were added during the last changes. |
720 |
|
Removed the MF_Size Test. |
721 |
|
|
722 |
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
723 |
|
cultural Layer to test expressions and the the status of that layer |
724 |
|
from on to default. |
725 |
|
Changed the data path the the correct Thuban Data |
726 |
|
Added the Outputformat Object and Symbol Object |
727 |
|
|
728 |
|
2004-07-07 Jan Sch�ngel <[email protected]> |
729 |
|
|
730 |
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
731 |
|
settings to edit (outputformat, label, imagetype) |
732 |
|
|
733 |
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
734 |
|
the Label Dialog and add the OutputDialog. |
735 |
|
Make some changes to the code order. |
736 |
|
|
737 |
|
2004-07-06 Jan Sch�ngel <[email protected]> |
738 |
|
|
739 |
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
740 |
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
741 |
|
scalebar_position_type. |
742 |
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
743 |
|
are only used to create a Symbol like the circle in Thuban. |
744 |
|
Added the scalebarObject (MF_Scalebar) |
745 |
|
(MF_Class): Added set_status and get_status. |
746 |
|
(MF_Layer.add_thubanclass): Added code to set the class status |
747 |
|
(MF_Map): Added code to handle the symbols and scalebar |
748 |
|
(MF_Label): Added the set_partials and get_partials functions |
749 |
|
|
750 |
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
751 |
|
from mapfile. Added a function to create a circle object like the one |
752 |
|
from thuban if no one exists. |
753 |
|
|
754 |
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
755 |
|
press ok in the assosiated dialog and not at the end of the |
756 |
|
colordialog. |
757 |
|
Added the Dialog for the Scalebar. |
758 |
|
(Label_Dialog): Added the offset option |
759 |
|
|
760 |
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
761 |
|
status of the Classes. |
762 |
|
Fixed a bug with the projection. Now the to_meter parameter will be |
763 |
|
added to the Projection only if it doesn't exists. |
764 |
|
|
765 |
|
2004-07-01 Jan Sch�ngel <[email protected]> |
766 |
|
|
767 |
|
Added the functionality to handle the content thuban is not |
768 |
|
able to handle directly. |
769 |
|
|
770 |
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
771 |
|
Thuban with the possibility to edit the mapfile content. |
772 |
|
|
773 |
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
774 |
|
to import mapfiles without any layer selected. So it is possible |
775 |
|
to edit the other settings in a mapfile. |
776 |
|
(import_mapfile): Added code to use the editing functions. |
777 |
|
Added the possibility to import the projection to a layer if one |
778 |
|
is defined. |
779 |
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
780 |
|
fixed a bug with with classnames. If no classname is set in mapfile |
781 |
|
the value in Thuban will set to the expression. |
782 |
|
|
783 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
784 |
|
possibility to save a new mapfile or use the old one which is |
785 |
|
imported or new created. |
786 |
|
Added code to use the editing functions. |
787 |
|
Remove some not needed import statements |
788 |
|
|
789 |
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
790 |
|
need for the editing functions. |
791 |
|
Added needed set-functions for the editing functions. |
792 |
|
Added the possibility to export rasterimages. |
793 |
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
794 |
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
795 |
|
moment. |
796 |
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
797 |
|
symbol to show a circle in mapserver and not only a 1px dot. |
798 |
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
799 |
|
correct before. |
800 |
|
(MF_Size): Removed, because it is not needed. |
801 |
|
|
802 |
|
* Extensions/umn_mapserver/README: Added the hints to use the |
803 |
|
export and editing functions, too. |
804 |
|
|
805 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
806 |
|
new parameter "UNITS METERS". |
807 |
|
Change the political layer to status OFF. |
808 |
|
|
809 |
|
* Extensions/umn_mapserver/sample/README: Added some |
810 |
|
more details to setup the sample in the MapServer. |
811 |
|
|
812 |
|
2004-06-26 Bernhard Reiter <[email protected]> |
813 |
|
|
814 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
815 |
|
Removed class VFile and used standard StringIO instead. |
816 |
|
|
817 |
|
2004-06-23 Jan Sch�ngel <[email protected]> |
818 |
|
|
819 |
|
Add the export function to the umn_mapserver extension. |
820 |
|
|
821 |
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
822 |
|
Thuban with the possibility to export the Thuban content. |
823 |
|
|
824 |
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
825 |
|
with the export module. Especially added the possibility to |
826 |
|
add thuban objects directly to the map objects. |
827 |
|
|
828 |
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
829 |
|
because of the hint from Bernhard Herzog. |
830 |
|
Corrected the handling of absolute pathnames. |
831 |
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
832 |
|
|
833 |
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
834 |
|
|
835 |
|
2004-06-16 Jan Sch�ngel <[email protected]> |
836 |
|
|
837 |
|
Add a sample and make some changes. |
838 |
|
|
839 |
|
* Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx |
840 |
|
import from * to explicit used statements. Changed the |
841 |
|
Thuban.UI.mainwindow import phrase, too. |
842 |
|
(import_mapfile):Corrected a clerical mistake. |
843 |
|
Added wxCHANGE_DIR in OpenFile Dialog. |
844 |
|
Added a MultipleChoiceDialog, to select the layers to load from |
845 |
|
mapfile into thuban. Thereby the projection is only set if one layer |
846 |
|
is selected. |
847 |
|
Added the possibility to handle relative pathnames which uses |
848 |
|
up-level references. |
849 |
|
Removed some doubled code. |
850 |
|
Corrected an error with integer values used as label in thuban |
851 |
|
ClassGroup. |
852 |
|
|
853 |
|
* Extensions/umn_mapserver/sample: New. |
854 |
|
|
855 |
|
* Extensions/umn_mapserver/sample/README: New. Describes the |
856 |
|
usage of the sample files. |
857 |
|
|
858 |
|
* Extensions/umn_mapserver/sample/iceland.map: New. This is |
859 |
|
a suitable .map-file for the iceland data. |
860 |
|
|
861 |
|
* Extensions/umn_mapserver/sample/index.html: New. The template |
862 |
|
for the mapfile. |
863 |
|
|
864 |
|
* Extensions/umn_mapserver/sample/iceland.html: New. Initialisation |
865 |
|
file for the Iceland Application on web. |
866 |
|
|
867 |
|
* Extensions/umn_mapserver/README: Corrected a inaccuracy and added |
868 |
|
some details. |
869 |
|
|
870 |
|
* Extensions/umn_mapserver/test/test_mapserver |
871 |
|
(mapserver_import_Test_generalClasses.test_MF_Color): |
872 |
|
Corrected the thubancolor test. |
873 |
|
|
874 |
|
2004-06-15 Jan Sch�ngel <[email protected]> |
875 |
|
|
876 |
|
* Extensions/umn_mapserver/README: New. Install instruction. |
877 |
|
|
878 |
|
2004-06-14 Bernhard Reiter <[email protected]> |
879 |
|
|
880 |
|
* libraries/thuban/cpl_mfile.h: Added copyright header. |
881 |
|
|
882 |
|
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting |
883 |
|
Free Software License so that it is most useful with gdalwarp |
884 |
|
and bmpdataset. |
885 |
|
|
886 |
|
2004-06-14 Bernhard Herzog <[email protected]> |
887 |
|
|
888 |
|
* Thuban/UI/multiplechoicedialog.py (__version__): Add missing |
889 |
|
import of wxPython.wx itself (as opposed to the contents of |
890 |
|
wxPython.wx). For some reason wxPython.wx is available as |
891 |
|
wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482 |
892 |
|
wrt. wxPython 2.4. |
893 |
|
|
894 |
|
2004-06-10 Jan Sch�ngel <[email protected]> |
895 |
|
|
896 |
|
Initial version of new extension "umn_mapserver". This extension aims |
897 |
|
to manage configuration for the UMN MapServer application. This |
898 |
|
inital version just imports the .map-files and displays all, Thuban is |
899 |
|
capable of. |
900 |
|
|
901 |
|
* Extensions/umn_mapserver, Extensions/umn_mapserver/test: New. |
902 |
|
|
903 |
|
* Extensions/umn_mapserver/test/README: New. Describes how to run the |
904 |
|
tests. |
905 |
|
|
906 |
|
* Extensions/umn_mapserver/test/test.map: New. This is a test |
907 |
|
.map-file for automated tests of the umn_mapserver extension of |
908 |
|
Thuban. |
909 |
|
|
910 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for |
911 |
|
UMN Mapserver classes. |
912 |
|
|
913 |
|
* Extensions/umn_mapserver/__init__.py: New. Init to make this |
914 |
|
directory a package. |
915 |
|
|
916 |
|
* Extensions/umn_mapserver/mapfile.py: New. Classes to represent |
917 |
|
'.map'-file objects. |
918 |
|
|
919 |
|
* Extensions/umn_mapserver/mf_import.py: New. This module extends |
920 |
|
Thuban with the possibility to handle UMN MapServer mapfiles. |
921 |
|
|
922 |
|
2004-06-03 Bernhard Herzog <[email protected]> |
923 |
|
|
924 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
925 |
|
to a tuple before using it as arguments to the % operator. This |
926 |
|
fixes the formatting issue filed in RT#2239 on 2004-01-13 and |
927 |
|
reported today on thuban-list by Jan Sch�ngel |
928 |
|
|
929 |
|
* test/test_layer.py (TestLayerModification.setUp): Save the |
930 |
|
filename as an instance variable so we can refer to it in tests |
931 |
|
(TestLayerModification.test_tree_info): Uncomment this method |
932 |
|
again and make it work. This tests for the formatting issue |
933 |
|
filed in RT#2239 on 2004-01-13 |
934 |
|
|
935 |
|
2004-05-28 Bernhard Herzog <[email protected]> |
936 |
|
|
937 |
|
* Thuban/UI/baserenderer.py: Fix some typos. |
938 |
|
|
939 |
|
2004-05-18 Jan-Oliver Wagner <[email protected]> |
940 |
|
|
941 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug |
942 |
|
by increasing a field size. |
943 |
|
|
944 |
|
2004-05-17 Bernhard Herzog <[email protected]> |
945 |
|
|
946 |
|
Update to newest shapelib and get rid of Thuban specific |
947 |
|
extensions, i.e. use the new DBFUpdateHeader instead of our |
948 |
|
DBFCommit kludge |
949 |
|
|
950 |
|
* libraries/shapelib/shpopen.c: Update to version from current |
951 |
|
shapelib CVS. |
952 |
|
|
953 |
|
* libraries/shapelib/shapefil.h: Update to version from current |
954 |
|
shapelib CVS. |
955 |
|
|
956 |
|
* libraries/shapelib/dbfopen.c: Update to version from current |
957 |
|
shapelib CVS. |
958 |
|
(DBFCommit): Effectively removed since shapelib itself has |
959 |
|
DBFUpdateHeader now which is better for what DBFCommit wanted to |
960 |
|
achieve. |
961 |
|
We're now using an unmodified version of dbfopen. |
962 |
|
|
963 |
|
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with |
964 |
|
value '1' to the Lib.dbflibc extension. This simply reflects the |
965 |
|
shapelib and pyshapelib updates |
966 |
|
|
967 |
|
2004-05-16 Jan-Oliver Wagner <[email protected]> |
968 |
|
|
969 |
|
Finished introduction of Menu.FindOrInsertMenu. |
970 |
|
|
971 |
|
* Extensions/drawshape/drawshape.py: Add the command |
972 |
|
to the experimental menu additionally to the toolbar. |
973 |
|
|
974 |
|
* Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of |
975 |
|
finding menu on its own. |
976 |
|
|
977 |
|
* Doc/manual/thuban-manual.xml: updated sample file |
978 |
|
to use FindOrInsertMenu(). |
979 |
|
|
980 |
|
* Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu() |
981 |
|
instead of finding menu on its own. |
982 |
|
|
983 |
|
2004-05-11 Jan-Oliver Wagner <[email protected]> |
984 |
|
|
985 |
|
* test/test_menu.py (MenuTest.test): Added testing |
986 |
|
of method Menu.FindOrInsertMenu. |
987 |
|
|
988 |
|
2004-05-10 Jan-Oliver Wagner <[email protected]> |
989 |
|
|
990 |
|
Introduce and use Menu.FindOrInsertMenu. |
991 |
|
|
992 |
|
* Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a |
993 |
|
given menu or, if not found, insert it. |
994 |
|
|
995 |
|
* Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py, |
996 |
|
/Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py, |
997 |
|
/Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding |
998 |
|
menu on its own. |
999 |
|
|
1000 |
|
2004-05-06 Jan-Oliver Wagner <[email protected]> |
1001 |
|
|
1002 |
|
Introduce a abstract ColorDialog class and remove |
1003 |
|
and outdated file. |
1004 |
|
|
1005 |
|
* Thuban/UI/proj4dialog.py: Removed. It is has been |
1006 |
|
replaced by projdialog for quite a while and is not used |
1007 |
|
anymore. |
1008 |
|
|
1009 |
|
* Thuban/UI/colordialog.py: New. Abstraction for color selection |
1010 |
|
dialog(s). |
1011 |
|
|
1012 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor): |
1013 |
|
Now calls the abstract ColorDialog instead of wxColourDialog. |
1014 |
|
This also removed the dependency to Color class conversion |
1015 |
|
from this function. |
1016 |
|
|
1017 |
|
2004-05-04 Frank Koormann <[email protected]> |
1018 |
|
|
1019 |
|
* Extensions/bboxdump/__init__.py: Fixed string left over from |
1020 |
|
copying. |
1021 |
|
|
1022 |
|
* Extensions/bboxdump/bboxdump.py (bboxdump): |
1023 |
|
Use layer.ShapeStore().AllShapes() to loop over shapes instead of |
1024 |
|
xrange(layer.NumShapes()). Compile the bboxmessage from a list |
1025 |
|
of formatted outputs (string.join) instead of appending to the |
1026 |
|
message. Two progress bar dialogs to report progress on the sometimes |
1027 |
|
lenghty processing. |
1028 |
|
|
1029 |
|
2004-04-22 Frank Koormann <[email protected]> |
1030 |
|
|
1031 |
|
New Extension to dump bounding boxes of all shapes of the selected |
1032 |
|
layer. An optional column can be specified to group the objects, |
1033 |
|
in this case the bounding box is a union of the separate boxes. |
1034 |
|
Dump can be displayed in a ScrolledMessageDialog or written to file. |
1035 |
|
The Extension is simply a combination of available and well tested |
1036 |
|
Thuban functionality. |
1037 |
|
|
1038 |
|
* Extensions/bboxdump/__init__.py: New: Init to make this |
1039 |
|
directory a package. |
1040 |
|
|
1041 |
|
* Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of |
1042 |
|
all shapes of the selected layer. |
1043 |
|
|
1044 |
|
2004-04-22 Jan-Oliver Wagner <[email protected]> |
1045 |
|
|
1046 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two |
1047 |
|
strings to be i18n now. |
1048 |
|
|
1049 |
|
2004-04-18 Jan-Oliver Wagner <[email protected]> |
1050 |
|
|
1051 |
|
Changing popup menu of legend from direct building |
1052 |
|
to using the Menu construction as used for the mainwindow. |
1053 |
|
|
1054 |
|
* Thuban/UI/mainwindow.py: New method commands: layer_to_top, |
1055 |
|
layer_to_bottom, layer_visibility |
1056 |
|
(MainWindow.LayerToTop): New. Put current layer to the top. |
1057 |
|
(MainWindow.LayerToBottom): New. Put current layer to bottom. |
1058 |
|
(MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map): |
1059 |
|
Replace 1,0 by True, False. |
1060 |
|
(MainWindow.ToggleLayerVisibility): New. Toggle visibility of |
1061 |
|
current layer. |
1062 |
|
(MainWindow.LayerShowTable): Removed raising of dialog. |
1063 |
|
(_has_selected_layer_visible): New. Support function. |
1064 |
|
|
1065 |
|
* Thuban/UI/legend.py: ID_POP_xxx: removed. |
1066 |
|
(LegendPanel.__init__): Removed EVT_MENU bindings. |
1067 |
|
(LegendTree._OnRightClick): Replace direct creation of |
1068 |
|
menu via wx Classes by applying the menu definition |
1069 |
|
as of Menu class of menu.py. |
1070 |
|
|
1071 |
|
2004-04-16 Jan-Oliver Wagner <[email protected]> |
1072 |
|
|
1073 |
|
* Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved |
1074 |
|
button string to stronger clearify that Thuban will be closed when hitting |
1075 |
|
the button. |
1076 |
|
|
1077 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring. |
1078 |
|
Now for layers without a ShapeStore a corresponding message is given |
1079 |
|
to the user, that this layer has no table to show. |
1080 |
|
|
1081 |
|
2004-04-15 Martin Schulze <[email protected]> |
1082 |
|
|
1083 |
|
* Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to |
1084 |
|
recalculate the format for the internal render engine as well. |
1085 |
|
|
1086 |
|
* Extensions/wms/properties.py (wmsProperties): First start for a |
1087 |
|
properties dialog. It's functional for a first selection of |
1088 |
|
layers, but still has some weired wxWidgets/GTK problems but |
1089 |
|
beautification can be done later. |
1090 |
|
|
1091 |
|
* Extensions/wms/layer.py: Added more documentation |
1092 |
|
(WMSLayer.getFormats): New: Return list of supported image formats |
1093 |
|
by the WMS server |
1094 |
|
(WMSLayer.getLayers): New: Return the list of layer names |
1095 |
|
supported by the WMS server |
1096 |
|
(WMSLayer.getLayerTitle): New: Return the title of the named layer |
1097 |
|
(WMSLayer.getWMSFormat): New: Return the image format that is used |
1098 |
|
for WMS GetMap requests |
1099 |
|
(WMSLayer.setWMSFormat): New: Set the image format that is used |
1100 |
|
for WMS GetMap requests |
1101 |
|
(WMSLayer.__init__): Move away from using only one layer to using |
1102 |
|
a list of layers (unsorted at the moment, though). |
1103 |
|
(WMSLayer.getVisibleLayers): New: Return the list of names for all |
1104 |
|
visible layers |
1105 |
|
(WMSLayer.setVisibleLayers): New: Set the list of names for all |
1106 |
|
visible layers |
1107 |
|
|
1108 |
|
* Extensions/wms/wms.py: Moved the WMS layer into layer.py in |
1109 |
|
order to establish a clean structure. |
1110 |
|
|
1111 |
|
* Extensions/wms/layer.py: Moved the WMS layer into a file on its |
1112 |
|
own in order to establish a clean structure. |
1113 |
|
|
1114 |
|
2004-04-13 Martin Schulze <[email protected]> |
1115 |
|
|
1116 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added |
1117 |
|
support for oldstyle (WMS 1.0 apparently) image format |
1118 |
|
specification. |
1119 |
|
|
1120 |
|
* Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of |
1121 |
|
supported graphic formats back to JPEG and BMP, PNG and others are |
1122 |
|
too *cough* experimental... Sorry, I meant to filter this out |
1123 |
|
before I committed this part. This should make the WMS extension |
1124 |
|
run from CVS again. |
1125 |
|
(wms_dialog): Reset an empty URL to None so that the subsequent |
1126 |
|
program can depend on this, since the dialog will indeed return an |
1127 |
|
empty URL, causing another declaration of love by Python. |
1128 |
|
|
1129 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox): |
1130 |
|
Whenever a native BoundingBox request cannot be fulfilled, check |
1131 |
|
whether the requested SRS is EPSG:3426, in which case return the |
1132 |
|
LatLonBoundingBox values. |
1133 |
|
|
1134 |
|
* Extensions/wms/test/test_parser.py |
1135 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Added a test for |
1136 |
|
ignoring AUTO:* SRS. |
1137 |
|
(TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes): |
1138 |
|
Added another test method to test whether the LatLonBoundingBox |
1139 |
|
values will be returned if BoundingBox values are requested with |
1140 |
|
SRS set to EPSG:3426. |
1141 |
|
|
1142 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers): |
1143 |
|
Added rudimentary support for non-EPSG SRS, i.e. ignore them for |
1144 |
|
the moment by placing them into a variable which is currently |
1145 |
|
unused. Also test whether the EPSG SRS is numerical as it should |
1146 |
|
be and add an error message if it is not. |
1147 |
|
|
1148 |
|
* Extensions/wms/test/sample.xml: Added AUTO:* SRS since they |
1149 |
|
appear in the real world as well. Since we cannot handle them yet |
1150 |
|
(OGCLib can't either), we will ignore them for the moment. |
1151 |
|
|
1152 |
|
* Extensions/wms/parser.py: Use a variable for denoting the sample |
1153 |
|
filename |
1154 |
|
(WMSCapabilitiesParser.peekLayers): Added support for error |
1155 |
|
messages during grok(). They will be aggregated in an array and |
1156 |
|
may be displayed later. We may have to add a classification |
1157 |
|
"Warning" and "Error" to this. That requires more experience, |
1158 |
|
though, since not every error may be lethal. |
1159 |
|
|
1160 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the |
1161 |
|
ShowTable() dialog/frame when the user attempts to display it |
1162 |
|
while it has been opened before already and not closed again. |
1163 |
|
|
1164 |
|
2004-04-11 Martin Schulze <[email protected]> |
1165 |
|
|
1166 |
|
* Extensions/wms/infodialog.py: Adjusted the class documentation |
1167 |
|
|
1168 |
|
* Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg): |
1169 |
|
Switch to using Thuban{Begin,End}BusyCursor instead of the pure |
1170 |
|
wxWidgets variants. |
1171 |
|
(WMSLayer.__init__): The epsg_id variable is named top_srs now. |
1172 |
|
|
1173 |
|
* Extensions/wms/infodialog.py: Added an information dialog that |
1174 |
|
will display various information about the WMS current resource, |
1175 |
|
so that additional information such as the title, the abstract, |
1176 |
|
fees and access constraints can be displayed for the user if they |
1177 |
|
are documented in the WMS XML. |
1178 |
|
|
1179 |
|
2004-04-10 Martin Schulze <[email protected]> |
1180 |
|
|
1181 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted |
1182 |
|
string handling. It's "foo".lower() and not lower(foo) without |
1183 |
|
lower imported from strings or something. |
1184 |
|
|
1185 |
|
* Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities |
1186 |
|
from capabilities.py and parser.py. Implement priority list for |
1187 |
|
supported graphics formats, take care of wbmp != bmp. PNG, TIFF |
1188 |
|
and GIF are supported here, but not yet by main Thuban. Hence, |
1189 |
|
support for them may be removed later. Special contribution to |
1190 |
|
usability: get wxWidgets to change the cursor when we're waiting |
1191 |
|
for data from the network so the user won't start to worry. This |
1192 |
|
causes a redrawing error/warning, though. |
1193 |
|
|
1194 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink |
1195 |
|
the DOM object. |
1196 |
|
|
1197 |
|
2004-04-01 Martin Schulze <[email protected]> |
1198 |
|
|
1199 |
|
* Extensions/wms/capabilities.py: Adjusted documentation |
1200 |
|
(WMSCapabilities.__init__): Improved documentation, fixed syntax |
1201 |
|
(WMSCapabilities.saveCapabilities): Only catch IOError when |
1202 |
|
handling files |
1203 |
|
(WMSCapabilities.loadCapabilities): Only catch IOError when |
1204 |
|
handling files |
1205 |
|
__main__: corrected variable naming |
1206 |
|
(WMSCapabilities.fetchCapabilities,loadCapabilities): Make this |
1207 |
|
class a specialisation of WMSCapabilitiesParser as well. Also |
1208 |
|
execute grok() after loading or fetching capabilities, if that |
1209 |
|
went well, so that subsequent calls can already access the data. |
1210 |
|
(WMSCapabilities.getVersion): Export the used version of the |
1211 |
|
GetCapabilities request, so we can use it for subsequent calls, |
1212 |
|
i.e. for GetMap requests. |
1213 |
|
(WMSCapabilities.fetchCapabilities): Added proper error handling |
1214 |
|
when the GetCapabilities request failed, so that the surrounding |
1215 |
|
program can act accordingly. |
1216 |
|
|
1217 |
|
2004-03-30 Martin Schulze <[email protected]> |
1218 |
|
|
1219 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS): |
1220 |
|
Adjusted the getLayerSRS method to return the list of SRSes |
1221 |
|
extracted from <SRS> elements instead of <BoundingBox> elements. |
1222 |
|
Added a bit of documentation as well. |
1223 |
|
(WMSCapabilitiesParser.checkLayerSRS): Removed integrity test |
1224 |
|
since it was only implemented due to a misunderstanding. |
1225 |
|
|
1226 |
|
* Extensions/wms/test/test_parser.py |
1227 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to |
1228 |
|
reflect the corrected interpretation of the standard: i.e. a layer |
1229 |
|
does not have to define a BoundingBox for all SRSes it supports. |
1230 |
|
Hence the <SRS></SRS> specification is authoritative, not the list |
1231 |
|
of BoundingBoxes. |
1232 |
|
(TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test |
1233 |
|
to ensure None is returned for a non-existing SRS. |
1234 |
|
(TestWMSCapabilitiesParser.test_grok): Removed test_grok method |
1235 |
|
since it is not applicable anymore. Listing more SRSes in <SRS> |
1236 |
|
elements is valid according to the specs. |
1237 |
|
|
1238 |
|
2004-03-26 Bernhard Reiter <[email protected]> |
1239 |
|
|
1240 |
|
* README: Nicer formatting of text. Improved descriptions. |
1241 |
|
Reflected wxWidgets name change. |
1242 |
|
|
1243 |
|
* Thuban/UI/about.py: Extended copyright to 2004 and added |
1244 |
|
information about the thuban-devel mailinglist. |
1245 |
|
|
1246 |
|
2004-03-24 Martin Schulze <[email protected]> |
1247 |
|
|
1248 |
|
* Extensions/wms/capabilities.py: Renamed the class to contain |
1249 |
|
'WMS', also added a linebreak where required |
1250 |
|
|
1251 |
|
* Extensions/wms/parser.py: Finally added the XML parser for the |
1252 |
|
GetCapabilities response. |
1253 |
|
|
1254 |
|
* Extensions/wms/test/sample.xml: Adjusted the sample file so that |
1255 |
|
<SRS> elements match the <BoundingBox> elements, except for the |
1256 |
|
layer 'beschriftung'. |
1257 |
|
|
1258 |
|
* Extensions/wms/test/test_parser.py: Encode non-ascii strings |
1259 |
|
since Python uses unicode strings internally, otherwise |
1260 |
|
comparisons will fail. Removed tests for getLayerBBoxSRS() since |
1261 |
|
the SRS will be calculated anyway and this method is obsoleted by |
1262 |
|
getLayerSRS(). Denote SRS as strings and not as cardinal numbers. |
1263 |
|
Move loading the sample file into the setUp method. Added a test |
1264 |
|
for finding the integrity problem in the sample response. |
1265 |
|
Improved formatting. |
1266 |
|
|
1267 |
|
* Extensions/wms/domutils.py: Added convenience routines for |
1268 |
|
handling of Document Object Model (DOM) nodes. |
1269 |
|
|
1270 |
|
* Extensions/wms/test/test_domutils.py: Added a test for the |
1271 |
|
domutils module |
1272 |
|
|
1273 |
|
2004-03-19 Martin Schulze <[email protected]> |
1274 |
|
|
1275 |
|
* Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser): |
1276 |
|
Moved path detection and adding into a module of its own, |
1277 |
|
adjustpath, which exports thubandir as main Thuban directory. |
1278 |
|
|
1279 |
|
* Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path |
1280 |
|
detection and adding into a module of its own, adjustpath, which |
1281 |
|
exports thubandir as main Thuban directory. Reorganised the |
1282 |
|
module in order to support the SkipTest feature for Thuban test |
1283 |
|
cases. |
1284 |
|
|
1285 |
|
* Extensions/wms/test/adjustpath.py: Moved path detection and |
1286 |
|
adding into a module of its own. |
1287 |
|
|
1288 |
|
2004-03-18 Martin Schulze <[email protected]> |
1289 |
|
|
1290 |
|
* Extensions/wms/test/test_parser.py: Added another test for |
1291 |
|
checking whether the WMS XML parser (to be implemented) returns |
1292 |
|
the information we expect. This requires a sample WMS WML file |
1293 |
|
(sample.xml) which has been extracted from the frida server and |
1294 |
|
"improved" manually. |
1295 |
|
|
1296 |
|
* Extensions/wms/test/test_ogclib.py: Added legacy code to add the |
1297 |
|
main Thuban directory to the path in order to be able to import |
1298 |
|
random modules. Adjusted the PyOGCLib detection to reuse the |
1299 |
|
information gathered. Also added a note about the PYTHONPATH |
1300 |
|
environment variable. |
1301 |
|
|
1302 |
|
* Extensions/wms/test/test_ogclib.py: The format specification is |
1303 |
|
a mime-type, not a graphic format, hence image/jpeg wou ld be the |
1304 |
|
proper format and not JPEG. We'll also have to take care of the |
1305 |
|
encoding of / as %2F. |
1306 |
|
|
1307 |
|
2004-03-16 Martin Schulze <[email protected]> |
1308 |
|
|
1309 |
|
* Extensions/wms/test/test_ogclib.py: Added a (hopefully) |
1310 |
|
comprehensive test for the getMapURL method, built compare URLs |
1311 |
|
according to the documentation in OGC 01-068r3 |
1312 |
|
|
1313 |
|
* Extensions/wms/capabilities.py (WMSCapabilities): Added the |
1314 |
|
class WMSCapabilities to manage capabilites, will incorporate |
1315 |
|
parsing the capabilities response and provide details for other |
1316 |
|
classes. |
1317 |
|
|
1318 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
1319 |
|
|
1320 |
|
Support views in addition to normal tables in the postgis |
1321 |
|
shapestore |
1322 |
|
|
1323 |
|
* Thuban/Model/postgisdb.py |
1324 |
|
(PostGISShapeStore._fetch_table_information): Add a fallback for |
1325 |
|
the case where the table name is not in the geometry_columns |
1326 |
|
table. This is usually the case for views. Also, set |
1327 |
|
self.shapestore here. |
1328 |
|
(PostGISShapeStore.ShapeType): No need to query the database all |
1329 |
|
the time. The shape type is now determined in |
1330 |
|
_fetch_table_information |
1331 |
|
|
1332 |
|
* test/postgissupport.py (PostgreSQLServer.new_postgis_db) |
1333 |
|
(PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__): |
1334 |
|
New parameter to specify views. |
1335 |
|
(PostGISDatabase.has_data): Also compare the views. New views |
1336 |
|
parameter |
1337 |
|
(PostGISDatabase.initdb): Create the views. |
1338 |
|
(PostgreSQLServer.get_default_static_data_db): Add the v_landmarks |
1339 |
|
view |
1340 |
|
|
1341 |
|
* test/test_postgis_db.py |
1342 |
|
(TestPostGISShapestorePointFromViews): New. Test a |
1343 |
|
PostGISShapeStore with a view |
1344 |
|
(TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of |
1345 |
|
the geometry_column explicitly to test whether that works |
1346 |
|
|
1347 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
1348 |
|
|
1349 |
|
Final step for explicit id/geometry columns: Loading and saving |
1350 |
|
|
1351 |
|
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd |
1352 |
|
with the following changes: |
1353 |
|
(dbshapesource): Two new attributes id_column and geometry_column |
1354 |
|
|
1355 |
|
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd |
1356 |
|
(SessionSaver.write_session): Use the new namespace |
1357 |
|
(SessionSaver.write_data_containers): Write the new dbshapesource |
1358 |
|
parameters |
1359 |
|
|
1360 |
|
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for |
1361 |
|
the new file format version |
1362 |
|
(SessionLoader.start_dbshapesource): Handle the new db parameters |
1363 |
|
|
1364 |
|
* test/test_save.py: Update to the new dtd and namespace |
1365 |
|
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore |
1366 |
|
mock object to provide a working IDColumn method. |
1367 |
|
|
1368 |
|
* test/test_load_1_0.py: New. Copy of the test_load.py before |
1369 |
|
today's changes but with the round-trip tests removed. |
1370 |
|
|
1371 |
|
* test/test_load_0_9.py: Update doc-string. |
1372 |
|
|
1373 |
|
* test/test_load.py: Update all .thuban files to the new dtd and |
1374 |
|
namespace. |
1375 |
|
(TestPostGISLayer.file_contents): Add the new dbshapesource |
1376 |
|
paramters |
1377 |
|
|
1378 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
1379 |
|
|
1380 |
|
Next step for explicit id/geometry columns: User interaction |
1381 |
|
|
1382 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how |
1383 |
|
the dialog is constructed. Add combo boxes to select id and |
1384 |
|
geometry column. Rename some instance variables. |
1385 |
|
(ChooseDBTableDialog.GetTable): Return id and geometry column |
1386 |
|
names |
1387 |
|
(ChooseDBTableDialog.OnTableSelect): New. Event handler for |
1388 |
|
selections in the table list |
1389 |
|
|
1390 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column |
1391 |
|
and geometry_column |
1392 |
|
|
1393 |
|
* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new |
1394 |
|
parameters for id_column and geometry column of PostGISShapeStore |
1395 |
|
here as well. |
1396 |
|
|
1397 |
|
* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type. |
1398 |
|
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types |
1399 |
|
(PostGISConnection.GeometryTables): Use a better query to |
1400 |
|
determine which relations in the database might be usable for |
1401 |
|
shapestores. Now supports views as well but is more PostgreSQL |
1402 |
|
specific |
1403 |
|
(PostGISConnection.table_columns): New. Somewhat experimental |
1404 |
|
method to let the db dialogs provide lists of columns to users so |
1405 |
|
that they can select id and geometry columns. |
1406 |
|
(PostGISTable.__init__): The default value of the id_column |
1407 |
|
parameter is now None it still means "gid" effectively, though. |
1408 |
|
(PostGISTable.IDColumn): New introspection method to return a |
1409 |
|
column object for the id column |
1410 |
|
(PostGISShapeStore.GeometryColumn): New introspection method to |
1411 |
|
return a column object for the geometry column |
1412 |
|
|
1413 |
|
* test/test_postgis_db.py |
1414 |
|
(TestPostGISConnection.test_gis_tables_non_empty): |
1415 |
|
Removed. Subsumed by the new: |
1416 |
|
(TestPostGISConnection.test_gis_tables_with_views_and_tables): |
1417 |
|
New. Tes the GeometryTables and table_columns methods with actual |
1418 |
|
tables and views. |
1419 |
|
(PointTests.test_id_column, PointTests.test_geometry_column): |
1420 |
|
New. tests for the new methods. |
1421 |
|
(TestPostGISShapestorePoint.setUp) |
1422 |
|
(TestPostGISShapestorePointSRID.setUp) |
1423 |
|
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the |
1424 |
|
instance variables needed by the new tests |
1425 |
|
|
1426 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
1427 |
|
|
1428 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
1429 |
|
numbers given to ReadValue are ordinals. |
1430 |
|
|
1431 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
1432 |
|
|
1433 |
|
Elimiate the requirement for PostGIS tables to have a column |
1434 |
|
called "gid". |
1435 |
|
|
1436 |
|
* Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter |
1437 |
|
id_column to specify which column to use to identify rows. Also |
1438 |
|
new instance variables id_column and quoted_id_column |
1439 |
|
(PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId) |
1440 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue) |
1441 |
|
(PostGISTable.SimpleQuery): Use the id column name provided to the |
1442 |
|
constructor instead of "gid" |
1443 |
|
(PostGISShapeStore.__init__): New parameter id_column analogously |
1444 |
|
to PostGISTable.__init__. This parameter is simply passed through |
1445 |
|
to the base class constructor |
1446 |
|
(PostGISShapeStore._create_col_from_description): Fix typo in |
1447 |
|
doc-string |
1448 |
|
(PostGISShapeStore.Shape, PostGISShapeStore.AllShapes) |
1449 |
|
(PostGISShapeStore.ShapesInRegion): Use the id column name |
1450 |
|
provided to the constructor instead of "gid" |
1451 |
|
|
1452 |
|
* test/postgissupport.py |
1453 |
|
(PostgreSQLServer.get_default_static_data_db): New static table |
1454 |
|
landmarks_point_id with an id column != "gid. Update the comments |
1455 |
|
a bit. |
1456 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in |
1457 |
|
doc- |
1458 |
|
(upload_shapefile): New parameter gid_column to use a name other |
1459 |
|
than "gid" for the column to store the shape ids |
1460 |
|
|
1461 |
|
* test/test_postgis_db.py (TableTests): New. Mixin-class |
1462 |
|
containing all tests previously in TestPostGISTable. The actual |
1463 |
|
tests are the same but the code is a bit more configurable to |
1464 |
|
allow for different id columns etc. |
1465 |
|
(TestPostGISTable): Derive from TableTests now for the actual |
1466 |
|
tests. |
1467 |
|
(TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable |
1468 |
|
except that it the landmarks_point_id table to test the id_column |
1469 |
|
parameter |
1470 |
|
(PointTests): Extend the doc-string |
1471 |
|
(TestPostGISShapestorePointExplicitGIDColumn) |
1472 |
|
(TestPostGISShapestorePointOIDAsGIDColumn): New classes derived |
1473 |
|
from PointTests to test the explicit id_column parameter. One |
1474 |
|
tests with the name of the column holding the shape ids, the other |
1475 |
|
uses PostgreSQL's OID column. For the latter a number of methods |
1476 |
|
have to be overwritten to make them independent of the actual id |
1477 |
|
values. |
1478 |
|
|
1479 |
|
2004-03-08 Silke Reimer <[email protected]> |
1480 |
|
|
1481 |
|
Update debian directory: |
1482 |
|
|
1483 |
|
* debian/changelog: Added new version. |
1484 |
|
* deiban/rules: Updated management of patches (with cbds) |
1485 |
|
* debian/control: Added cbds to dependencies |
1486 |
|
* debian/patches/*: New. Adds better support for patches of thuban in |
1487 |
|
debian |
1488 |
|
* debian/menu: Syntax of menu changed slightly |
1489 |
|
* debian/setup.py.patch: removed because it has been moved to |
1490 |
|
debian/patechs/setup.py.patch |
1491 |
|
|
1492 |
|
|
1493 |
|
2004-02-26 Bernhard Herzog <[email protected]> |
1494 |
|
|
1495 |
|
Create the Doc/technotes directory for text files with information |
1496 |
|
for developers |
1497 |
|
|
1498 |
|
* Doc/technotes/README: New. README for the technotes |
1499 |
|
|
1500 |
|
* Doc/technotes/coding_guidelines.txt: New. Coding guidelines for |
1501 |
|
Thuban |
1502 |
|
|
1503 |
|
* Doc/technotes/release_process.txt: New. Used to be |
1504 |
|
HOWTO-Release. Now slightly adapted to technote formatting style. |
1505 |
|
|
1506 |
|
* HOWTO-Release: Removed. It's contents are now in |
1507 |
|
Doc/technotes/release_process.txt |
1508 |
|
|
1509 |
|
2004-02-25 Bernhard Herzog <[email protected]> |
1510 |
|
|
1511 |
|
* libraries/thuban/wxproj.cpp (get_wx_version): New. Return the |
1512 |
|
version of wxWindows the module was compiled with so we can check |
1513 |
|
that against the wxPython version. |
1514 |
|
|
1515 |
|
* Thuban/version.py (thuban_branch, thuban_release): New variables |
1516 |
|
controlling which and how Thuban versions are shown. See the |
1517 |
|
comments for details. |
1518 |
|
(verify_versions): Also check that the wx version that wxproj is |
1519 |
|
compiled against matches that of the wxPython we use at runtime |
1520 |
|
|
1521 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1522 |
|
|
1523 |
|
* Extensions/wms/wms.py (epsg_code_to_projection): Use |
1524 |
|
get_system_proj_file to read the epsg projections. The old way |
1525 |
|
depended on the current directory being the top Thuban directory. |
1526 |
|
|
1527 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1528 |
|
|
1529 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
1530 |
|
(TestVirtualDC.test_clippath): Remove a debug print |
1531 |
|
|
1532 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1533 |
|
|
1534 |
|
* Extensions/svgexport/__init__.py: New. Turn |
1535 |
|
Extensions/svgexport into a package. |
1536 |
|
|
1537 |
|
* Extensions/svgexport/svgmapwriter.py: Reorder the imports and |
1538 |
|
doc-string a bit. The doc-string must come first, otherwise it's |
1539 |
|
not a doc-string. The __future__ import must be the first thing |
1540 |
|
after the doc-string. Use only double quotes in doc-strings. |
1541 |
|
Single quotes trip up emacs syntax highlighting if the text |
1542 |
|
contains apostrophes. |
1543 |
|
|
1544 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1545 |
|
|
1546 |
|
* Extensions/svgexport/test/__init__.py, |
1547 |
|
Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test |
1548 |
|
suite for svgexport |
1549 |
|
|
1550 |
|
* test/runtests.py (find_test_modules): New. Function with the |
1551 |
|
module finding code from main. |
1552 |
|
(main): Use find_test_modules to figure out the default test |
1553 |
|
modules and take modules from Extensions.svgexport.test too. |
1554 |
|
|
1555 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
1556 |
|
|
1557 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Make sure |
1558 |
|
the mainwindow has a reference to the map of the initial session. |
1559 |
|
This fixes a bug introduced with the fix for RT#2245 |
1560 |
|
|
1561 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
1562 |
|
|
1563 |
|
* Extensions/svgexport/svgsaver.py, |
1564 |
|
Extensions/svgexport/svgmapwriter.py, |
1565 |
|
Extensions/svgexport/maplegend.py: Added again. This time in the |
1566 |
|
correct place. |
1567 |
|
|
1568 |
|
2004-02-17 Bernhard Herzog <[email protected]> |
1569 |
|
|
1570 |
|
Fix for RT#2245 |
1571 |
|
|
1572 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Initialize |
1573 |
|
instance variables before trying to create any windows. Creating |
1574 |
|
windows can start an event loop if e.g. message boxes are popped |
1575 |
|
up for some reason, and event handlers, especially EVT_UPDATE_UI |
1576 |
|
may want to access things from the application. |
1577 |
|
(ThubanApplication.maps_changed): The mainwindow may not have been |
1578 |
|
created yet, so check whether it has been created before calling |
1579 |
|
its methods |
1580 |
|
|
1581 |
|
* Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we |
1582 |
|
have a map |
1583 |
|
|
1584 |
|
2004-02-17 Bernhard Herzog <[email protected]> |
1585 |
|
|
1586 |
|
* test/test_svgmapwriter.py, Extensions/svgsaver.py, |
1587 |
|
Extensions/svgmapwriter.py, Extensions/maplegend.py, |
1588 |
|
extensions/svgexport/svgsaver.py, |
1589 |
|
extensions/svgexport/svgmapwriter.py, |
1590 |
|
extensions/svgexport/maplegend.py: Removed. These files were in |
1591 |
|
the wrong places or didn't work at all. |
1592 |
|
|
1593 |
|
2004-02-16 Bernhard Herzog <[email protected]> |
1594 |
|
|
1595 |
|
* Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added |
1596 |
|
line |
1597 |
|
|
1598 |
2004-02-16 Bernhard Herzog <[email protected]> |
2004-02-16 Bernhard Herzog <[email protected]> |
1599 |
|
|
1600 |
* Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError. |
* Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError. |
5726 |
Fix problem of hidden properties dialog under windows after double |
Fix problem of hidden properties dialog under windows after double |
5727 |
click on layer tree: |
click on layer tree: |
5728 |
The tree control always gets an Expanded / Collapsed event after |
The tree control always gets an Expanded / Collapsed event after |
5729 |
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
the ItemActivated on double click, which raises the main window again. |
5730 |
|
We add a second ItemActivated event to the queue, which simply |
5731 |
raises the already displayed window. |
raises the already displayed window. |
5732 |
|
|
5733 |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |