Skip to content


[processing] don't modify output filename in build virtual raster
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 24, 2018
1 parent 746701b commit 5f5f1f9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions python/plugins/processing/algs/gdal/
Expand Up @@ -123,17 +123,6 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True):

out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)
# Ideally the file extensions should be limited to just .vrt but I'm not sure how
# to do it simply so instead a check is performed.
_, ext = os.path.splitext(out)
if not ext.lower() == '.vrt':
out = out[:-len(ext)] + '.vrt'
if isinstance(parameters[self.OUTPUT], QgsProcessingOutputLayerDefinition):
output_def = QgsProcessingOutputLayerDefinition(parameters[self.OUTPUT])
output_def.sink = QgsProperty.fromValue(out)
self.setOutputValue(self.OUTPUT, output_def)
self.setOutputValue(self.OUTPUT, out)

return ['gdalbuildvrt', GdalUtils.escapeAndJoin(arguments)]

0 comments on commit 5f5f1f9

Please sign in to comment.