Skip to content
Permalink
Browse files
Quoted names and classes where appropriate
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@7005 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jun 10, 2007
1 parent ce161d0 commit e086af3fd7b36c25d413114d56f0af8d7234084b
Showing with 3 additions and 3 deletions.
  1. +3 −3 tools/mapserver_export/ms_export.py
@@ -96,7 +96,7 @@ def writeMapSection(self):
self.outFile.write("# Map file created from QGIS project file " + self.project + "\n")
self.outFile.write("# Edit this file to customize for your map interface\n")
self.outFile.write("MAP\n")
self.outFile.write(" NAME " + self.mapName + "\n")
self.outFile.write(" NAME '" + self.mapName + "'\n")
self.outFile.write(" # Map image size\n")
self.outFile.write(" SIZE " + self.width + " " + self.height + "\n")
self.outFile.write(" UNITS " + self.units.lower() + "\n")
@@ -364,9 +364,9 @@ def simpleRenderer(self, layerNode, symbolNode):

self.outFile.write(" CLASS\n")

self.outFile.write(" NAME "
self.outFile.write(" NAME '"
+ layerNode.getElementsByTagName("layername")[0].childNodes[0].nodeValue.encode('utf-8')
+ " \n")
+ "'\n")

self.outFile.write(" STYLE\n")
# use the point symbol map to lookup the mapserver symbol type

0 comments on commit e086af3

Please sign in to comment.