Skip to content
Permalink
Browse files

Merge pull request #6957 from radosuav/processing_gdal_warp

[processing] Add missing resampling methods to GDAL warp.
  • Loading branch information
m-kuhn committed May 9, 2018
2 parents d8e39fa + 7e73f31 commit 7233b6753963017a3a5b279c9574dcfe7358ca76
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/algs/gdal/warp.py
@@ -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'

0 comments on commit 7233b67

Please sign in to comment.
You can’t perform that action at this time.