bernhard: thuban/Extensions/svgexport __init__.py, 1.8, 1.9 svgmapwriter.py, 1.16, 1.17

cvs@intevation.de cvs at intevation.de
Mon Oct 17 22:10:20 CEST 2005


Author: bernhard

Update of /thubanrepository/thuban/Extensions/svgexport
In directory doto:/tmp/cvs-serv29320/Extensions/svgexport

Modified Files:
	__init__.py svgmapwriter.py 
Log Message:
svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
You could actually get polylines with filling in between,
when the classification for the lines had a fill color.
E.g. this happens when you generate a classification from a ramp.


Index: __init__.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/__init__.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- __init__.py	27 Dec 2004 17:00:14 -0000	1.8
+++ __init__.py	17 Oct 2005 20:10:18 -0000	1.9
@@ -1,4 +1,4 @@
-# Copyright (C) 2004 by Intevation GmbH
+# Copyright (C) 2004, 2005 by Intevation GmbH
 # Authors:
 # Bernhard Herzog <bh at intevation.de> (2004)
 # Jan-Oliver Wagner <jan at intevation.de> (2004)
@@ -26,5 +26,5 @@
     name = 'SVG Export',
     version = '1.0.0cvs',
     authors= [ 'Markus Rechtien', 'Bernhard Reiter' ],
-    copyright = '2004 Intevation GmbH',
+    copyright = '2004, 2005 Intevation GmbH',
     desc = _("Export the current map and legend in Thuban-map-SVG format.")))

Index: svgmapwriter.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/svgmapwriter.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- svgmapwriter.py	27 Dec 2004 17:00:15 -0000	1.16
+++ svgmapwriter.py	17 Oct 2005 20:10:18 -0000	1.17
@@ -1,7 +1,7 @@
-# Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH
+# Copyright (c) 2001, 2002, 2003, 2004, 2005 by Intevation GmbH
 # Authors:
 #     Markus Rechtien <markus at intevation.de>
-#     Bernhard Reiter <bernhard at intevation.de>
+#     Bernhard Reiter <bernhard at intevation.de> (2004, 2005)
 #
 # This program is free software under the GPL (>=v2)
 # Read the file COPYING coming with Thuban for details.
@@ -35,7 +35,7 @@
 import binascii 
 
 from Thuban import _
-from Thuban.Model.data import SHAPETYPE_POINT
+from Thuban.Model.data import SHAPETYPE_POINT, SHAPETYPE_ARC
 # VirtualDC extends XMLWriter
 from Thuban.Model.xmlwriter import XMLWriter, escape
 # Color related classes from the model of thuban
@@ -326,8 +326,11 @@
                 data = shape.Points()
 
             if shapeType==SHAPETYPE_POINT:
-                 draw_func(draw_func_param, data, pen, brush,
+            	draw_func(draw_func_param, data, pen, brush,
                            size = group.GetProperties().GetSize())
+            elif shapeType==SHAPETYPE_ARC:
+	    	# do not fill the polylines in linestring layers
+            	draw_func(draw_func_param, data, pen, TRANSPARENT_BRUSH)
             else:
                  draw_func(draw_func_param, data, pen, brush)
             # compatibility





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)