Skip to content
Permalink
Browse files

[processing] Add missing resampling methods to GDAL warp.

  • Loading branch information
radosuav committed Jan 16, 2018
1 parent 4b1d98b commit 7e73f314cc6de357a4fd5d19d09e219202b2023b
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 7e73f31

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