Skip to content
Permalink
Browse files

fix some ogr tools in master

  • Loading branch information
gioman committed Feb 8, 2017
1 parent 2f68d1a commit 566c058db8e0f78baab2ff5430733a24358d307f
@@ -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 566c058

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