Skip to content

Commit

Permalink
[processing] fixed output to non-supported vector formats in GRASS
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 22, 2015
1 parent 83782cc commit a135164
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/grass/GrassAlgorithm.py
Expand Up @@ -345,7 +345,7 @@ def processAlgorithm(self, progress):

for out in self.outputs:
if isinstance(out, OutputRaster):
filename = out.value
filename = out.getCompatibleFileName(self)

# Raster layer output: adjust region to layer before
# exporting
Expand All @@ -372,11 +372,11 @@ def processAlgorithm(self, progress):
outputCommands.append(command)

if isinstance(out, OutputVector):
filename = out.value
filename = out.getCompatibleFileName(self)
command = 'v.out.ogr -s -c -e -z input=' + out.name + uniqueSufix
command += ' dsn="' + os.path.dirname(out.value) + '"'
command += ' dsn="' + os.path.dirname(filename) + '"'
command += ' format=ESRI_Shapefile'
command += ' olayer=' + os.path.basename(out.value)[:-4]
command += ' olayer=' + os.path.splitext(os.path.basename(filename))[0]
typeidx = \
self.getParameterValue(self.GRASS_OUTPUT_TYPE_PARAMETER)
outtype = ('auto' if typeidx
Expand Down

0 comments on commit a135164

Please sign in to comment.