Skip to content

Commit

Permalink
Quoted names and classes where appropriate
Browse files Browse the repository at this point in the history
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 e086af3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/mapserver_export/ms_export.py
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e086af3

Please sign in to comment.