Skip to content
Permalink
Browse files
Merge pull request #1720 from neteler/patch-6
[processing] Update Grass7Algorithm.py
  • Loading branch information
alexbruy committed Dec 7, 2014
2 parents 759a148 + c522112 commit a6fcb3a4128a06c1a5cb50285be3ce4e9d5b4957
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -378,7 +378,7 @@ def processAlgorithm(self, progress):
filename = out.value
# FIXME: check if needed: -c Also export features without category (not labeled). Otherwise only features with category are exported.
command = 'v.out.ogr -s -e input=' + out.name + uniqueSufix
command += ' dsn="' + os.path.dirname(out.value) + '"'
command += ' output="' + os.path.dirname(out.value) + '"'
command += ' format=ESRI_Shapefile'
command += ' olayer=' + os.path.basename(out.value)[:-4]
typeidx = \
@@ -446,7 +446,7 @@ def exportVectorLayer(self, orgFilename):
command += ' min_area=' + str(min_area)
snap = self.getParameterValue(self.GRASS_SNAP_TOLERANCE_PARAMETER)
command += ' snap=' + str(snap)
command += ' dsn="' + os.path.dirname(filename) + '"'
command += ' input="' + os.path.dirname(filename) + '"'
command += ' layer=' + os.path.basename(filename)[:-4]
command += ' output=' + destFilename
command += ' --overwrite -o'

0 comments on commit a6fcb3a

Please sign in to comment.