Skip to content
Permalink
Browse files

fix processing GRASS 7 v.out.ogr

  • Loading branch information
Giovanni Manghi
Giovanni Manghi committed Oct 25, 2015
1 parent 3d93237 commit 77451f962c15317905000909caf0d6067655f040
Showing with 6 additions and 6 deletions.
  1. +6 −6 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -402,21 +402,21 @@ def processAlgorithm(self, progress):
outtype = ('auto' if typeidx
is None else self.OUTPUT_TYPES[typeidx])
if self.grass7Name == 'r.flow':
command = 'v.out.ogr type=line layer=0 -c -s -e input=' + out.name + uniqueSufix
command = 'v.out.ogr type=line layer=0 -s -e input=' + out.name + uniqueSufix
elif self.grass7Name == 'v.voronoi':
if '-l' in command:
command = 'v.out.ogr type=line layer=0 -c -s -e input=' + out.name + uniqueSufix
command = 'v.out.ogr type=line layer=0 -s -e input=' + out.name + uniqueSufix
else:
command = 'v.out.ogr -c -s -e input=' + out.name + uniqueSufix
command = 'v.out.ogr -s -e input=' + out.name + uniqueSufix
command += ' type=' + outtype
elif self.grass7Name == 'v.sample':
command = 'v.out.ogr type=point -c -s -e input=' + out.name + uniqueSufix
command = 'v.out.ogr type=point -s -e input=' + out.name + uniqueSufix
else:
command = 'v.out.ogr -c -s -e input=' + out.name + uniqueSufix
command = 'v.out.ogr -s -e input=' + out.name + uniqueSufix
command += ' type=' + outtype
command += ' output="' + os.path.dirname(out.value) + '"'
command += ' format=ESRI_Shapefile'
command += ' olayer=' + os.path.basename(out.value)[:-4]
command += ' output_layer=' + os.path.basename(out.value)[:-4]
commands.append(command)
outputCommands.append(command)

0 comments on commit 77451f9

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