Skip to content

Commit b339ad1

Browse files
committed
Merge pull request #2399 from NaturalGIS/processing_fix_grass7_v_out_ogr
fix processing GRASS 7 v.out.ogr
2 parents c866dcc + 77451f9 commit b339ad1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,21 +402,21 @@ def processAlgorithm(self, progress):
402402
outtype = ('auto' if typeidx
403403
is None else self.OUTPUT_TYPES[typeidx])
404404
if self.grass7Name == 'r.flow':
405-
command = 'v.out.ogr type=line layer=0 -c -s -e input=' + out.name + uniqueSufix
405+
command = 'v.out.ogr type=line layer=0 -s -e input=' + out.name + uniqueSufix
406406
elif self.grass7Name == 'v.voronoi':
407407
if '-l' in command:
408-
command = 'v.out.ogr type=line layer=0 -c -s -e input=' + out.name + uniqueSufix
408+
command = 'v.out.ogr type=line layer=0 -s -e input=' + out.name + uniqueSufix
409409
else:
410-
command = 'v.out.ogr -c -s -e input=' + out.name + uniqueSufix
410+
command = 'v.out.ogr -s -e input=' + out.name + uniqueSufix
411411
command += ' type=' + outtype
412412
elif self.grass7Name == 'v.sample':
413-
command = 'v.out.ogr type=point -c -s -e input=' + out.name + uniqueSufix
413+
command = 'v.out.ogr type=point -s -e input=' + out.name + uniqueSufix
414414
else:
415-
command = 'v.out.ogr -c -s -e input=' + out.name + uniqueSufix
415+
command = 'v.out.ogr -s -e input=' + out.name + uniqueSufix
416416
command += ' type=' + outtype
417417
command += ' output="' + os.path.dirname(out.value) + '"'
418418
command += ' format=ESRI_Shapefile'
419-
command += ' olayer=' + os.path.basename(out.value)[:-4]
419+
command += ' output_layer=' + os.path.basename(out.value)[:-4]
420420
commands.append(command)
421421
outputCommands.append(command)
422422

0 commit comments

Comments
 (0)