File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/plugins/processing/algs/grass Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ def processAlgorithm(self, progress):
345
345
346
346
for out in self .outputs :
347
347
if isinstance (out , OutputRaster ):
348
- filename = out .value
348
+ filename = out .getCompatibleFileName ( self )
349
349
350
350
# Raster layer output: adjust region to layer before
351
351
# exporting
@@ -372,11 +372,11 @@ def processAlgorithm(self, progress):
372
372
outputCommands .append (command )
373
373
374
374
if isinstance (out , OutputVector ):
375
- filename = out .value
375
+ filename = out .getCompatibleFileName ( self )
376
376
command = 'v.out.ogr -s -c -e -z input=' + out .name + uniqueSufix
377
- command += ' dsn="' + os .path .dirname (out . value ) + '"'
377
+ command += ' dsn="' + os .path .dirname (filename ) + '"'
378
378
command += ' format=ESRI_Shapefile'
379
- command += ' olayer=' + os .path .basename ( out . value )[: - 4 ]
379
+ command += ' olayer=' + os .path .splitext ( os . path . basename ( filename ))[ 0 ]
380
380
typeidx = \
381
381
self .getParameterValue (self .GRASS_OUTPUT_TYPE_PARAMETER )
382
382
outtype = ('auto' if typeidx
You can’t perform that action at this time.
0 commit comments