From c5221125345cee654e1ea7c5d8503a84cc5cf455 Mon Sep 17 00:00:00 2001 From: Markus Neteler Date: Thu, 4 Dec 2014 21:57:19 +0100 Subject: [PATCH] Update Grass7Algorithm.py GRASS GIS 7 update: dsn -> input|output as per http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/renamed_options --- python/plugins/processing/algs/grass7/Grass7Algorithm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/algs/grass7/Grass7Algorithm.py b/python/plugins/processing/algs/grass7/Grass7Algorithm.py index 99f33a62c1d..b14ffafe3db 100644 --- a/python/plugins/processing/algs/grass7/Grass7Algorithm.py +++ b/python/plugins/processing/algs/grass7/Grass7Algorithm.py @@ -378,7 +378,7 @@ class Grass7Algorithm(GeoAlgorithm): 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 @@ class Grass7Algorithm(GeoAlgorithm): 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'