1 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add support for PostGIS tables with LINESTRING geomentries. |
4 |
|
Fixes RT#2299 |
5 |
|
|
6 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
7 |
|
|
8 |
|
* test/postgissupport.py |
9 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
10 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
11 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
12 |
|
(coords_to_multilinestring): Make the doc string more precise |
13 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
14 |
|
representatin |
15 |
|
(wkt_converter): Add coords_to_linestring |
16 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
17 |
|
|
18 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
19 |
|
(LineStringTests) |
20 |
|
(TestPostGISShapestoreLineString) |
21 |
|
(TestPostGISShapestoreMultiLineString): Split |
22 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
23 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
24 |
|
geometries and TestPostGISShapestoreMultiLineString for |
25 |
|
MULTILINESTRING geometries. Most test methods are in the base |
26 |
|
class with the exception of tests that explicitly check the raw |
27 |
|
format. |
28 |
|
|
29 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
32 |
|
|
33 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
34 |
|
versions put the postgis.sql file into slightly different places |
35 |
|
so we have to look in both. The updated doc string describes this |
36 |
|
is more detail. |
37 |
|
|
38 |
|
* test/test_postgis_db.py |
39 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
40 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
41 |
|
comparison. |
42 |
|
|
43 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
Fix for RT#2237 |
46 |
|
|
47 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
48 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
49 |
|
buttons. Otherwise enable them. |
50 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
51 |
|
the parameters. In that case __GetProjection also returns None |
52 |
|
now. |
53 |
|
|
54 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
55 |
|
|
56 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
57 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
58 |
|
least two and raises an exception otherwise. |
59 |
|
Fixes RT#2549 |
60 |
|
|
61 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
62 |
|
|
63 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
64 |
|
so that it returns a result for select statements. |
65 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
66 |
|
server software. |
67 |
|
(PostgreSQLServer.require_authentication): The format of |
68 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
69 |
|
server version and generate the file in the correct format |
70 |
|
|
71 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
72 |
|
|
73 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
74 |
|
in the doc string and rephrase it a little. |
75 |
|
|
76 |
|
2004-12-15 Frank Koormann <[email protected]> |
77 |
|
|
78 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
79 |
|
session has been loaded successfully. The check is called by the relevant |
80 |
|
tests after executing load_session(). |
81 |
|
|
82 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
83 |
|
|
84 |
|
Make sure the region used to determine which shapes are visible |
85 |
|
actually matches the region on the printed page. If this isn't |
86 |
|
done properly some shapes might not be printed. |
87 |
|
Fixes RT #2692 |
88 |
|
|
89 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
90 |
|
renderer has to be at the same position as the mapregion |
91 |
|
|
92 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
93 |
|
has to be moved by (self.shiftx, self.shifty) too. |
94 |
|
|
95 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
96 |
|
|
97 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
98 |
|
generated python code which leads to exception in the __del__ |
99 |
|
method when the constructor fails. See the comments in the code |
100 |
|
for more details. |
101 |
|
|
102 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
103 |
|
with SWIG. |
104 |
|
|
105 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
106 |
|
|
107 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
108 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
109 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
110 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
111 |
|
is destroyed in tearDown, so there's no need to do it in a test |
112 |
|
case. |
113 |
|
|
114 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
115 |
|
debug print |
116 |
|
|
117 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
118 |
|
|
119 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
120 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
121 |
|
classes because in Python 2.2 they're still old-style classes. |
122 |
|
|
123 |
|
2004-12-13 Frank Koormann <[email protected]> |
124 |
|
|
125 |
|
Alternative Path feature: When loading a (moved) session where |
126 |
|
shapefiles cannot be found, ask the user. Use the specified path |
127 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
128 |
|
in such cases. |
129 |
|
|
130 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
131 |
|
in load_session() |
132 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
133 |
|
|
134 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
135 |
|
Added "alt_path" to self.path |
136 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
137 |
|
callback similar to db_connection_callback. |
138 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
139 |
|
shapefile_callback. In addition to raising the dialog the control of |
140 |
|
self.path('alt_path') is implemented here. |
141 |
|
|
142 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
143 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
144 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
145 |
|
formerly used in start_fileshapesource()/start_layer(). |
146 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
147 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
148 |
|
(load_session): Added shapefile_callback. |
149 |
|
|
150 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
151 |
|
feature (search / check). |
152 |
|
|
153 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
154 |
|
|
155 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
156 |
|
|
157 |
|
svgexport 0.9.2: Point size supports for maps. |
158 |
|
|
159 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
160 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
161 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
162 |
|
Added draw_func call with size when dealing with a point layer. |
163 |
|
|
164 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
165 |
|
|
166 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
167 |
|
|
168 |
|
Made sure that newlines are inserted in the svg path d attributes |
169 |
|
to raise the chance that the line length will be below 255 characters, |
170 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
171 |
|
|
172 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
173 |
|
Adding \n before L's and changed whitespace handling. |
174 |
|
|
175 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
176 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
177 |
|
|
178 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
179 |
|
|
180 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
181 |
|
|
182 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
183 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
184 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
185 |
|
All only to test DrawSpline. |
186 |
|
|
187 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
188 |
|
New implementation now really using the strange algorithm of |
189 |
|
xfig 3.1's approximated splines and its conversion to postscript |
190 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
191 |
|
to cubic beziers. |
192 |
|
(TestWithDC): Typo in comment fixed. |
193 |
|
|
194 |
|
2004-12-09 Martin Schulze <[email protected]> |
195 |
|
|
196 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
197 |
|
|
198 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
199 |
|
|
200 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
201 |
|
support for get_srs_discrepancies() since there are no |
202 |
|
discrepancies anymore (was a thinko) |
203 |
|
|
204 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
205 |
|
format priority now that more formats are supported globally by |
206 |
|
the render engine. |
207 |
|
|
208 |
|
2004-12-08 Silke Reimer <[email protected]> |
209 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
210 |
|
because it is not available in all versions of ogr |
211 |
|
|
212 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
213 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
214 |
|
global tests until a real one is commited. |
215 |
|
|
216 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
217 |
|
|
218 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
219 |
|
ogr. It is planned to add other vector formats. |
220 |
|
|
221 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
222 |
|
|
223 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
224 |
|
|
225 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
226 |
|
part of a (non-)fix to renable that the tests are always |
227 |
|
executed. |
228 |
|
|
229 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
230 |
|
|
231 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
232 |
|
Added test_drawbezier() to test DrawSpline(). |
233 |
|
|
234 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
235 |
|
Really implemented bezier drawing. |
236 |
|
|
237 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
238 |
|
to 0.9.1 because now the legend examples lines styles |
239 |
|
will be drawing with beziers. |
240 |
|
|
241 |
|
2004-12-05 Martin Schulze <[email protected]> |
242 |
|
|
243 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
244 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
245 |
|
|
246 |
|
2004-11-30 Martin Schulze <[email protected]> |
247 |
|
|
248 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
249 |
|
Improved the test for the internal compare method |
250 |
|
|
251 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
252 |
|
|
253 |
|
* Thuban/UI/about.py (About.__init__): Added |
254 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
255 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
256 |
|
to Developer. |
257 |
|
|
258 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
259 |
|
|
260 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
261 |
|
Removed Jan from author list as he did not change enough significant |
262 |
|
lines yet. |
263 |
|
|
264 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
265 |
|
of the Extension. |
266 |
|
|
267 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
268 |
|
|
269 |
|
* po/hu.po: New. Hungarian translation. Contributed |
270 |
|
by Norbert Solymosi. |
271 |
|
|
272 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
273 |
|
|
274 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
275 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
276 |
|
debug prints |
277 |
|
|
278 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
279 |
|
|
280 |
|
Fix broken tests for svg extension and added svg legend |
281 |
|
to Experimental menu. |
282 |
|
|
283 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
284 |
|
the test run correctly even if the extension is a package. |
285 |
|
Also removed the "import Thuban" which makes no sense. |
286 |
|
|
287 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
288 |
|
test module also be executed from the global test routine. |
289 |
|
This is done by looking for the absense of the DISPLAY variable. |
290 |
|
|
291 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
292 |
|
to Experimental menu since this module has yet not reached a stable |
293 |
|
status (ie. 1.0). |
294 |
|
|
295 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
296 |
|
|
297 |
|
* Extensions/svgexport/svgmapwriter.py: |
298 |
|
Added verbose variable and some logging depending on it. |
299 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
300 |
|
because counting i is not necessary. |
301 |
|
(class Pen, class Brush): Added simple __str__ methods. |
302 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
303 |
|
not exported to svg file) Note: holes still unhandled. |
304 |
|
|
305 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
306 |
|
Made a baseclass TestWithDC for test needed a DC. |
307 |
|
Added tests for bug #2698 (transparent polygons are not |
308 |
|
exported to svg file): |
309 |
|
Testobjectexport.test_transparent_polygon() |
310 |
|
|
311 |
|
* Thuban/Model/base.py (UnsetModified): |
312 |
|
Fixed some typos in docstring. |
313 |
|
|
314 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
315 |
|
Added hints on the used algorithm for handling holes. |
316 |
|
|
317 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
318 |
|
|
319 |
|
Some face lifting for the examples. |
320 |
|
|
321 |
|
* Examples/__init__.py: Make this directory a package. |
322 |
|
|
323 |
|
* Examples/simple_extensions/__init__.py: Make this directory a package. |
324 |
|
|
325 |
|
* Examples/simple_extensions/hello_world.py: Moved entry from Extensions |
326 |
|
menu to Examples menu. |
327 |
|
|
328 |
|
* Examples/simple_extensions/simple_command.py: Some more comments, |
329 |
|
minor changes. |
330 |
|
|
331 |
|
* Examples/simple_extensions/simple_tool.py: Minor changes. |
332 |
|
|
333 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
334 |
|
|
335 |
|
Changed way of extension registry for wms and added extension |
336 |
|
registry for umn_mapserver extension. |
337 |
|
|
338 |
|
* Extensions/wms/__init__.py: Added registry entry and the importing |
339 |
|
of the actual wms module. Included a test for the required PyOGCLib. |
340 |
|
|
341 |
|
* Extensions/wms/wms.py: Removed registry entry (moved to __init__.py). |
342 |
|
|
343 |
|
* Extensions/umn_mapserver/__init__.py: Added registry entry and the |
344 |
|
importing of the actual umn mapserver management modules. |
345 |
|
Included a test for the required Python MapScript. |
346 |
|
|
347 |
|
2004-11-20 Jan-Oliver Wagner <[email protected]> |
348 |
|
|
349 |
|
Changed way of extension registry for importAPR, bboxdump |
350 |
|
and added extension registry for svgexport.extension registry for |
351 |
|
svgexport. |
352 |
|
|
353 |
|
* Extensions/importAPR/__init__.py: Added registry entry and the importing |
354 |
|
of the actual importAPR module. |
355 |
|
|
356 |
|
* Extensions/importAPR/importAPR.py: Removed registry entry (moved to |
357 |
|
__init__.py). |
358 |
|
|
359 |
|
* Extensions/bboxdump/__init__.py: Added registry entry and the importing |
360 |
|
����of the actual bboxdump module. |
361 |
|
|
362 |
|
* Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to |
363 |
|
����__init__.py). |
364 |
|
|
365 |
|
* Extensions/svgexport/__init__.py: Added registry entry and the importing |
366 |
|
of the svgsaver module. |
367 |
|
|
368 |
|
* Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions |
369 |
|
to Experimental menu since this module has yet not reached a stable |
370 |
|
status (ie. 1.0). |
371 |
|
|
372 |
|
2004-11-18 Jan-Oliver Wagner <[email protected]> |
373 |
|
|
374 |
|
Now the hit test considers the size of point symbols. |
375 |
|
|
376 |
|
* Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter |
377 |
|
'size' defaulting to the previously fixed value 5. |
378 |
|
Extended doc-string. |
379 |
|
(Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility |
380 |
|
for symbols. |
381 |
|
Now the size of the largest point symbol is determined to find out |
382 |
|
about whether the point has been hit. |
383 |
|
This fixes the problem that only clicks inside a fixed distance of |
384 |
|
5 where found. |
385 |
|
|
386 |
|
2004-11-17 Jan-Oliver Wagner <[email protected]> |
387 |
|
|
388 |
|
Another open issue fixed regarding sizeable symbols: correct rendering of |
389 |
|
selected symbols. |
390 |
|
|
391 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
392 |
|
Added consideration of the specific size of point symbols. |
393 |
|
The property for each point symbol is retrieved and the size applied |
394 |
|
for the rendering method. |
395 |
|
Added doc-string. |
396 |
|
|
397 |
|
2004-11-16 Jan-Oliver Wagner <[email protected]> |
398 |
|
|
399 |
|
Changed way of Extension Registry for gns2shp and profiling. |
400 |
|
|
401 |
|
* Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to |
402 |
|
__init__.py). |
403 |
|
|
404 |
|
* Extensions/gns2shp/__init__.py: Added registry entry and the importing |
405 |
|
of the actual gns2shp module. |
406 |
|
|
407 |
|
* Extensions/profiling/profiling.py: Removed registry entry (moved to |
408 |
|
__init__.py). |
409 |
|
|
410 |
|
* Extensions/profiling/__init__.py: Added registry entry and the importing |
411 |
|
of the actual profiling module. |
412 |
|
|
413 |
|
2004-10-28 Bernhard Reiter <[email protected]> |
414 |
|
|
415 |
|
* Extensions/svgexport/: Minor improvements to doc strings. |
416 |
|
|
417 |
|
2004-10-07 Jan-Oliver Wagner <[email protected]> |
418 |
|
|
419 |
|
Further elements for sizable point objects now |
420 |
|
making this feature usable though not yet complete. |
421 |
|
|
422 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Write |
423 |
|
attribute 'size' for cldata when the shape layer is of point type. |
424 |
|
This also now make the test_load.py tests happy. |
425 |
|
|
426 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size |
427 |
|
gradient. |
428 |
|
|
429 |
|
* Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to |
430 |
|
ID_SELPROP_SPINCTRL_LINEWIDTH. |
431 |
|
(ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL. |
432 |
|
(ID_SELPROP_SPINCTRL_SIZE): New Id. |
433 |
|
(SelectPropertiesDialog.__init__): Added a second spin control |
434 |
|
for the size in case the corresponding layer is of point type. |
435 |
|
(SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth. |
436 |
|
(SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin. |
437 |
|
(SelectPropertiesDialog._OnSpinSize): New. Set size of property |
438 |
|
and refresh preview. |
439 |
|
|
440 |
|
|
441 |
|
|
442 |
|
2004-10-04 Martin Schulze <[email protected]> |
443 |
|
|
444 |
|
* Extensions/wms/test/test_parser.py |
445 |
|
(TestWMSCapabilitiesParser.test_compareLists): Added missing |
446 |
|
self-test for compareLists() |
447 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Added missing |
448 |
|
self-test for compareDicts() |
449 |
|
(TestWMSCapabilitiesParser.test_compareLists): Adding more tests |
450 |
|
to verify the test routine fails with non-equal arguments |
451 |
|
(TestWMSCapabilitiesParser.test_compareDicts): Adding more tests |
452 |
|
to verify the test routine fails with non-equal arguments |
453 |
|
|
454 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
455 |
|
|
456 |
|
First elements for sizeable point objects. |
457 |
|
|
458 |
|
* Resources/XML/thuban-1.1.dtd: Added size attribute to cldata. |
459 |
|
|
460 |
|
* Data/iceland_sample_size.thuban: New. Sample for sized point objects. |
461 |
|
|
462 |
|
* test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case |
463 |
|
of a corresponding argument is given. |
464 |
|
(TestSymbolSize): New. Test the size attribute of cldata. |
465 |
|
|
466 |
|
* Thuban/Model/classification.py: Removed some trailing whitespaces. |
467 |
|
(ClassGroupProperties.__init__): Set default size. |
468 |
|
(ClassGroupProperties.SetProperties): Set the size. |
469 |
|
(ClassGroupProperties.GetSize): New. Return the size. |
470 |
|
(ClassGroupProperties.SetSize): New. Set the size. |
471 |
|
(ClassGroupProperties__eq__): Compare also size. |
472 |
|
(ClassGroupProperties__repr__): Print also size. |
473 |
|
|
474 |
|
* Thuban/Model/load.py (SessionLoader.start_cldata): Also parse |
475 |
|
the size attribute. |
476 |
|
|
477 |
|
* Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string. |
478 |
|
Also, now there is a return value that indicates whether the drawing |
479 |
|
size exceeded the given rect extent and if so the new extent. |
480 |
|
Finally, point objects are drawn depending on the size. If either |
481 |
|
the width or height is exceeded, the new extent is returned. |
482 |
|
(ClassRenderer.Draw): Now when calling the previewer drawing function, |
483 |
|
evaluate the return value and, if not None, adapt the grid widget size |
484 |
|
accordingly and redraw again. |
485 |
|
|
486 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally): |
487 |
|
If the draw function is for points, call it with the size as additional |
488 |
|
parameter. |
489 |
|
(BaseRenderer.draw_point_shape): Added additional, optional parameter for |
490 |
|
the size. Compute the radius using the size. |
491 |
|
|
492 |
|
* Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now |
493 |
|
that Thuban supports size, apply this correctly. |
494 |
|
|
495 |
|
* Extensions/importAPR/importAPR.py: Bumped version to 0.1.1. |
496 |
|
|
497 |
|
2004-10-03 Jan-Oliver Wagner <[email protected]> |
498 |
|
|
499 |
|
* Doc/manual/thuban-manual-de.xml: Started translation of |
500 |
|
Map chapter. |
501 |
|
|
502 |
|
2004-10-01 Martin Schulze <[email protected]> |
503 |
|
|
504 |
|
* Extensions/wms/properties.py (wmsProperties.__init__): Extended |
505 |
|
argument for general use through properties-dialog selector |
506 |
|
|
507 |
|
* Thuban/UI/classifier.py: Register properties dialog classes for |
508 |
|
both provided layer classes/types. |
509 |
|
|
510 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The |
511 |
|
map can be retrieved through the parent which is passed to the |
512 |
|
constructor anyway and doesn't require an argument of its own, |
513 |
|
required for the unification of arguments for general use through |
514 |
|
properties-dialog selector. |
515 |
|
(MainWindow.OpenOrRaiseDialog): Move the logic for checking |
516 |
|
whether a dialog is already opened (and raising it to the users |
517 |
|
attention) and creating a new dialog into a function of its own |
518 |
|
(MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog() |
519 |
|
method |
520 |
|
(MainWindow.OpenLayerProperties): Utilise the new ClassMapper for |
521 |
|
global registration of properties dialog classes (which are indeed |
522 |
|
layer-specific). |
523 |
|
|
524 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Unify arguments |
525 |
|
for general use through properties-dialog selector, the map can be |
526 |
|
retrieved through the parent and doesn't require an argument of |
527 |
|
its own. |
528 |
|
|
529 |
|
* Extensions/wms/wms.py: Register the properties dialog class for |
530 |
|
the provided WMS layer |
531 |
|
|
532 |
|
2004-09-28 Jan-Oliver Wagner <[email protected]> |
533 |
|
|
534 |
|
New feature: Registry for Extensions. |
535 |
|
|
536 |
|
* Thuban/UI/extensionregistry.py: This module defines a registry for |
537 |
|
Extensions. |
538 |
|
|
539 |
|
* Thuban/UI/about.py (About.__init__): Added description |
540 |
|
of the registered extensions with all of the information. |
541 |
|
|
542 |
|
* Thuban/Model/extension.py (Extension): Improved doc-string. |
543 |
|
|
544 |
|
* Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py, |
545 |
|
Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py, |
546 |
|
Extensions/wms/wms.py: Added registration of the extension. |
547 |
|
|
548 |
|
2004-09-27 Bernhard Reiter <[email protected]> |
549 |
|
|
550 |
|
More fixes to svgexport to make used ids unique and |
551 |
|
conforming to XML's Name production. |
552 |
|
|
553 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added new tests |
554 |
|
test_xml_id_constraints(), test_make_ide_nosetbaseid() and |
555 |
|
test_make_id_nonintegersetid(). Switched SetID and SetBaseID. |
556 |
|
Added Bernhard R. as author. |
557 |
|
* Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as |
558 |
|
concatenation char now (makes test_make_ide_nosetbaseid() valid). |
559 |
|
Also transform second id part with "%d" and catch the TypeError |
560 |
|
to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). |
561 |
|
Corrected typo inBernhard's author line. |
562 |
|
(SetBaseID): Return the transformed base id. Transform characters |
563 |
|
which are not alnum() or in ".-_" to binascii.b2a_hex(). Added |
564 |
|
import binascii. If to be set string starts with "xml" or so, add "t". |
565 |
|
(draw_shape_layer_incrementally): use the returned value of SetBaseID |
566 |
|
for used_baseids checks. |
567 |
|
|
568 |
|
2004-09-25 Bernhard Herzog <[email protected]> |
569 |
|
|
570 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
571 |
|
Remove a debug print and some tab characters. |
572 |
|
|
573 |
|
2004-09-25 Bernhard Reiter <[email protected]> |
574 |
|
|
575 |
|
* Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author. |
576 |
|
(SetBaseID, SetID, make_id): Improved docstring comments to explain |
577 |
|
the interaction of the three functions and the XML id contrains. |
578 |
|
|
579 |
|
|
580 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
581 |
|
|
582 |
|
* Doc/ThubanModel.xmi: New. UML file for Thuban Model |
583 |
|
Module. |
584 |
|
|
585 |
|
* Doc/README: Added info on ThubanModel.xmi. |
586 |
|
|
587 |
|
2004-09-23 Jan-Oliver Wagner <[email protected]> |
588 |
|
|
589 |
|
* Doc/README: New. Some info about how to generate technical |
590 |
|
documentation from the source code. |
591 |
|
This text was send to the Thuban developer mailing list on |
592 |
|
September 21st 2004 by Bernhard Reiter. |
593 |
|
|
594 |
|
2004-09-21 Bernhard Reiter <[email protected]> |
595 |
|
|
596 |
|
Improved the svgexport to only use unique ids. Will issues |
597 |
|
an error message dialoge when two layer names are the same. |
598 |
|
ShapeIDs are now added with a dash within the svg ids. |
599 |
|
|
600 |
|
* Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. |
601 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Added imports |
602 |
|
(TestSVGRenderer): New test class with test_make_in() and |
603 |
|
test_check_for_layer_name_clash() |
604 |
|
* Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() |
605 |
|
and draw_shape_layer_incrementally() to not use a baseid twice, |
606 |
|
satisfying test_check_for_layer_name_clash() |
607 |
|
(VirtualDC.make_id): Use a dash between baseit and id, satisfies |
608 |
|
test_make_in(). |
609 |
|
* Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK |
610 |
|
and wxICON_HAND. |
611 |
|
(write_to_svg): Put dc and rendering in a try statement and on |
612 |
|
catching SVGmapWriterError notify the user and delete the target file. |
613 |
|
|
614 |
|
2004-09-20 Bernhard Reiter <[email protected]> |
615 |
|
|
616 |
|
* Model/base.by, Model/layer.py: Fixed typos in docstrings. |
617 |
|
|
618 |
|
2004-09-03 Jan Sch�ngel <[email protected]> |
619 |
|
|
620 |
|
* Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a |
621 |
|
small bug with the line color. Now the line color will now only set |
622 |
|
if it is set in Thuban an not Transparent. |
623 |
|
|
624 |
|
* Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with |
625 |
|
deleting the layers from mapfile. Now all layers will delete backwards |
626 |
|
from the last. |
627 |
|
|
628 |
|
2004-08-20 Silke Reimer <[email protected]> |
629 |
|
|
630 |
|
* Thuban/Model/layer.py: |
631 |
|
Fixes bug in projection handling: Otherwise very large region might not |
632 |
|
have valid values in the layer's projection. |
633 |
|
|
634 |
|
2004-08-20 Silke Reimer <[email protected]> |
635 |
|
|
636 |
|
* Thuban/UI/about.py: |
637 |
|
small changes to be consistent with coding style. |
638 |
|
|
639 |
|
2004-08-13 Martin Schulze <[email protected]> |
640 |
|
|
641 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs): |
642 |
|
Adjusted a comment |
643 |
|
|
644 |
|
2004-08-11 Silke Reimer <[email protected]> |
645 |
|
|
646 |
|
* Thuban/UI/about.py: Small changes to encoding related stuff to avoid |
647 |
|
too many and too enhanced imports of locale |
648 |
|
|
649 |
|
2004-08-10 Silke Reimer <[email protected]> |
650 |
|
|
651 |
|
* Thuban/UI/about.py: Fixed encoding problem of about dialog: Added |
652 |
|
function unicodeToLocale() to convert special characters to users |
653 |
|
locale encoding |
654 |
|
|
655 |
|
2004-08-10 Jan-Oliver Wagner <[email protected]> |
656 |
|
|
657 |
|
* Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with |
658 |
|
lower case letter' |
659 |
|
|
660 |
|
2004-08-09 Jan Sch�ngel <[email protected]> |
661 |
|
|
662 |
|
* ChangeLog: Rewrite the last ChangeLog entry to follow |
663 |
|
the standard way. |
664 |
|
|
665 |
|
* Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to |
666 |
|
the function where it is needed, because it don't works if it stands |
667 |
|
at the beginning. |
668 |
|
(MF_Layer.__init__): Removed the extra numclassed variable. Now |
669 |
|
numclasses from the mapscript will be used. |
670 |
|
(MF_Layer.get_index): New. Return the index of the layer in mapfile. |
671 |
|
(MF_Layer.set_classes): New. A Classlist will be set to the layer. |
672 |
|
(MF_Layer.set_metadata): New. A Metadata mapscript object will set. |
673 |
|
(MF_Layer.remove_allclasses): New. All class of the layer will remove. |
674 |
|
(MF_Map.create_new_layer): New. A new Layer is created and associated |
675 |
|
with the mapscript object. |
676 |
|
(MF_Map.set_layerorder): New. The Layer order like in thuban is set in |
677 |
|
the mapscript. |
678 |
|
(MF_Map.add_thubanlayer): Now a new layerobj is created if no one is |
679 |
|
linked to the layer in thuban, else the layerobject linked to the |
680 |
|
thubanlayer will be used. |
681 |
|
AnnotationLayer will now store the filename of the shapefile. |
682 |
|
(MF_Map.remove_layer): If a layer is removed the associated object |
683 |
|
must be set new. |
684 |
|
|
685 |
|
* Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all |
686 |
|
layers which are exists in thuban to the mapobj. All removed Layers |
687 |
|
will be removed from the mapobj. |
688 |
|
Added comments to all functions. |
689 |
|
(thuban_to_map): No layer will be removed here. |
690 |
|
|
691 |
|
* Extensions/umn_mapserver/mf_handle.py |
692 |
|
(_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now |
693 |
|
Layersettings for the mapserver kann be edited. |
694 |
|
|
695 |
|
* Extensions/umn_mapserver/mf_import.py: Now all layers which are |
696 |
|
imported, will be linked with the associated MF_Layer. |
697 |
|
(import_mapfile): All layers, which are not selected, will be removed. |
698 |
|
Disable the "import layer from mapfile" menu option. |
699 |
|
|
700 |
|
* Extensions/umn_mapserver/sample/iceland.map: Set the status of the |
701 |
|
Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the |
702 |
|
layer on permanently. |
703 |
|
|
704 |
|
2004-08-03 Jan Sch�ngel <[email protected]> |
705 |
|
|
706 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata): |
707 |
|
New. This function removes all metadata |
708 |
|
(MF_Layer.set_group): New. Set the group setting. |
709 |
|
(MF_Layer.get_group): New. Get the group setting. |
710 |
|
(MF_Map): Removed the extra numlayers variable, used the mapscript |
711 |
|
parameter instead. |
712 |
|
(MF_Map.get_numlayers): New. This get numlayers. |
713 |
|
(MF_Map.remove_all_layers): New. Removes all layers from the mapobj. |
714 |
|
(MF_Map.add_thubanlayer): Replaced the exception handling by a check |
715 |
|
if the object is an instance. Also added the annotation layer here to |
716 |
|
export, but only the layer is created in the mapfile. |
717 |
|
|
718 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed |
719 |
|
the check if a mapobj exist, because its not needed anymore. The |
720 |
|
export function is only available if a mapobj exist. |
721 |
|
Use the new function to remove all layers. |
722 |
|
|
723 |
|
* Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group |
724 |
|
option and the metadata button. The layer dialog is temporary disabled. |
725 |
|
(Metadata_CustomDataTable): Added some functions to show the grid |
726 |
|
correct. |
727 |
|
|
728 |
|
* Extensions/umn_mapserver/mf_import.py: Moved the code for showing |
729 |
|
the number of layer from import_mapfile to this function. |
730 |
|
(AnnotationLayer): New. This Class shows the Annotation layer in |
731 |
|
thuban. The layer don't do anything. It's only to show the layer |
732 |
|
and to save the layer order. |
733 |
|
(add_annotationlayer): New. Import an annotation layer to thuban. |
734 |
|
(select_layer2import): New. Import only layers to thuban and not |
735 |
|
the other settings like projection or scalebar. |
736 |
|
(create_new_mapfile): Moved the _has_umn_mapobj function and the |
737 |
|
create_new_mapfile functions from mf_handle.py to mf_import.py. |
738 |
|
|
739 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the group |
740 |
|
parameter to the roads and cultural layers. Also added a new |
741 |
|
Annotation Layer for the cultural points. |
742 |
|
|
743 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added the select |
744 |
|
option for the annotation layer. |
745 |
|
|
746 |
|
* Extensions/umn_mapserver/sample/index.html: Added the start |
747 |
|
parameter for the annotation layer. |
748 |
|
|
749 |
|
2004-08-01 Jan-Oliver Wagner <[email protected]> |
750 |
|
|
751 |
|
* Doc/manual/thuban-manual-de.xml (Chapter Session Management): |
752 |
|
translation completed. |
753 |
|
|
754 |
|
* Doc/manual/thuban-manual.xml (Chapter Session Management): |
755 |
|
Fixed unprecise description for Save Session. |
756 |
|
|
757 |
|
2004-07-31 Jan-Oliver Wagner <[email protected]> |
758 |
|
|
759 |
|
Started translation of Users Manual into german. |
760 |
|
|
761 |
|
* Doc/manual/thuban-manual-de.xml: New. German Users Manual. |
762 |
|
|
763 |
|
* Doc/manual/Makefile: Added build instructions for german |
764 |
|
users manual. |
765 |
|
|
766 |
|
* Doc/manual/thuban-manual.xml: Minor corrections in Introduction. |
767 |
|
|
768 |
|
2004-07-28 Jan Sch�ngel <[email protected]> |
769 |
|
|
770 |
|
* Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class |
771 |
|
functions. Now all metadata will handle by the function and its not |
772 |
|
needed to initialize it from outside. Therefor the associated mapobj |
773 |
|
will be stored in the Metadata Object. So we can use the special |
774 |
|
functions from the associated mapobj to get the Metadata. |
775 |
|
Therefor all initialization code for the metadata is removed from the |
776 |
|
other classes. |
777 |
|
(MF_Layer): Added a function to get the metadata object. |
778 |
|
(MF_Map): Added a function to set the mappath, the path where |
779 |
|
the mapfile ist stored. |
780 |
|
|
781 |
|
* Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code |
782 |
|
to set the extent in the mapfile. Now the code is set by the displayed |
783 |
|
data in the Thuban-view. |
784 |
|
(export_mapfile): The shapepath is now set empty, until relative |
785 |
|
pathnames are supported. |
786 |
|
|
787 |
|
* Extension/umn_mapserver/mf_handle.py: Added a dialog to handle |
788 |
|
metadata. Yet only mapfile metadata are supported. Layer and class |
789 |
|
supported are not implemented. |
790 |
|
Added a dialog to handle layer informations. The dialog only shows the |
791 |
|
selected layer at the moment. |
792 |
|
|
793 |
|
* Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the |
794 |
|
code for setting the extent in thuban. Now the extent is set to the |
795 |
|
given extent from the mapfile. |
796 |
|
Fixed a logical mistake. Now the extent is set when realy a layer is |
797 |
|
loaded, and not if one is selected to load. |
798 |
|
|
799 |
|
* Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and |
800 |
|
move the shown map in the browser. |
801 |
|
|
802 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added a new metadata |
803 |
|
line to the mapobj and added metadata to the political layer. |
804 |
|
|
805 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Changed the test |
806 |
|
for Metadata. |
807 |
|
|
808 |
|
2004-07-26 Martin Schulze <[email protected]> |
809 |
|
|
810 |
|
* Thuban/Lib/classmapper.py (ClassMapper.has): Added the new |
811 |
|
ClassMapper |
812 |
|
|
813 |
|
* test/test_classmapper.py (TestMapping.test_mapper): Added a Test |
814 |
|
case for the new ClassMapper |
815 |
|
|
816 |
|
|
817 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
818 |
|
|
819 |
|
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the |
820 |
|
visible extent of the map in projected coordinates |
821 |
|
|
822 |
|
* test/test_viewport.py (SimpleViewPortTest.test_default_size) |
823 |
|
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent() |
824 |
|
tests. |
825 |
|
(SimpleViewPortTest.test_visible_extent): New. The real test for |
826 |
|
VisibleExtent() |
827 |
|
|
828 |
|
2004-07-22 Bernhard Herzog <[email protected]> |
829 |
|
|
830 |
|
* test/test_viewport.py: Use support.run_tests as the main |
831 |
|
function when running asa script. |
832 |
|
|
833 |
|
2004-07-22 Jan Sch�ngel <[email protected]> |
834 |
|
|
835 |
|
* Extensions/umn_mapserver/mf_export.py: Added "import os" |
836 |
|
Removed the old "import Thuban.UI.mainwindow" code. |
837 |
|
(tbextent_to_map): Removed the extra function and at the code direct |
838 |
|
to "thuban_to_map" function. |
839 |
|
(write_creatorcomment): Added. Now a short comment is added to the |
840 |
|
beginning of an generated mapfile. |
841 |
|
(export_mapfile): Now the Path and filename are saved in to variables, |
842 |
|
and not together in one variable. This is needed for the new |
843 |
|
write_creatorcomment function. |
844 |
|
|
845 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the |
846 |
|
import module "re". Also added Range and the ClassGroupRange import |
847 |
|
from Thuban. Both are needed for the new range expression import. |
848 |
|
(create_rangeexpression): Added. Creates a Range Expression in Thuban |
849 |
|
style from a given mapfile expression. |
850 |
|
(added_rasterlayer): Make some small code changes. The shapepath is |
851 |
|
now stored in an extra variable and the clazz_name is set empty if no |
852 |
|
class name set in the mapfile. |
853 |
|
Changed the Error message for Range Expressions, becaus the new |
854 |
|
function create a error string which will be shown in the dialog. |
855 |
|
|
856 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the |
857 |
|
range expression import. |
858 |
|
|
859 |
|
2004-07-21 Jan-Oliver Wagner <[email protected]> |
860 |
|
|
861 |
|
* Extensions/umn_mapserver/README: Added hint that |
862 |
|
installation as root can be avoided. Removed all tabs. |
863 |
|
|
864 |
|
2004-07-16 Bernhard Herzog <[email protected]> |
865 |
|
|
866 |
|
* test/test_viewport.py |
867 |
|
(ViewPortTest.test_changing_map_projection): Check that changing |
868 |
|
the projection of an empty map shown in a viewport doesn't lead to |
869 |
|
exceptions in the viewport's handler for the |
870 |
|
MAP_PROJECTION_CHANGED messages |
871 |
|
|
872 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only |
873 |
|
try to keep the same region visible when the map actually contains |
874 |
|
something |
875 |
|
|
876 |
|
2004-07-15 Jan Sch�ngel <[email protected]> |
877 |
|
|
878 |
|
* Extensions/umn_mapserver/mapfile.py: Added a function to get the |
879 |
|
mappath directly from the mapobj. Is needed because of the changes |
880 |
|
in mf_import.py. |
881 |
|
(MF_Layer.add_thubanclass): Added a new comment. |
882 |
|
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the |
883 |
|
mapobj is empty there is no extent get from thuban an so no one can |
884 |
|
set to th mapobj. |
885 |
|
|
886 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated |
887 |
|
the discription. |
888 |
|
Split the funktion in to three smaller ones. The new functions are |
889 |
|
add_rasterlayer, add_polygonlayer and select_layer2import. |
890 |
|
Removed the mapfilepath and filepath initialisation, because its know |
891 |
|
include in the new functions. |
892 |
|
Now nothing will be imported if cancel is pressed in the |
893 |
|
layer choice dialog. |
894 |
|
|
895 |
|
2004-07-14 Jan Sch�ngel <[email protected]> |
896 |
|
|
897 |
|
* Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to |
898 |
|
import. |
899 |
|
(MF_Symbolset): Removed the extra variable for numsymbols. |
900 |
|
(MF_Class.__init__): Added a comment to the exception clause. |
901 |
|
Removed the extent init, because it was not needed anymore. |
902 |
|
(MF_Layer.add_thubanclass): Added the code to set the class name to |
903 |
|
the expression value from thuban if no label is defined. |
904 |
|
Added the code to export Range expressions from thuban to the mapfile. |
905 |
|
(MF_Map.set_extent): Removed the exception and replace it by some if |
906 |
|
code. If the size of a map is not defined the size will be set to 1,1. |
907 |
|
This is necessary because if the extent is set, mapscript checks if |
908 |
|
the size is greater than zero. |
909 |
|
(MF_Web): Added the get and set function for the template. |
910 |
|
|
911 |
|
* Extensions/umn_mapserver/mf_export.py: Added the function to check |
912 |
|
if a mapobject exists and used it to set the status of the menu items. |
913 |
|
If no mapfile exists the settings could not be edditied. |
914 |
|
Define after which menuitem the exportitem will include. |
915 |
|
|
916 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the import |
917 |
|
Thuban.UI.mainwindow clause, because it is not needed. |
918 |
|
Added the command Refresh() to all "OnChangeColor()" functions, |
919 |
|
because the color preview window was not updated on a color change. |
920 |
|
Added the function to check if a mapobject exists and used it to set the |
921 |
|
status of the menu items. If no mapobject exists the settings could not |
922 |
|
be edditied. |
923 |
|
(Map_Dialog): Moved the imagetype selector from the |
924 |
|
Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog. |
925 |
|
(Web_Dialog): Removed the name label and added the template textbox. |
926 |
|
|
927 |
|
* Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace |
928 |
|
the exception handling on loading the layers by an if statement. It |
929 |
|
is not necessary to us the exception there. |
930 |
|
The Filepath creation now use os.path.join to build the path. |
931 |
|
|
932 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap |
933 |
|
definition from global to the setUp function. Now the testMap will |
934 |
|
initialize new on each test. |
935 |
|
|
936 |
|
* Extensions/umn_mapserver/sample/iceland.map: Include three new |
937 |
|
classes in the Line Layer, to test logical Expressions. |
938 |
|
Set the status of the class "Point9" in the Point Layer to off |
939 |
|
|
940 |
|
2004-07-13 Bernhard Herzog <[email protected]> |
941 |
|
|
942 |
|
* Thuban/UI/baserenderer.py |
943 |
|
(BaseRenderer.render_map_incrementally): Fix a logic bug in the |
944 |
|
optimization that tries not to draw layers under a raster layer. |
945 |
|
The bug was harmless. All it effectively did was to produce The a |
946 |
|
strange messages about not being able to draw Layer instances for |
947 |
|
all vector layers below a raster layer which would be invisible |
948 |
|
anyway because the raster layer currently always covers the entire |
949 |
|
window |
950 |
|
|
951 |
|
2004-07-08 Jan Sch�ngel <[email protected]> |
952 |
|
|
953 |
|
* Extensions/umn_mapserver/mapfile.py: Added code to generade and get |
954 |
|
a list of supported outputformats. This formats are not alle supported |
955 |
|
because there is no possibility to get the outputformat without the |
956 |
|
name known. Make some formal changes to the code. |
957 |
|
(MF_Map.set_name()): Fixed a bug if the name is None. |
958 |
|
|
959 |
|
* Extensions/umn_mapserver/mf_handle.py: Removed the image_type import |
960 |
|
statement, because its not needed anymore. The Outputformat is now |
961 |
|
given as string from the object. Make some formal changes to the code. |
962 |
|
|
963 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: Added new test for |
964 |
|
most of the new setting which were added during the last changes. |
965 |
|
Removed the MF_Size Test. |
966 |
|
|
967 |
|
* Extensions/umn_mapserver/test/test.map: Added a new class to the |
968 |
|
cultural Layer to test expressions and the the status of that layer |
969 |
|
from on to default. |
970 |
|
Changed the data path the the correct Thuban Data |
971 |
|
Added the Outputformat Object and Symbol Object |
972 |
|
|
973 |
|
2004-07-07 Jan Sch�ngel <[email protected]> |
974 |
|
|
975 |
|
* Extensions/umn_mapserver/mapfile.py: Added some new |
976 |
|
settings to edit (outputformat, label, imagetype) |
977 |
|
|
978 |
|
* Extensions/umn_mapserver/mf_handle.py: Added some setting to |
979 |
|
the Label Dialog and add the OutputDialog. |
980 |
|
Make some changes to the code order. |
981 |
|
|
982 |
|
2004-07-06 Jan Sch�ngel <[email protected]> |
983 |
|
|
984 |
|
* Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj |
985 |
|
and line Obj and add the scalebar_status_type, scalebar_style_type and |
986 |
|
scalebar_position_type. |
987 |
|
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The |
988 |
|
are only used to create a Symbol like the circle in Thuban. |
989 |
|
Added the scalebarObject (MF_Scalebar) |
990 |
|
(MF_Class): Added set_status and get_status. |
991 |
|
(MF_Layer.add_thubanclass): Added code to set the class status |
992 |
|
(MF_Map): Added code to handle the symbols and scalebar |
993 |
|
(MF_Label): Added the set_partials and get_partials functions |
994 |
|
|
995 |
|
* Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import |
996 |
|
from mapfile. Added a function to create a circle object like the one |
997 |
|
from thuban if no one exists. |
998 |
|
|
999 |
|
* Extensions/umn_mapserver/mf_handle.py: All colors are now set when |
1000 |
|
press ok in the assosiated dialog and not at the end of the |
1001 |
|
colordialog. |
1002 |
|
Added the Dialog for the Scalebar. |
1003 |
|
(Label_Dialog): Added the offset option |
1004 |
|
|
1005 |
|
* Extensions/umn_mapserver/mf_import.py: Added code to import the |
1006 |
|
status of the Classes. |
1007 |
|
Fixed a bug with the projection. Now the to_meter parameter will be |
1008 |
|
added to the Projection only if it doesn't exists. |
1009 |
|
|
1010 |
|
2004-07-01 Jan Sch�ngel <[email protected]> |
1011 |
|
|
1012 |
|
Added the functionality to handle the content thuban is not |
1013 |
|
able to handle directly. |
1014 |
|
|
1015 |
|
* Extensions/umn_mapserver/mf_handle.py: New. This module extents |
1016 |
|
Thuban with the possibility to edit the mapfile content. |
1017 |
|
|
1018 |
|
* Extensions/umn_mapserver/mf_import.py: Added the possibility |
1019 |
|
to import mapfiles without any layer selected. So it is possible |
1020 |
|
to edit the other settings in a mapfile. |
1021 |
|
(import_mapfile): Added code to use the editing functions. |
1022 |
|
Added the possibility to import the projection to a layer if one |
1023 |
|
is defined. |
1024 |
|
Status settings (On,Off) will now set in thuban (visible, invisible). |
1025 |
|
fixed a bug with with classnames. If no classname is set in mapfile |
1026 |
|
the value in Thuban will set to the expression. |
1027 |
|
|
1028 |
|
* Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the |
1029 |
|
possibility to save a new mapfile or use the old one which is |
1030 |
|
imported or new created. |
1031 |
|
Added code to use the editing functions. |
1032 |
|
Remove some not needed import statements |
1033 |
|
|
1034 |
|
* Extensions/umn_mapserver/mapfile.py: Added new types which are |
1035 |
|
need for the editing functions. |
1036 |
|
Added needed set-functions for the editing functions. |
1037 |
|
Added the possibility to export rasterimages. |
1038 |
|
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, |
1039 |
|
MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the |
1040 |
|
moment. |
1041 |
|
(MF_Class.set_thubanstyle): Now point layers will set to a default |
1042 |
|
symbol to show a circle in mapserver and not only a 1px dot. |
1043 |
|
(MF_Style.__init__): Fixed a bug with the color. Color was not set |
1044 |
|
correct before. |
1045 |
|
(MF_Size): Removed, because it is not needed. |
1046 |
|
|
1047 |
|
* Extensions/umn_mapserver/README: Added the hints to use the |
1048 |
|
export and editing functions, too. |
1049 |
|
|
1050 |
|
* Extensions/umn_mapserver/sample/iceland.map: Added the |
1051 |
|
new parameter "UNITS METERS". |
1052 |
|
Change the political layer to status OFF. |
1053 |
|
|
1054 |
|
* Extensions/umn_mapserver/sample/README: Added some |
1055 |
|
more details to setup the sample in the MapServer. |
1056 |
|
|
1057 |
|
2004-06-26 Bernhard Reiter <[email protected]> |
1058 |
|
|
1059 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
1060 |
|
Removed class VFile and used standard StringIO instead. |
1061 |
|
|
1062 |
|
2004-06-23 Jan Sch�ngel <[email protected]> |
1063 |
|
|
1064 |
|
Add the export function to the umn_mapserver extension. |
1065 |
|
|
1066 |
|
* Extension/umn_mapserver/mf_export.py: New. This module extents |
1067 |
|
Thuban with the possibility to export the Thuban content. |
1068 |
|
|
1069 |
|
* Extensions/umn_mapserver/mapfile.py: Expand the classes to use |
1070 |
|
with the export module. Especially added the possibility to |
1071 |
|
add thuban objects directly to the map objects. |
1072 |
|
|
1073 |
|
* Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR, |
1074 |
|
because of the hint from Bernhard Herzog. |
1075 |
|
Corrected the handling of absolute pathnames. |
1076 |
|
Changed the Text of the Menu-Item, now the beginning is upper case. |
1077 |
|
|
1078 |
|
* Extensions/umn_mapserver/README: Added the --with-tiff statement. |
1079 |
|
|
1080 |
|
2004-06-16 Jan Sch�ngel <[email protected]> |
1081 |
|
|
1082 |
|
Add a sample and make some changes. |
1083 |
|
|
1084 |
|
* Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx |
1085 |
|
import from * to explicit used statements. Changed the |
1086 |
|
Thuban.UI.mainwindow import phrase, too. |
1087 |
|
(import_mapfile):Corrected a clerical mistake. |
1088 |
|
Added wxCHANGE_DIR in OpenFile Dialog. |
1089 |
|
Added a MultipleChoiceDialog, to select the layers to load from |
1090 |
|
mapfile into thuban. Thereby the projection is only set if one layer |
1091 |
|
is selected. |
1092 |
|
Added the possibility to handle relative pathnames which uses |
1093 |
|
up-level references. |
1094 |
|
Removed some doubled code. |
1095 |
|
Corrected an error with integer values used as label in thuban |
1096 |
|
ClassGroup. |
1097 |
|
|
1098 |
|
* Extensions/umn_mapserver/sample: New. |
1099 |
|
|
1100 |
|
* Extensions/umn_mapserver/sample/README: New. Describes the |
1101 |
|
usage of the sample files. |
1102 |
|
|
1103 |
|
* Extensions/umn_mapserver/sample/iceland.map: New. This is |
1104 |
|
a suitable .map-file for the iceland data. |
1105 |
|
|
1106 |
|
* Extensions/umn_mapserver/sample/index.html: New. The template |
1107 |
|
for the mapfile. |
1108 |
|
|
1109 |
|
* Extensions/umn_mapserver/sample/iceland.html: New. Initialisation |
1110 |
|
file for the Iceland Application on web. |
1111 |
|
|
1112 |
|
* Extensions/umn_mapserver/README: Corrected a inaccuracy and added |
1113 |
|
some details. |
1114 |
|
|
1115 |
|
* Extensions/umn_mapserver/test/test_mapserver |
1116 |
|
(mapserver_import_Test_generalClasses.test_MF_Color): |
1117 |
|
Corrected the thubancolor test. |
1118 |
|
|
1119 |
|
2004-06-15 Jan Sch�ngel <[email protected]> |
1120 |
|
|
1121 |
|
* Extensions/umn_mapserver/README: New. Install instruction. |
1122 |
|
|
1123 |
|
2004-06-14 Bernhard Reiter <[email protected]> |
1124 |
|
|
1125 |
|
* libraries/thuban/cpl_mfile.h: Added copyright header. |
1126 |
|
|
1127 |
|
* libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting |
1128 |
|
Free Software License so that it is most useful with gdalwarp |
1129 |
|
and bmpdataset. |
1130 |
|
|
1131 |
|
2004-06-14 Bernhard Herzog <[email protected]> |
1132 |
|
|
1133 |
|
* Thuban/UI/multiplechoicedialog.py (__version__): Add missing |
1134 |
|
import of wxPython.wx itself (as opposed to the contents of |
1135 |
|
wxPython.wx). For some reason wxPython.wx is available as |
1136 |
|
wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482 |
1137 |
|
wrt. wxPython 2.4. |
1138 |
|
|
1139 |
|
2004-06-10 Jan Sch�ngel <[email protected]> |
1140 |
|
|
1141 |
|
Initial version of new extension "umn_mapserver". This extension aims |
1142 |
|
to manage configuration for the UMN MapServer application. This |
1143 |
|
inital version just imports the .map-files and displays all, Thuban is |
1144 |
|
capable of. |
1145 |
|
|
1146 |
|
* Extensions/umn_mapserver, Extensions/umn_mapserver/test: New. |
1147 |
|
|
1148 |
|
* Extensions/umn_mapserver/test/README: New. Describes how to run the |
1149 |
|
tests. |
1150 |
|
|
1151 |
|
* Extensions/umn_mapserver/test/test.map: New. This is a test |
1152 |
|
.map-file for automated tests of the umn_mapserver extension of |
1153 |
|
Thuban. |
1154 |
|
|
1155 |
|
* Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for |
1156 |
|
UMN Mapserver classes. |
1157 |
|
|
1158 |
|
* Extensions/umn_mapserver/__init__.py: New. Init to make this |
1159 |
|
directory a package. |
1160 |
|
|
1161 |
|
* Extensions/umn_mapserver/mapfile.py: New. Classes to represent |
1162 |
|
'.map'-file objects. |
1163 |
|
|
1164 |
|
* Extensions/umn_mapserver/mf_import.py: New. This module extends |
1165 |
|
Thuban with the possibility to handle UMN MapServer mapfiles. |
1166 |
|
|
1167 |
|
2004-06-03 Bernhard Herzog <[email protected]> |
1168 |
|
|
1169 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box |
1170 |
|
to a tuple before using it as arguments to the % operator. This |
1171 |
|
fixes the formatting issue filed in RT#2239 on 2004-01-13 and |
1172 |
|
reported today on thuban-list by Jan Sch�ngel |
1173 |
|
|
1174 |
|
* test/test_layer.py (TestLayerModification.setUp): Save the |
1175 |
|
filename as an instance variable so we can refer to it in tests |
1176 |
|
(TestLayerModification.test_tree_info): Uncomment this method |
1177 |
|
again and make it work. This tests for the formatting issue |
1178 |
|
filed in RT#2239 on 2004-01-13 |
1179 |
|
|
1180 |
|
2004-05-28 Bernhard Herzog <[email protected]> |
1181 |
|
|
1182 |
|
* Thuban/UI/baserenderer.py: Fix some typos. |
1183 |
|
|
1184 |
|
2004-05-18 Jan-Oliver Wagner <[email protected]> |
1185 |
|
|
1186 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug |
1187 |
|
by increasing a field size. |
1188 |
|
|
1189 |
|
2004-05-17 Bernhard Herzog <[email protected]> |
1190 |
|
|
1191 |
|
Update to newest shapelib and get rid of Thuban specific |
1192 |
|
extensions, i.e. use the new DBFUpdateHeader instead of our |
1193 |
|
DBFCommit kludge |
1194 |
|
|
1195 |
|
* libraries/shapelib/shpopen.c: Update to version from current |
1196 |
|
shapelib CVS. |
1197 |
|
|
1198 |
|
* libraries/shapelib/shapefil.h: Update to version from current |
1199 |
|
shapelib CVS. |
1200 |
|
|
1201 |
|
* libraries/shapelib/dbfopen.c: Update to version from current |
1202 |
|
shapelib CVS. |
1203 |
|
(DBFCommit): Effectively removed since shapelib itself has |
1204 |
|
DBFUpdateHeader now which is better for what DBFCommit wanted to |
1205 |
|
achieve. |
1206 |
|
We're now using an unmodified version of dbfopen. |
1207 |
|
|
1208 |
|
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with |
1209 |
|
value '1' to the Lib.dbflibc extension. This simply reflects the |
1210 |
|
shapelib and pyshapelib updates |
1211 |
|
|
1212 |
|
2004-05-16 Jan-Oliver Wagner <[email protected]> |
1213 |
|
|
1214 |
|
Finished introduction of Menu.FindOrInsertMenu. |
1215 |
|
|
1216 |
|
* Extensions/drawshape/drawshape.py: Add the command |
1217 |
|
to the experimental menu additionally to the toolbar. |
1218 |
|
|
1219 |
|
* Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of |
1220 |
|
finding menu on its own. |
1221 |
|
|
1222 |
|
* Doc/manual/thuban-manual.xml: updated sample file |
1223 |
|
to use FindOrInsertMenu(). |
1224 |
|
|
1225 |
|
* Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu() |
1226 |
|
instead of finding menu on its own. |
1227 |
|
|
1228 |
|
2004-05-11 Jan-Oliver Wagner <[email protected]> |
1229 |
|
|
1230 |
|
* test/test_menu.py (MenuTest.test): Added testing |
1231 |
|
of method Menu.FindOrInsertMenu. |
1232 |
|
|
1233 |
|
2004-05-10 Jan-Oliver Wagner <[email protected]> |
1234 |
|
|
1235 |
|
Introduce and use Menu.FindOrInsertMenu. |
1236 |
|
|
1237 |
|
* Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a |
1238 |
|
given menu or, if not found, insert it. |
1239 |
|
|
1240 |
|
* Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py, |
1241 |
|
/Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py, |
1242 |
|
/Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding |
1243 |
|
menu on its own. |
1244 |
|
|
1245 |
|
2004-05-06 Jan-Oliver Wagner <[email protected]> |
1246 |
|
|
1247 |
|
Introduce a abstract ColorDialog class and remove |
1248 |
|
and outdated file. |
1249 |
|
|
1250 |
|
* Thuban/UI/proj4dialog.py: Removed. It is has been |
1251 |
|
replaced by projdialog for quite a while and is not used |
1252 |
|
anymore. |
1253 |
|
|
1254 |
|
* Thuban/UI/colordialog.py: New. Abstraction for color selection |
1255 |
|
dialog(s). |
1256 |
|
|
1257 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor): |
1258 |
|
Now calls the abstract ColorDialog instead of wxColourDialog. |
1259 |
|
This also removed the dependency to Color class conversion |
1260 |
|
from this function. |
1261 |
|
|
1262 |
|
2004-05-04 Frank Koormann <[email protected]> |
1263 |
|
|
1264 |
|
* Extensions/bboxdump/__init__.py: Fixed string left over from |
1265 |
|
copying. |
1266 |
|
|
1267 |
|
* Extensions/bboxdump/bboxdump.py (bboxdump): |
1268 |
|
Use layer.ShapeStore().AllShapes() to loop over shapes instead of |
1269 |
|
xrange(layer.NumShapes()). Compile the bboxmessage from a list |
1270 |
|
of formatted outputs (string.join) instead of appending to the |
1271 |
|
message. Two progress bar dialogs to report progress on the sometimes |
1272 |
|
lenghty processing. |
1273 |
|
|
1274 |
|
2004-04-22 Frank Koormann <[email protected]> |
1275 |
|
|
1276 |
|
New Extension to dump bounding boxes of all shapes of the selected |
1277 |
|
layer. An optional column can be specified to group the objects, |
1278 |
|
in this case the bounding box is a union of the separate boxes. |
1279 |
|
Dump can be displayed in a ScrolledMessageDialog or written to file. |
1280 |
|
The Extension is simply a combination of available and well tested |
1281 |
|
Thuban functionality. |
1282 |
|
|
1283 |
|
* Extensions/bboxdump/__init__.py: New: Init to make this |
1284 |
|
directory a package. |
1285 |
|
|
1286 |
|
* Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of |
1287 |
|
all shapes of the selected layer. |
1288 |
|
|
1289 |
|
2004-04-22 Jan-Oliver Wagner <[email protected]> |
1290 |
|
|
1291 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two |
1292 |
|
strings to be i18n now. |
1293 |
|
|
1294 |
|
2004-04-18 Jan-Oliver Wagner <[email protected]> |
1295 |
|
|
1296 |
|
Changing popup menu of legend from direct building |
1297 |
|
to using the Menu construction as used for the mainwindow. |
1298 |
|
|
1299 |
|
* Thuban/UI/mainwindow.py: New method commands: layer_to_top, |
1300 |
|
layer_to_bottom, layer_visibility |
1301 |
|
(MainWindow.LayerToTop): New. Put current layer to the top. |
1302 |
|
(MainWindow.LayerToBottom): New. Put current layer to bottom. |
1303 |
|
(MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map): |
1304 |
|
Replace 1,0 by True, False. |
1305 |
|
(MainWindow.ToggleLayerVisibility): New. Toggle visibility of |
1306 |
|
current layer. |
1307 |
|
(MainWindow.LayerShowTable): Removed raising of dialog. |
1308 |
|
(_has_selected_layer_visible): New. Support function. |
1309 |
|
|
1310 |
|
* Thuban/UI/legend.py: ID_POP_xxx: removed. |
1311 |
|
(LegendPanel.__init__): Removed EVT_MENU bindings. |
1312 |
|
(LegendTree._OnRightClick): Replace direct creation of |
1313 |
|
menu via wx Classes by applying the menu definition |
1314 |
|
as of Menu class of menu.py. |
1315 |
|
|
1316 |
|
2004-04-16 Jan-Oliver Wagner <[email protected]> |
1317 |
|
|
1318 |
|
* Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved |
1319 |
|
button string to stronger clearify that Thuban will be closed when hitting |
1320 |
|
the button. |
1321 |
|
|
1322 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring. |
1323 |
|
Now for layers without a ShapeStore a corresponding message is given |
1324 |
|
to the user, that this layer has no table to show. |
1325 |
|
|
1326 |
|
2004-04-15 Martin Schulze <[email protected]> |
1327 |
|
|
1328 |
|
* Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to |
1329 |
|
recalculate the format for the internal render engine as well. |
1330 |
|
|
1331 |
|
* Extensions/wms/properties.py (wmsProperties): First start for a |
1332 |
|
properties dialog. It's functional for a first selection of |
1333 |
|
layers, but still has some weired wxWidgets/GTK problems but |
1334 |
|
beautification can be done later. |
1335 |
|
|
1336 |
|
* Extensions/wms/layer.py: Added more documentation |
1337 |
|
(WMSLayer.getFormats): New: Return list of supported image formats |
1338 |
|
by the WMS server |
1339 |
|
(WMSLayer.getLayers): New: Return the list of layer names |
1340 |
|
supported by the WMS server |
1341 |
|
(WMSLayer.getLayerTitle): New: Return the title of the named layer |
1342 |
|
(WMSLayer.getWMSFormat): New: Return the image format that is used |
1343 |
|
for WMS GetMap requests |
1344 |
|
(WMSLayer.setWMSFormat): New: Set the image format that is used |
1345 |
|
for WMS GetMap requests |
1346 |
|
(WMSLayer.__init__): Move away from using only one layer to using |
1347 |
|
a list of layers (unsorted at the moment, though). |
1348 |
|
(WMSLayer.getVisibleLayers): New: Return the list of names for all |
1349 |
|
visible layers |
1350 |
|
(WMSLayer.setVisibleLayers): New: Set the list of names for all |
1351 |
|
visible layers |
1352 |
|
|
1353 |
|
* Extensions/wms/wms.py: Moved the WMS layer into layer.py in |
1354 |
|
order to establish a clean structure. |
1355 |
|
|
1356 |
|
* Extensions/wms/layer.py: Moved the WMS layer into a file on its |
1357 |
|
own in order to establish a clean structure. |
1358 |
|
|
1359 |
|
2004-04-13 Martin Schulze <[email protected]> |
1360 |
|
|
1361 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added |
1362 |
|
support for oldstyle (WMS 1.0 apparently) image format |
1363 |
|
specification. |
1364 |
|
|
1365 |
|
* Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of |
1366 |
|
supported graphic formats back to JPEG and BMP, PNG and others are |
1367 |
|
too *cough* experimental... Sorry, I meant to filter this out |
1368 |
|
before I committed this part. This should make the WMS extension |
1369 |
|
run from CVS again. |
1370 |
|
(wms_dialog): Reset an empty URL to None so that the subsequent |
1371 |
|
program can depend on this, since the dialog will indeed return an |
1372 |
|
empty URL, causing another declaration of love by Python. |
1373 |
|
|
1374 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox): |
1375 |
|
Whenever a native BoundingBox request cannot be fulfilled, check |
1376 |
|
whether the requested SRS is EPSG:3426, in which case return the |
1377 |
|
LatLonBoundingBox values. |
1378 |
|
|
1379 |
|
* Extensions/wms/test/test_parser.py |
1380 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Added a test for |
1381 |
|
ignoring AUTO:* SRS. |
1382 |
|
(TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes): |
1383 |
|
Added another test method to test whether the LatLonBoundingBox |
1384 |
|
values will be returned if BoundingBox values are requested with |
1385 |
|
SRS set to EPSG:3426. |
1386 |
|
|
1387 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers): |
1388 |
|
Added rudimentary support for non-EPSG SRS, i.e. ignore them for |
1389 |
|
the moment by placing them into a variable which is currently |
1390 |
|
unused. Also test whether the EPSG SRS is numerical as it should |
1391 |
|
be and add an error message if it is not. |
1392 |
|
|
1393 |
|
* Extensions/wms/test/sample.xml: Added AUTO:* SRS since they |
1394 |
|
appear in the real world as well. Since we cannot handle them yet |
1395 |
|
(OGCLib can't either), we will ignore them for the moment. |
1396 |
|
|
1397 |
|
* Extensions/wms/parser.py: Use a variable for denoting the sample |
1398 |
|
filename |
1399 |
|
(WMSCapabilitiesParser.peekLayers): Added support for error |
1400 |
|
messages during grok(). They will be aggregated in an array and |
1401 |
|
may be displayed later. We may have to add a classification |
1402 |
|
"Warning" and "Error" to this. That requires more experience, |
1403 |
|
though, since not every error may be lethal. |
1404 |
|
|
1405 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the |
1406 |
|
ShowTable() dialog/frame when the user attempts to display it |
1407 |
|
while it has been opened before already and not closed again. |
1408 |
|
|
1409 |
|
2004-04-11 Martin Schulze <[email protected]> |
1410 |
|
|
1411 |
|
* Extensions/wms/infodialog.py: Adjusted the class documentation |
1412 |
|
|
1413 |
|
* Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg): |
1414 |
|
Switch to using Thuban{Begin,End}BusyCursor instead of the pure |
1415 |
|
wxWidgets variants. |
1416 |
|
(WMSLayer.__init__): The epsg_id variable is named top_srs now. |
1417 |
|
|
1418 |
|
* Extensions/wms/infodialog.py: Added an information dialog that |
1419 |
|
will display various information about the WMS current resource, |
1420 |
|
so that additional information such as the title, the abstract, |
1421 |
|
fees and access constraints can be displayed for the user if they |
1422 |
|
are documented in the WMS XML. |
1423 |
|
|
1424 |
|
2004-04-10 Martin Schulze <[email protected]> |
1425 |
|
|
1426 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted |
1427 |
|
string handling. It's "foo".lower() and not lower(foo) without |
1428 |
|
lower imported from strings or something. |
1429 |
|
|
1430 |
|
* Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities |
1431 |
|
from capabilities.py and parser.py. Implement priority list for |
1432 |
|
supported graphics formats, take care of wbmp != bmp. PNG, TIFF |
1433 |
|
and GIF are supported here, but not yet by main Thuban. Hence, |
1434 |
|
support for them may be removed later. Special contribution to |
1435 |
|
usability: get wxWidgets to change the cursor when we're waiting |
1436 |
|
for data from the network so the user won't start to worry. This |
1437 |
|
causes a redrawing error/warning, though. |
1438 |
|
|
1439 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink |
1440 |
|
the DOM object. |
1441 |
|
|
1442 |
|
2004-04-01 Martin Schulze <[email protected]> |
1443 |
|
|
1444 |
|
* Extensions/wms/capabilities.py: Adjusted documentation |
1445 |
|
(WMSCapabilities.__init__): Improved documentation, fixed syntax |
1446 |
|
(WMSCapabilities.saveCapabilities): Only catch IOError when |
1447 |
|
handling files |
1448 |
|
(WMSCapabilities.loadCapabilities): Only catch IOError when |
1449 |
|
handling files |
1450 |
|
__main__: corrected variable naming |
1451 |
|
(WMSCapabilities.fetchCapabilities,loadCapabilities): Make this |
1452 |
|
class a specialisation of WMSCapabilitiesParser as well. Also |
1453 |
|
execute grok() after loading or fetching capabilities, if that |
1454 |
|
went well, so that subsequent calls can already access the data. |
1455 |
|
(WMSCapabilities.getVersion): Export the used version of the |
1456 |
|
GetCapabilities request, so we can use it for subsequent calls, |
1457 |
|
i.e. for GetMap requests. |
1458 |
|
(WMSCapabilities.fetchCapabilities): Added proper error handling |
1459 |
|
when the GetCapabilities request failed, so that the surrounding |
1460 |
|
program can act accordingly. |
1461 |
|
|
1462 |
|
2004-03-30 Martin Schulze <[email protected]> |
1463 |
|
|
1464 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS): |
1465 |
|
Adjusted the getLayerSRS method to return the list of SRSes |
1466 |
|
extracted from <SRS> elements instead of <BoundingBox> elements. |
1467 |
|
Added a bit of documentation as well. |
1468 |
|
(WMSCapabilitiesParser.checkLayerSRS): Removed integrity test |
1469 |
|
since it was only implemented due to a misunderstanding. |
1470 |
|
|
1471 |
|
* Extensions/wms/test/test_parser.py |
1472 |
|
(TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to |
1473 |
|
reflect the corrected interpretation of the standard: i.e. a layer |
1474 |
|
does not have to define a BoundingBox for all SRSes it supports. |
1475 |
|
Hence the <SRS></SRS> specification is authoritative, not the list |
1476 |
|
of BoundingBoxes. |
1477 |
|
(TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test |
1478 |
|
to ensure None is returned for a non-existing SRS. |
1479 |
|
(TestWMSCapabilitiesParser.test_grok): Removed test_grok method |
1480 |
|
since it is not applicable anymore. Listing more SRSes in <SRS> |
1481 |
|
elements is valid according to the specs. |
1482 |
|
|
1483 |
|
2004-03-26 Bernhard Reiter <[email protected]> |
1484 |
|
|
1485 |
|
* README: Nicer formatting of text. Improved descriptions. |
1486 |
|
Reflected wxWidgets name change. |
1487 |
|
|
1488 |
|
* Thuban/UI/about.py: Extended copyright to 2004 and added |
1489 |
|
information about the thuban-devel mailinglist. |
1490 |
|
|
1491 |
|
2004-03-24 Martin Schulze <[email protected]> |
1492 |
|
|
1493 |
|
* Extensions/wms/capabilities.py: Renamed the class to contain |
1494 |
|
'WMS', also added a linebreak where required |
1495 |
|
|
1496 |
|
* Extensions/wms/parser.py: Finally added the XML parser for the |
1497 |
|
GetCapabilities response. |
1498 |
|
|
1499 |
|
* Extensions/wms/test/sample.xml: Adjusted the sample file so that |
1500 |
|
<SRS> elements match the <BoundingBox> elements, except for the |
1501 |
|
layer 'beschriftung'. |
1502 |
|
|
1503 |
|
* Extensions/wms/test/test_parser.py: Encode non-ascii strings |
1504 |
|
since Python uses unicode strings internally, otherwise |
1505 |
|
comparisons will fail. Removed tests for getLayerBBoxSRS() since |
1506 |
|
the SRS will be calculated anyway and this method is obsoleted by |
1507 |
|
getLayerSRS(). Denote SRS as strings and not as cardinal numbers. |
1508 |
|
Move loading the sample file into the setUp method. Added a test |
1509 |
|
for finding the integrity problem in the sample response. |
1510 |
|
Improved formatting. |
1511 |
|
|
1512 |
|
* Extensions/wms/domutils.py: Added convenience routines for |
1513 |
|
handling of Document Object Model (DOM) nodes. |
1514 |
|
|
1515 |
|
* Extensions/wms/test/test_domutils.py: Added a test for the |
1516 |
|
domutils module |
1517 |
|
|
1518 |
|
2004-03-19 Martin Schulze <[email protected]> |
1519 |
|
|
1520 |
|
* Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser): |
1521 |
|
Moved path detection and adding into a module of its own, |
1522 |
|
adjustpath, which exports thubandir as main Thuban directory. |
1523 |
|
|
1524 |
|
* Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path |
1525 |
|
detection and adding into a module of its own, adjustpath, which |
1526 |
|
exports thubandir as main Thuban directory. Reorganised the |
1527 |
|
module in order to support the SkipTest feature for Thuban test |
1528 |
|
cases. |
1529 |
|
|
1530 |
|
* Extensions/wms/test/adjustpath.py: Moved path detection and |
1531 |
|
adding into a module of its own. |
1532 |
|
|
1533 |
|
2004-03-18 Martin Schulze <[email protected]> |
1534 |
|
|
1535 |
|
* Extensions/wms/test/test_parser.py: Added another test for |
1536 |
|
checking whether the WMS XML parser (to be implemented) returns |
1537 |
|
the information we expect. This requires a sample WMS WML file |
1538 |
|
(sample.xml) which has been extracted from the frida server and |
1539 |
|
"improved" manually. |
1540 |
|
|
1541 |
|
* Extensions/wms/test/test_ogclib.py: Added legacy code to add the |
1542 |
|
main Thuban directory to the path in order to be able to import |
1543 |
|
random modules. Adjusted the PyOGCLib detection to reuse the |
1544 |
|
information gathered. Also added a note about the PYTHONPATH |
1545 |
|
environment variable. |
1546 |
|
|
1547 |
|
* Extensions/wms/test/test_ogclib.py: The format specification is |
1548 |
|
a mime-type, not a graphic format, hence image/jpeg wou ld be the |
1549 |
|
proper format and not JPEG. We'll also have to take care of the |
1550 |
|
encoding of / as %2F. |
1551 |
|
|
1552 |
|
2004-03-16 Martin Schulze <[email protected]> |
1553 |
|
|
1554 |
|
* Extensions/wms/test/test_ogclib.py: Added a (hopefully) |
1555 |
|
comprehensive test for the getMapURL method, built compare URLs |
1556 |
|
according to the documentation in OGC 01-068r3 |
1557 |
|
|
1558 |
|
* Extensions/wms/capabilities.py (WMSCapabilities): Added the |
1559 |
|
class WMSCapabilities to manage capabilites, will incorporate |
1560 |
|
parsing the capabilities response and provide details for other |
1561 |
|
classes. |
1562 |
|
|
1563 |
2004-03-12 Bernhard Herzog <[email protected]> |
2004-03-12 Bernhard Herzog <[email protected]> |
1564 |
|
|
1565 |
Support views in addition to normal tables in the postgis |
Support views in addition to normal tables in the postgis |
5971 |
Fix problem of hidden properties dialog under windows after double |
Fix problem of hidden properties dialog under windows after double |
5972 |
click on layer tree: |
click on layer tree: |
5973 |
The tree control always gets an Expanded / Collapsed event after |
The tree control always gets an Expanded / Collapsed event after |
5974 |
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
the ItemActivated on double click, which raises the main window again. |
5975 |
|
We add a second ItemActivated event to the queue, which simply |
5976 |
raises the already displayed window. |
raises the already displayed window. |
5977 |
|
|
5978 |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |