Skip to content
Permalink
Browse files
Dont write FILTER keyword if the SQL filter doesn't exists
git-svn-id: http://svn.osgeo.org/qgis/trunk@8302 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Mar 30, 2008
1 parent d62f213 commit d3aaacc2945d3c4b3f97c3f1b66c643ae67be636
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/mapserver_export/ms_export.py
@@ -308,7 +308,8 @@ def writeMapLayers(self):
self.outFile.write(" CONNECTIONTYPE postgis\n")
self.outFile.write(" CONNECTION '" + pgConnString + "'\n")
self.outFile.write(" DATA '" + sqlData + "'\n")
self.outFile.write(" FILTER '" + sqlFilter + "'\n")
if sqlFilter:
self.outFile.write(" FILTER '" + sqlFilter + "'\n")

elif providerString == 'wms' and lyr.getAttribute("type").encode('utf-8').upper() == 'RASTER':
# it's a WMS layer

0 comments on commit d3aaacc

Please sign in to comment.