mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
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
This commit is contained in:
parent
d62f213fbb
commit
d3aaacc294
@ -308,7 +308,8 @@ class Qgis2Map:
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user