Skip to content
Permalink
Browse files

[processing] fixed output to non-supported vector formats in GRASS

  • Loading branch information
volaya committed Jun 22, 2015
1 parent 83782cc commit a1351640bacbb0b9590125754e628a73b5c8079e
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/algs/grass/GrassAlgorithm.py
@@ -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
@@ -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

0 comments on commit a135164

Please sign in to comment.
You can’t perform that action at this time.