Skip to content
Permalink
Browse files

Merge pull request #4117 from NaturalGIS/fix_qgis3_ogrtools

[processing] fix some ogr tools in master
  • Loading branch information
alexbruy committed Feb 8, 2017
2 parents 2f68d1a + 566c058 commit bd6e0685434687273ed1d422cc7b2e6327918cec
@@ -134,7 +134,8 @@ def getConsoleCommands(self):
arguments = []
arguments.append('-f')
arguments.append(outFormat)
if len(options) > 0:

if options is not None and len(options.strip()) > 0:
arguments.append(options)

arguments.append(output)
@@ -75,7 +75,8 @@ def getConsoleCommands(self):
arguments.append(ogrClipLayer)
arguments.append("-clipsrclayer")
arguments.append(ogrLayerName(clipLayer))
if len(options) > 0:

if options is not None and len(options.strip()) > 0:
arguments.append(options)

arguments.append(output)
@@ -78,7 +78,7 @@ def getConsoleCommands(self):
arguments.append(regionCoords[3])
arguments.append('-clipsrc spat_extent')

if len(options) > 0:
if options is not None and len(options.strip()) > 0:
arguments.append(options)

arguments.append(output)
@@ -134,7 +134,7 @@ def getConsoleCommands(self):
if not multi:
arguments.append('-explodecollections')

if options is not None and len(options) > 0:
if options is not None and len(options.strip()) > 0:
arguments.append(options)

commands = []
@@ -90,7 +90,7 @@ def getConsoleCommands(self):
arguments.append(layername)
arguments.append('"')

if len(options) > 0:
if options is not None and len(options.strip()) > 0:
arguments.append(options)

commands = []

0 comments on commit bd6e068

Please sign in to comment.
You can’t perform that action at this time.