Skip to content

Commit

Permalink
[ui][processing] re-order gdal warp algorithm parameters so optional …
Browse files Browse the repository at this point in the history
…ones are at the bottom
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2018
1 parent 68ce8fc commit 5056139
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python/plugins/processing/algs/gdal/warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 5056139

Please sign in to comment.