jschuengel: thuban/Extensions/umn_mapserver mf_export.py,1.5,1.6

cvs@intevation.de cvs at intevation.de
Wed Jul 28 14:36:29 CEST 2004


Author: jschuengel

Update of /thubanrepository/thuban/Extensions/umn_mapserver
In directory doto:/tmp/cvs-serv24883

Modified Files:
	mf_export.py 
Log Message:
Changed the code to set the extent in the mapfile. Now the code is set by the displayed data in the Thuban-view. 
(export_mapfile): The shapepath is now set empty, until relative pathnames are supported.


Index: mf_export.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/umn_mapserver/mf_export.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mf_export.py	22 Jul 2004 12:37:28 -0000	1.5
+++ mf_export.py	28 Jul 2004 12:36:27 -0000	1.6
@@ -70,9 +70,8 @@
     map.set_name(tb_map.Title())
     # set the projection
     tbproj_to_map(tb_map, map)
-    # set the extend
-    tb_bbox = tb_map.ProjectedBoundingBox()
-    # tb_bbox = tb_context.mainwindow.canvas.get_view_transform()
+    # set the extent
+    tb_bbox = tb_context.mainwindow.canvas.VisibleExtent()
     # Size must be set before, because mapscript checks it
     # when extent is set
     map.set_extent(tb_bbox)
@@ -128,6 +127,9 @@
 
     #add symbol
     add_circle_symbol(theMap)
+    
+    # shapepath vom mapfile
+    theMap.set_shapepath("")
 
     # save the map with the integrated mapscript saver
     theMap.save_map(os.path.join(path,file))





More information about the Thuban-devel mailing list

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