Skip to content

Commit 7935c41

Browse files
authoredOct 6, 2017
Merge pull request #5313 from NaturalGIS/grass7_more_output_fixes
[processing] fix output command for some GRASS 7 tools
2 parents e8628fb + 6b7cc06 commit 7935c41

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed
 

‎python/plugins/processing/algs/grass7/ext/v_build_polylines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
def processOutputs(alg):
3333
out = alg.getOutputValue('output')
34-
command = u"v.out.ogr -c -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
34+
command = u"v.out.ogr --overwrite -c -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
3535
alg.exportedLayers[out],
3636
os.path.dirname(out),
3737
os.path.splitext(os.path.basename(out))[0]

‎python/plugins/processing/algs/grass7/ext/v_distance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def processOutputs(alg):
6868
# Output results ('from' table and output table)
6969
for output in [u'from_output', u'output']:
7070
out = alg.getOutputValue(output)
71-
command = u"v.out.ogr -c type=auto -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
71+
command = u"v.out.ogr --overwrite -c type=auto -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
7272
alg.exportedLayers[out],
7373
os.path.dirname(out),
7474
os.path.basename(out)[:-4]

‎python/plugins/processing/algs/grass7/ext/v_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def processOutputs(alg):
6666
# We need to add the from layer to outputs:
6767
out = alg.exportedLayers[alg.getParameterValue('map')]
6868
from_out = alg.getOutputValue('output')
69-
command = u"v.out.ogr -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
69+
command = u"v.out.ogr --overwrite -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
7070
out, os.path.dirname(from_out),
7171
os.path.splitext(os.path.basename(from_out))[0]
7272
)

‎python/plugins/processing/algs/grass7/ext/v_net_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
def processOutputs(alg):
3232
out = alg.getOutputValue(u"output")
33-
command = u"v.out.ogr -c type=line layer=1 -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
33+
command = u"v.out.ogr --overwrite -c type=line layer=1 -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
3434
alg.exportedLayers[out],
3535
os.path.dirname(out),
3636
os.path.basename(out)[:-4]

‎python/plugins/processing/algs/grass7/ext/v_vect_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def processOutputs(alg):
4242
# We need to add the vector layer to outputs:
4343
out = alg.exportedLayers[alg.getParameterValue('areas')]
4444
from_out = alg.getOutputValue('output')
45-
command = u"v.out.ogr -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
45+
command = u"v.out.ogr --overwrite -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
4646
out, os.path.dirname(from_out),
4747
os.path.splitext(os.path.basename(from_out))[0]
4848
)

‎python/plugins/processing/algs/grass7/ext/v_what_rast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def removeOutput(alg):
4646
def outputInput(alg):
4747
"""Make output the initial point/polygon layer"""
4848
output = alg.getOutputValue(u'output')
49-
command = u"v.out.ogr -c type=auto -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
49+
command = u"v.out.ogr --overwrite -c type=auto -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
5050
alg.exportedLayers[alg.getParameterValue(u'map')],
5151
os.path.dirname(output),
5252
os.path.basename(output)[:-4]

‎python/plugins/processing/algs/grass7/ext/v_what_vect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def processOutputs(alg):
4242
# We need to add the vector layer to outputs:
4343
out = alg.exportedLayers[alg.getParameterValue('map')]
4444
from_out = alg.getOutputValue('output')
45-
command = u"v.out.ogr -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
45+
command = u"v.out.ogr --overwrite -s -e input={} output=\"{}\" format=ESRI_Shapefile output_layer={}".format(
4646
out, os.path.dirname(from_out),
4747
os.path.splitext(os.path.basename(from_out))[0]
4848
)

0 commit comments

Comments
 (0)
Please sign in to comment.