Skip to content

Commit 372e520

Browse files
committedOct 4, 2012
minor mapserverexport plugin fix
making it work on ms6 work out of the box again
1 parent d74d3f8 commit 372e520

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
 

‎python/plugins/mapserver_export/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def description():
2626
def category():
2727
return "Web"
2828
def version():
29-
return "Version 0.4.3"
29+
return "Version 0.4.4"
3030
def qgisMinimumVersion():
3131
return "1.0"
3232
def icon():

‎python/plugins/mapserver_export/ms_export.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ def writeMapSection(self):
283283
self.outFile.write("\n")
284284
# extents
285285
self.outFile.write(self.getExtentString())
286-
287-
self.outFile.write(" FONTSET '" + self.fontsPath + "'\n")
286+
# put FONTSET and SYMBOLSET in comments to make it work out of the box for beginners
287+
self.outFile.write(" #FONTSET '" + self.fontsPath + "'\n")
288288
# use of external symbol set
289-
self.outFile.write(" SYMBOLSET '" + self.symbolsPath + "'\n")
289+
self.outFile.write(" #SYMBOLSET '" + self.symbolsPath + "'\n")
290290

291291
def getExtentString(self):
292292
stringToAddTo = ""
@@ -404,6 +404,9 @@ def writeWebSection(self):
404404
"'?\n Be sure there is a valid mapserverurl in the 'ows_onlineresource'.\n"
405405
self.outFile.write(" 'ows_onlineresource' '" + self.mapServerUrl + "?" + "map" + "=" + self.mapFile + "'\n")
406406
self.outFile.write(" 'ows_srs' 'EPSG:" + epsg + "'\n")
407+
# enable all layers for ows requests to work for mapserver 6.x
408+
self.outFile.write(" 'ows_enable_request' '*'\n")
409+
407410
self.outFile.write(" END\n\n")
408411

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

0 commit comments

Comments
 (0)
Please sign in to comment.