Skip to content

Commit 7233b67

Browse files
authored
Merge pull request #6957 from radosuav/processing_gdal_warp
[processing] Add missing resampling methods to GDAL warp.
2 parents d8e39fa + 7e73f31 commit 7233b67

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

+4
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)