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