From ab3a213596e02cfe0494933596b42f31ec6e8e13 Mon Sep 17 00:00:00 2001 From: nirvn Date: Mon, 16 Jul 2018 09:39:55 +0700 Subject: [PATCH] [ui][processing] re-order gdal warp algorithm parameters so optional ones are at the bottom --- python/plugins/processing/algs/gdal/warp.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python/plugins/processing/algs/gdal/warp.py b/python/plugins/processing/algs/gdal/warp.py index 489e7221aed..3f29051c4e8 100644 --- a/python/plugins/processing/algs/gdal/warp.py +++ b/python/plugins/processing/algs/gdal/warp.py @@ -87,6 +87,10 @@ class warp(GdalAlgorithm): self.addParameter(QgsProcessingParameterCrs(self.TARGET_CRS, self.tr('Target CRS'), 'EPSG:4326')) + self.addParameter(QgsProcessingParameterEnum(self.RESAMPLING, + self.tr('Resampling method to use'), + options=[i[0] for i in self.methods], + defaultValue=0)) self.addParameter(QgsProcessingParameterNumber(self.NODATA, self.tr('Nodata value for output bands'), type=QgsProcessingParameterNumber.Double, @@ -109,11 +113,6 @@ class warp(GdalAlgorithm): 'class': 'processing.algs.gdal.ui.RasterOptionsWidget.RasterOptionsWidgetWrapper'}}) self.addParameter(options_param) - self.addParameter(QgsProcessingParameterEnum(self.RESAMPLING, - self.tr('Resampling method to use'), - options=[i[0] for i in self.methods], - defaultValue=0)) - dataType_param = QgsProcessingParameterEnum(self.DATA_TYPE, self.tr('Output data type'), self.TYPES,