[gdal-dev] Interaction between no data and resampling

Laurențiu Nicola lnicola at dend.ro
Mon Jan 16 04:32:47 PST 2023


PPS: Looks like some experimentation is probably better than weeks of worrying :-). It looks like the input no data values are actually not included in the computation. But I'd still like to know how they are handled, if that's possible.

Laurentiu

On Mon, Jan 16, 2023, at 14:05, Laurențiu Nicola via gdal-dev wrote:
> PS:
> 
> On Mon, Jan 16, 2023, at 13:58, Laurențiu Nicola wrote:
>> 
>>  * the `-srcnodata` docs and `gdalwarpkernel.cpp` suggest that masked pixels are not included in the computation (unlike those of no data?)
> The remark in the brackets is wrong, of course, since the docs are specifically about `-srcnodata` . But I'm still unsure how these are handled in the code. I probably missed something, but I saw the checks <https://github.com/OSGeo/gdal/blob/master/alg/gdalwarpkernel.cpp#L1225> for a mask, but not no data.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230116/d0af794e/attachment-0001.htm>


More information about the gdal-dev mailing list