Skip to content

Commit 5f5f1f9

Browse files
committed
[processing] don't modify output filename in build virtual raster
1 parent 746701b commit 5f5f1f9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

python/plugins/processing/algs/gdal/buildvrt.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,6 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True):
123123
arguments.append(listFile)
124124

125125
out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)
126-
# Ideally the file extensions should be limited to just .vrt but I'm not sure how
127-
# to do it simply so instead a check is performed.
128-
_, ext = os.path.splitext(out)
129-
if not ext.lower() == '.vrt':
130-
out = out[:-len(ext)] + '.vrt'
131-
if isinstance(parameters[self.OUTPUT], QgsProcessingOutputLayerDefinition):
132-
output_def = QgsProcessingOutputLayerDefinition(parameters[self.OUTPUT])
133-
output_def.sink = QgsProperty.fromValue(out)
134-
self.setOutputValue(self.OUTPUT, output_def)
135-
else:
136-
self.setOutputValue(self.OUTPUT, out)
137126
arguments.append(out)
138127

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

0 commit comments

Comments
 (0)