1 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
2 |
|
|
3 |
|
* Extensions/svgexport/svgmapwriter.py: |
4 |
|
Added verbose variable and some logging depending on it. |
5 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
6 |
|
because counting i is not necessary. |
7 |
|
(class Pen, class Brush): Added simple __str__ methods. |
8 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
9 |
|
not exported to svg file) Note: holes still unhandled. |
10 |
|
|
11 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
12 |
|
Made a baseclass TestWithDC for test needed a DC. |
13 |
|
Added tests for bug #2698 (transparent polygons are not |
14 |
|
exported to svg file): |
15 |
|
Testobjectexport.test_transparent_polygon() |
16 |
|
|
17 |
|
* Thuban/Model/base.py (UnsetModified): |
18 |
|
Fixed some typos in docstring. |
19 |
|
|
20 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
21 |
|
Added hints on the used algorithm for handling holes. |
22 |
|
|
23 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
24 |
|
|
25 |
|
Some face lifting for the examples. |
26 |
|
|
27 |
|
* Examples/__init__.py: Make this directory a package. |
28 |
|
|
29 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
30 |
|
|
31 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
32 |
|
menu to Examples menu. |
33 |
|
|
34 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
35 |
|
minor changes. |
36 |
|
|
37 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
38 |
|
|
39 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
40 |
|
|
41 |
|
Changed way of extension registry for wms and added extension |
42 |
|
registry for umn_mapserver extension. |
43 |
|
|
44 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
45 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
46 |
|
|
47 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
48 |
|
|
49 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
50 |
|
importing of the actual umn mapserver management modules. |
51 |
|
Included a test for the required Python MapScript. |
52 |
|
|
53 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
54 |
|
|
55 |
|
Changed way of extension registry for importAPR, bboxdump |
56 |
|
and added extension registry for svgexport.extension registry for |
57 |
|
svgexport. |
58 |
|
|
59 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
60 |
|
of the actual importAPR module. |
61 |
|
|
62 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
63 |
|
__init__.py). |
64 |
|
|
65 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
66 |
|
����of the actual bboxdump module. |
67 |
|
|
68 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
69 |
|
����__init__.py). |
70 |
|
|
71 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
72 |
|
of the svgsaver module. |
73 |
|
|
74 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
75 |
|
to Experimental menu since this module has yet not reached a stable |
76 |
|
status (ie. 1.0). |
77 |
|
|
78 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
79 |
|
|
80 |
|
Now the hit test considers the size of point symbols. |
81 |
|
|
82 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
83 |
|
'size' defaulting to the previously fixed value 5. |
84 |
|
Extended doc-string. |
85 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
86 |
|
for symbols. |
87 |
|
Now the size of the largest point symbol is determined to find out |
88 |
|
about whether the point has been hit. |
89 |
|
This fixes the problem that only clicks inside a fixed distance of |
90 |
|
5 where found. |
91 |
|
|
92 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
93 |
|
|
94 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
95 |
|
selected symbols. |
96 |
|
|
97 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
98 |
|
Added consideration of the specific size of point symbols. |
99 |
|
The property for each point symbol is retrieved and the size applied |
100 |
|
for the rendering method. |
101 |
|
Added doc-string. |
102 |
|
|
103 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
104 |
|
|
105 |
|
Changed way of Extension Registry for gns2shp and profiling. |
106 |
|
|
107 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
108 |
|
__init__.py). |
109 |
|
|
110 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
111 |
|
of the actual gns2shp module. |
112 |
|
|
113 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
114 |
|
__init__.py). |
115 |
|
|
116 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
117 |
|
of the actual profiling module. |
118 |
|
|
119 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
120 |
|
|
121 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
122 |
|
|
123 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
124 |
|
|
125 |
|
Further elements for sizable point objects now |
126 |
|
making this feature usable though not yet complete. |
127 |
|
|
128 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
129 |
|
attribute 'size' for cldata when the shape layer is of point type. |
130 |
|
This also now make the test_load.py tests happy. |
131 |
|
|
132 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
133 |
|
gradient. |
134 |
|
|
135 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
136 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
137 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
138 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
139 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
140 |
|
for the size in case the corresponding layer is of point type. |
141 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
142 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
143 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
144 |
|
and refresh preview. |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
2004-10-04 Martin Schulze <[email protected]> |
149 |
|
|
150 |
|
* Extensions/wms/test/test_parser.py |
151 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
152 |
|
self-test for compareLists() |
153 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
154 |
|
self-test for compareDicts() |
155 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
156 |
|
to verify the test routine fails with non-equal arguments |
157 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
158 |
|
to verify the test routine fails with non-equal arguments |
159 |
|
|
160 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
161 |
|
|
162 |
|
First elements for sizeable point objects. |
163 |
|
|
164 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
165 |
|
|
166 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
167 |
|
|
168 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
169 |
|
of a corresponding argument is given. |
170 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
171 |
|
|
172 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
173 |
|
(ClassGroupProperties.__init__): Set default size. |
174 |
|
(ClassGroupProperties.SetProperties): Set the size. |
175 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
176 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
177 |
|
(ClassGroupProperties__eq__): Compare also size. |
178 |
|
(ClassGroupProperties__repr__): Print also size. |
179 |
|
|
180 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
181 |
|
the size attribute. |
182 |
|
|
183 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
184 |
|
Also, now there is a return value that indicates whether the drawing |
185 |
|
size exceeded the given rect extent and if so the new extent. |
186 |
|
Finally, point objects are drawn depending on the size. If either |
187 |
|
the width or height is exceeded, the new extent is returned. |
188 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
189 |
|
evaluate the return value and, if not None, adapt the grid widget size |
190 |
|
accordingly and redraw again. |
191 |
|
|
192 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
193 |
|
If the draw function is for points, call it with the size as additional |
194 |
|
parameter. |
195 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
196 |
|
the size. Compute the radius using the size. |
197 |
|
|
198 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
199 |
|
that Thuban supports size, apply this correctly. |
200 |
|
|
201 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
202 |
|
|
203 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
204 |
|
|
205 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
206 |
|
Map chapter. |
207 |
|
|
208 |
|
2004-10-01 Martin Schulze <[email protected]> |
209 |
|
|
210 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
211 |
|
argument for general use through properties-dialog selector |
212 |
|
|
213 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
214 |
|
both provided layer classes/types. |
215 |
|
|
216 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
217 |
|
map can be retrieved through the parent which is passed to the |
218 |
|
constructor anyway and doesn't require an argument of its own, |
219 |
|
required for the unification of arguments for general use through |
220 |
|
properties-dialog selector. |
221 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
222 |
|
whether a dialog is already opened (and raising it to the users |
223 |
|
attention) and creating a new dialog into a function of its own |
224 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
225 |
|
method |
226 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
227 |
|
global registration of properties dialog classes (which are indeed |
228 |
|
layer-specific). |
229 |
|
|
230 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
231 |
|
for general use through properties-dialog selector, the map can be |
232 |
|
retrieved through the parent and doesn't require an argument of |
233 |
|
its own. |
234 |
|
|
235 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
236 |
|
the provided WMS layer |
237 |
|
|
238 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
239 |
|
|
240 |
|
New feature: Registry for Extensions. |
241 |
|
|
242 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
243 |
|
Extensions. |
244 |
|
|
245 |
|
* Thuban/UI/about.py (About.__init__): Added description |
246 |
|
of the registered extensions with all of the information. |
247 |
|
|
248 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
249 |
|
|
250 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
251 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
252 |
|
Extensions/wms/wms.py: Added registration of the extension. |
253 |
|
|
254 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
255 |
|
|
256 |
|
More fixes to svgexport to make used ids unique and |
257 |
|
conforming to XML's Name production. |
258 |
|
|
259 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
260 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
261 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
262 |
|
Added Bernhard R. as author. |
263 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
264 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
265 |
|
Also transform second id part with "%d" and catch the TypeError |
266 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
267 |
|
Corrected typo inBernhard's author line. |
268 |
|
(SetBaseID): Return the transformed base id. Transform characters |
269 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
270 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
271 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
272 |
|
for used_baseids checks. |
273 |
|
|
274 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
275 |
|
|
276 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
277 |
|
Remove a debug print and some tab characters. |
278 |
|
|
279 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
280 |
|
|
281 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
282 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
283 |
|
the interaction of the three functions and the XML id contrains. |
284 |
|
|
285 |
|
|
286 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
287 |
|
|
288 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
289 |
|
Module. |
290 |
|
|
291 |
|
* Doc/README: Added info on ThubanModel.xmi. |
292 |
|
|
293 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
294 |
|
|
295 |
|
* Doc/README: New. Some info about how to generate technical |
296 |
|
documentation from the source code. |
297 |
|
This text was send to the Thuban developer mailing list on |
298 |
|
September 21st 2004 by Bernhard Reiter. |
299 |
|
|
300 |
|
2004-09-21 Bernhard Reiter <[email protected]> |
301 |
|
|
302 |
|
Improved the svgexport to only use unique ids. Will issues |
303 |
|
an error message dialoge when two layer names are the same. |
304 |
|
ShapeIDs are now added with a dash within the svg ids. |
305 |
|
|
306 |
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
307 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
308 |
|
(TestSVGRenderer): New test class with test_make_in() and |
309 |
|
test_check_for_layer_name_clash() |
310 |
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
311 |
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
312 |
|
satisfying test_check_for_layer_name_clash() |
313 |
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
314 |
|
test_make_in(). |
315 |
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
316 |
|
and wxICON_HAND. |
317 |
|
(write_to_svg): Put dc and rendering in a try statement and on |
318 |
|
catching SVGmapWriterError notify the user and delete the target file. |
319 |
|
|
320 |
|
2004-09-20 Bernhard Reiter <[email protected]> |
321 |
|
|
322 |
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
323 |
|
|
324 |
|
2004-09-03 Jan Sch�ngel <[email protected]> |
325 |
|
|
326 |
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
327 |
|
small bug with the line color. Now the line color will now only set |
328 |
|
if it is set in Thuban an not Transparent. |
329 |
|
|
330 |
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
331 |
|
deleting the layers from mapfile. Now all layers will delete backwards |
332 |
|
from the last. |
333 |
|
|
334 |
|
2004-08-20 Silke Reimer <[email protected]> |
335 |
|
|
336 |
|
* Thuban/Model/layer.py: |
337 |
|
Fixes bug in projection handling: Otherwise very large region might not |
338 |
|
have valid values in the layer's projection. |
339 |
|
|
340 |
|
2004-08-20 Silke Reimer <[email protected]> |
341 |
|
|
342 |
|
* Thuban/UI/about.py: |
343 |
|
small changes to be consistent with coding style. |
344 |
|
|
345 |
|
2004-08-13 Martin Schulze <[email protected]> |
346 |
|
|
347 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
348 |
|
Adjusted a comment |
349 |
|
|
350 |
|
2004-08-11 Silke Reimer <[email protected]> |
351 |
|
|
352 |
|
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
353 |
|
too many and too enhanced imports of locale |
354 |
|
|
355 |
|
2004-08-10 Silke Reimer <[email protected]> |
356 |
|
|
357 |
|
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
358 |
|
function unicodeToLocale() to convert special characters to users |
359 |
|
locale encoding |
360 |
|
|
361 |
2004-08-10 Jan-Oliver Wagner <[email protected]> |
2004-08-10 Jan-Oliver Wagner <[email protected]> |
362 |
|
|
363 |
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |