[processing] fixed handling of source strings in ogr algorithms

This commit is contained in:
volaya 2014-12-16 14:01:32 +01:00
parent 9fbcc7e248
commit 901c7642d1

View File

@ -65,8 +65,8 @@ class OgrAlgorithm(GdalAlgorithm):
s = re.sub(''' sslmode=.+''', '', unicode(layer.source()))
ogrstr = 'PG:%s' % s
else:
ogrstr = unicode(layer.source())
return ogrstr
ogrstr = unicode(layer.source()).split("|")[0]
return '"' + ogrstr + '"'
def ogrLayerName(self, uri):
if 'host' in uri: