Skip to content

Commit

Permalink
[processing] GRASS 7.2 support: use SQL compatible output names (#4298)
Browse files Browse the repository at this point in the history
(fixes #16370)
  • Loading branch information
nirvn committed Mar 24, 2017
1 parent 2354696 commit 40f86b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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 + '"'
Expand Down

0 comments on commit 40f86b2

Please sign in to comment.