1 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Make sure the region used to determine which shapes are visible |
4 |
|
actually matches the region on the printed page. If this isn't |
5 |
|
done properly some shapes might not be printed. |
6 |
|
Fixes RT #2692 |
7 |
|
|
8 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
9 |
|
renderer has to be at the same position as the mapregion |
10 |
|
|
11 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
12 |
|
has to be moved by (self.shiftx, self.shifty) too. |
13 |
|
|
14 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
17 |
|
generated python code which leads to exception in the __del__ |
18 |
|
method when the constructor fails. See the comments in the code |
19 |
|
for more details. |
20 |
|
|
21 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
22 |
|
with SWIG. |
23 |
|
|
24 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
25 |
|
|
26 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
27 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
28 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
29 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
30 |
|
is destroyed in tearDown, so there's no need to do it in a test |
31 |
|
case. |
32 |
|
|
33 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
34 |
|
debug print |
35 |
|
|
36 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
37 |
|
|
38 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
39 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
40 |
|
classes because in Python 2.2 they're still old-style classes. |
41 |
|
|
42 |
|
2004-12-13 Frank Koormann <[email protected]> |
43 |
|
|
44 |
|
Alternative Path feature: When loading a (moved) session where |
45 |
|
shapefiles cannot be found, ask the user. Use the specified path |
46 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
47 |
|
in such cases. |
48 |
|
|
49 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
50 |
|
in load_session() |
51 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
52 |
|
|
53 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
54 |
|
Added "alt_path" to self.path |
55 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
56 |
|
callback similar to db_connection_callback. |
57 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
58 |
|
shapefile_callback. In addition to raising the dialog the control of |
59 |
|
self.path('alt_path') is implemented here. |
60 |
|
|
61 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
62 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
63 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
64 |
|
formerly used in start_fileshapesource()/start_layer(). |
65 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
66 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
67 |
|
(load_session): Added shapefile_callback. |
68 |
|
|
69 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
70 |
|
feature (search / check). |
71 |
|
|
72 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
73 |
|
|
74 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
75 |
|
|
76 |
|
svgexport 0.9.2: Point size supports for maps. |
77 |
|
|
78 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
79 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
80 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
81 |
|
Added draw_func call with size when dealing with a point layer. |
82 |
|
|
83 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
84 |
|
|
85 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
86 |
|
|
87 |
|
Made sure that newlines are inserted in the svg path d attributes |
88 |
|
to raise the chance that the line length will be below 255 characters, |
89 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
90 |
|
|
91 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
92 |
|
Adding \n before L's and changed whitespace handling. |
93 |
|
|
94 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
95 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
96 |
|
|
97 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
98 |
|
|
99 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
100 |
|
|
101 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
102 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
103 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
104 |
|
All only to test DrawSpline. |
105 |
|
|
106 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
107 |
|
New implementation now really using the strange algorithm of |
108 |
|
xfig 3.1's approximated splines and its conversion to postscript |
109 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
110 |
|
to cubic beziers. |
111 |
|
(TestWithDC): Typo in comment fixed. |
112 |
|
|
113 |
|
2004-12-09 Martin Schulze <[email protected]> |
114 |
|
|
115 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
116 |
|
|
117 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
118 |
|
|
119 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
120 |
|
support for get_srs_discrepancies() since there are no |
121 |
|
discrepancies anymore (was a thinko) |
122 |
|
|
123 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
124 |
|
format priority now that more formats are supported globally by |
125 |
|
the render engine. |
126 |
|
|
127 |
|
2004-12-08 Silke Reimer <[email protected]> |
128 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
129 |
|
because it is not available in all versions of ogr |
130 |
|
|
131 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
132 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
133 |
|
global tests until a real one is commited. |
134 |
|
|
135 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
136 |
|
|
137 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
138 |
|
ogr. It is planned to add other vector formats. |
139 |
|
|
140 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
141 |
|
|
142 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
143 |
|
|
144 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
145 |
|
part of a (non-)fix to renable that the tests are always |
146 |
|
executed. |
147 |
|
|
148 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
149 |
|
|
150 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
151 |
|
Added test_drawbezier() to test DrawSpline(). |
152 |
|
|
153 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
154 |
|
Really implemented bezier drawing. |
155 |
|
|
156 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
157 |
|
to 0.9.1 because now the legend examples lines styles |
158 |
|
will be drawing with beziers. |
159 |
|
|
160 |
|
2004-12-05 Martin Schulze <[email protected]> |
161 |
|
|
162 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
163 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
164 |
|
|
165 |
|
2004-11-30 Martin Schulze <[email protected]> |
166 |
|
|
167 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
168 |
|
Improved the test for the internal compare method |
169 |
|
|
170 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
171 |
|
|
172 |
|
* Thuban/UI/about.py (About.__init__): Added |
173 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
174 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
175 |
|
to Developer. |
176 |
|
|
177 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
178 |
|
|
179 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
180 |
|
Removed Jan from author list as he did not change enough significant |
181 |
|
lines yet. |
182 |
|
|
183 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
184 |
|
of the Extension. |
185 |
|
|
186 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
187 |
|
|
188 |
|
* po/hu.po: New. Hungarian translation. Contributed |
189 |
|
by Norbert Solymosi. |
190 |
|
|
191 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
192 |
|
|
193 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
194 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
195 |
|
debug prints |
196 |
|
|
197 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
198 |
|
|
199 |
|
Fix broken tests for svg extension and added svg legend |
200 |
|
to Experimental menu. |
201 |
|
|
202 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
203 |
|
the test run correctly even if the extension is a package. |
204 |
|
Also removed the "import Thuban" which makes no sense. |
205 |
|
|
206 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
207 |
|
test module also be executed from the global test routine. |
208 |
|
This is done by looking for the absense of the DISPLAY variable. |
209 |
|
|
210 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
211 |
|
to Experimental menu since this module has yet not reached a stable |
212 |
|
status (ie. 1.0). |
213 |
|
|
214 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
215 |
|
|
216 |
|
* Extensions/svgexport/svgmapwriter.py: |
217 |
|
Added verbose variable and some logging depending on it. |
218 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
219 |
|
because counting i is not necessary. |
220 |
|
(class Pen, class Brush): Added simple __str__ methods. |
221 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
222 |
|
not exported to svg file) Note: holes still unhandled. |
223 |
|
|
224 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
225 |
|
Made a baseclass TestWithDC for test needed a DC. |
226 |
|
Added tests for bug #2698 (transparent polygons are not |
227 |
|
exported to svg file): |
228 |
|
Testobjectexport.test_transparent_polygon() |
229 |
|
|
230 |
|
* Thuban/Model/base.py (UnsetModified): |
231 |
|
Fixed some typos in docstring. |
232 |
|
|
233 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
234 |
|
Added hints on the used algorithm for handling holes. |
235 |
|
|
236 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
237 |
|
|
238 |
|
Some face lifting for the examples. |
239 |
|
|
240 |
|
* Examples/__init__.py: Make this directory a package. |
241 |
|
|
242 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
243 |
|
|
244 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
245 |
|
menu to Examples menu. |
246 |
|
|
247 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
248 |
|
minor changes. |
249 |
|
|
250 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
251 |
|
|
252 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
253 |
|
|
254 |
|
Changed way of extension registry for wms and added extension |
255 |
|
registry for umn_mapserver extension. |
256 |
|
|
257 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
258 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
259 |
|
|
260 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
261 |
|
|
262 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
263 |
|
importing of the actual umn mapserver management modules. |
264 |
|
Included a test for the required Python MapScript. |
265 |
|
|
266 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
267 |
|
|
268 |
|
Changed way of extension registry for importAPR, bboxdump |
269 |
|
and added extension registry for svgexport.extension registry for |
270 |
|
svgexport. |
271 |
|
|
272 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
273 |
|
of the actual importAPR module. |
274 |
|
|
275 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
276 |
|
__init__.py). |
277 |
|
|
278 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
279 |
|
����of the actual bboxdump module. |
280 |
|
|
281 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
282 |
|
����__init__.py). |
283 |
|
|
284 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
285 |
|
of the svgsaver module. |
286 |
|
|
287 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
288 |
|
to Experimental menu since this module has yet not reached a stable |
289 |
|
status (ie. 1.0). |
290 |
|
|
291 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
292 |
|
|
293 |
|
Now the hit test considers the size of point symbols. |
294 |
|
|
295 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
296 |
|
'size' defaulting to the previously fixed value 5. |
297 |
|
Extended doc-string. |
298 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
299 |
|
for symbols. |
300 |
|
Now the size of the largest point symbol is determined to find out |
301 |
|
about whether the point has been hit. |
302 |
|
This fixes the problem that only clicks inside a fixed distance of |
303 |
|
5 where found. |
304 |
|
|
305 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
306 |
|
|
307 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
308 |
|
selected symbols. |
309 |
|
|
310 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
311 |
|
Added consideration of the specific size of point symbols. |
312 |
|
The property for each point symbol is retrieved and the size applied |
313 |
|
for the rendering method. |
314 |
|
Added doc-string. |
315 |
|
|
316 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
317 |
|
|
318 |
|
Changed way of Extension Registry for gns2shp and profiling. |
319 |
|
|
320 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
321 |
|
__init__.py). |
322 |
|
|
323 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
324 |
|
of the actual gns2shp module. |
325 |
|
|
326 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
327 |
|
__init__.py). |
328 |
|
|
329 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
330 |
|
of the actual profiling module. |
331 |
|
|
332 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
333 |
|
|
334 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
335 |
|
|
336 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
337 |
|
|
338 |
|
Further elements for sizable point objects now |
339 |
|
making this feature usable though not yet complete. |
340 |
|
|
341 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
342 |
|
attribute 'size' for cldata when the shape layer is of point type. |
343 |
|
This also now make the test_load.py tests happy. |
344 |
|
|
345 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
346 |
|
gradient. |
347 |
|
|
348 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
349 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
350 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
351 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
352 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
353 |
|
for the size in case the corresponding layer is of point type. |
354 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
355 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
356 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
357 |
|
and refresh preview. |
358 |
|
|
359 |
|
|
360 |
|
|
361 |
|
2004-10-04 Martin Schulze <[email protected]> |
362 |
|
|
363 |
|
* Extensions/wms/test/test_parser.py |
364 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
365 |
|
self-test for compareLists() |
366 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
367 |
|
self-test for compareDicts() |
368 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
369 |
|
to verify the test routine fails with non-equal arguments |
370 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
371 |
|
to verify the test routine fails with non-equal arguments |
372 |
|
|
373 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
374 |
|
|
375 |
|
First elements for sizeable point objects. |
376 |
|
|
377 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
378 |
|
|
379 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
380 |
|
|
381 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
382 |
|
of a corresponding argument is given. |
383 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
384 |
|
|
385 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
386 |
|
(ClassGroupProperties.__init__): Set default size. |
387 |
|
(ClassGroupProperties.SetProperties): Set the size. |
388 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
389 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
390 |
|
(ClassGroupProperties__eq__): Compare also size. |
391 |
|
(ClassGroupProperties__repr__): Print also size. |
392 |
|
|
393 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
394 |
|
the size attribute. |
395 |
|
|
396 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
397 |
|
Also, now there is a return value that indicates whether the drawing |
398 |
|
size exceeded the given rect extent and if so the new extent. |
399 |
|
Finally, point objects are drawn depending on the size. If either |
400 |
|
the width or height is exceeded, the new extent is returned. |
401 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
402 |
|
evaluate the return value and, if not None, adapt the grid widget size |
403 |
|
accordingly and redraw again. |
404 |
|
|
405 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
406 |
|
If the draw function is for points, call it with the size as additional |
407 |
|
parameter. |
408 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
409 |
|
the size. Compute the radius using the size. |
410 |
|
|
411 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
412 |
|
that Thuban supports size, apply this correctly. |
413 |
|
|
414 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
415 |
|
|
416 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
417 |
|
|
418 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
419 |
|
Map chapter. |
420 |
|
|
421 |
|
2004-10-01 Martin Schulze <[email protected]> |
422 |
|
|
423 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
424 |
|
argument for general use through properties-dialog selector |
425 |
|
|
426 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
427 |
|
both provided layer classes/types. |
428 |
|
|
429 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
430 |
|
map can be retrieved through the parent which is passed to the |
431 |
|
constructor anyway and doesn't require an argument of its own, |
432 |
|
required for the unification of arguments for general use through |
433 |
|
properties-dialog selector. |
434 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
435 |
|
whether a dialog is already opened (and raising it to the users |
436 |
|
attention) and creating a new dialog into a function of its own |
437 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
438 |
|
method |
439 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
440 |
|
global registration of properties dialog classes (which are indeed |
441 |
|
layer-specific). |
442 |
|
|
443 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
444 |
|
for general use through properties-dialog selector, the map can be |
445 |
|
retrieved through the parent and doesn't require an argument of |
446 |
|
its own. |
447 |
|
|
448 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
449 |
|
the provided WMS layer |
450 |
|
|
451 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
452 |
|
|
453 |
|
New feature: Registry for Extensions. |
454 |
|
|
455 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
456 |
|
Extensions. |
457 |
|
|
458 |
|
* Thuban/UI/about.py (About.__init__): Added description |
459 |
|
of the registered extensions with all of the information. |
460 |
|
|
461 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
462 |
|
|
463 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
464 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
465 |
|
Extensions/wms/wms.py: Added registration of the extension. |
466 |
|
|
467 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
468 |
|
|
469 |
|
More fixes to svgexport to make used ids unique and |
470 |
|
conforming to XML's Name production. |
471 |
|
|
472 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
473 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
474 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
475 |
|
Added Bernhard R. as author. |
476 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
477 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
478 |
|
Also transform second id part with "%d" and catch the TypeError |
479 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
480 |
|
Corrected typo inBernhard's author line. |
481 |
|
(SetBaseID): Return the transformed base id. Transform characters |
482 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
483 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
484 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
485 |
|
for used_baseids checks. |
486 |
|
|
487 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
488 |
|
|
489 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
490 |
|
Remove a debug print and some tab characters. |
491 |
|
|
492 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
493 |
|
|
494 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
495 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
496 |
|
the interaction of the three functions and the XML id contrains. |
497 |
|
|
498 |
|
|
499 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
500 |
|
|
501 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
502 |
|
Module. |
503 |
|
|
504 |
|
* Doc/README: Added info on ThubanModel.xmi. |
505 |
|
|
506 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
507 |
|
|
508 |
|
* Doc/README: New. Some info about how to generate technical |
509 |
|
documentation from the source code. |
510 |
|
This text was send to the Thuban developer mailing list on |
511 |
|
September 21st 2004 by Bernhard Reiter. |
512 |
|
|
513 |
|
2004-09-21 Bernhard Reiter <[email protected]> |
514 |
|
|
515 |
|
Improved the svgexport to only use unique ids. Will issues |
516 |
|
an error message dialoge when two layer names are the same. |
517 |
|
ShapeIDs are now added with a dash within the svg ids. |
518 |
|
|
519 |
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
520 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
521 |
|
(TestSVGRenderer): New test class with test_make_in() and |
522 |
|
test_check_for_layer_name_clash() |
523 |
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
524 |
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
525 |
|
satisfying test_check_for_layer_name_clash() |
526 |
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
527 |
|
test_make_in(). |
528 |
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
529 |
|
and wxICON_HAND. |
530 |
|
(write_to_svg): Put dc and rendering in a try statement and on |
531 |
|
catching SVGmapWriterError notify the user and delete the target file. |
532 |
|
|
533 |
|
2004-09-20 Bernhard Reiter <[email protected]> |
534 |
|
|
535 |
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
536 |
|
|
537 |
|
2004-09-03 Jan Sch�ngel <[email protected]> |
538 |
|
|
539 |
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
540 |
|
small bug with the line color. Now the line color will now only set |
541 |
|
if it is set in Thuban an not Transparent. |
542 |
|
|
543 |
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
544 |
|
deleting the layers from mapfile. Now all layers will delete backwards |
545 |
|
from the last. |
546 |
|
|
547 |
|
2004-08-20 Silke Reimer <[email protected]> |
548 |
|
|
549 |
|
* Thuban/Model/layer.py: |
550 |
|
Fixes bug in projection handling: Otherwise very large region might not |
551 |
|
have valid values in the layer's projection. |
552 |
|
|
553 |
|
2004-08-20 Silke Reimer <[email protected]> |
554 |
|
|
555 |
|
* Thuban/UI/about.py: |
556 |
|
small changes to be consistent with coding style. |
557 |
|
|
558 |
|
2004-08-13 Martin Schulze <[email protected]> |
559 |
|
|
560 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
561 |
|
Adjusted a comment |
562 |
|
|
563 |
|
2004-08-11 Silke Reimer <[email protected]> |
564 |
|
|
565 |
|
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
566 |
|
too many and too enhanced imports of locale |
567 |
|
|
568 |
|
2004-08-10 Silke Reimer <[email protected]> |
569 |
|
|
570 |
|
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
571 |
|
function unicodeToLocale() to convert special characters to users |
572 |
|
locale encoding |
573 |
|
|
574 |
|
2004-08-10 Jan-Oliver Wagner <[email protected]> |
575 |
|
|
576 |
|
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |
577 |
|
lower case letter' |
578 |
|
|
579 |
|
2004-08-09 Jan Sch�ngel <[email protected]> |
580 |
|
|
581 |
|
* ChangeLog: Rewrite the last ChangeLog entry to follow |
582 |
|
the standard way. |
583 |
|
|
584 |
|
* Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to |
585 |
|
the function where it is needed, because it don't works if it stands |
586 |
|
at the beginning. |
587 |
|
(MF_Layer.__init__): Removed the extra numclassed variable. Now |
588 |
|
numclasses from the mapscript will be used. |
589 |
|
(MF_Layer.get_index): New. Return the index of the layer in mapfile. |
590 |
|
(MF_Layer.set_classes): New. A Classlist will be set to the layer. |
591 |
|
(MF_Layer.set_metadata): New. A Metadata mapscript object will set. |
592 |
|
(MF_Layer.remove_allclasses): New. All class of the layer will remove. |
593 |
|
(MF_Map.create_new_layer): New. A new Layer is created and associated |
594 |
|
with the mapscript object. |
595 |
|
(MF_Map.set_layerorder): New. The Layer order like in thuban is set in |
596 |
|
the mapscript. |
597 |
|
(MF_Map.add_thubanlayer): Now a new layerobj is created if no one is |
598 |
|
linked to the layer in thuban, else the layerobject linked to the |
599 |
|
thubanlayer will be used. |
600 |
|
AnnotationLayer will now store the filename of the shapefile. |
601 |
|
(MF_Map.remove_layer): If a layer is removed the associated object |
602 |
|
must be set new. |
603 |
|
|
604 |
|
* Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all |
605 |
|
layers which are exists in thuban to the mapobj. All removed Layers |
606 |
|
will be removed from the mapobj. |
607 |
|
Added comments to all functions. |
608 |
|
(thuban_to_map): No layer will be removed here. |
609 |
|
|
610 |
|
* Extensions/umn_mapserver/mf_handle.py |
611 |
|
(_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now |
612 |
|
Layersettings for the mapserver kann be edited. |
613 |
|
|
614 |
|
* Extensions/umn_mapserver/mf_import.py: Now all layers which are |
615 |
|
imported, will be linked with the associated MF_Layer. |
616 |
|
(import_mapfile): All layers, which are not selected, will be removed. |
617 |
|
Disable the "import layer from mapfile" menu option. |
618 |
|
|
619 |
|
* Extensions/umn_mapserver/sample/iceland.map: Set the status of the |
620 |
|
Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the |
621 |
|
layer on permanently. |
622 |
|
|
623 |
|
2004-08-03 Jan Sch�ngel <[email protected]> |
624 |
|
|
625 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata): |
626 |
|
New. This function removes all metadata |
627 |
|
(MF_Layer.set_group): New. Set the group setting. |
628 |
|
(MF_Layer.get_group): New. Get the group setting. |
629 |
|
(MF_Map): Removed the extra numlayers variable, used the mapscript |
630 |
|
parameter instead. |
631 |
|
(MF_Map.get_numlayers): New. This get numlayers. |
632 |
|
(MF_Map.remove_all_layers): New. Removes all layers from the mapobj. |
633 |
|
(MF_Map.add_thubanlayer): Replaced the exception handling by a check |
634 |
|
if the object is an instance. Also added the annotation layer here to |
635 |
|
export, but only the layer is created in the mapfile. |
636 |
|
|
637 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed |
638 |
|
the check if a mapobj exist, because its not needed anymore. The |
639 |
|
export function is only available if a mapobj exist. |
640 |
|
Use the new function to remove all layers. |
641 |
|
|
642 |
|
* Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group |
643 |
|
option and the metadata button. The layer dialog is temporary disabled. |
644 |
|
(Metadata_CustomDataTable): Added some functions to show the grid |
645 |
|
correct. |
646 |
|
|
647 |
|
* Extensions/umn_mapserver/mf_import.py: Moved the code for showing |
648 |
|
the number of layer from import_mapfile to this function. |
649 |
|
(AnnotationLayer): New. This Class shows the Annotation layer in |
650 |
|
thuban. The layer don't do anything. It's only to show the layer |
651 |
|
and to save the layer order. |
652 |
|
(add_annotationlayer): New. Import an annotation layer to thuban. |
653 |
|
(select_layer2import): New. Import only layers to thuban and not |
654 |
|
the other settings like projection or scalebar. |
655 |
|
(create_new_mapfile): Moved the _has_umn_mapobj function and the |
656 |
|
create_new_mapfile functions from mf_handle.py to mf_import.py. |
657 |
|
|
658 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the group |
659 |
|
parameter to the roads and cultural layers. Also added a new |
660 |
|
Annotation Layer for the cultural points. |
661 |
|
|
662 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added the select |
663 |
|
option for the annotation layer. |
664 |
|
|
665 |
|
* Extensions/umn_mapserver/sample/index.html: Added the start |
666 |
|
parameter for the annotation layer. |
667 |
|
|
668 |
|
2004-08-01 Jan-Oliver Wagner <[email protected]> |
669 |
|
|
670 |
|
* Doc/manual/thuban-manual-de.xml (Chapter Session Management): |
671 |
|
translation completed. |
672 |
|
|
673 |
|
* Doc/manual/thuban-manual.xml (Chapter Session Management): |
674 |
|
Fixed unprecise description for Save Session. |
675 |
|
|
676 |
|
2004-07-31 Jan-Oliver Wagner <[email protected]> |
677 |
|
|
678 |
|
Started translation of Users Manual into german. |
679 |
|
|
680 |
|
* Doc/manual/thuban-manual-de.xml: New. German Users Manual. |
681 |
|
|
682 |
|
* Doc/manual/Makefile: Added build instructions for german |
683 |
|
users manual. |
684 |
|
|
685 |
|
* Doc/manual/thuban-manual.xml: Minor corrections in Introduction. |
686 |
|
|
687 |
|
2004-07-28 Jan Sch�ngel <[email protected]> |
688 |
|
|
689 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class |
690 |
|
functions. Now all metadata will handle by the function and its not |
691 |
|
needed to initialize it from outside. Therefor the associated mapobj |
692 |
|
will be stored in the Metadata Object. So we can use the special |
693 |
|
functions from the associated mapobj to get the Metadata. |
694 |
|
Therefor all initialization code for the metadata is removed from the |
695 |
|
other classes. |
696 |
|
(MF_Layer): Added a function to get the metadata object. |
697 |
|
(MF_Map): Added a function to set the mappath, the path where |
698 |
|
the mapfile ist stored. |
699 |
|
|
700 |
|
* Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code |
701 |
|
to set the extent in the mapfile. Now the code is set by the displayed |
702 |
|
data in the Thuban-view. |
703 |
|
(export_mapfile): The shapepath is now set empty, until relative |
704 |
|
pathnames are supported. |
705 |
|
|
706 |
|
* Extension/umn_mapserver/mf_handle.py: Added a dialog to handle |
707 |
|
metadata. Yet only mapfile metadata are supported. Layer and class |
708 |
|
supported are not implemented. |
709 |
|
Added a dialog to handle layer informations. The dialog only shows the |
710 |
|
selected layer at the moment. |
711 |
|
|
712 |
|
* Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the |
713 |
|
code for setting the extent in thuban. Now the extent is set to the |
714 |
|
given extent from the mapfile. |
715 |
|
Fixed a logical mistake. Now the extent is set when realy a layer is |
716 |
|
loaded, and not if one is selected to load. |
717 |
|
|
718 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and |
719 |
|
move the shown map in the browser. |
720 |
|
|
721 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added a new metadata |
722 |
|
line to the mapobj and added metadata to the political layer. |
723 |
|
|
724 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Changed the test |
725 |
|
for Metadata. |
726 |
|
|
727 |
|
2004-07-26 Martin Schulze <[email protected]> |
728 |
|
|
729 |
|
* Thuban/Lib/classmapper.py (ClassMapper.has): Added the new |
730 |
|
ClassMapper |
731 |
|
|
732 |
|
* test/test_classmapper.py (TestMapping.test_mapper): Added a Test |
733 |
|
case for the new ClassMapper |
734 |
|
|
735 |
|
|
736 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
737 |
|
|
738 |
|
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the |
739 |
|
visible extent of the map in projected coordinates |
740 |
|
|
741 |
|
* test/test_viewport.py (SimpleViewPortTest.test_default_size) |
742 |
|
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent() |
743 |
|
tests. |
744 |
|
(SimpleViewPortTest.test_visible_extent): New. The real test for |
745 |
|
VisibleExtent() |
746 |
|
|
747 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
748 |
|
|
749 |
|
* test/test_viewport.py: Use support.run_tests as the main |
750 |
|
function when running asa script. |
751 |
|
|
752 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
753 |
|
|
754 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
755 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
756 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
757 |
|
to "thuban_to_map" function. |
758 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
759 |
|
beginning of an generated mapfile. |
760 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
761 |
|
and not together in one variable. This is needed for the new |
762 |
|
write_creatorcomment function. |
763 |
|
|
764 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
765 |
|
import module "re". Also added Range and the ClassGroupRange import |
766 |
|
from Thuban. Both are needed for the new range expression import. |
767 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
768 |
|
style from a given mapfile expression. |
769 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
770 |
|
now stored in an extra variable and the clazz_name is set empty if no |
771 |
|
class name set in the mapfile. |
772 |
|
Changed the Error message for Range Expressions, becaus the new |
773 |
|
function create a error string which will be shown in the dialog. |
774 |
|
|
775 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
776 |
|
range expression import. |
777 |
|
|
778 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
779 |
|
|
780 |
|
* Extensions/umn_mapserver/README: Added hint that |
781 |
|
installation as root can be avoided. Removed all tabs. |
782 |
|
|
783 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
784 |
|
|
785 |
|
* test/test_viewport.py |
786 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
787 |
|
the projection of an empty map shown in a viewport doesn't lead to |
788 |
|
exceptions in the viewport's handler for the |
789 |
|
MAP_PROJECTION_CHANGED messages |
790 |
|
|
791 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
792 |
|
try to keep the same region visible when the map actually contains |
793 |
|
something |
794 |
|
|
795 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
796 |
|
|
797 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
798 |
|
mappath directly from the mapobj. Is needed because of the changes |
799 |
|
in mf_import.py. |
800 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
801 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
802 |
|
mapobj is empty there is no extent get from thuban an so no one can |
803 |
|
set to th mapobj. |
804 |
|
|
805 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
806 |
|
the discription. |
807 |
|
Split the funktion in to three smaller ones. The new functions are |
808 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
809 |
|
Removed the mapfilepath and filepath initialisation, because its know |
810 |
|
include in the new functions. |
811 |
|
Now nothing will be imported if cancel is pressed in the |
812 |
|
layer choice dialog. |
813 |
|
|
814 |
2004-07-14 Jan Sch�ngel <[email protected]> |
2004-07-14 Jan Sch�ngel <[email protected]> |
815 |
|
|
816 |
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |