Skip to content

Commit

Permalink
Dont write FILTER keyword if the SQL filter doesn't exists
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8302 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Mar 30, 2008
1 parent a7a81fe commit 51e3330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/mapserver_export/ms_export.py
Expand Up @@ -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
Expand Down

0 comments on commit 51e3330

Please sign in to comment.