File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
python/plugins/processing/algs/grass7 Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -390,20 +390,21 @@ def processAlgorithm(self, progress):
390
390
391
391
if isinstance (out , OutputVector ):
392
392
filename = out .value
393
- # FIXME: check if needed: -c Also export features without category (not labeled). Otherwise only features with category are exported.
394
393
typeidx = self .getParameterValue (self .GRASS_OUTPUT_TYPE_PARAMETER )
395
394
outtype = ('auto' if typeidx
396
395
is None else self .OUTPUT_TYPES [typeidx ])
397
396
if self .grass7Name == 'r.flow' :
398
- command = 'v.out.ogr type=line layer=0 -c -e input=' + out .name + uniqueSufix
397
+ command = 'v.out.ogr type=line layer=0 -c -s - e input=' + out .name + uniqueSufix
399
398
elif self .grass7Name == 'v.voronoi' :
400
399
if '-l' in command :
401
- command = 'v.out.ogr type=line layer=0 -c -e input=' + out .name + uniqueSufix
400
+ command = 'v.out.ogr type=line layer=0 -c -s - e input=' + out .name + uniqueSufix
402
401
else :
403
- command = 'v.out.ogr -s -e input=' + out .name + uniqueSufix
402
+ command = 'v.out.ogr -c - s -e input=' + out .name + uniqueSufix
404
403
command += ' type=' + outtype
404
+ elif self .grass7Name == 'v.sample' :
405
+ command = 'v.out.ogr type=point -c -s -e input=' + out .name + uniqueSufix
405
406
else :
406
- command = 'v.out.ogr -s -e input=' + out .name + uniqueSufix
407
+ command = 'v.out.ogr -c - s -e input=' + out .name + uniqueSufix
407
408
command += ' type=' + outtype
408
409
command += ' output="' + os .path .dirname (out .value ) + '"'
409
410
command += ' format=ESRI_Shapefile'
You can’t perform that action at this time.
0 commit comments