1 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
2 |
|
|
3 |
|
svgexport 0.9.2: Point size supports for maps. |
4 |
|
|
5 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
6 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
7 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
8 |
|
Added draw_func call with size when dealing with a point layer. |
9 |
|
|
10 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
11 |
|
|
12 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
13 |
|
|
14 |
|
Made sure that newlines are inserted in the svg path d attributes |
15 |
|
to raise the chance that the line length will be below 255 characters, |
16 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
17 |
|
|
18 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
19 |
|
Adding \n before L's and changed whitespace handling. |
20 |
|
|
21 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
22 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
23 |
|
|
24 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
25 |
|
|
26 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
27 |
|
|
28 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
29 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
30 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
31 |
|
All only to test DrawSpline. |
32 |
|
|
33 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
34 |
|
New implementation now really using the strange algorithm of |
35 |
|
xfig 3.1's approximated splines and its conversion to postscript |
36 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
37 |
|
to cubic beziers. |
38 |
|
(TestWithDC): Typo in comment fixed. |
39 |
|
|
40 |
|
2004-12-09 Martin Schulze <[email protected]> |
41 |
|
|
42 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
43 |
|
|
44 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
45 |
|
|
46 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
47 |
|
support for get_srs_discrepancies() since there are no |
48 |
|
discrepancies anymore (was a thinko) |
49 |
|
|
50 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
51 |
|
format priority now that more formats are supported globally by |
52 |
|
the render engine. |
53 |
|
|
54 |
|
2004-12-08 Silke Reimer <[email protected]> |
55 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
56 |
|
because it is not available in all versions of ogr |
57 |
|
|
58 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
59 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
60 |
|
global tests until a real one is commited. |
61 |
|
|
62 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
63 |
|
|
64 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
65 |
|
ogr. It is planned to add other vector formats. |
66 |
|
|
67 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
68 |
|
|
69 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
70 |
|
|
71 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
72 |
|
part of a (non-)fix to renable that the tests are always |
73 |
|
executed. |
74 |
|
|
75 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
76 |
|
|
77 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
78 |
|
Added test_drawbezier() to test DrawSpline(). |
79 |
|
|
80 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
81 |
|
Really implemented bezier drawing. |
82 |
|
|
83 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
84 |
|
to 0.9.1 because now the legend examples lines styles |
85 |
|
will be drawing with beziers. |
86 |
|
|
87 |
|
2004-12-05 Martin Schulze <[email protected]> |
88 |
|
|
89 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
90 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
91 |
|
|
92 |
|
2004-11-30 Martin Schulze <[email protected]> |
93 |
|
|
94 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
95 |
|
Improved the test for the internal compare method |
96 |
|
|
97 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
98 |
|
|
99 |
|
* Thuban/UI/about.py (About.__init__): Added |
100 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
101 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
102 |
|
to Developer. |
103 |
|
|
104 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
105 |
|
|
106 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
107 |
|
Removed Jan from author list as he did not change enough significant |
108 |
|
lines yet. |
109 |
|
|
110 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
111 |
|
of the Extension. |
112 |
|
|
113 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
114 |
|
|
115 |
|
* po/hu.po: New. Hungarian translation. Contributed |
116 |
|
by Norbert Solymosi. |
117 |
|
|
118 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
119 |
|
|
120 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
121 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
122 |
|
debug prints |
123 |
|
|
124 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
125 |
|
|
126 |
|
Fix broken tests for svg extension and added svg legend |
127 |
|
to Experimental menu. |
128 |
|
|
129 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
130 |
|
the test run correctly even if the extension is a package. |
131 |
|
Also removed the "import Thuban" which makes no sense. |
132 |
|
|
133 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
134 |
|
test module also be executed from the global test routine. |
135 |
|
This is done by looking for the absense of the DISPLAY variable. |
136 |
|
|
137 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
138 |
|
to Experimental menu since this module has yet not reached a stable |
139 |
|
status (ie. 1.0). |
140 |
|
|
141 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
142 |
|
|
143 |
|
* Extensions/svgexport/svgmapwriter.py: |
144 |
|
Added verbose variable and some logging depending on it. |
145 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
146 |
|
because counting i is not necessary. |
147 |
|
(class Pen, class Brush): Added simple __str__ methods. |
148 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
149 |
|
not exported to svg file) Note: holes still unhandled. |
150 |
|
|
151 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
152 |
|
Made a baseclass TestWithDC for test needed a DC. |
153 |
|
Added tests for bug #2698 (transparent polygons are not |
154 |
|
exported to svg file): |
155 |
|
Testobjectexport.test_transparent_polygon() |
156 |
|
|
157 |
|
* Thuban/Model/base.py (UnsetModified): |
158 |
|
Fixed some typos in docstring. |
159 |
|
|
160 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
161 |
|
Added hints on the used algorithm for handling holes. |
162 |
|
|
163 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
164 |
|
|
165 |
|
Some face lifting for the examples. |
166 |
|
|
167 |
|
* Examples/__init__.py: Make this directory a package. |
168 |
|
|
169 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
170 |
|
|
171 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
172 |
|
menu to Examples menu. |
173 |
|
|
174 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
175 |
|
minor changes. |
176 |
|
|
177 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
178 |
|
|
179 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
180 |
|
|
181 |
|
Changed way of extension registry for wms and added extension |
182 |
|
registry for umn_mapserver extension. |
183 |
|
|
184 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
185 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
186 |
|
|
187 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
188 |
|
|
189 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
190 |
|
importing of the actual umn mapserver management modules. |
191 |
|
Included a test for the required Python MapScript. |
192 |
|
|
193 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
194 |
|
|
195 |
|
Changed way of extension registry for importAPR, bboxdump |
196 |
|
and added extension registry for svgexport.extension registry for |
197 |
|
svgexport. |
198 |
|
|
199 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
200 |
|
of the actual importAPR module. |
201 |
|
|
202 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
203 |
|
__init__.py). |
204 |
|
|
205 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
206 |
|
����of the actual bboxdump module. |
207 |
|
|
208 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
209 |
|
����__init__.py). |
210 |
|
|
211 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
212 |
|
of the svgsaver module. |
213 |
|
|
214 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
215 |
|
to Experimental menu since this module has yet not reached a stable |
216 |
|
status (ie. 1.0). |
217 |
|
|
218 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
219 |
|
|
220 |
|
Now the hit test considers the size of point symbols. |
221 |
|
|
222 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
223 |
|
'size' defaulting to the previously fixed value 5. |
224 |
|
Extended doc-string. |
225 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
226 |
|
for symbols. |
227 |
|
Now the size of the largest point symbol is determined to find out |
228 |
|
about whether the point has been hit. |
229 |
|
This fixes the problem that only clicks inside a fixed distance of |
230 |
|
5 where found. |
231 |
|
|
232 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
233 |
|
|
234 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
235 |
|
selected symbols. |
236 |
|
|
237 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
238 |
|
Added consideration of the specific size of point symbols. |
239 |
|
The property for each point symbol is retrieved and the size applied |
240 |
|
for the rendering method. |
241 |
|
Added doc-string. |
242 |
|
|
243 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
244 |
|
|
245 |
|
Changed way of Extension Registry for gns2shp and profiling. |
246 |
|
|
247 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
248 |
|
__init__.py). |
249 |
|
|
250 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
251 |
|
of the actual gns2shp module. |
252 |
|
|
253 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
254 |
|
__init__.py). |
255 |
|
|
256 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
257 |
|
of the actual profiling module. |
258 |
|
|
259 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
260 |
|
|
261 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
262 |
|
|
263 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
264 |
|
|
265 |
|
Further elements for sizable point objects now |
266 |
|
making this feature usable though not yet complete. |
267 |
|
|
268 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
269 |
|
attribute 'size' for cldata when the shape layer is of point type. |
270 |
|
This also now make the test_load.py tests happy. |
271 |
|
|
272 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
273 |
|
gradient. |
274 |
|
|
275 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
276 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
277 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
278 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
279 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
280 |
|
for the size in case the corresponding layer is of point type. |
281 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
282 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
283 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
284 |
|
and refresh preview. |
285 |
|
|
286 |
|
|
287 |
|
|
288 |
|
2004-10-04 Martin Schulze <[email protected]> |
289 |
|
|
290 |
|
* Extensions/wms/test/test_parser.py |
291 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
292 |
|
self-test for compareLists() |
293 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
294 |
|
self-test for compareDicts() |
295 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
296 |
|
to verify the test routine fails with non-equal arguments |
297 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
298 |
|
to verify the test routine fails with non-equal arguments |
299 |
|
|
300 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
301 |
|
|
302 |
|
First elements for sizeable point objects. |
303 |
|
|
304 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
305 |
|
|
306 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
307 |
|
|
308 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
309 |
|
of a corresponding argument is given. |
310 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
311 |
|
|
312 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
313 |
|
(ClassGroupProperties.__init__): Set default size. |
314 |
|
(ClassGroupProperties.SetProperties): Set the size. |
315 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
316 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
317 |
|
(ClassGroupProperties__eq__): Compare also size. |
318 |
|
(ClassGroupProperties__repr__): Print also size. |
319 |
|
|
320 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
321 |
|
the size attribute. |
322 |
|
|
323 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
324 |
|
Also, now there is a return value that indicates whether the drawing |
325 |
|
size exceeded the given rect extent and if so the new extent. |
326 |
|
Finally, point objects are drawn depending on the size. If either |
327 |
|
the width or height is exceeded, the new extent is returned. |
328 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
329 |
|
evaluate the return value and, if not None, adapt the grid widget size |
330 |
|
accordingly and redraw again. |
331 |
|
|
332 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
333 |
|
If the draw function is for points, call it with the size as additional |
334 |
|
parameter. |
335 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
336 |
|
the size. Compute the radius using the size. |
337 |
|
|
338 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
339 |
|
that Thuban supports size, apply this correctly. |
340 |
|
|
341 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
342 |
|
|
343 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
344 |
|
|
345 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
346 |
|
Map chapter. |
347 |
|
|
348 |
|
2004-10-01 Martin Schulze <[email protected]> |
349 |
|
|
350 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
351 |
|
argument for general use through properties-dialog selector |
352 |
|
|
353 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
354 |
|
both provided layer classes/types. |
355 |
|
|
356 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
357 |
|
map can be retrieved through the parent which is passed to the |
358 |
|
constructor anyway and doesn't require an argument of its own, |
359 |
|
required for the unification of arguments for general use through |
360 |
|
properties-dialog selector. |
361 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
362 |
|
whether a dialog is already opened (and raising it to the users |
363 |
|
attention) and creating a new dialog into a function of its own |
364 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
365 |
|
method |
366 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
367 |
|
global registration of properties dialog classes (which are indeed |
368 |
|
layer-specific). |
369 |
|
|
370 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
371 |
|
for general use through properties-dialog selector, the map can be |
372 |
|
retrieved through the parent and doesn't require an argument of |
373 |
|
its own. |
374 |
|
|
375 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
376 |
|
the provided WMS layer |
377 |
|
|
378 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
379 |
|
|
380 |
|
New feature: Registry for Extensions. |
381 |
|
|
382 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
383 |
|
Extensions. |
384 |
|
|
385 |
|
* Thuban/UI/about.py (About.__init__): Added description |
386 |
|
of the registered extensions with all of the information. |
387 |
|
|
388 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
389 |
|
|
390 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
391 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
392 |
|
Extensions/wms/wms.py: Added registration of the extension. |
393 |
|
|
394 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
395 |
|
|
396 |
|
More fixes to svgexport to make used ids unique and |
397 |
|
conforming to XML's Name production. |
398 |
|
|
399 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
400 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
401 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
402 |
|
Added Bernhard R. as author. |
403 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
404 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
405 |
|
Also transform second id part with "%d" and catch the TypeError |
406 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
407 |
|
Corrected typo inBernhard's author line. |
408 |
|
(SetBaseID): Return the transformed base id. Transform characters |
409 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
410 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
411 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
412 |
|
for used_baseids checks. |
413 |
|
|
414 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
415 |
|
|
416 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
417 |
|
Remove a debug print and some tab characters. |
418 |
|
|
419 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
420 |
|
|
421 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
422 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
423 |
|
the interaction of the three functions and the XML id contrains. |
424 |
|
|
425 |
|
|
426 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
427 |
|
|
428 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
429 |
|
Module. |
430 |
|
|
431 |
|
* Doc/README: Added info on ThubanModel.xmi. |
432 |
|
|
433 |
2004-09-23 Jan-Oliver Wagner <[email protected]> |
2004-09-23 Jan-Oliver Wagner <[email protected]> |
434 |
|
|
435 |
* Doc/README: New. Some info about how to generate technical |
* Doc/README: New. Some info about how to generate technical |