bernhard: thuban/Extensions/svgexport TODO, 1.1, 1.2 __init__.py, 1.6, 1.7 maplegend.py, 1.3, 1.4 svgmapwriter.py, 1.12, 1.13 svgsaver.py, 1.5, 1.6

cvs@intevation.de cvs at intevation.de
Sat Dec 18 03:37:01 CET 2004


Author: bernhard

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

Modified Files:
	TODO __init__.py maplegend.py svgmapwriter.py svgsaver.py 
Log Message:
	svgexport 1.0.0: Treats holes and islands nicely. Documentation added.

	* Extensions/svgexport/test/test_svgmapwriter.py:
	Added new tests: test_export_polygon_with_hole() 
	and test_polygon_with_hole().

	* Extensions/svgexport/svgmapwriter.py
	(draw_polygon_shape()): Uses DrawPath correctly now.

	* Doc/manual/thuban-manual.xml: Added documentation for stable
	extention svgexport.	
	* Doc/manual/thuban-manual-de.xml: Copied English section about
	svexport over.

 	* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.

	* Extensions/svgexport/svgsaver.py,maplegend.py: 
	Moved from experimental to stable extension menu.

	* Extensions/svgexport/TODO: updated.


Index: TODO
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/TODO,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- TODO	18 Dec 2004 00:32:48 -0000	1.1
+++ TODO	18 Dec 2004 02:36:59 -0000	1.2
@@ -1,11 +1,9 @@
 Todo file for Thuban svgexport Extension
 
-For 1.0.0:
-
-* Support holes and islands in a "polygon".
-* Add basic documentation
+For 1.0.x, x>0:
 
-For 1.0.x:
+* find out why the memory shapes in class Testobjectexport
+  return points with negative values with projected_points
 
 Better support for variable Point sizes:
 * a real test for variable point sizes

Index: __init__.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/__init__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- __init__.py	11 Dec 2004 03:24:36 -0000	1.6
+++ __init__.py	18 Dec 2004 02:36:59 -0000	1.7
@@ -23,8 +23,8 @@
 from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry
 
 ext_registry.add(ExtensionDesc(
-    name = 'SVGexport',
-    version = '0.9.2',
+    name = 'SVG Export',
+    version = '1.0.0',
     authors= [ 'Markus Rechtien', 'Bernhard Reiter' ],
     copyright = '2004 Intevation GmbH',
     desc = _("Export the current map and legend in Thuban-map-SVG format.")))

Index: maplegend.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/maplegend.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- maplegend.py	24 Nov 2004 22:52:06 -0000	1.3
+++ maplegend.py	18 Dec 2004 02:36:59 -0000	1.4
@@ -172,9 +172,8 @@
 registry.Add(Command('write_legend', _('Write SVG Legend'), write_legend,
                      helptext = _('Write a basic Legend for the map.')))
 
-# find the experimental menu (create it anew if not found)
-experimental_menu = main_menu.FindOrInsertMenu('experimental',
-                                               _('Experimenta&l'))
+# find the menu we want to be in (create it anew if not found)
+menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
 
 # finally bind the new command with an entry in the extensions menu
-experimental_menu.InsertItem('write_legend')
+menu.InsertItem('write_legend')

Index: svgmapwriter.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/svgmapwriter.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- svgmapwriter.py	18 Dec 2004 00:29:04 -0000	1.12
+++ svgmapwriter.py	18 Dec 2004 02:36:59 -0000	1.13
@@ -225,8 +225,7 @@
 
         self.dc.SetBrush(brush)
         self.dc.SetPen(pen)
-        for parts in points:
-            self.dc.DrawPath([parts],closed=1)
+        self.dc.DrawPath(points,closed=1)
 
     def draw_point_shape(self, layer, points, pen, brush, size=2):
         """Draw a point shape from layer with the given brush and pen

Index: svgsaver.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/svgsaver.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- svgsaver.py	20 Nov 2004 12:52:25 -0000	1.5
+++ svgsaver.py	18 Dec 2004 02:36:59 -0000	1.6
@@ -99,9 +99,8 @@
 registry.Add(Command('write_to_svg', _('Write SVG Map'), write_to_svg,
                      helptext = _('Export the a map into a SVG file')))
 
-# find the experimental menu (create it anew if not found)
-experimental_menu = main_menu.FindOrInsertMenu('experimental',
-                                               _('Experimenta&l'))
+# find the menu we want to be in (create it anew if not found)
+menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
 
 # finally bind the new command with an entry in the extensions menu
-experimental_menu.InsertItem('write_to_svg')
+menu.InsertItem('write_to_svg')





More information about the Thuban-devel mailing list

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