File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
python/plugins/processing/algs/grass7/ext Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 31
31
32
32
def processOutputs (alg ):
33
33
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 (
35
35
alg .exportedLayers [out ],
36
36
os .path .dirname (out ),
37
37
os .path .splitext (os .path .basename (out ))[0 ]
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def processOutputs(alg):
68
68
# Output results ('from' table and output table)
69
69
for output in [u'from_output' , u'output' ]:
70
70
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 (
72
72
alg .exportedLayers [out ],
73
73
os .path .dirname (out ),
74
74
os .path .basename (out )[:- 4 ]
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def processOutputs(alg):
66
66
# We need to add the from layer to outputs:
67
67
out = alg .exportedLayers [alg .getParameterValue ('map' )]
68
68
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 (
70
70
out , os .path .dirname (from_out ),
71
71
os .path .splitext (os .path .basename (from_out ))[0 ]
72
72
)
Original file line number Diff line number Diff line change 30
30
31
31
def processOutputs (alg ):
32
32
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 (
34
34
alg .exportedLayers [out ],
35
35
os .path .dirname (out ),
36
36
os .path .basename (out )[:- 4 ]
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def processOutputs(alg):
42
42
# We need to add the vector layer to outputs:
43
43
out = alg .exportedLayers [alg .getParameterValue ('areas' )]
44
44
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 (
46
46
out , os .path .dirname (from_out ),
47
47
os .path .splitext (os .path .basename (from_out ))[0 ]
48
48
)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def removeOutput(alg):
46
46
def outputInput (alg ):
47
47
"""Make output the initial point/polygon layer"""
48
48
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 (
50
50
alg .exportedLayers [alg .getParameterValue (u'map' )],
51
51
os .path .dirname (output ),
52
52
os .path .basename (output )[:- 4 ]
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def processOutputs(alg):
42
42
# We need to add the vector layer to outputs:
43
43
out = alg .exportedLayers [alg .getParameterValue ('map' )]
44
44
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 (
46
46
out , os .path .dirname (from_out ),
47
47
os .path .splitext (os .path .basename (from_out ))[0 ]
48
48
)
You can’t perform that action at this time.
0 commit comments