1 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Changed way of Extension Registry for gns2shp and profiling. |
4 |
|
|
5 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
6 |
|
__init__.py). |
7 |
|
|
8 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
9 |
|
of the actual gns2shp module. |
10 |
|
|
11 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
12 |
|
__init__.py). |
13 |
|
|
14 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
15 |
|
of the actual profiling module. |
16 |
|
|
17 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
18 |
|
|
19 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
20 |
|
|
21 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
22 |
|
|
23 |
|
Further elements for sizable point objects now |
24 |
|
making this feature usable though not yet complete. |
25 |
|
|
26 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
27 |
|
attribute 'size' for cldata when the shape layer is of point type. |
28 |
|
This also now make the test_load.py tests happy. |
29 |
|
|
30 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
31 |
|
gradient. |
32 |
|
|
33 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
34 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
35 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
36 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
37 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
38 |
|
for the size in case the corresponding layer is of point type. |
39 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
40 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
41 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
42 |
|
and refresh preview. |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
2004-10-04 Martin Schulze <[email protected]> |
47 |
|
|
48 |
|
* Extensions/wms/test/test_parser.py |
49 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
50 |
|
self-test for compareLists() |
51 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
52 |
|
self-test for compareDicts() |
53 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
54 |
|
to verify the test routine fails with non-equal arguments |
55 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
56 |
|
to verify the test routine fails with non-equal arguments |
57 |
|
|
58 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
59 |
|
|
60 |
|
First elements for sizeable point objects. |
61 |
|
|
62 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
63 |
|
|
64 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
65 |
|
|
66 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
67 |
|
of a corresponding argument is given. |
68 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
69 |
|
|
70 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
71 |
|
(ClassGroupProperties.__init__): Set default size. |
72 |
|
(ClassGroupProperties.SetProperties): Set the size. |
73 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
74 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
75 |
|
(ClassGroupProperties__eq__): Compare also size. |
76 |
|
(ClassGroupProperties__repr__): Print also size. |
77 |
|
|
78 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
79 |
|
the size attribute. |
80 |
|
|
81 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
82 |
|
Also, now there is a return value that indicates whether the drawing |
83 |
|
size exceeded the given rect extent and if so the new extent. |
84 |
|
Finally, point objects are drawn depending on the size. If either |
85 |
|
the width or height is exceeded, the new extent is returned. |
86 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
87 |
|
evaluate the return value and, if not None, adapt the grid widget size |
88 |
|
accordingly and redraw again. |
89 |
|
|
90 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
91 |
|
If the draw function is for points, call it with the size as additional |
92 |
|
parameter. |
93 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
94 |
|
the size. Compute the radius using the size. |
95 |
|
|
96 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
97 |
|
that Thuban supports size, apply this correctly. |
98 |
|
|
99 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
100 |
|
|
101 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
102 |
|
|
103 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
104 |
|
Map chapter. |
105 |
|
|
106 |
|
2004-10-01 Martin Schulze <[email protected]> |
107 |
|
|
108 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
109 |
|
argument for general use through properties-dialog selector |
110 |
|
|
111 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
112 |
|
both provided layer classes/types. |
113 |
|
|
114 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
115 |
|
map can be retrieved through the parent which is passed to the |
116 |
|
constructor anyway and doesn't require an argument of its own, |
117 |
|
required for the unification of arguments for general use through |
118 |
|
properties-dialog selector. |
119 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
120 |
|
whether a dialog is already opened (and raising it to the users |
121 |
|
attention) and creating a new dialog into a function of its own |
122 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
123 |
|
method |
124 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
125 |
|
global registration of properties dialog classes (which are indeed |
126 |
|
layer-specific). |
127 |
|
|
128 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
129 |
|
for general use through properties-dialog selector, the map can be |
130 |
|
retrieved through the parent and doesn't require an argument of |
131 |
|
its own. |
132 |
|
|
133 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
134 |
|
the provided WMS layer |
135 |
|
|
136 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
137 |
|
|
138 |
|
New feature: Registry for Extensions. |
139 |
|
|
140 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
141 |
|
Extensions. |
142 |
|
|
143 |
|
* Thuban/UI/about.py (About.__init__): Added description |
144 |
|
of the registered extensions with all of the information. |
145 |
|
|
146 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
147 |
|
|
148 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
149 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
150 |
|
Extensions/wms/wms.py: Added registration of the extension. |
151 |
|
|
152 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
153 |
|
|
154 |
|
More fixes to svgexport to make used ids unique and |
155 |
|
conforming to XML's Name production. |
156 |
|
|
157 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
158 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
159 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
160 |
|
Added Bernhard R. as author. |
161 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
162 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
163 |
|
Also transform second id part with "%d" and catch the TypeError |
164 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
165 |
|
Corrected typo inBernhard's author line. |
166 |
|
(SetBaseID): Return the transformed base id. Transform characters |
167 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
168 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
169 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
170 |
|
for used_baseids checks. |
171 |
|
|
172 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
175 |
|
Remove a debug print and some tab characters. |
176 |
|
|
177 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
178 |
|
|
179 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
180 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
181 |
|
the interaction of the three functions and the XML id contrains. |
182 |
|
|
183 |
|
|
184 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
185 |
|
|
186 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
187 |
|
Module. |
188 |
|
|
189 |
|
* Doc/README: Added info on ThubanModel.xmi. |
190 |
|
|
191 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
192 |
|
|
193 |
|
* Doc/README: New. Some info about how to generate technical |
194 |
|
documentation from the source code. |
195 |
|
This text was send to the Thuban developer mailing list on |
196 |
|
September 21st 2004 by Bernhard Reiter. |
197 |
|
|
198 |
|
2004-09-21 Bernhard Reiter <[email protected]> |
199 |
|
|
200 |
|
Improved the svgexport to only use unique ids. Will issues |
201 |
|
an error message dialoge when two layer names are the same. |
202 |
|
ShapeIDs are now added with a dash within the svg ids. |
203 |
|
|
204 |
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
205 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
206 |
|
(TestSVGRenderer): New test class with test_make_in() and |
207 |
|
test_check_for_layer_name_clash() |
208 |
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
209 |
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
210 |
|
satisfying test_check_for_layer_name_clash() |
211 |
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
212 |
|
test_make_in(). |
213 |
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
214 |
|
and wxICON_HAND. |
215 |
|
(write_to_svg): Put dc and rendering in a try statement and on |
216 |
|
catching SVGmapWriterError notify the user and delete the target file. |
217 |
|
|
218 |
|
2004-09-20 Bernhard Reiter <[email protected]> |
219 |
|
|
220 |
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
221 |
|
|
222 |
|
2004-09-03 Jan Sch�ngel <[email protected]> |
223 |
|
|
224 |
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
225 |
|
small bug with the line color. Now the line color will now only set |
226 |
|
if it is set in Thuban an not Transparent. |
227 |
|
|
228 |
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
229 |
|
deleting the layers from mapfile. Now all layers will delete backwards |
230 |
|
from the last. |
231 |
|
|
232 |
|
2004-08-20 Silke Reimer <[email protected]> |
233 |
|
|
234 |
|
* Thuban/Model/layer.py: |
235 |
|
Fixes bug in projection handling: Otherwise very large region might not |
236 |
|
have valid values in the layer's projection. |
237 |
|
|
238 |
|
2004-08-20 Silke Reimer <[email protected]> |
239 |
|
|
240 |
|
* Thuban/UI/about.py: |
241 |
|
small changes to be consistent with coding style. |
242 |
|
|
243 |
|
2004-08-13 Martin Schulze <[email protected]> |
244 |
|
|
245 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
246 |
|
Adjusted a comment |
247 |
|
|
248 |
|
2004-08-11 Silke Reimer <[email protected]> |
249 |
|
|
250 |
|
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
251 |
|
too many and too enhanced imports of locale |
252 |
|
|
253 |
|
2004-08-10 Silke Reimer <[email protected]> |
254 |
|
|
255 |
|
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
256 |
|
function unicodeToLocale() to convert special characters to users |
257 |
|
locale encoding |
258 |
|
|
259 |
|
2004-08-10 Jan-Oliver Wagner <[email protected]> |
260 |
|
|
261 |
|
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |
262 |
|
lower case letter' |
263 |
|
|
264 |
|
2004-08-09 Jan Sch�ngel <[email protected]> |
265 |
|
|
266 |
|
* ChangeLog: Rewrite the last ChangeLog entry to follow |
267 |
|
the standard way. |
268 |
|
|
269 |
|
* Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to |
270 |
|
the function where it is needed, because it don't works if it stands |
271 |
|
at the beginning. |
272 |
|
(MF_Layer.__init__): Removed the extra numclassed variable. Now |
273 |
|
numclasses from the mapscript will be used. |
274 |
|
(MF_Layer.get_index): New. Return the index of the layer in mapfile. |
275 |
|
(MF_Layer.set_classes): New. A Classlist will be set to the layer. |
276 |
|
(MF_Layer.set_metadata): New. A Metadata mapscript object will set. |
277 |
|
(MF_Layer.remove_allclasses): New. All class of the layer will remove. |
278 |
|
(MF_Map.create_new_layer): New. A new Layer is created and associated |
279 |
|
with the mapscript object. |
280 |
|
(MF_Map.set_layerorder): New. The Layer order like in thuban is set in |
281 |
|
the mapscript. |
282 |
|
(MF_Map.add_thubanlayer): Now a new layerobj is created if no one is |
283 |
|
linked to the layer in thuban, else the layerobject linked to the |
284 |
|
thubanlayer will be used. |
285 |
|
AnnotationLayer will now store the filename of the shapefile. |
286 |
|
(MF_Map.remove_layer): If a layer is removed the associated object |
287 |
|
must be set new. |
288 |
|
|
289 |
|
* Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all |
290 |
|
layers which are exists in thuban to the mapobj. All removed Layers |
291 |
|
will be removed from the mapobj. |
292 |
|
Added comments to all functions. |
293 |
|
(thuban_to_map): No layer will be removed here. |
294 |
|
|
295 |
|
* Extensions/umn_mapserver/mf_handle.py |
296 |
|
(_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now |
297 |
|
Layersettings for the mapserver kann be edited. |
298 |
|
|
299 |
|
* Extensions/umn_mapserver/mf_import.py: Now all layers which are |
300 |
|
imported, will be linked with the associated MF_Layer. |
301 |
|
(import_mapfile): All layers, which are not selected, will be removed. |
302 |
|
Disable the "import layer from mapfile" menu option. |
303 |
|
|
304 |
|
* Extensions/umn_mapserver/sample/iceland.map: Set the status of the |
305 |
|
Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the |
306 |
|
layer on permanently. |
307 |
|
|
308 |
|
2004-08-03 Jan Sch�ngel <[email protected]> |
309 |
|
|
310 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata): |
311 |
|
New. This function removes all metadata |
312 |
|
(MF_Layer.set_group): New. Set the group setting. |
313 |
|
(MF_Layer.get_group): New. Get the group setting. |
314 |
|
(MF_Map): Removed the extra numlayers variable, used the mapscript |
315 |
|
parameter instead. |
316 |
|
(MF_Map.get_numlayers): New. This get numlayers. |
317 |
|
(MF_Map.remove_all_layers): New. Removes all layers from the mapobj. |
318 |
|
(MF_Map.add_thubanlayer): Replaced the exception handling by a check |
319 |
|
if the object is an instance. Also added the annotation layer here to |
320 |
|
export, but only the layer is created in the mapfile. |
321 |
|
|
322 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed |
323 |
|
the check if a mapobj exist, because its not needed anymore. The |
324 |
|
export function is only available if a mapobj exist. |
325 |
|
Use the new function to remove all layers. |
326 |
|
|
327 |
|
* Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group |
328 |
|
option and the metadata button. The layer dialog is temporary disabled. |
329 |
|
(Metadata_CustomDataTable): Added some functions to show the grid |
330 |
|
correct. |
331 |
|
|
332 |
|
* Extensions/umn_mapserver/mf_import.py: Moved the code for showing |
333 |
|
the number of layer from import_mapfile to this function. |
334 |
|
(AnnotationLayer): New. This Class shows the Annotation layer in |
335 |
|
thuban. The layer don't do anything. It's only to show the layer |
336 |
|
and to save the layer order. |
337 |
|
(add_annotationlayer): New. Import an annotation layer to thuban. |
338 |
|
(select_layer2import): New. Import only layers to thuban and not |
339 |
|
the other settings like projection or scalebar. |
340 |
|
(create_new_mapfile): Moved the _has_umn_mapobj function and the |
341 |
|
create_new_mapfile functions from mf_handle.py to mf_import.py. |
342 |
|
|
343 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the group |
344 |
|
parameter to the roads and cultural layers. Also added a new |
345 |
|
Annotation Layer for the cultural points. |
346 |
|
|
347 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added the select |
348 |
|
option for the annotation layer. |
349 |
|
|
350 |
|
* Extensions/umn_mapserver/sample/index.html: Added the start |
351 |
|
parameter for the annotation layer. |
352 |
|
|
353 |
|
2004-08-01 Jan-Oliver Wagner <[email protected]> |
354 |
|
|
355 |
|
* Doc/manual/thuban-manual-de.xml (Chapter Session Management): |
356 |
|
translation completed. |
357 |
|
|
358 |
|
* Doc/manual/thuban-manual.xml (Chapter Session Management): |
359 |
|
Fixed unprecise description for Save Session. |
360 |
|
|
361 |
|
2004-07-31 Jan-Oliver Wagner <[email protected]> |
362 |
|
|
363 |
|
Started translation of Users Manual into german. |
364 |
|
|
365 |
|
* Doc/manual/thuban-manual-de.xml: New. German Users Manual. |
366 |
|
|
367 |
|
* Doc/manual/Makefile: Added build instructions for german |
368 |
|
users manual. |
369 |
|
|
370 |
|
* Doc/manual/thuban-manual.xml: Minor corrections in Introduction. |
371 |
|
|
372 |
|
2004-07-28 Jan Sch�ngel <[email protected]> |
373 |
|
|
374 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class |
375 |
|
functions. Now all metadata will handle by the function and its not |
376 |
|
needed to initialize it from outside. Therefor the associated mapobj |
377 |
|
will be stored in the Metadata Object. So we can use the special |
378 |
|
functions from the associated mapobj to get the Metadata. |
379 |
|
Therefor all initialization code for the metadata is removed from the |
380 |
|
other classes. |
381 |
|
(MF_Layer): Added a function to get the metadata object. |
382 |
|
(MF_Map): Added a function to set the mappath, the path where |
383 |
|
the mapfile ist stored. |
384 |
|
|
385 |
|
* Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code |
386 |
|
to set the extent in the mapfile. Now the code is set by the displayed |
387 |
|
data in the Thuban-view. |
388 |
|
(export_mapfile): The shapepath is now set empty, until relative |
389 |
|
pathnames are supported. |
390 |
|
|
391 |
|
* Extension/umn_mapserver/mf_handle.py: Added a dialog to handle |
392 |
|
metadata. Yet only mapfile metadata are supported. Layer and class |
393 |
|
supported are not implemented. |
394 |
|
Added a dialog to handle layer informations. The dialog only shows the |
395 |
|
selected layer at the moment. |
396 |
|
|
397 |
|
* Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the |
398 |
|
code for setting the extent in thuban. Now the extent is set to the |
399 |
|
given extent from the mapfile. |
400 |
|
Fixed a logical mistake. Now the extent is set when realy a layer is |
401 |
|
loaded, and not if one is selected to load. |
402 |
|
|
403 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and |
404 |
|
move the shown map in the browser. |
405 |
|
|
406 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added a new metadata |
407 |
|
line to the mapobj and added metadata to the political layer. |
408 |
|
|
409 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Changed the test |
410 |
|
for Metadata. |
411 |
|
|
412 |
|
2004-07-26 Martin Schulze <[email protected]> |
413 |
|
|
414 |
|
* Thuban/Lib/classmapper.py (ClassMapper.has): Added the new |
415 |
|
ClassMapper |
416 |
|
|
417 |
|
* test/test_classmapper.py (TestMapping.test_mapper): Added a Test |
418 |
|
case for the new ClassMapper |
419 |
|
|
420 |
|
|
421 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
422 |
|
|
423 |
|
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the |
424 |
|
visible extent of the map in projected coordinates |
425 |
|
|
426 |
|
* test/test_viewport.py (SimpleViewPortTest.test_default_size) |
427 |
|
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent() |
428 |
|
tests. |
429 |
|
(SimpleViewPortTest.test_visible_extent): New. The real test for |
430 |
|
VisibleExtent() |
431 |
|
|
432 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
433 |
|
|
434 |
|
* test/test_viewport.py: Use support.run_tests as the main |
435 |
|
function when running asa script. |
436 |
|
|
437 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
438 |
|
|
439 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
440 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
441 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
442 |
|
to "thuban_to_map" function. |
443 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
444 |
|
beginning of an generated mapfile. |
445 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
446 |
|
and not together in one variable. This is needed for the new |
447 |
|
write_creatorcomment function. |
448 |
|
|
449 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
450 |
|
import module "re". Also added Range and the ClassGroupRange import |
451 |
|
from Thuban. Both are needed for the new range expression import. |
452 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
453 |
|
style from a given mapfile expression. |
454 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
455 |
|
now stored in an extra variable and the clazz_name is set empty if no |
456 |
|
class name set in the mapfile. |
457 |
|
Changed the Error message for Range Expressions, becaus the new |
458 |
|
function create a error string which will be shown in the dialog. |
459 |
|
|
460 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
461 |
|
range expression import. |
462 |
|
|
463 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
464 |
|
|
465 |
|
* Extensions/umn_mapserver/README: Added hint that |
466 |
|
installation as root can be avoided. Removed all tabs. |
467 |
|
|
468 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
469 |
|
|
470 |
|
* test/test_viewport.py |
471 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
472 |
|
the projection of an empty map shown in a viewport doesn't lead to |
473 |
|
exceptions in the viewport's handler for the |
474 |
|
MAP_PROJECTION_CHANGED messages |
475 |
|
|
476 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
477 |
|
try to keep the same region visible when the map actually contains |
478 |
|
something |
479 |
|
|
480 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
481 |
|
|
482 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
483 |
|
mappath directly from the mapobj. Is needed because of the changes |
484 |
|
in mf_import.py. |
485 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
486 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
487 |
|
mapobj is empty there is no extent get from thuban an so no one can |
488 |
|
set to th mapobj. |
489 |
|
|
490 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
491 |
|
the discription. |
492 |
|
Split the funktion in to three smaller ones. The new functions are |
493 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
494 |
|
Removed the mapfilepath and filepath initialisation, because its know |
495 |
|
include in the new functions. |
496 |
|
Now nothing will be imported if cancel is pressed in the |
497 |
|
layer choice dialog. |
498 |
|
|
499 |
|
2004-07-14 Jan Sch�ngel <[email protected]> |
500 |
|
|
501 |
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
502 |
|
import. |
503 |
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
504 |
|
(MF_Class.__init__): Added a comment to the exception clause. |
505 |
|
Removed the extent init, because it was not needed anymore. |
506 |
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
507 |
|
the expression value from thuban if no label is defined. |
508 |
|
Added the code to export Range expressions from thuban to the mapfile. |
509 |
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
510 |
|
code. If the size of a map is not defined the size will be set to 1,1. |
511 |
|
This is necessary because if the extent is set, mapscript checks if |
512 |
|
the size is greater than zero. |
513 |
|
(MF_Web): Added the get and set function for the template. |
514 |
|
|
515 |
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
516 |
|
if a mapobject exists and used it to set the status of the menu items. |
517 |
|
If no mapfile exists the settings could not be edditied. |
518 |
|
Define after which menuitem the exportitem will include. |
519 |
|
|
520 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
521 |
|
Thuban.UI.mainwindow clause, because it is not needed. |
522 |
|
Added the command Refresh() to all "OnChangeColor()" functions, |
523 |
|
because the color preview window was not updated on a color change. |
524 |
|
Added the function to check if a mapobject exists and used it to set the |
525 |
|
status of the menu items. If no mapobject exists the settings could not |
526 |
|
be edditied. |
527 |
|
(Map_Dialog): Moved the imagetype selector from the |
528 |
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
529 |
|
(Web_Dialog): Removed the name label and added the template textbox. |
530 |
|
|
531 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
532 |
|
the exception handling on loading the layers by an if statement. It |
533 |
|
is not necessary to us the exception there. |
534 |
|
The Filepath creation now use os.path.join to build the path. |
535 |
|
|
536 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
537 |
|
definition from global to the setUp function. Now the testMap will |
538 |
|
initialize new on each test. |
539 |
|
|
540 |
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
541 |
|
classes in the Line Layer, to test logical Expressions. |
542 |
|
Set the status of the class "Point9" in the Point Layer to off |
543 |
|
|
544 |
|
2004-07-13 Bernhard Herzog <[email protected]> |
545 |
|
|
546 |
|
* Thuban/UI/baserenderer.py |
547 |
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
548 |
|
optimization that tries not to draw layers under a raster layer. |
549 |
|
The bug was harmless. All it effectively did was to produce The a |
550 |
|
strange messages about not being able to draw Layer instances for |
551 |
|
all vector layers below a raster layer which would be invisible |
552 |
|
anyway because the raster layer currently always covers the entire |
553 |
|
window |
554 |
|
|
555 |
|
2004-07-08 Jan Sch�ngel <[email protected]> |
556 |
|
|
557 |
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
558 |
|
a list of supported outputformats. This formats are not alle supported |
559 |
|
because there is no possibility to get the outputformat without the |
560 |
|
name known. Make some formal changes to the code. |
561 |
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
562 |
|
|
563 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
564 |
|
statement, because its not needed anymore. The Outputformat is now |
565 |
|
given as string from the object. Make some formal changes to the code. |
566 |
|
|
567 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
568 |
|
most of the new setting which were added during the last changes. |
569 |
|
Removed the MF_Size Test. |
570 |
|
|
571 |
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
572 |
|
cultural Layer to test expressions and the the status of that layer |
573 |
|
from on to default. |
574 |
|
Changed the data path the the correct Thuban Data |
575 |
|
Added the Outputformat Object and Symbol Object |
576 |
|
|
577 |
|
2004-07-07 Jan Sch�ngel <[email protected]> |
578 |
|
|
579 |
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
580 |
|
settings to edit (outputformat, label, imagetype) |
581 |
|
|
582 |
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
583 |
|
the Label Dialog and add the OutputDialog. |
584 |
|
Make some changes to the code order. |
585 |
|
|
586 |
|
2004-07-06 Jan Sch�ngel <[email protected]> |
587 |
|
|
588 |
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
589 |
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
590 |
|
scalebar_position_type. |
591 |
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
592 |
|
are only used to create a Symbol like the circle in Thuban. |
593 |
|
Added the scalebarObject (MF_Scalebar) |
594 |
|
(MF_Class): Added set_status and get_status. |
595 |
|
(MF_Layer.add_thubanclass): Added code to set the class status |
596 |
|
(MF_Map): Added code to handle the symbols and scalebar |
597 |
|
(MF_Label): Added the set_partials and get_partials functions |
598 |
|
|
599 |
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
600 |
|
from mapfile. Added a function to create a circle object like the one |
601 |
|
from thuban if no one exists. |
602 |
|
|
603 |
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
604 |
|
press ok in the assosiated dialog and not at the end of the |
605 |
|
colordialog. |
606 |
|
Added the Dialog for the Scalebar. |
607 |
|
(Label_Dialog): Added the offset option |
608 |
|
|
609 |
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
610 |
|
status of the Classes. |
611 |
|
Fixed a bug with the projection. Now the to_meter parameter will be |
612 |
|
added to the Projection only if it doesn't exists. |
613 |
|
|
614 |
|
2004-07-01 Jan Sch�ngel <[email protected]> |
615 |
|
|
616 |
|
Added the functionality to handle the content thuban is not |
617 |
|
able to handle directly. |
618 |
|
|
619 |
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
620 |
|
Thuban with the possibility to edit the mapfile content. |
621 |
|
|
622 |
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
623 |
|
to import mapfiles without any layer selected. So it is possible |
624 |
|
to edit the other settings in a mapfile. |
625 |
|
(import_mapfile): Added code to use the editing functions. |
626 |
|
Added the possibility to import the projection to a layer if one |
627 |
|
is defined. |
628 |
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
629 |
|
fixed a bug with with classnames. If no classname is set in mapfile |
630 |
|
the value in Thuban will set to the expression. |
631 |
|
|
632 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
633 |
|
possibility to save a new mapfile or use the old one which is |
634 |
|
imported or new created. |
635 |
|
Added code to use the editing functions. |
636 |
|
Remove some not needed import statements |
637 |
|
|
638 |
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
639 |
|
need for the editing functions. |
640 |
|
Added needed set-functions for the editing functions. |
641 |
|
Added the possibility to export rasterimages. |
642 |
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
643 |
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
644 |
|
moment. |
645 |
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
646 |
|
symbol to show a circle in mapserver and not only a 1px dot. |
647 |
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
648 |
|
correct before. |
649 |
|
(MF_Size): Removed, because it is not needed. |
650 |
|
|
651 |
|
* Extensions/umn_mapserver/README: Added the hints to use the |
652 |
|
export and editing functions, too. |
653 |
|
|
654 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
655 |
|
new parameter "UNITS METERS". |
656 |
|
Change the political layer to status OFF. |
657 |
|
|
658 |
|
* Extensions/umn_mapserver/sample/README: Added some |
659 |
|
more details to setup the sample in the MapServer. |
660 |
|
|
661 |
|
2004-06-26 Bernhard Reiter <[email protected]> |
662 |
|
|
663 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
664 |
|
Removed class VFile and used standard StringIO instead. |
665 |
|
|
666 |
|
2004-06-23 Jan Sch�ngel <[email protected]> |
667 |
|
|
668 |
|
Add the export function to the umn_mapserver extension. |
669 |
|
|
670 |
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
671 |
|
Thuban with the possibility to export the Thuban content. |
672 |
|
|
673 |
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
674 |
|
with the export module. Especially added the possibility to |
675 |
|
add thuban objects directly to the map objects. |
676 |
|
|
677 |
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
678 |
|
because of the hint from Bernhard Herzog. |
679 |
|
Corrected the handling of absolute pathnames. |
680 |
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
681 |
|
|
682 |
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
683 |
|
|
684 |
|
2004-06-16 Jan Sch�ngel <[email protected]> |
685 |
|
|
686 |
|
Add a sample and make some changes. |
687 |
|
|
688 |
|
* Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx |
689 |
|
import from * to explicit used statements. Changed the |
690 |
|
Thuban.UI.mainwindow import phrase, too. |
691 |
|
(import_mapfile):Corrected a clerical mistake. |
692 |
|
Added wxCHANGE_DIR in OpenFile Dialog. |
693 |
|
Added a MultipleChoiceDialog, to select the layers to load from |
694 |
|
mapfile into thuban. Thereby the projection is only set if one layer |
695 |
|
is selected. |
696 |
|
Added the possibility to handle relative pathnames which uses |
697 |
|
up-level references. |
698 |
|
Removed some doubled code. |
699 |
|
Corrected an error with integer values used as label in thuban |
700 |
|
ClassGroup. |
701 |
|
|
702 |
|
* Extensions/umn_mapserver/sample: New. |
703 |
|
|
704 |
|
* Extensions/umn_mapserver/sample/README: New. Describes the |
705 |
|
usage of the sample files. |
706 |
|
|
707 |
|
* Extensions/umn_mapserver/sample/iceland.map: New. This is |
708 |
|
a suitable .map-file for the iceland data. |
709 |
|
|
710 |
|
* Extensions/umn_mapserver/sample/index.html: New. The template |
711 |
|
for the mapfile. |
712 |
|
|
713 |
|
* Extensions/umn_mapserver/sample/iceland.html: New. Initialisation |
714 |
|
file for the Iceland Application on web. |
715 |
|
|
716 |
|
* Extensions/umn_mapserver/README: Corrected a inaccuracy and added |
717 |
|
some details. |
718 |
|
|
719 |
|
* Extensions/umn_mapserver/test/test_mapserver |
720 |
|
(mapserver_import_Test_generalClasses.test_MF_Color): |
721 |
|
Corrected the thubancolor test. |
722 |
|
|
723 |
|
2004-06-15 Jan Sch�ngel <[email protected]> |
724 |
|
|
725 |
|
* Extensions/umn_mapserver/README: New. Install instruction. |
726 |
|
|
727 |
|
2004-06-14 Bernhard Reiter <[email protected]> |
728 |
|
|
729 |
|
* libraries/thuban/cpl_mfile.h: Added copyright header. |
730 |
|
|
731 |
|
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting |
732 |
|
Free Software License so that it is most useful with gdalwarp |
733 |
|
and bmpdataset. |
734 |
|
|
735 |
|
2004-06-14 Bernhard Herzog <[email protected]> |
736 |
|
|
737 |
|
* Thuban/UI/multiplechoicedialog.py (__version__): Add missing |
738 |
|
import of wxPython.wx itself (as opposed to the contents of |
739 |
|
wxPython.wx). For some reason wxPython.wx is available as |
740 |
|
wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482 |
741 |
|
wrt. wxPython 2.4. |
742 |
|
|
743 |
|
2004-06-10 Jan Sch�ngel <[email protected]> |
744 |
|
|
745 |
|
Initial version of new extension "umn_mapserver". This extension aims |
746 |
|
to manage configuration for the UMN MapServer application. This |
747 |
|
inital version just imports the .map-files and displays all, Thuban is |
748 |
|
capable of. |
749 |
|
|
750 |
|
* Extensions/umn_mapserver, Extensions/umn_mapserver/test: New. |
751 |
|
|
752 |
|
* Extensions/umn_mapserver/test/README: New. Describes how to run the |
753 |
|
tests. |
754 |
|
|
755 |
|
* Extensions/umn_mapserver/test/test.map: New. This is a test |
756 |
|
.map-file for automated tests of the umn_mapserver extension of |
757 |
|
Thuban. |
758 |
|
|
759 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for |
760 |
|
UMN Mapserver classes. |
761 |
|
|
762 |
|
* Extensions/umn_mapserver/__init__.py: New. Init to make this |
763 |
|
directory a package. |
764 |
|
|
765 |
|
* Extensions/umn_mapserver/mapfile.py: New. Classes to represent |
766 |
|
'.map'-file objects. |
767 |
|
|
768 |
|
* Extensions/umn_mapserver/mf_import.py: New. This module extends |
769 |
|
Thuban with the possibility to handle UMN MapServer mapfiles. |
770 |
|
|
771 |
|
2004-06-03 Bernhard Herzog <[email protected]> |
772 |
|
|
773 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
774 |
|
to a tuple before using it as arguments to the % operator. This |
775 |
|
fixes the formatting issue filed in RT#2239 on 2004-01-13 and |
776 |
|
reported today on thuban-list by Jan Sch�ngel |
777 |
|
|
778 |
|
* test/test_layer.py (TestLayerModification.setUp): Save the |
779 |
|
filename as an instance variable so we can refer to it in tests |
780 |
|
(TestLayerModification.test_tree_info): Uncomment this method |
781 |
|
again and make it work. This tests for the formatting issue |
782 |
|
filed in RT#2239 on 2004-01-13 |
783 |
|
|
784 |
|
2004-05-28 Bernhard Herzog <[email protected]> |
785 |
|
|
786 |
|
* Thuban/UI/baserenderer.py: Fix some typos. |
787 |
|
|
788 |
|
2004-05-18 Jan-Oliver Wagner <[email protected]> |
789 |
|
|
790 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug |
791 |
|
by increasing a field size. |
792 |
|
|
793 |
|
2004-05-17 Bernhard Herzog <[email protected]> |
794 |
|
|
795 |
|
Update to newest shapelib and get rid of Thuban specific |
796 |
|
extensions, i.e. use the new DBFUpdateHeader instead of our |
797 |
|
DBFCommit kludge |
798 |
|
|
799 |
|
* libraries/shapelib/shpopen.c: Update to version from current |
800 |
|
shapelib CVS. |
801 |
|
|
802 |
|
* libraries/shapelib/shapefil.h: Update to version from current |
803 |
|
shapelib CVS. |
804 |
|
|
805 |
|
* libraries/shapelib/dbfopen.c: Update to version from current |
806 |
|
shapelib CVS. |
807 |
|
(DBFCommit): Effectively removed since shapelib itself has |
808 |
|
DBFUpdateHeader now which is better for what DBFCommit wanted to |
809 |
|
achieve. |
810 |
|
We're now using an unmodified version of dbfopen. |
811 |
|
|
812 |
|
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with |
813 |
|
value '1' to the Lib.dbflibc extension. This simply reflects the |
814 |
|
shapelib and pyshapelib updates |
815 |
|
|
816 |
|
2004-05-16 Jan-Oliver Wagner <[email protected]> |
817 |
|
|
818 |
|
Finished introduction of Menu.FindOrInsertMenu. |
819 |
|
|
820 |
|
* Extensions/drawshape/drawshape.py: Add the command |
821 |
|
to the experimental menu additionally to the toolbar. |
822 |
|
|
823 |
|
* Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of |
824 |
|
finding menu on its own. |
825 |
|
|
826 |
|
* Doc/manual/thuban-manual.xml: updated sample file |
827 |
|
to use FindOrInsertMenu(). |
828 |
|
|
829 |
|
* Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu() |
830 |
|
instead of finding menu on its own. |
831 |
|
|
832 |
|
2004-05-11 Jan-Oliver Wagner <[email protected]> |
833 |
|
|
834 |
|
* test/test_menu.py (MenuTest.test): Added testing |
835 |
|
of method Menu.FindOrInsertMenu. |
836 |
|
|
837 |
|
2004-05-10 Jan-Oliver Wagner <[email protected]> |
838 |
|
|
839 |
|
Introduce and use Menu.FindOrInsertMenu. |
840 |
|
|
841 |
|
* Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a |
842 |
|
given menu or, if not found, insert it. |
843 |
|
|
844 |
|
* Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py, |
845 |
|
/Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py, |
846 |
|
/Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding |
847 |
|
menu on its own. |
848 |
|
|
849 |
|
2004-05-06 Jan-Oliver Wagner <[email protected]> |
850 |
|
|
851 |
|
Introduce a abstract ColorDialog class and remove |
852 |
|
and outdated file. |
853 |
|
|
854 |
|
* Thuban/UI/proj4dialog.py: Removed. It is has been |
855 |
|
replaced by projdialog for quite a while and is not used |
856 |
|
anymore. |
857 |
|
|
858 |
|
* Thuban/UI/colordialog.py: New. Abstraction for color selection |
859 |
|
dialog(s). |
860 |
|
|
861 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor): |
862 |
|
Now calls the abstract ColorDialog instead of wxColourDialog. |
863 |
|
This also removed the dependency to Color class conversion |
864 |
|
from this function. |
865 |
|
|
866 |
|
2004-05-04 Frank Koormann <[email protected]> |
867 |
|
|
868 |
|
* Extensions/bboxdump/__init__.py: Fixed string left over from |
869 |
|
copying. |
870 |
|
|
871 |
|
* Extensions/bboxdump/bboxdump.py (bboxdump): |
872 |
|
Use layer.ShapeStore().AllShapes() to loop over shapes instead of |
873 |
|
xrange(layer.NumShapes()). Compile the bboxmessage from a list |
874 |
|
of formatted outputs (string.join) instead of appending to the |
875 |
|
message. Two progress bar dialogs to report progress on the sometimes |
876 |
|
lenghty processing. |
877 |
|
|
878 |
|
2004-04-22 Frank Koormann <[email protected]> |
879 |
|
|
880 |
|
New Extension to dump bounding boxes of all shapes of the selected |
881 |
|
layer. An optional column can be specified to group the objects, |
882 |
|
in this case the bounding box is a union of the separate boxes. |
883 |
|
Dump can be displayed in a ScrolledMessageDialog or written to file. |
884 |
|
The Extension is simply a combination of available and well tested |
885 |
|
Thuban functionality. |
886 |
|
|
887 |
|
* Extensions/bboxdump/__init__.py: New: Init to make this |
888 |
|
directory a package. |
889 |
|
|
890 |
|
* Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of |
891 |
|
all shapes of the selected layer. |
892 |
|
|
893 |
|
2004-04-22 Jan-Oliver Wagner <[email protected]> |
894 |
|
|
895 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two |
896 |
|
strings to be i18n now. |
897 |
|
|
898 |
|
2004-04-18 Jan-Oliver Wagner <[email protected]> |
899 |
|
|
900 |
|
Changing popup menu of legend from direct building |
901 |
|
to using the Menu construction as used for the mainwindow. |
902 |
|
|
903 |
|
* Thuban/UI/mainwindow.py: New method commands: layer_to_top, |
904 |
|
layer_to_bottom, layer_visibility |
905 |
|
(MainWindow.LayerToTop): New. Put current layer to the top. |
906 |
|
(MainWindow.LayerToBottom): New. Put current layer to bottom. |
907 |
|
(MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map): |
908 |
|
Replace 1,0 by True, False. |
909 |
|
(MainWindow.ToggleLayerVisibility): New. Toggle visibility of |
910 |
|
current layer. |
911 |
|
(MainWindow.LayerShowTable): Removed raising of dialog. |
912 |
|
(_has_selected_layer_visible): New. Support function. |
913 |
|
|
914 |
|
* Thuban/UI/legend.py: ID_POP_xxx: removed. |
915 |
|
(LegendPanel.__init__): Removed EVT_MENU bindings. |
916 |
|
(LegendTree._OnRightClick): Replace direct creation of |
917 |
|
menu via wx Classes by applying the menu definition |
918 |
|
as of Menu class of menu.py. |
919 |
|
|
920 |
|
2004-04-16 Jan-Oliver Wagner <[email protected]> |
921 |
|
|
922 |
|
* Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved |
923 |
|
button string to stronger clearify that Thuban will be closed when hitting |
924 |
|
the button. |
925 |
|
|
926 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring. |
927 |
|
Now for layers without a ShapeStore a corresponding message is given |
928 |
|
to the user, that this layer has no table to show. |
929 |
|
|
930 |
|
2004-04-15 Martin Schulze <[email protected]> |
931 |
|
|
932 |
|
* Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to |
933 |
|
recalculate the format for the internal render engine as well. |
934 |
|
|
935 |
|
* Extensions/wms/properties.py (wmsProperties): First start for a |
936 |
|
properties dialog. It's functional for a first selection of |
937 |
|
layers, but still has some weired wxWidgets/GTK problems but |
938 |
|
beautification can be done later. |
939 |
|
|
940 |
|
* Extensions/wms/layer.py: Added more documentation |
941 |
|
(WMSLayer.getFormats): New: Return list of supported image formats |
942 |
|
by the WMS server |
943 |
|
(WMSLayer.getLayers): New: Return the list of layer names |
944 |
|
supported by the WMS server |
945 |
|
(WMSLayer.getLayerTitle): New: Return the title of the named layer |
946 |
|
(WMSLayer.getWMSFormat): New: Return the image format that is used |
947 |
|
for WMS GetMap requests |
948 |
|
(WMSLayer.setWMSFormat): New: Set the image format that is used |
949 |
|
for WMS GetMap requests |
950 |
|
(WMSLayer.__init__): Move away from using only one layer to using |
951 |
|
a list of layers (unsorted at the moment, though). |
952 |
|
(WMSLayer.getVisibleLayers): New: Return the list of names for all |
953 |
|
visible layers |
954 |
|
(WMSLayer.setVisibleLayers): New: Set the list of names for all |
955 |
|
visible layers |
956 |
|
|
957 |
|
* Extensions/wms/wms.py: Moved the WMS layer into layer.py in |
958 |
|
order to establish a clean structure. |
959 |
|
|
960 |
|
* Extensions/wms/layer.py: Moved the WMS layer into a file on its |
961 |
|
own in order to establish a clean structure. |
962 |
|
|
963 |
|
2004-04-13 Martin Schulze <[email protected]> |
964 |
|
|
965 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added |
966 |
|
support for oldstyle (WMS 1.0 apparently) image format |
967 |
|
specification. |
968 |
|
|
969 |
|
* Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of |
970 |
|
supported graphic formats back to JPEG and BMP, PNG and others are |
971 |
|
too *cough* experimental... Sorry, I meant to filter this out |
972 |
|
before I committed this part. This should make the WMS extension |
973 |
|
run from CVS again. |
974 |
|
(wms_dialog): Reset an empty URL to None so that the subsequent |
975 |
|
program can depend on this, since the dialog will indeed return an |
976 |
|
empty URL, causing another declaration of love by Python. |
977 |
|
|
978 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox): |
979 |
|
Whenever a native BoundingBox request cannot be fulfilled, check |
980 |
|
whether the requested SRS is EPSG:3426, in which case return the |
981 |
|
LatLonBoundingBox values. |
982 |
|
|
983 |
|
* Extensions/wms/test/test_parser.py |
984 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Added a test for |
985 |
|
ignoring AUTO:* SRS. |
986 |
|
(TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes): |
987 |
|
Added another test method to test whether the LatLonBoundingBox |
988 |
|
values will be returned if BoundingBox values are requested with |
989 |
|
SRS set to EPSG:3426. |
990 |
|
|
991 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers): |
992 |
|
Added rudimentary support for non-EPSG SRS, i.e. ignore them for |
993 |
|
the moment by placing them into a variable which is currently |
994 |
|
unused. Also test whether the EPSG SRS is numerical as it should |
995 |
|
be and add an error message if it is not. |
996 |
|
|
997 |
|
* Extensions/wms/test/sample.xml: Added AUTO:* SRS since they |
998 |
|
appear in the real world as well. Since we cannot handle them yet |
999 |
|
(OGCLib can't either), we will ignore them for the moment. |
1000 |
|
|
1001 |
|
* Extensions/wms/parser.py: Use a variable for denoting the sample |
1002 |
|
filename |
1003 |
|
(WMSCapabilitiesParser.peekLayers): Added support for error |
1004 |
|
messages during grok(). They will be aggregated in an array and |
1005 |
|
may be displayed later. We may have to add a classification |
1006 |
|
"Warning" and "Error" to this. That requires more experience, |
1007 |
|
though, since not every error may be lethal. |
1008 |
|
|
1009 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the |
1010 |
|
ShowTable() dialog/frame when the user attempts to display it |
1011 |
|
while it has been opened before already and not closed again. |
1012 |
|
|
1013 |
|
2004-04-11 Martin Schulze <[email protected]> |
1014 |
|
|
1015 |
|
* Extensions/wms/infodialog.py: Adjusted the class documentation |
1016 |
|
|
1017 |
|
* Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg): |
1018 |
|
Switch to using Thuban{Begin,End}BusyCursor instead of the pure |
1019 |
|
wxWidgets variants. |
1020 |
|
(WMSLayer.__init__): The epsg_id variable is named top_srs now. |
1021 |
|
|
1022 |
|
* Extensions/wms/infodialog.py: Added an information dialog that |
1023 |
|
will display various information about the WMS current resource, |
1024 |
|
so that additional information such as the title, the abstract, |
1025 |
|
fees and access constraints can be displayed for the user if they |
1026 |
|
are documented in the WMS XML. |
1027 |
|
|
1028 |
|
2004-04-10 Martin Schulze <[email protected]> |
1029 |
|
|
1030 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted |
1031 |
|
string handling. It's "foo".lower() and not lower(foo) without |
1032 |
|
lower imported from strings or something. |
1033 |
|
|
1034 |
|
* Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities |
1035 |
|
from capabilities.py and parser.py. Implement priority list for |
1036 |
|
supported graphics formats, take care of wbmp != bmp. PNG, TIFF |
1037 |
|
and GIF are supported here, but not yet by main Thuban. Hence, |
1038 |
|
support for them may be removed later. Special contribution to |
1039 |
|
usability: get wxWidgets to change the cursor when we're waiting |
1040 |
|
for data from the network so the user won't start to worry. This |
1041 |
|
causes a redrawing error/warning, though. |
1042 |
|
|
1043 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink |
1044 |
|
the DOM object. |
1045 |
|
|
1046 |
|
2004-04-01 Martin Schulze <[email protected]> |
1047 |
|
|
1048 |
|
* Extensions/wms/capabilities.py: Adjusted documentation |
1049 |
|
(WMSCapabilities.__init__): Improved documentation, fixed syntax |
1050 |
|
(WMSCapabilities.saveCapabilities): Only catch IOError when |
1051 |
|
handling files |
1052 |
|
(WMSCapabilities.loadCapabilities): Only catch IOError when |
1053 |
|
handling files |
1054 |
|
__main__: corrected variable naming |
1055 |
|
(WMSCapabilities.fetchCapabilities,loadCapabilities): Make this |
1056 |
|
class a specialisation of WMSCapabilitiesParser as well. Also |
1057 |
|
execute grok() after loading or fetching capabilities, if that |
1058 |
|
went well, so that subsequent calls can already access the data. |
1059 |
|
(WMSCapabilities.getVersion): Export the used version of the |
1060 |
|
GetCapabilities request, so we can use it for subsequent calls, |
1061 |
|
i.e. for GetMap requests. |
1062 |
|
(WMSCapabilities.fetchCapabilities): Added proper error handling |
1063 |
|
when the GetCapabilities request failed, so that the surrounding |
1064 |
|
program can act accordingly. |
1065 |
|
|
1066 |
|
2004-03-30 Martin Schulze <[email protected]> |
1067 |
|
|
1068 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS): |
1069 |
|
Adjusted the getLayerSRS method to return the list of SRSes |
1070 |
|
extracted from <SRS> elements instead of <BoundingBox> elements. |
1071 |
|
Added a bit of documentation as well. |
1072 |
|
(WMSCapabilitiesParser.checkLayerSRS): Removed integrity test |
1073 |
|
since it was only implemented due to a misunderstanding. |
1074 |
|
|
1075 |
|
* Extensions/wms/test/test_parser.py |
1076 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to |
1077 |
|
reflect the corrected interpretation of the standard: i.e. a layer |
1078 |
|
does not have to define a BoundingBox for all SRSes it supports. |
1079 |
|
Hence the <SRS></SRS> specification is authoritative, not the list |
1080 |
|
of BoundingBoxes. |
1081 |
|
(TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test |
1082 |
|
to ensure None is returned for a non-existing SRS. |
1083 |
|
(TestWMSCapabilitiesParser.test_grok): Removed test_grok method |
1084 |
|
since it is not applicable anymore. Listing more SRSes in <SRS> |
1085 |
|
elements is valid according to the specs. |
1086 |
|
|
1087 |
|
2004-03-26 Bernhard Reiter <[email protected]> |
1088 |
|
|
1089 |
|
* README: Nicer formatting of text. Improved descriptions. |
1090 |
|
Reflected wxWidgets name change. |
1091 |
|
|
1092 |
|
* Thuban/UI/about.py: Extended copyright to 2004 and added |
1093 |
|
information about the thuban-devel mailinglist. |
1094 |
|
|
1095 |
|
2004-03-24 Martin Schulze <[email protected]> |
1096 |
|
|
1097 |
|
* Extensions/wms/capabilities.py: Renamed the class to contain |
1098 |
|
'WMS', also added a linebreak where required |
1099 |
|
|
1100 |
|
* Extensions/wms/parser.py: Finally added the XML parser for the |
1101 |
|
GetCapabilities response. |
1102 |
|
|
1103 |
|
* Extensions/wms/test/sample.xml: Adjusted the sample file so that |
1104 |
|
<SRS> elements match the <BoundingBox> elements, except for the |
1105 |
|
layer 'beschriftung'. |
1106 |
|
|
1107 |
|
* Extensions/wms/test/test_parser.py: Encode non-ascii strings |
1108 |
|
since Python uses unicode strings internally, otherwise |
1109 |
|
comparisons will fail. Removed tests for getLayerBBoxSRS() since |
1110 |
|
the SRS will be calculated anyway and this method is obsoleted by |
1111 |
|
getLayerSRS(). Denote SRS as strings and not as cardinal numbers. |
1112 |
|
Move loading the sample file into the setUp method. Added a test |
1113 |
|
for finding the integrity problem in the sample response. |
1114 |
|
Improved formatting. |
1115 |
|
|
1116 |
|
* Extensions/wms/domutils.py: Added convenience routines for |
1117 |
|
handling of Document Object Model (DOM) nodes. |
1118 |
|
|
1119 |
|
* Extensions/wms/test/test_domutils.py: Added a test for the |
1120 |
|
domutils module |
1121 |
|
|
1122 |
|
2004-03-19 Martin Schulze <[email protected]> |
1123 |
|
|
1124 |
|
* Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser): |
1125 |
|
Moved path detection and adding into a module of its own, |
1126 |
|
adjustpath, which exports thubandir as main Thuban directory. |
1127 |
|
|
1128 |
|
* Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path |
1129 |
|
detection and adding into a module of its own, adjustpath, which |
1130 |
|
exports thubandir as main Thuban directory. Reorganised the |
1131 |
|
module in order to support the SkipTest feature for Thuban test |
1132 |
|
cases. |
1133 |
|
|
1134 |
|
* Extensions/wms/test/adjustpath.py: Moved path detection and |
1135 |
|
adding into a module of its own. |
1136 |
|
|
1137 |
|
2004-03-18 Martin Schulze <[email protected]> |
1138 |
|
|
1139 |
|
* Extensions/wms/test/test_parser.py: Added another test for |
1140 |
|
checking whether the WMS XML parser (to be implemented) returns |
1141 |
|
the information we expect. This requires a sample WMS WML file |
1142 |
|
(sample.xml) which has been extracted from the frida server and |
1143 |
|
"improved" manually. |
1144 |
|
|
1145 |
|
* Extensions/wms/test/test_ogclib.py: Added legacy code to add the |
1146 |
|
main Thuban directory to the path in order to be able to import |
1147 |
|
random modules. Adjusted the PyOGCLib detection to reuse the |
1148 |
|
information gathered. Also added a note about the PYTHONPATH |
1149 |
|
environment variable. |
1150 |
|
|
1151 |
|
* Extensions/wms/test/test_ogclib.py: The format specification is |
1152 |
|
a mime-type, not a graphic format, hence image/jpeg wou ld be the |
1153 |
|
proper format and not JPEG. We'll also have to take care of the |
1154 |
|
encoding of / as %2F. |
1155 |
|
|
1156 |
|
2004-03-16 Martin Schulze <[email protected]> |
1157 |
|
|
1158 |
|
* Extensions/wms/test/test_ogclib.py: Added a (hopefully) |
1159 |
|
comprehensive test for the getMapURL method, built compare URLs |
1160 |
|
according to the documentation in OGC 01-068r3 |
1161 |
|
|
1162 |
|
* Extensions/wms/capabilities.py (WMSCapabilities): Added the |
1163 |
|
class WMSCapabilities to manage capabilites, will incorporate |
1164 |
|
parsing the capabilities response and provide details for other |
1165 |
|
classes. |
1166 |
|
|
1167 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
1168 |
|
|
1169 |
|
Support views in addition to normal tables in the postgis |
1170 |
|
shapestore |
1171 |
|
|
1172 |
|
* Thuban/Model/postgisdb.py |
1173 |
|
(PostGISShapeStore._fetch_table_information): Add a fallback for |
1174 |
|
the case where the table name is not in the geometry_columns |
1175 |
|
table. This is usually the case for views. Also, set |
1176 |
|
self.shapestore here. |
1177 |
|
(PostGISShapeStore.ShapeType): No need to query the database all |
1178 |
|
the time. The shape type is now determined in |
1179 |
|
_fetch_table_information |
1180 |
|
|
1181 |
|
* test/postgissupport.py (PostgreSQLServer.new_postgis_db) |
1182 |
|
(PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__): |
1183 |
|
New parameter to specify views. |
1184 |
|
(PostGISDatabase.has_data): Also compare the views. New views |
1185 |
|
parameter |
1186 |
|
(PostGISDatabase.initdb): Create the views. |
1187 |
|
(PostgreSQLServer.get_default_static_data_db): Add the v_landmarks |
1188 |
|
view |
1189 |
|
|
1190 |
|
* test/test_postgis_db.py |
1191 |
|
(TestPostGISShapestorePointFromViews): New. Test a |
1192 |
|
PostGISShapeStore with a view |
1193 |
|
(TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of |
1194 |
|
the geometry_column explicitly to test whether that works |
1195 |
|
|
1196 |
|
2004-03-12 Bernhard Herzog <[email protected]> |
1197 |
|
|
1198 |
|
Final step for explicit id/geometry columns: Loading and saving |
1199 |
|
|
1200 |
|
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd |
1201 |
|
with the following changes: |
1202 |
|
(dbshapesource): Two new attributes id_column and geometry_column |
1203 |
|
|
1204 |
|
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd |
1205 |
|
(SessionSaver.write_session): Use the new namespace |
1206 |
|
(SessionSaver.write_data_containers): Write the new dbshapesource |
1207 |
|
parameters |
1208 |
|
|
1209 |
|
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for |
1210 |
|
the new file format version |
1211 |
|
(SessionLoader.start_dbshapesource): Handle the new db parameters |
1212 |
|
|
1213 |
|
* test/test_save.py: Update to the new dtd and namespace |
1214 |
|
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore |
1215 |
|
mock object to provide a working IDColumn method. |
1216 |
|
|
1217 |
|
* test/test_load_1_0.py: New. Copy of the test_load.py before |
1218 |
|
today's changes but with the round-trip tests removed. |
1219 |
|
|
1220 |
|
* test/test_load_0_9.py: Update doc-string. |
1221 |
|
|
1222 |
|
* test/test_load.py: Update all .thuban files to the new dtd and |
1223 |
|
namespace. |
1224 |
|
(TestPostGISLayer.file_contents): Add the new dbshapesource |
1225 |
|
paramters |
1226 |
|
|
1227 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
1228 |
|
|
1229 |
|
Next step for explicit id/geometry columns: User interaction |
1230 |
|
|
1231 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how |
1232 |
|
the dialog is constructed. Add combo boxes to select id and |
1233 |
|
geometry column. Rename some instance variables. |
1234 |
|
(ChooseDBTableDialog.GetTable): Return id and geometry column |
1235 |
|
names |
1236 |
|
(ChooseDBTableDialog.OnTableSelect): New. Event handler for |
1237 |
|
selections in the table list |
1238 |
|
|
1239 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column |
1240 |
|
and geometry_column |
1241 |
|
|
1242 |
|
* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new |
1243 |
|
parameters for id_column and geometry column of PostGISShapeStore |
1244 |
|
here as well. |
1245 |
|
|
1246 |
|
* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type. |
1247 |
|
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types |
1248 |
|
(PostGISConnection.GeometryTables): Use a better query to |
1249 |
|
determine which relations in the database might be usable for |
1250 |
|
shapestores. Now supports views as well but is more PostgreSQL |
1251 |
|
specific |
1252 |
|
(PostGISConnection.table_columns): New. Somewhat experimental |
1253 |
|
method to let the db dialogs provide lists of columns to users so |
1254 |
|
that they can select id and geometry columns. |
1255 |
|
(PostGISTable.__init__): The default value of the id_column |
1256 |
|
parameter is now None it still means "gid" effectively, though. |
1257 |
|
(PostGISTable.IDColumn): New introspection method to return a |
1258 |
|
column object for the id column |
1259 |
|
(PostGISShapeStore.GeometryColumn): New introspection method to |
1260 |
|
return a column object for the geometry column |
1261 |
|
|
1262 |
|
* test/test_postgis_db.py |
1263 |
|
(TestPostGISConnection.test_gis_tables_non_empty): |
1264 |
|
Removed. Subsumed by the new: |
1265 |
|
(TestPostGISConnection.test_gis_tables_with_views_and_tables): |
1266 |
|
New. Tes the GeometryTables and table_columns methods with actual |
1267 |
|
tables and views. |
1268 |
|
(PointTests.test_id_column, PointTests.test_geometry_column): |
1269 |
|
New. tests for the new methods. |
1270 |
|
(TestPostGISShapestorePoint.setUp) |
1271 |
|
(TestPostGISShapestorePointSRID.setUp) |
1272 |
|
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the |
1273 |
|
instance variables needed by the new tests |
1274 |
|
|
1275 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
1276 |
|
|
1277 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
1278 |
|
numbers given to ReadValue are ordinals. |
1279 |
|
|
1280 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
1281 |
|
|
1282 |
|
Elimiate the requirement for PostGIS tables to have a column |
1283 |
|
called "gid". |
1284 |
|
|
1285 |
|
* Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter |
1286 |
|
id_column to specify which column to use to identify rows. Also |
1287 |
|
new instance variables id_column and quoted_id_column |
1288 |
|
(PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId) |
1289 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue) |
1290 |
|
(PostGISTable.SimpleQuery): Use the id column name provided to the |
1291 |
|
constructor instead of "gid" |
1292 |
|
(PostGISShapeStore.__init__): New parameter id_column analogously |
1293 |
|
to PostGISTable.__init__. This parameter is simply passed through |
1294 |
|
to the base class constructor |
1295 |
|
(PostGISShapeStore._create_col_from_description): Fix typo in |
1296 |
|
doc-string |
1297 |
|
(PostGISShapeStore.Shape, PostGISShapeStore.AllShapes) |
1298 |
|
(PostGISShapeStore.ShapesInRegion): Use the id column name |
1299 |
|
provided to the constructor instead of "gid" |
1300 |
|
|
1301 |
|
* test/postgissupport.py |
1302 |
|
(PostgreSQLServer.get_default_static_data_db): New static table |
1303 |
|
landmarks_point_id with an id column != "gid. Update the comments |
1304 |
|
a bit. |
1305 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in |
1306 |
|
doc- |
1307 |
|
(upload_shapefile): New parameter gid_column to use a name other |
1308 |
|
than "gid" for the column to store the shape ids |
1309 |
|
|
1310 |
|
* test/test_postgis_db.py (TableTests): New. Mixin-class |
1311 |
|
containing all tests previously in TestPostGISTable. The actual |
1312 |
|
tests are the same but the code is a bit more configurable to |
1313 |
|
allow for different id columns etc. |
1314 |
|
(TestPostGISTable): Derive from TableTests now for the actual |
1315 |
|
tests. |
1316 |
|
(TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable |
1317 |
|
except that it the landmarks_point_id table to test the id_column |
1318 |
|
parameter |
1319 |
|
(PointTests): Extend the doc-string |
1320 |
|
(TestPostGISShapestorePointExplicitGIDColumn) |
1321 |
|
(TestPostGISShapestorePointOIDAsGIDColumn): New classes derived |
1322 |
|
from PointTests to test the explicit id_column parameter. One |
1323 |
|
tests with the name of the column holding the shape ids, the other |
1324 |
|
uses PostgreSQL's OID column. For the latter a number of methods |
1325 |
|
have to be overwritten to make them independent of the actual id |
1326 |
|
values. |
1327 |
|
|
1328 |
|
2004-03-08 Silke Reimer <[email protected]> |
1329 |
|
|
1330 |
|
Update debian directory: |
1331 |
|
|
1332 |
|
* debian/changelog: Added new version. |
1333 |
|
* deiban/rules: Updated management of patches (with cbds) |
1334 |
|
* debian/control: Added cbds to dependencies |
1335 |
|
* debian/patches/*: New. Adds better support for patches of thuban in |
1336 |
|
debian |
1337 |
|
* debian/menu: Syntax of menu changed slightly |
1338 |
|
* debian/setup.py.patch: removed because it has been moved to |
1339 |
|
debian/patechs/setup.py.patch |
1340 |
|
|
1341 |
|
|
1342 |
|
2004-02-26 Bernhard Herzog <[email protected]> |
1343 |
|
|
1344 |
|
Create the Doc/technotes directory for text files with information |
1345 |
|
for developers |
1346 |
|
|
1347 |
|
* Doc/technotes/README: New. README for the technotes |
1348 |
|
|
1349 |
|
* Doc/technotes/coding_guidelines.txt: New. Coding guidelines for |
1350 |
|
Thuban |
1351 |
|
|
1352 |
|
* Doc/technotes/release_process.txt: New. Used to be |
1353 |
|
HOWTO-Release. Now slightly adapted to technote formatting style. |
1354 |
|
|
1355 |
|
* HOWTO-Release: Removed. It's contents are now in |
1356 |
|
Doc/technotes/release_process.txt |
1357 |
|
|
1358 |
|
2004-02-25 Bernhard Herzog <[email protected]> |
1359 |
|
|
1360 |
|
* libraries/thuban/wxproj.cpp (get_wx_version): New. Return the |
1361 |
|
version of wxWindows the module was compiled with so we can check |
1362 |
|
that against the wxPython version. |
1363 |
|
|
1364 |
|
* Thuban/version.py (thuban_branch, thuban_release): New variables |
1365 |
|
controlling which and how Thuban versions are shown. See the |
1366 |
|
comments for details. |
1367 |
|
(verify_versions): Also check that the wx version that wxproj is |
1368 |
|
compiled against matches that of the wxPython we use at runtime |
1369 |
|
|
1370 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1371 |
|
|
1372 |
|
* Extensions/wms/wms.py (epsg_code_to_projection): Use |
1373 |
|
get_system_proj_file to read the epsg projections. The old way |
1374 |
|
depended on the current directory being the top Thuban directory. |
1375 |
|
|
1376 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1377 |
|
|
1378 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
1379 |
|
(TestVirtualDC.test_clippath): Remove a debug print |
1380 |
|
|
1381 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1382 |
|
|
1383 |
|
* Extensions/svgexport/__init__.py: New. Turn |
1384 |
|
Extensions/svgexport into a package. |
1385 |
|
|
1386 |
|
* Extensions/svgexport/svgmapwriter.py: Reorder the imports and |
1387 |
|
doc-string a bit. The doc-string must come first, otherwise it's |
1388 |
|
not a doc-string. The __future__ import must be the first thing |
1389 |
|
after the doc-string. Use only double quotes in doc-strings. |
1390 |
|
Single quotes trip up emacs syntax highlighting if the text |
1391 |
|
contains apostrophes. |
1392 |
|
|
1393 |
|
2004-02-20 Bernhard Herzog <[email protected]> |
1394 |
|
|
1395 |
|
* Extensions/svgexport/test/__init__.py, |
1396 |
|
Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test |
1397 |
|
suite for svgexport |
1398 |
|
|
1399 |
|
* test/runtests.py (find_test_modules): New. Function with the |
1400 |
|
module finding code from main. |
1401 |
|
(main): Use find_test_modules to figure out the default test |
1402 |
|
modules and take modules from Extensions.svgexport.test too. |
1403 |
|
|
1404 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
1405 |
|
|
1406 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Make sure |
1407 |
|
the mainwindow has a reference to the map of the initial session. |
1408 |
|
This fixes a bug introduced with the fix for RT#2245 |
1409 |
|
|
1410 |
|
2004-02-19 Bernhard Herzog <[email protected]> |
1411 |
|
|
1412 |
|
* Extensions/svgexport/svgsaver.py, |
1413 |
|
Extensions/svgexport/svgmapwriter.py, |
1414 |
|
Extensions/svgexport/maplegend.py: Added again. This time in the |
1415 |
|
correct place. |
1416 |
|
|
1417 |
|
2004-02-17 Bernhard Herzog <[email protected]> |
1418 |
|
|
1419 |
|
Fix for RT#2245 |
1420 |
|
|
1421 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Initialize |
1422 |
|
instance variables before trying to create any windows. Creating |
1423 |
|
windows can start an event loop if e.g. message boxes are popped |
1424 |
|
up for some reason, and event handlers, especially EVT_UPDATE_UI |
1425 |
|
may want to access things from the application. |
1426 |
|
(ThubanApplication.maps_changed): The mainwindow may not have been |
1427 |
|
created yet, so check whether it has been created before calling |
1428 |
|
its methods |
1429 |
|
|
1430 |
|
* Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we |
1431 |
|
have a map |
1432 |
|
|
1433 |
|
2004-02-17 Bernhard Herzog <[email protected]> |
1434 |
|
|
1435 |
|
* test/test_svgmapwriter.py, Extensions/svgsaver.py, |
1436 |
|
Extensions/svgmapwriter.py, Extensions/maplegend.py, |
1437 |
|
extensions/svgexport/svgsaver.py, |
1438 |
|
extensions/svgexport/svgmapwriter.py, |
1439 |
|
extensions/svgexport/maplegend.py: Removed. These files were in |
1440 |
|
the wrong places or didn't work at all. |
1441 |
|
|
1442 |
|
2004-02-16 Bernhard Herzog <[email protected]> |
1443 |
|
|
1444 |
|
* Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added |
1445 |
|
line |
1446 |
|
|
1447 |
|
2004-02-16 Bernhard Herzog <[email protected]> |
1448 |
|
|
1449 |
|
* Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError. |
1450 |
|
|
1451 |
|
2004-02-15 Markus Rechtien <[email protected]> |
1452 |
|
|
1453 |
|
* Extensions/svgexport/svgmapwriter.py: New. Adds the capability |
1454 |
|
to write a session to a file in SVG format. |
1455 |
|
* Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py |
1456 |
|
to write a SVG map of a session. |
1457 |
|
* Extensions/svgexport/maplegend: New. Writes a basic maplegend |
1458 |
|
in SVG format for the current session. |
1459 |
|
|
1460 |
|
2004-02-13 Bernhard Herzog <[email protected]> |
1461 |
|
|
1462 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer |
1463 |
|
can't be created, return immediately after displaying the error |
1464 |
|
message. |
1465 |
|
|
1466 |
|
2004-02-11 Bernhard Herzog <[email protected]> |
1467 |
|
|
1468 |
|
Handle postgis tables with more than one geometry column. |
1469 |
|
|
1470 |
|
* Thuban/Model/postgisdb.py |
1471 |
|
(PostGISTable._fetch_table_information): Delegate the creation of |
1472 |
|
column objects to a different method so that we can extend that in |
1473 |
|
derived classes |
1474 |
|
(PostGISTable._create_col_from_description): New. Column object |
1475 |
|
creation part of _fetch_table_information |
1476 |
|
(PostGISShapeStore._create_col_from_description): New. Extend |
1477 |
|
inherited method to handle geometry columns |
1478 |
|
(PostGISShapeStore.__init__): New parameter geometry_column to |
1479 |
|
specify which geometry column to use. Optional but mandatory for |
1480 |
|
tables with more than one geometry column |
1481 |
|
(PostGISShapeStore._fetch_table_information): Also use the name of |
1482 |
|
the geometry column when looking for the srid |
1483 |
|
(PostGISShapeStore.ShapeType): Also use the name of the geometry |
1484 |
|
column when looking for the shape type |
1485 |
|
|
1486 |
|
* test/test_save.py (SaveSessionTest.test_save_postgis): Adapt |
1487 |
|
NonConnectionStore to changes in the PostGISShapeStore |
1488 |
|
|
1489 |
|
* test/test_postgis_db.py |
1490 |
|
(TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test |
1491 |
|
PostGISShapeStore with tables having two geometry columns. |
1492 |
|
|
1493 |
|
2004-02-10 Bernhard Herzog <[email protected]> |
1494 |
|
|
1495 |
|
Fix some postgis problems. What remains to be done is real |
1496 |
|
handling of SRIDs as they affect how reprojection is done |
1497 |
|
|
1498 |
|
* Thuban/Model/postgisdb.py (quote_identifier): Fix typo in |
1499 |
|
doc-string |
1500 |
|
(PostGISShapeStore._fetch_table_information): New. Extend |
1501 |
|
inherited method to retrieve srid |
1502 |
|
(PostGISShapeStore.BoundingBox): Handle tables without data. |
1503 |
|
extent yields NULL for those |
1504 |
|
(PostGISShapeStore.ShapesInRegion): Use the srid of the table. |
1505 |
|
|
1506 |
|
* test/test_postgis_db.py |
1507 |
|
(TestPostGISSpecialCases.test_shapestore_empty_table): New test |
1508 |
|
for the special case of a table without any data |
1509 |
|
(TestPostGISShapestorePointSRID): New class with tests for a table |
1510 |
|
that uses srids |
1511 |
|
(PolygonTests): Fix a doc-string typo |
1512 |
|
|
1513 |
|
* test/postgissupport.py (PostGISDatabase.__init__): New parameter |
1514 |
|
reference_systems with a specification of spacial reference |
1515 |
|
systems to create in the new db. |
1516 |
|
(PostgreSQLServer.new_postgis_db) |
1517 |
|
(PostgreSQLServer.get_static_data_db): New parameter |
1518 |
|
reference_systems to be passed through ultimately to |
1519 |
|
PostGISDatabase. In new_postgis_db also check whether an existing |
1520 |
|
db already has the right srids |
1521 |
|
(PostgreSQLServer.get_default_static_data_db): Add srids and a |
1522 |
|
table that uses srids |
1523 |
|
(PostGISDatabase.initdb): Create the entries for the reference |
1524 |
|
systems |
1525 |
|
(PostGISDatabase.has_data): Add reference_systems parameter to |
1526 |
|
check for those too |
1527 |
|
(upload_shapefile): New parameter srid to create tables with a |
1528 |
|
specific srid |
1529 |
|
|
1530 |
|
2004-02-06 Frank Koormann <[email protected]> |
1531 |
|
|
1532 |
|
* po/pt_BR.po: Fixed charset |
1533 |
|
|
1534 |
|
2004-02-05 Frank Koormann <[email protected]> |
1535 |
|
|
1536 |
|
* po/pt_BR.po: Fixed format string for error message, missing %s |
1537 |
|
added (Thuban/UI/application.py:273) |
1538 |
|
|
1539 |
|
2004-02-03 Frank Koormann <[email protected]> |
1540 |
|
|
1541 |
|
First version of Portuguese (Brazilian) translation |
1542 |
|
|
1543 |
|
* po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for |
1544 |
|
Brazilian Portuguese by Eduardo Patto Kanegae. |
1545 |
|
|
1546 |
|
* Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of |
1547 |
|
translators. |
1548 |
|
|
1549 |
|
|
1550 |
|
2004-01-22 Frank Koormann <[email protected]> |
1551 |
|
|
1552 |
|
* Doc/manual/thuban-manual.xml: Added section on installation of |
1553 |
|
Thuban under Win32 systems. Fixed image path references in the postgis |
1554 |
|
section. Some minor source formattings. |
1555 |
|
|
1556 |
|
2004-01-21 Frank Koormann <[email protected]> |
1557 |
|
|
1558 |
|
Make Thuban remember path selections (at least for one application run). |
1559 |
|
|
1560 |
|
* Thuban/UI/application.py (Application.OnInit): Initialize path as a |
1561 |
|
attribute of application object. Path is a dictionary of |
1562 |
|
strings, currently with the items "data" and "projection". |
1563 |
|
(Application.SetPath): New, stores path for the specified item. |
1564 |
|
(Application.Path): New, return path for the specified item. |
1565 |
|
|
1566 |
|
* Thuban/UI/mainwindow.py |
1567 |
|
(MainWindow.OpenSession, MainWindow.SaveSessionAs, |
1568 |
|
MainWindow.AddLayer, MainWindow.AddRasterLayer, |
1569 |
|
MainWindow.TableOpen): Access "data" path information of the |
1570 |
|
application. |
1571 |
|
|
1572 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport): |
1573 |
|
Access "projection" path information of the application. |
1574 |
|
|
1575 |
|
2004-01-05 Bernhard Herzog <[email protected]> |
1576 |
|
|
1577 |
|
* po/ru.po: Updated translations from Alex Shevlakov |
1578 |
|
|
1579 |
|
2004-01-05 Bernhard Herzog <[email protected]> |
1580 |
|
|
1581 |
|
* po/Makefile, po/README: Move the description of how to generate |
1582 |
|
the translation statistics to the README. |
1583 |
|
|
1584 |
|
2003-12-23 Bernhard Herzog <[email protected]> |
1585 |
|
|
1586 |
|
* NEWS: Update for 1.0.0 |
1587 |
|
|
1588 |
|
* po/it.po: Another update from Maurizio Napolitano |
1589 |
|
|
1590 |
|
2003-12-23 Bernhard Herzog <[email protected]> |
1591 |
|
|
1592 |
|
* po/it.po: Updated translation from Maurizio Napolitano |
1593 |
|
|
1594 |
|
2003-12-23 Bernhard Herzog <[email protected]> |
1595 |
|
|
1596 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Mark one more string |
1597 |
|
for translation |
1598 |
|
|
1599 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableRename) |
1600 |
|
(MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more |
1601 |
|
strings for translation |
1602 |
|
|
1603 |
|
* po/de.po: Update with the newly marked strings. |
1604 |
|
|
1605 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
1606 |
|
|
1607 |
|
* HOWTO-Release: Fix the places where version numbers have to be |
1608 |
|
updated |
1609 |
|
|
1610 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
1611 |
|
|
1612 |
|
* setup.py (setup call): 1.0.0, yeah! |
1613 |
|
|
1614 |
|
* Thuban/version.py (longversion): 1.0.0, yeah! |
1615 |
|
|
1616 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Accept the |
1617 |
|
1.0.0 namespace too |
1618 |
|
|
1619 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Save with |
1620 |
|
1.0.0 namespace |
1621 |
|
|
1622 |
|
* test/test_load.py (LoadSessionTest.dtd) |
1623 |
|
(TestSingleLayer.file_contents) |
1624 |
|
(TestNonAsciiColumnName.file_contents) |
1625 |
|
(TestLayerVisibility.file_contents) |
1626 |
|
(TestClassification.file_contents, TestLabels.file_contents) |
1627 |
|
(TestLayerProjection.file_contents) |
1628 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
1629 |
|
(TestLabelLayer.file_contents, TestPostGISLayer.file_contents) |
1630 |
|
(TestPostGISLayerPassword.file_contents) |
1631 |
|
(TestLoadError.file_contents, TestLoadError.test): Update for |
1632 |
|
1.0.0 namespace |
1633 |
|
|
1634 |
|
* test/test_save.py (SaveSessionTest.dtd) |
1635 |
|
(SaveSessionTest.testEmptySession) |
1636 |
|
(SaveSessionTest.testSingleLayer) |
1637 |
|
(SaveSessionTest.testLayerProjection) |
1638 |
|
(SaveSessionTest.testRasterLayer) |
1639 |
|
(SaveSessionTest.testClassifiedLayer) |
1640 |
|
(SaveSessionTest.test_dbf_table) |
1641 |
|
(SaveSessionTest.test_joined_table) |
1642 |
|
(SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace |
1643 |
|
|
1644 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
1645 |
|
|
1646 |
|
* Thuban/Model/load.py (SessionLoader.start_label): Make sure the |
1647 |
|
alignment flags are byte strings not unicode and that they have |
1648 |
|
valid values |
1649 |
|
|
1650 |
|
* test/test_load.py (TestLabelLayer): New. Test loading (and |
1651 |
|
indirectly saving) of maps with labels. |
1652 |
|
|
1653 |
|
2003-12-22 Bernhard Herzog <[email protected]> |
1654 |
|
|
1655 |
|
* Thuban/UI/tableview.py (TableGrid.OnDestroy) |
1656 |
|
(TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to |
1657 |
|
unsubscribe all subscribers. |
1658 |
|
(LayerTableFrame.OnDestroy): Do not unsubscribe any messages from |
1659 |
|
self.grid since it may already have been destroyed. |
1660 |
|
Fixes RT #2256 |
1661 |
|
|
1662 |
|
2003-12-19 Bernhard Herzog <[email protected]> |
1663 |
|
|
1664 |
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
1665 |
|
|
1666 |
|
2003-12-16 Bernhard Herzog <[email protected]> |
1667 |
|
|
1668 |
|
* debian/bitmappath.patch, debian/setup.py.patch: |
1669 |
|
added to ensure compliance with FHS for debian |
1670 |
|
* debian/rules, debian/changelog: |
1671 |
|
added patches in rules to ensure compliance with FHS for debian |
1672 |
|
|
1673 |
|
2003-12-16 Bernhard Herzog <[email protected]> |
1674 |
|
|
1675 |
|
* po/Makefile (mo): Make the output a bit nicer so that it prints |
1676 |
|
statistics about the translations. Add a comment how produce even |
1677 |
|
nicer statistics with sed. |
1678 |
|
|
1679 |
|
2003-12-09 Frank Koormann <[email protected]> |
1680 |
|
|
1681 |
|
* Resources/Projections/defaults.proj: |
1682 |
|
French projection sample with correct accents (UNICODE). |
1683 |
|
|
1684 |
|
2003-12-05 Bernhard Herzog <[email protected]> |
1685 |
|
|
1686 |
|
* MANIFEST.in: Add the devtools directory |
1687 |
|
|
1688 |
|
* setup.py (setup call): Use license instead of licence. This |
1689 |
|
silences a deprecation warning on Python 2.3 |
1690 |
|
|
1691 |
|
2003-12-05 Frank Koormann <[email protected]> |
1692 |
|
|
1693 |
|
Documentation synced with 1.0rc1 |
1694 |
|
|
1695 |
|
* Doc/manual/thuban-manual.xml: |
1696 |
|
Minor formatting changes and references to database layers . |
1697 |
|
Introduction.Internationalization: New section on i18n. |
1698 |
|
MapManagement.AddingandRemovingLayers: Added item on database layers. |
1699 |
|
MapManagement.TheLegend: Added section and screenshot on popup menu. |
1700 |
|
ProjectionManagement: Updated screenshot and sentence on EPSG. |
1701 |
|
Appendix.SupportedDataSources: Added PostGIS. |
1702 |
|
Appendix.WorkingwithPostGIS: New section. |
1703 |
|
|
1704 |
|
* Doc/manual/images/6_projection.png: Updated screenshot including |
1705 |
|
EPSG checkboxes. |
1706 |
|
|
1707 |
|
* Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot. |
1708 |
|
|
1709 |
|
* Doc/manual/images/app_postgis_add_layer.png, |
1710 |
|
Doc/manual/images/app_postgis_db_add.png, |
1711 |
|
Doc/manual/images/app_postgis_db_management.png: |
1712 |
|
New screenshots focussing on database layers |
1713 |
|
|
1714 |
|
2003-12-05 Frank Koormann <[email protected]> |
1715 |
|
|
1716 |
|
* Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing |
1717 |
|
write warning to stderr instead of rising a warning dialog |
1718 |
|
|
1719 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
1720 |
|
|
1721 |
|
Fix for RT #2243 |
1722 |
|
|
1723 |
|
* Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer): |
1724 |
|
New. Like has_selected_layer but for shape layers only |
1725 |
|
(_has_selected_shape_layer): New. Like _has_selected_layer but for |
1726 |
|
shape layers only |
1727 |
|
(layer_show_table command, layer_jointable command): Use these |
1728 |
|
commands should only be available for shape layers |
1729 |
|
|
1730 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
1731 |
|
|
1732 |
|
* Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with |
1733 |
|
publishers that are wx objects and may have been destroyed by wx |
1734 |
|
already. Fixes RT #2242. |
1735 |
|
|
1736 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
1737 |
|
|
1738 |
|
* po/ru.po: Updates from Alex Shevlakov |
1739 |
|
|
1740 |
|
2003-12-03 Silke Reimer <silkeintevation.de> |
1741 |
|
|
1742 |
|
* debian/control, debian/changelog: Added gdal-support to |
1743 |
|
debian package, updated to new thuban version |
1744 |
|
|
1745 |
|
|
1746 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
1747 |
|
|
1748 |
|
* Thuban/Lib/version.py: New. Module for version number |
1749 |
|
manipulations. The version of make_tuple here also deals better |
1750 |
|
with more unusual version number strings, such as e.g. |
1751 |
|
"1.2+cvs20031111" |
1752 |
|
|
1753 |
|
* Thuban/version.py (make_tuple): Removed. It's now in |
1754 |
|
Thuban.Lib.version. Use that implementation instead. |
1755 |
|
|
1756 |
|
* test/test_lib_version.py: New. Tests for Thuban/Lib/version.py |
1757 |
|
|
1758 |
|
2003-12-02 Bernhard Herzog <[email protected]> |
1759 |
|
|
1760 |
|
* MANIFEST.in: Add debian files |
1761 |
|
|
1762 |
|
* setup.py (setup call): Add packages for the Extensions so that |
1763 |
|
they're installed too |
1764 |
|
(data_files): Add READMEs and sample data from some Extensions |
1765 |
|
|
1766 |
|
* NEWS: Add note about the extensions in binary packages |
1767 |
|
|
1768 |
|
2003-12-02 Bernhard Herzog <[email protected]> |
1769 |
|
|
1770 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Save files |
1771 |
|
with the thuban-1.0rc1 |
1772 |
|
|
1773 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Recognize the |
1774 |
|
thuban-1.0rc1 namespace too |
1775 |
|
|
1776 |
|
* test/test_save.py (SaveSessionTest.dtd) |
1777 |
|
(SaveSessionTest.testEmptySession) |
1778 |
|
(SaveSessionTest.testSingleLayer) |
1779 |
|
(SaveSessionTest.testLayerProjection) |
1780 |
|
(SaveSessionTest.testRasterLayer) |
1781 |
|
(SaveSessionTest.testClassifiedLayer) |
1782 |
|
(SaveSessionTest.test_dbf_table) |
1783 |
|
(SaveSessionTest.test_joined_table) |
1784 |
|
(SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1 |
1785 |
|
namespace |
1786 |
|
|
1787 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1 |
1788 |
|
namespace |
1789 |
|
(TestSingleLayer.file_contents) |
1790 |
|
(TestNonAsciiColumnName.file_contents) |
1791 |
|
(TestLayerVisibility.file_contents) |
1792 |
|
(TestClassification.file_contents, TestLabels.file_contents) |
1793 |
|
(TestLayerProjection.file_contents) |
1794 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
1795 |
|
(TestPostGISLayer.file_contents) |
1796 |
|
(TestPostGISLayerPassword.file_contents) |
1797 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to |
1798 |
|
thuban-1.0rc1 namespace |
1799 |
|
|
1800 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
1801 |
|
|
1802 |
|
* setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for |
1803 |
|
nt to better match Intevation's current w32 setup |
1804 |
|
|
1805 |
|
* HOWTO-Release: Add note about updating MANIFEST.in |
1806 |
|
|
1807 |
|
* MANIFEST.in: Add the Extensions |
1808 |
|
|
1809 |
|
* NEWS: Update for 1.0rc1 |
1810 |
|
|
1811 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
1812 |
|
|
1813 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild |
1814 |
|
cards for the dialog so that shapefiles ending in all uppercase |
1815 |
|
SHP are listed too |
1816 |
|
|
1817 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
1818 |
|
|
1819 |
|
* Thuban/version.py (longversion): Update to 1.0rc1 |
1820 |
|
|
1821 |
|
* setup.py (setup call): Update version to 1.0rc1. Use the |
1822 |
|
[email protected] email address as author email instead of my |
1823 |
|
personal one. |
1824 |
|
|
1825 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
1826 |
|
|
1827 |
|
* po/de.po: Update german translation. |
1828 |
|
|
1829 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
1830 |
|
|
1831 |
|
Unify the filenames stored in .thuban files so that the .thuban |
1832 |
|
files are more platform independend |
1833 |
|
|
1834 |
|
* Thuban/Model/save.py (unify_filename): New. Unify filenames so |
1835 |
|
that they can be used on both windows and unix |
1836 |
|
(SessionSaver.prepare_filename): New. Handle all filename |
1837 |
|
transformations for filenames stored in the thuban file |
1838 |
|
(SessionSaver.write_data_containers, SessionSaver.write_layer): |
1839 |
|
Use prepare_filename |
1840 |
|
|
1841 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer) |
1842 |
|
(SaveSessionTest.testLayerProjection) |
1843 |
|
(SaveSessionTest.testRasterLayer) |
1844 |
|
(SaveSessionTest.testClassifiedLayer) |
1845 |
|
(SaveSessionTest.test_dbf_table) |
1846 |
|
(SaveSessionTest.test_joined_table): Filenames are always stored |
1847 |
|
with slashes on all currently supported platforms so adapt all |
1848 |
|
tests to this |
1849 |
|
|
1850 |
|
* test/test_load.py (LoadSessionTest.filenames): With the new |
1851 |
|
filename scheme the filenames in the tests should be |
1852 |
|
understandable on all currently supported platforms so we turn |
1853 |
|
this into an empty list because we don't have to normalize them |
1854 |
|
anymore |
1855 |
|
|
1856 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
1857 |
|
|
1858 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
1859 |
|
Add the ellipsoid to the projection since some Proj versions |
1860 |
|
complain if it's missing. |
1861 |
|
|
1862 |
|
2003-11-27 Bernhard Herzog <[email protected]> |
1863 |
|
|
1864 |
|
Corect some bounding box projection problems |
1865 |
|
|
1866 |
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
1867 |
|
version of ForwardBBox |
1868 |
|
(Projection._transform_bbox): New. common implementation of |
1869 |
|
ForwardBBox and InverseBBox |
1870 |
|
(Projection.ForwardBBox): Use _transform_bbox. |
1871 |
|
|
1872 |
|
* test/test_proj.py (TestProjection.test): Add test for |
1873 |
|
InverseBBox |
1874 |
|
|
1875 |
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
1876 |
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
1877 |
|
new InverseBBox method to determine the unprojected bounding box |
1878 |
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
1879 |
|
bbox. |
1880 |
|
|
1881 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
1882 |
|
Removed. |
1883 |
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
1884 |
|
better able to test whether bounding boxes are projected correctly |
1885 |
|
than test_point_layer_with_projection |
1886 |
|
|
1887 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use |
1888 |
|
InverseBBox to unproject bboxes |
1889 |
|
|
1890 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
1891 |
|
|
1892 |
|
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
1893 |
|
source code. |
1894 |
|
|
1895 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
1896 |
|
|
1897 |
|
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
1898 |
|
there for backwards compatibility and all code relying on that |
1899 |
|
should have been updated by now. |
1900 |
|
|
1901 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
1902 |
|
|
1903 |
|
* test/test_load.py (TestClassification.test): Add the missing |
1904 |
|
round trip test. |
1905 |
|
(TestClassification.file_contents): Update to the newest file |
1906 |
|
format |
1907 |
|
|
1908 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
1909 |
|
|
1910 |
|
Add very experimental (and possibly dangerous) extension to draw |
1911 |
|
polygons: |
1912 |
|
|
1913 |
|
* Extensions/drawshape/README: New. Brief installation |
1914 |
|
instructions |
1915 |
|
|
1916 |
|
* Extensions/drawshape/drawshape.py: New. Implementation of the |
1917 |
|
drawshape extensions |
1918 |
|
|
1919 |
|
* Extensions/drawshape/patch.diff: Patch to apply before the |
1920 |
|
extension can be used. |
1921 |
|
|
1922 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
1923 |
|
|
1924 |
|
* Thuban/Model/data.py (ShapefileStore._open_shapefile) |
1925 |
|
(ShapefileStore.__init__): Factor opening the shapefile into a |
1926 |
|
separate method (the new _open_shapefile). This makes the code a |
1927 |
|
bit more readable but the real reason is that it makes some evil |
1928 |
|
hacks easier. :-) |
1929 |
|
|
1930 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
1931 |
|
|
1932 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): If no |
1933 |
|
converter is specified for an attribute assume it's a string |
1934 |
|
containing only Latin1 characters. Update doc-string accordingly. |
1935 |
|
This change should fix many places where unicode objects might |
1936 |
|
accidentally enter Thuban. |
1937 |
|
|
1938 |
|
* test/test_load.py (TestNonAsciiColumnName): New test to check |
1939 |
|
what happens with column names in DBF files that contain non-ascii |
1940 |
|
characters |
1941 |
|
|
1942 |
|
2003-11-21 Bernhard Herzog <[email protected]> |
1943 |
|
|
1944 |
|
Enable the experimental attribute editing again and introduce a |
1945 |
|
command line switch to actually activate it |
1946 |
|
|
1947 |
|
* Thuban/UI/main.py (options): New. Container for options set on |
1948 |
|
the commmand line |
1949 |
|
(main): Add the --enable-attribute-editing flag. |
1950 |
|
|
1951 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute |
1952 |
|
editing is enabled use the grid ctrl which allows editing of the |
1953 |
|
values |
1954 |
|
|
1955 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.write_record): |
1956 |
|
New. Just delegate this to the underlying table. |
1957 |
|
|
1958 |
|
2003-11-20 Bernhard Herzog <[email protected]> |
1959 |
|
|
1960 |
|
* test/test_proj.py (ProjFileReadTests.test_read_unreadable_file): |
1961 |
|
Skip this test if run under non-posix systems since it only works |
1962 |
|
there |
1963 |
|
|
1964 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
1965 |
|
|
1966 |
|
* Thuban/Model/resource.py: Rework the way gdal support is |
1967 |
|
determined so that we can give a reason in the about why gdal is |
1968 |
|
not supported. |
1969 |
|
(gdal_support_status): New. Variable holding a string with the |
1970 |
|
reason for no gdal support |
1971 |
|
|
1972 |
|
* Thuban/UI/about.py (About.__init__): Add the reason why gdal is |
1973 |
|
not supported to the message |
1974 |
|
|
1975 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
1976 |
|
|
1977 |
|
Remove the old table interface and its test cases |
1978 |
|
|
1979 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Removed. |
1980 |
|
(DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin |
1981 |
|
anymore |
1982 |
|
|
1983 |
|
* Thuban/Model/transientdb.py (TransientTableBase) |
1984 |
|
(AutoTransientTable): Do not derive from OldTableInterfaceMixin |
1985 |
|
anymore |
1986 |
|
|
1987 |
|
* test/test_table.py: Removed since the old interface it tests is |
1988 |
|
gone. |
1989 |
|
|
1990 |
|
* test/runtests.py (main): The old table interface is gone and |
1991 |
|
with it the deprecation warnings so remove the code that turns |
1992 |
|
these warnings into errors |
1993 |
|
|
1994 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
1995 |
|
|
1996 |
|
* test/test_table.py: Revert to revision 1.5 again. Changing the |
1997 |
|
tests to use the new table interface is completely wrong since the |
1998 |
|
whole purpose of the tests in this module is to test the old |
1999 |
|
interface. |
2000 |
|
|
2001 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
2002 |
|
|
2003 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
2004 |
|
New. Test whether the connection matches a set of connection |
2005 |
|
parameters |
2006 |
|
|
2007 |
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
2008 |
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
2009 |
|
for existing connections with the same parameters and break out of |
2010 |
|
the loop correctly. |
2011 |
|
|
2012 |
|
* test/test_postgis_db.py (TestBriefDescription) |
2013 |
|
(TestPostGISSimple.test_brief_description): Rename |
2014 |
|
TestBriefDescription to TestPostGISSimple and the test method to |
2015 |
|
test_brief_description so that we can add more test methods. |
2016 |
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
2017 |
|
MatchesParameters method |
2018 |
|
|
2019 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
2020 |
|
|
2021 |
|
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
2022 |
|
_was_destroyed, to indicate whether an publisher instance has |
2023 |
|
already been destroyed. |
2024 |
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
2025 |
|
been destroyed yet. |
2026 |
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
2027 |
|
|
2028 |
|
* test/test_connector.py |
2029 |
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
2030 |
|
calling Unsubscribe after Destroy doesn't raise an exception |
2031 |
|
|
2032 |
|
2003-11-14 Bernhard Herzog <[email protected]> |
2033 |
|
|
2034 |
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
2035 |
|
typo in doc-string |
2036 |
|
|
2037 |
|
2003-11-13 Bernhard Herzog <[email protected]> |
2038 |
|
|
2039 |
|
Quote table and column names properly for postgis. |
2040 |
|
|
2041 |
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
2042 |
|
quote an identifier for use in an sql statement |
2043 |
|
(PostGISColumn.__init__): Add the quoted_name attribute |
2044 |
|
(PostGISTable.__init__): New instance variable quoted_tablename |
2045 |
|
(PostGISTable._fetch_table_information): Use the quoted table |
2046 |
|
name. New isntance variable quoted_geo_col with a quoted version |
2047 |
|
of geometry_column |
2048 |
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
2049 |
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
2050 |
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
2051 |
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
2052 |
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
2053 |
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
2054 |
|
Use quoted table and column names |
2055 |
|
|
2056 |
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
2057 |
|
(TestPostGISIgnoredColumns): Rename the class to |
2058 |
|
TestPostGISSpecialCases because that better describes the new |
2059 |
|
cases |
2060 |
|
(TestPostGISSpecialCases.test_unsupported_types) |
2061 |
|
(TestPostGISSpecialCases.test): Rename the method to |
2062 |
|
test_unsupported_types because we need a more descriptive name now |
2063 |
|
that there are more methods |
2064 |
|
(TestPostGISSpecialCases.test_table_name_quoting) |
2065 |
|
(TestPostGISSpecialCases.test_column_name_quoting) |
2066 |
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
2067 |
|
cases to test quoting of table and column names in PostGISTable |
2068 |
|
and PostGISShapeStore |
2069 |
|
|
2070 |
|
* test/postgissupport.py |
2071 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
2072 |
|
AddGeometryColumn desn't support table or column names with sapces |
2073 |
|
or double quotes |
2074 |
|
|
2075 |
|
2003-11-12 Jan-Oliver Wagner <[email protected]> |
2076 |
|
|
2077 |
|
* Extensions/wms/__init__.py: New: Init to make this |
2078 |
|
directory a package. |
2079 |
|
|
2080 |
|
* Extensions/wms/wms.py: New: Provide layers via OGC WMS. |
2081 |
|
|
2082 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
2083 |
|
|
2084 |
|
* Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New. |
2085 |
|
Constant for the file woth deprecated epsg projections |
2086 |
|
(get_system_proj_file): Update doc-string |
2087 |
|
|
2088 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space |
2089 |
|
above the EPS widgets, introduce a check box for the deprecated |
2090 |
|
eps projections and a label for the epsg widgets |
2091 |
|
(ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections |
2092 |
|
too |
2093 |
|
|
2094 |
2003-11-11 Bernhard Herzog <[email protected]> |
2003-11-11 Bernhard Herzog <[email protected]> |
2095 |
|
|
2096 |
Avoid warnings when run under Python 2.3 |
Avoid warnings when run under Python 2.3 |
5575 |
Fix problem of hidden properties dialog under windows after double |
Fix problem of hidden properties dialog under windows after double |
5576 |
click on layer tree: |
click on layer tree: |
5577 |
The tree control always gets an Expanded / Collapsed event after |
The tree control always gets an Expanded / Collapsed event after |
5578 |
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. |
5579 |
|
We add a second ItemActivated event to the queue, which simply |
5580 |
raises the already displayed window. |
raises the already displayed window. |
5581 |
|
|
5582 |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |