1 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
2 |
|
|
3 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
4 |
|
the application down the pipe. |
5 |
|
|
6 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
7 |
|
|
8 |
|
svgexport: Improved code quality, mainly by better naming. |
9 |
|
|
10 |
|
* Extensions/svgexport/svgmapwriter.py: |
11 |
|
DrawPath() renamed to DrawPolygonPath(), |
12 |
|
added documentation, improved comments and variable names. |
13 |
|
|
14 |
|
* Extensions/svgexport/svgmapwriter.py, |
15 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
16 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
17 |
|
omitted. |
18 |
|
|
19 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
20 |
|
renamed test_polygon_opened() to test_polyline() |
21 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
22 |
|
|
23 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
24 |
|
|
25 |
|
Some fixes of gns2shp extension. |
26 |
|
|
27 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
28 |
|
package. |
29 |
|
|
30 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
31 |
|
dynamically. |
32 |
|
|
33 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
34 |
|
|
35 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
36 |
|
fixed some dimensions of fields according to the GNS documentation |
37 |
|
which seems to change undocumented. |
38 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
39 |
|
This fixes RT#2453. |
40 |
|
|
41 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
42 |
|
|
43 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
44 |
|
|
45 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
46 |
|
Added new tests: test_export_polygon_with_hole() |
47 |
|
and test_polygon_with_hole(). |
48 |
|
|
49 |
|
* Extensions/svgexport/svgmapwriter.py |
50 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
51 |
|
|
52 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
53 |
|
extention svgexport. |
54 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
55 |
|
svexport over. |
56 |
|
|
57 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
58 |
|
|
59 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
60 |
|
Moved from experimental to stable extension menu. |
61 |
|
|
62 |
|
* Extensions/svgexport/TODO: updated. |
63 |
|
|
64 |
|
|
65 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
66 |
|
|
67 |
|
Added Extensions/svgexport/TODO |
68 |
|
|
69 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
70 |
|
|
71 |
|
Refactored in svgexport: |
72 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
73 |
|
|
74 |
|
* Extensions/svgexport/svgmapwriter.py |
75 |
|
Added verbosity level 3 to print out polygon points. |
76 |
|
(class Point): added __repr__ |
77 |
|
(class Brush, __str__()): Added space after ,. |
78 |
|
(DrawPolygon): Renamed to DrawPath() |
79 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
80 |
|
(DrawLines): Using DrawPath now. |
81 |
|
|
82 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
83 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
84 |
|
inside another list. Adapted test data with a newline before "M". |
85 |
|
|
86 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
87 |
|
|
88 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
89 |
|
code size reduced by 8 lines. |
90 |
|
|
91 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
92 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
93 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
94 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
95 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
96 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
97 |
|
|
98 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
99 |
|
|
100 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
101 |
|
|
102 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
103 |
|
instead of getlocale because getlocale doesn't return a usable |
104 |
|
encoding name on a german windows 2000 |
105 |
|
|
106 |
|
* setup.py: windows build: Removed the absolute path names and |
107 |
|
made all prfixes relative to the directory containing setup.py. |
108 |
|
Makes it a little easier to adapt to a different system. |
109 |
|
|
110 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
|
Add support for PostGIS tables with LINESTRING geometries. |
113 |
|
Fixes RT#2299 |
114 |
|
|
115 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
116 |
|
|
117 |
|
* test/postgissupport.py |
118 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
119 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
120 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
121 |
|
(coords_to_multilinestring): Make the doc string more precise |
122 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
123 |
|
representatin |
124 |
|
(wkt_converter): Add coords_to_linestring |
125 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
126 |
|
|
127 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
128 |
|
(LineStringTests) |
129 |
|
(TestPostGISShapestoreLineString) |
130 |
|
(TestPostGISShapestoreMultiLineString): Split |
131 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
132 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
133 |
|
geometries and TestPostGISShapestoreMultiLineString for |
134 |
|
MULTILINESTRING geometries. Most test methods are in the base |
135 |
|
class with the exception of tests that explicitly check the raw |
136 |
|
format. |
137 |
|
|
138 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
141 |
|
|
142 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
143 |
|
versions put the postgis.sql file into slightly different places |
144 |
|
so we have to look in both. The updated doc string describes this |
145 |
|
is more detail. |
146 |
|
|
147 |
|
* test/test_postgis_db.py |
148 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
149 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
150 |
|
comparison. |
151 |
|
|
152 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
153 |
|
|
154 |
|
Fix for RT#2237 |
155 |
|
|
156 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
157 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
158 |
|
buttons. Otherwise enable them. |
159 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
160 |
|
the parameters. In that case __GetProjection also returns None |
161 |
|
now. |
162 |
|
|
163 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
164 |
|
|
165 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
166 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
167 |
|
least two and raises an exception otherwise. |
168 |
|
Fixes RT#2549 |
169 |
|
|
170 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
171 |
|
|
172 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
173 |
|
so that it returns a result for select statements. |
174 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
175 |
|
server software. |
176 |
|
(PostgreSQLServer.require_authentication): The format of |
177 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
178 |
|
server version and generate the file in the correct format |
179 |
|
|
180 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
181 |
|
|
182 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
183 |
|
in the doc string and rephrase it a little. |
184 |
|
|
185 |
|
2004-12-15 Frank Koormann <[email protected]> |
186 |
|
|
187 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
188 |
|
session has been loaded successfully. The check is called by the relevant |
189 |
|
tests after executing load_session(). |
190 |
|
|
191 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
192 |
|
|
193 |
|
Make sure the region used to determine which shapes are visible |
194 |
|
actually matches the region on the printed page. If this isn't |
195 |
|
done properly some shapes might not be printed. |
196 |
|
Fixes RT #2692 |
197 |
|
|
198 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
199 |
|
renderer has to be at the same position as the mapregion |
200 |
|
|
201 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
202 |
|
has to be moved by (self.shiftx, self.shifty) too. |
203 |
|
|
204 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
205 |
|
|
206 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
207 |
|
generated python code which leads to exception in the __del__ |
208 |
|
method when the constructor fails. See the comments in the code |
209 |
|
for more details. |
210 |
|
|
211 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
212 |
|
with SWIG. |
213 |
|
|
214 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
215 |
|
|
216 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
217 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
218 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
219 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
220 |
|
is destroyed in tearDown, so there's no need to do it in a test |
221 |
|
case. |
222 |
|
|
223 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
224 |
|
debug print |
225 |
|
|
226 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
227 |
|
|
228 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
229 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
230 |
|
classes because in Python 2.2 they're still old-style classes. |
231 |
|
|
232 |
|
2004-12-13 Frank Koormann <[email protected]> |
233 |
|
|
234 |
|
Alternative Path feature: When loading a (moved) session where |
235 |
|
shapefiles cannot be found, ask the user. Use the specified path |
236 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
237 |
|
in such cases. |
238 |
|
|
239 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
240 |
|
in load_session() |
241 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
242 |
|
|
243 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
244 |
|
Added "alt_path" to self.path |
245 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
246 |
|
callback similar to db_connection_callback. |
247 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
248 |
|
shapefile_callback. In addition to raising the dialog the control of |
249 |
|
self.path('alt_path') is implemented here. |
250 |
|
|
251 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
252 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
253 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
254 |
|
formerly used in start_fileshapesource()/start_layer(). |
255 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
256 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
257 |
|
(load_session): Added shapefile_callback. |
258 |
|
|
259 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
260 |
|
feature (search / check). |
261 |
|
|
262 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
263 |
|
|
264 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
265 |
|
|
266 |
|
svgexport 0.9.2: Point size supports for maps. |
267 |
|
|
268 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
269 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
270 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
271 |
|
Added draw_func call with size when dealing with a point layer. |
272 |
|
|
273 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
274 |
|
|
275 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
276 |
|
|
277 |
|
Made sure that newlines are inserted in the svg path d attributes |
278 |
|
to raise the chance that the line length will be below 255 characters, |
279 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
280 |
|
|
281 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
282 |
|
Adding \n before L's and changed whitespace handling. |
283 |
|
|
284 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
285 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
286 |
|
|
287 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
288 |
|
|
289 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
290 |
|
|
291 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
292 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
293 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
294 |
|
All only to test DrawSpline. |
295 |
|
|
296 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
297 |
|
New implementation now really using the strange algorithm of |
298 |
|
xfig 3.1's approximated splines and its conversion to postscript |
299 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
300 |
|
to cubic beziers. |
301 |
|
(TestWithDC): Typo in comment fixed. |
302 |
|
|
303 |
|
2004-12-09 Martin Schulze <[email protected]> |
304 |
|
|
305 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
306 |
|
|
307 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
308 |
|
|
309 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
310 |
|
support for get_srs_discrepancies() since there are no |
311 |
|
discrepancies anymore (was a thinko) |
312 |
|
|
313 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
314 |
|
format priority now that more formats are supported globally by |
315 |
|
the render engine. |
316 |
|
|
317 |
|
2004-12-08 Silke Reimer <[email protected]> |
318 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
319 |
|
because it is not available in all versions of ogr |
320 |
|
|
321 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
322 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
323 |
|
global tests until a real one is commited. |
324 |
|
|
325 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
326 |
|
|
327 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
328 |
|
ogr. It is planned to add other vector formats. |
329 |
|
|
330 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
331 |
|
|
332 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
333 |
|
|
334 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
335 |
|
part of a (non-)fix to renable that the tests are always |
336 |
|
executed. |
337 |
|
|
338 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
339 |
|
|
340 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
341 |
|
Added test_drawbezier() to test DrawSpline(). |
342 |
|
|
343 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
344 |
|
Really implemented bezier drawing. |
345 |
|
|
346 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
347 |
|
to 0.9.1 because now the legend examples lines styles |
348 |
|
will be drawing with beziers. |
349 |
|
|
350 |
|
2004-12-05 Martin Schulze <[email protected]> |
351 |
|
|
352 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
353 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
354 |
|
|
355 |
|
2004-11-30 Martin Schulze <[email protected]> |
356 |
|
|
357 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
358 |
|
Improved the test for the internal compare method |
359 |
|
|
360 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
361 |
|
|
362 |
|
* Thuban/UI/about.py (About.__init__): Added |
363 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
364 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
365 |
|
to Developer. |
366 |
|
|
367 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
368 |
|
|
369 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
370 |
|
Removed Jan from author list as he did not change enough significant |
371 |
|
lines yet. |
372 |
|
|
373 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
374 |
|
of the Extension. |
375 |
|
|
376 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
377 |
|
|
378 |
|
* po/hu.po: New. Hungarian translation. Contributed |
379 |
|
by Norbert Solymosi. |
380 |
|
|
381 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
382 |
|
|
383 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
384 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
385 |
|
debug prints |
386 |
|
|
387 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
388 |
|
|
389 |
|
Fix broken tests for svg extension and added svg legend |
390 |
|
to Experimental menu. |
391 |
|
|
392 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
393 |
|
the test run correctly even if the extension is a package. |
394 |
|
Also removed the "import Thuban" which makes no sense. |
395 |
|
|
396 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
397 |
|
test module also be executed from the global test routine. |
398 |
|
This is done by looking for the absense of the DISPLAY variable. |
399 |
|
|
400 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
401 |
|
to Experimental menu since this module has yet not reached a stable |
402 |
|
status (ie. 1.0). |
403 |
|
|
404 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
405 |
|
|
406 |
|
* Extensions/svgexport/svgmapwriter.py: |
407 |
|
Added verbose variable and some logging depending on it. |
408 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
409 |
|
because counting i is not necessary. |
410 |
|
(class Pen, class Brush): Added simple __str__ methods. |
411 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
412 |
|
not exported to svg file) Note: holes still unhandled. |
413 |
|
|
414 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
415 |
|
Made a baseclass TestWithDC for test needed a DC. |
416 |
|
Added tests for bug #2698 (transparent polygons are not |
417 |
|
exported to svg file): |
418 |
|
Testobjectexport.test_transparent_polygon() |
419 |
|
|
420 |
|
* Thuban/Model/base.py (UnsetModified): |
421 |
|
Fixed some typos in docstring. |
422 |
|
|
423 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
424 |
|
Added hints on the used algorithm for handling holes. |
425 |
|
|
426 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
427 |
|
|
428 |
|
Some face lifting for the examples. |
429 |
|
|
430 |
|
* Examples/__init__.py: Make this directory a package. |
431 |
|
|
432 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
433 |
|
|
434 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
435 |
|
menu to Examples menu. |
436 |
|
|
437 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
438 |
|
minor changes. |
439 |
|
|
440 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
441 |
|
|
442 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
443 |
|
|
444 |
|
Changed way of extension registry for wms and added extension |
445 |
|
registry for umn_mapserver extension. |
446 |
|
|
447 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
448 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
449 |
|
|
450 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
451 |
|
|
452 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
453 |
|
importing of the actual umn mapserver management modules. |
454 |
|
Included a test for the required Python MapScript. |
455 |
|
|
456 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
457 |
|
|
458 |
|
Changed way of extension registry for importAPR, bboxdump |
459 |
|
and added extension registry for svgexport.extension registry for |
460 |
|
svgexport. |
461 |
|
|
462 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
463 |
|
of the actual importAPR module. |
464 |
|
|
465 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
466 |
|
__init__.py). |
467 |
|
|
468 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
469 |
|
����of the actual bboxdump module. |
470 |
|
|
471 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
472 |
|
����__init__.py). |
473 |
|
|
474 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
475 |
|
of the svgsaver module. |
476 |
|
|
477 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
478 |
|
to Experimental menu since this module has yet not reached a stable |
479 |
|
status (ie. 1.0). |
480 |
|
|
481 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
482 |
|
|
483 |
|
Now the hit test considers the size of point symbols. |
484 |
|
|
485 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
486 |
|
'size' defaulting to the previously fixed value 5. |
487 |
|
Extended doc-string. |
488 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
489 |
|
for symbols. |
490 |
|
Now the size of the largest point symbol is determined to find out |
491 |
|
about whether the point has been hit. |
492 |
|
This fixes the problem that only clicks inside a fixed distance of |
493 |
|
5 where found. |
494 |
|
|
495 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
496 |
|
|
497 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
498 |
|
selected symbols. |
499 |
|
|
500 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
501 |
|
Added consideration of the specific size of point symbols. |
502 |
|
The property for each point symbol is retrieved and the size applied |
503 |
|
for the rendering method. |
504 |
|
Added doc-string. |
505 |
|
|
506 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
507 |
|
|
508 |
|
Changed way of Extension Registry for gns2shp and profiling. |
509 |
|
|
510 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
511 |
|
__init__.py). |
512 |
|
|
513 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
514 |
|
of the actual gns2shp module. |
515 |
|
|
516 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
517 |
|
__init__.py). |
518 |
|
|
519 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
520 |
|
of the actual profiling module. |
521 |
|
|
522 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
523 |
|
|
524 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
525 |
|
|
526 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
527 |
|
|
528 |
|
Further elements for sizable point objects now |
529 |
|
making this feature usable though not yet complete. |
530 |
|
|
531 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
532 |
|
attribute 'size' for cldata when the shape layer is of point type. |
533 |
|
This also now make the test_load.py tests happy. |
534 |
|
|
535 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
536 |
|
gradient. |
537 |
|
|
538 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
539 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
540 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
541 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
542 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
543 |
|
for the size in case the corresponding layer is of point type. |
544 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
545 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
546 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
547 |
|
and refresh preview. |
548 |
|
|
549 |
|
|
550 |
|
|
551 |
|
2004-10-04 Martin Schulze <[email protected]> |
552 |
|
|
553 |
|
* Extensions/wms/test/test_parser.py |
554 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
555 |
|
self-test for compareLists() |
556 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
557 |
|
self-test for compareDicts() |
558 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
559 |
|
to verify the test routine fails with non-equal arguments |
560 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
561 |
|
to verify the test routine fails with non-equal arguments |
562 |
|
|
563 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
564 |
|
|
565 |
|
First elements for sizeable point objects. |
566 |
|
|
567 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
568 |
|
|
569 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
570 |
|
|
571 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
572 |
|
of a corresponding argument is given. |
573 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
574 |
|
|
575 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
576 |
|
(ClassGroupProperties.__init__): Set default size. |
577 |
|
(ClassGroupProperties.SetProperties): Set the size. |
578 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
579 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
580 |
|
(ClassGroupProperties__eq__): Compare also size. |
581 |
|
(ClassGroupProperties__repr__): Print also size. |
582 |
|
|
583 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
584 |
|
the size attribute. |
585 |
|
|
586 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
587 |
|
Also, now there is a return value that indicates whether the drawing |
588 |
|
size exceeded the given rect extent and if so the new extent. |
589 |
|
Finally, point objects are drawn depending on the size. If either |
590 |
|
the width or height is exceeded, the new extent is returned. |
591 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
592 |
|
evaluate the return value and, if not None, adapt the grid widget size |
593 |
|
accordingly and redraw again. |
594 |
|
|
595 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
596 |
|
If the draw function is for points, call it with the size as additional |
597 |
|
parameter. |
598 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
599 |
|
the size. Compute the radius using the size. |
600 |
|
|
601 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
602 |
|
that Thuban supports size, apply this correctly. |
603 |
|
|
604 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
605 |
|
|
606 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
607 |
|
|
608 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
609 |
|
Map chapter. |
610 |
|
|
611 |
|
2004-10-01 Martin Schulze <[email protected]> |
612 |
|
|
613 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
614 |
|
argument for general use through properties-dialog selector |
615 |
|
|
616 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
617 |
|
both provided layer classes/types. |
618 |
|
|
619 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
620 |
|
map can be retrieved through the parent which is passed to the |
621 |
|
constructor anyway and doesn't require an argument of its own, |
622 |
|
required for the unification of arguments for general use through |
623 |
|
properties-dialog selector. |
624 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
625 |
|
whether a dialog is already opened (and raising it to the users |
626 |
|
attention) and creating a new dialog into a function of its own |
627 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
628 |
|
method |
629 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
630 |
|
global registration of properties dialog classes (which are indeed |
631 |
|
layer-specific). |
632 |
|
|
633 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
634 |
|
for general use through properties-dialog selector, the map can be |
635 |
|
retrieved through the parent and doesn't require an argument of |
636 |
|
its own. |
637 |
|
|
638 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
639 |
|
the provided WMS layer |
640 |
|
|
641 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
642 |
|
|
643 |
|
New feature: Registry for Extensions. |
644 |
|
|
645 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
646 |
|
Extensions. |
647 |
|
|
648 |
|
* Thuban/UI/about.py (About.__init__): Added description |
649 |
|
of the registered extensions with all of the information. |
650 |
|
|
651 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
652 |
|
|
653 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
654 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
655 |
|
Extensions/wms/wms.py: Added registration of the extension. |
656 |
|
|
657 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
658 |
|
|
659 |
|
More fixes to svgexport to make used ids unique and |
660 |
|
conforming to XML's Name production. |
661 |
|
|
662 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
663 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
664 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
665 |
|
Added Bernhard R. as author. |
666 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
667 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
668 |
|
Also transform second id part with "%d" and catch the TypeError |
669 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
670 |
|
Corrected typo inBernhard's author line. |
671 |
|
(SetBaseID): Return the transformed base id. Transform characters |
672 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
673 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
674 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
675 |
|
for used_baseids checks. |
676 |
|
|
677 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
678 |
|
|
679 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
680 |
|
Remove a debug print and some tab characters. |
681 |
|
|
682 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
683 |
|
|
684 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
685 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
686 |
|
the interaction of the three functions and the XML id contrains. |
687 |
|
|
688 |
|
|
689 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
690 |
|
|
691 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
692 |
|
Module. |
693 |
|
|
694 |
|
* Doc/README: Added info on ThubanModel.xmi. |
695 |
|
|
696 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
697 |
|
|
698 |
|
* Doc/README: New. Some info about how to generate technical |
699 |
|
documentation from the source code. |
700 |
|
This text was send to the Thuban developer mailing list on |
701 |
|
September 21st 2004 by Bernhard Reiter. |
702 |
|
|
703 |
|
2004-09-21 Bernhard Reiter <[email protected]> |
704 |
|
|
705 |
|
Improved the svgexport to only use unique ids. Will issues |
706 |
|
an error message dialoge when two layer names are the same. |
707 |
|
ShapeIDs are now added with a dash within the svg ids. |
708 |
|
|
709 |
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
710 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
711 |
|
(TestSVGRenderer): New test class with test_make_in() and |
712 |
|
test_check_for_layer_name_clash() |
713 |
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
714 |
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
715 |
|
satisfying test_check_for_layer_name_clash() |
716 |
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
717 |
|
test_make_in(). |
718 |
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
719 |
|
and wxICON_HAND. |
720 |
|
(write_to_svg): Put dc and rendering in a try statement and on |
721 |
|
catching SVGmapWriterError notify the user and delete the target file. |
722 |
|
|
723 |
|
2004-09-20 Bernhard Reiter <[email protected]> |
724 |
|
|
725 |
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
726 |
|
|
727 |
|
2004-09-03 Jan Sch�ngel <[email protected]> |
728 |
|
|
729 |
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
730 |
|
small bug with the line color. Now the line color will now only set |
731 |
|
if it is set in Thuban an not Transparent. |
732 |
|
|
733 |
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
734 |
|
deleting the layers from mapfile. Now all layers will delete backwards |
735 |
|
from the last. |
736 |
|
|
737 |
|
2004-08-20 Silke Reimer <[email protected]> |
738 |
|
|
739 |
|
* Thuban/Model/layer.py: |
740 |
|
Fixes bug in projection handling: Otherwise very large region might not |
741 |
|
have valid values in the layer's projection. |
742 |
|
|
743 |
|
2004-08-20 Silke Reimer <[email protected]> |
744 |
|
|
745 |
|
* Thuban/UI/about.py: |
746 |
|
small changes to be consistent with coding style. |
747 |
|
|
748 |
|
2004-08-13 Martin Schulze <[email protected]> |
749 |
|
|
750 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
751 |
|
Adjusted a comment |
752 |
|
|
753 |
2004-08-11 Silke Reimer <[email protected]> |
2004-08-11 Silke Reimer <[email protected]> |
754 |
|
|
755 |
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
758 |
2004-08-10 Silke Reimer <[email protected]> |
2004-08-10 Silke Reimer <[email protected]> |
759 |
|
|
760 |
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
761 |
function unicodeToLocale() to convert special characters to users locale |
function unicodeToLocale() to convert special characters to users |
762 |
encoding |
locale encoding |
763 |
|
|
764 |
2004-08-10 Jan-Oliver Wagner <[email protected]> |
2004-08-10 Jan-Oliver Wagner <[email protected]> |
765 |
|
|