Skip to content

Commit c522112

Browse files
committed
Update Grass7Algorithm.py
GRASS GIS 7 update: dsn -> input|output as per http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/renamed_options
1 parent 0fa40a6 commit c522112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def processAlgorithm(self, progress):
378378
filename = out.value
379379
# FIXME: check if needed: -c Also export features without category (not labeled). Otherwise only features with category are exported.
380380
command = 'v.out.ogr -s -e input=' + out.name + uniqueSufix
381-
command += ' dsn="' + os.path.dirname(out.value) + '"'
381+
command += ' output="' + os.path.dirname(out.value) + '"'
382382
command += ' format=ESRI_Shapefile'
383383
command += ' olayer=' + os.path.basename(out.value)[:-4]
384384
typeidx = \
@@ -446,7 +446,7 @@ def exportVectorLayer(self, orgFilename):
446446
command += ' min_area=' + str(min_area)
447447
snap = self.getParameterValue(self.GRASS_SNAP_TOLERANCE_PARAMETER)
448448
command += ' snap=' + str(snap)
449-
command += ' dsn="' + os.path.dirname(filename) + '"'
449+
command += ' input="' + os.path.dirname(filename) + '"'
450450
command += ' layer=' + os.path.basename(filename)[:-4]
451451
command += ' output=' + destFilename
452452
command += ' --overwrite -o'

0 commit comments

Comments
 (0)