Skip to content
Permalink
Browse files

[ui][processing] re-order gdal warp algorithm parameters so optional …

…ones are at the bottom
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2018
1 parent 68ce8fc commit 50561391eb24b6245e5e90320d9cd114ceffa34e
Showing with 4 additions and 5 deletions.
  1. +4 −5 python/plugins/processing/algs/gdal/warp.py
@@ -87,6 +87,10 @@ def initAlgorithm(self, config=None):
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 @@ def initAlgorithm(self, config=None):
'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,

0 comments on commit 5056139

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