Skip to content

Commit

Permalink
Merge pull request #6957 from radosuav/processing_gdal_warp
Browse files Browse the repository at this point in the history
[processing] Add missing resampling methods to GDAL warp.
  • Loading branch information
m-kuhn committed May 9, 2018
2 parents d8e39fa + 7e73f31 commit 7233b67
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 7233b67

Please sign in to comment.