Skip to content
Permalink
Browse files
[processing] GRASS 7.2 support: use SQL compatible output names (#4298)
(fixes #16370)
  • Loading branch information
nirvn committed Mar 24, 2017
1 parent 2354696 commit 40f86b2033e3ca3611f70467c4f04b3d05720b52
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -515,7 +515,7 @@ def exportVectorLayer(self, orgFilename):
filename = orgFilename
else:
filename = orgFilename
destFilename = self.getTempFilename()
destFilename = 'a' + os.path.basename(self.getTempFilename())
self.exportedLayers[orgFilename] = destFilename
command = 'v.in.ogr'
min_area = self.getParameterValue(self.GRASS_MIN_AREA_PARAMETER)
@@ -549,7 +549,7 @@ def setSessionProjectionFromLayer(self, layer, commands):
Grass7Utils.projectionSet = True

def exportRasterLayer(self, layer):
destFilename = self.getTempFilename()
destFilename = 'a' + os.path.basename(self.getTempFilename())
self.exportedLayers[layer] = destFilename
command = 'r.external'
command += ' input="' + layer + '"'

0 comments on commit 40f86b2

Please sign in to comment.