Skip to content

Commit

Permalink
[processing] Add missing resampling methods to GDAL warp.
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav committed May 9, 2018
1 parent 4b1d98b commit 7e73f31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/gdal/warp.py
Expand Up @@ -51,6 +51,10 @@ class warp(GdalAlgorithm):
DEST_SRS = 'DEST_SRS'
METHOD = 'METHOD'
METHOD_OPTIONS = ['near', 'bilinear', 'cubic', 'cubicspline', 'lanczos']
if GdalUtils.version() >= 1100000:
METHOD_OPTIONS.extend(['average', 'mode'])
if GdalUtils.version() >= 2000000:
METHOD_OPTIONS.extend(['max', 'min', 'med', 'q1', 'q3'])
TR = 'TR'
NO_DATA = 'NO_DATA'
EXTRA = 'EXTRA'
Expand Down

0 comments on commit 7e73f31

Please sign in to comment.