Skip to content
Permalink
Browse files

[processing][gdal] Don't default to placing each input file in a sepa…

…rate

band in build vrt algorithm

Creating a multi-band vrt is much less common vs creating a mosaic
style vrt, so set the default to the most common use case
and most predictable outcome.

(cherry picked from commit b89d7fd)
  • Loading branch information
nyalldawson committed Dec 21, 2020
1 parent f3d2229 commit 07788d9bde82012ce380eb1aeb4e9ec767aae58a
Showing with 8 additions and 2 deletions.
  1. +8 −2 python/plugins/processing/algs/gdal/buildvrt.py
@@ -109,9 +109,15 @@ def isSupportedOutputValue(self, value, context):
self.tr('Resolution'),
options=[i[0] for i in self.RESOLUTION_OPTIONS],
defaultValue=0))
self.addParameter(QgsProcessingParameterBoolean(self.SEPARATE,

separate_param = QgsProcessingParameterBoolean(self.SEPARATE,
self.tr('Place each input file into a separate band'),
defaultValue=True))
defaultValue=True)
# default to not using separate bands is a friendlier option, but we can't change the parameter's actual
# defaultValue without breaking API!
separate_param.setGuiDefaultValueOverride(False)
self.addParameter(separate_param)

self.addParameter(QgsProcessingParameterBoolean(self.PROJ_DIFFERENCE,
self.tr('Allow projection difference'),
defaultValue=False))

0 comments on commit 07788d9

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