Skip to content

Commit

Permalink
minor mapserverexport plugin fix
Browse files Browse the repository at this point in the history
making it work on ms6 work out of the box again
  • Loading branch information
rduivenvoorde committed Oct 4, 2012
1 parent d74d3f8 commit 372e520
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/mapserver_export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def description():
def category():
return "Web"
def version():
return "Version 0.4.3"
return "Version 0.4.4"
def qgisMinimumVersion():
return "1.0"
def icon():
Expand Down
9 changes: 6 additions & 3 deletions python/plugins/mapserver_export/ms_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ def writeMapSection(self):
self.outFile.write("\n")
# extents
self.outFile.write(self.getExtentString())

self.outFile.write(" FONTSET '" + self.fontsPath + "'\n")
# put FONTSET and SYMBOLSET in comments to make it work out of the box for beginners
self.outFile.write(" #FONTSET '" + self.fontsPath + "'\n")
# use of external symbol set
self.outFile.write(" SYMBOLSET '" + self.symbolsPath + "'\n")
self.outFile.write(" #SYMBOLSET '" + self.symbolsPath + "'\n")

def getExtentString(self):
stringToAddTo = ""
Expand Down Expand Up @@ -404,6 +404,9 @@ def writeWebSection(self):
"'?\n Be sure there is a valid mapserverurl in the 'ows_onlineresource'.\n"
self.outFile.write(" 'ows_onlineresource' '" + self.mapServerUrl + "?" + "map" + "=" + self.mapFile + "'\n")
self.outFile.write(" 'ows_srs' 'EPSG:" + epsg + "'\n")
# enable all layers for ows requests to work for mapserver 6.x
self.outFile.write(" 'ows_enable_request' '*'\n")

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

self.outFile.write(" #Scale range at which web interface will operate\n")
Expand Down

0 comments on commit 372e520

Please sign in to comment.