Skip to content

Commit ab3a213

Browse files
committedJul 16, 2018
[ui][processing] re-order gdal warp algorithm parameters so optional ones are at the bottom
1 parent fe38f03 commit ab3a213

File tree

1 file changed

+4
-5
lines changed
  • python/plugins/processing/algs/gdal

1 file changed

+4
-5
lines changed
 

‎python/plugins/processing/algs/gdal/warp.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def initAlgorithm(self, config=None):
8787
self.addParameter(QgsProcessingParameterCrs(self.TARGET_CRS,
8888
self.tr('Target CRS'),
8989
'EPSG:4326'))
90+
self.addParameter(QgsProcessingParameterEnum(self.RESAMPLING,
91+
self.tr('Resampling method to use'),
92+
options=[i[0] for i in self.methods],
93+
defaultValue=0))
9094
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
9195
self.tr('Nodata value for output bands'),
9296
type=QgsProcessingParameterNumber.Double,
@@ -109,11 +113,6 @@ def initAlgorithm(self, config=None):
109113
'class': 'processing.algs.gdal.ui.RasterOptionsWidget.RasterOptionsWidgetWrapper'}})
110114
self.addParameter(options_param)
111115

112-
self.addParameter(QgsProcessingParameterEnum(self.RESAMPLING,
113-
self.tr('Resampling method to use'),
114-
options=[i[0] for i in self.methods],
115-
defaultValue=0))
116-
117116
dataType_param = QgsProcessingParameterEnum(self.DATA_TYPE,
118117
self.tr('Output data type'),
119118
self.TYPES,

0 commit comments

Comments
 (0)
Please sign in to comment.