<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Vincent,<br>
</p>
<div class="moz-cite-prefix">Le 16/04/2021 à 00:00, Vincent Sarago a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:DA622D75-EFA8-4A30-B3F9-9892B6602F56@gmail.com">Bonjour/Hi,
<div class=""><br class="">
</div>
<div class="">While I was working on <a
href="https://github.com/mapbox/rasterio/issues/2153" class=""
moz-do-not-send="true">https://github.com/mapbox/rasterio/issues/2153</a> (add
missing RMS resampling method for overviews in rasterio) I
wanted to double check which resampling methods were actually
supported. </div>
<div class=""><br class="">
</div>
<div class="">In gdaladdo, the doc says:
“nearest,average,gauss,cubic,cubicspline,lanczos,average_mp,average_magphase,mode”
but in the <a
href="https://github.com/OSGeo/gdal/blob/master/gdal/doc/source/drivers/raster/cog.rst"
class="" moz-do-not-send="true">COG docs</a> only
`NEAREST/AVERAGE/BILINEAR/CUBIC/CUBICSPLINE/LANCZOS` are
mentioned. </div>
<div class=""><br class="">
</div>
<div class="">I haven’t tested but looking at the code it seems
that all methods supported in gdaladdo should be supported in
the COG driver?</div>
</blockquote>
<p>For the OVERVIEW_RESAMPLING creation option, all methods
supported by gdaladdo should be supported</p>
<p>For the WARP_RESAMPLING creation option, all methods supported
by gdalwarp</p>
<p>For the RESAMPLING one (shortcut to set both above), the
intersections of both</p>
<p>Perhaps the doc should just point to the list of methods of the
relevant utility page to make maintenance easier.</p>
<p>Or alternatively have a .rst file we can include in both
(similarly to some of the common options between utilities stored
in doc/source/programs/options/ and then included )</p>
<p>We'd welcome your doc enhancement regarding this :-)</p>
<p>Even<br>
</p>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>