Skip to content

Commit 7e73f31

Browse files
committedMay 9, 2018
[processing] Add missing resampling methods to GDAL warp.
1 parent 4b1d98b commit 7e73f31

File tree

1 file changed

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

1 file changed

+4
-0
lines changed
 

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class warp(GdalAlgorithm):
5151
DEST_SRS = 'DEST_SRS'
5252
METHOD = 'METHOD'
5353
METHOD_OPTIONS = ['near', 'bilinear', 'cubic', 'cubicspline', 'lanczos']
54+
if GdalUtils.version() >= 1100000:
55+
METHOD_OPTIONS.extend(['average', 'mode'])
56+
if GdalUtils.version() >= 2000000:
57+
METHOD_OPTIONS.extend(['max', 'min', 'med', 'q1', 'q3'])
5458
TR = 'TR'
5559
NO_DATA = 'NO_DATA'
5660
EXTRA = 'EXTRA'

0 commit comments

Comments
 (0)
Please sign in to comment.