[gdal-dev] Interaction between no data and resampling

Even Rouault even.rouault at spatialys.com
Mon Jan 16 14:41:15 PST 2023


hopefully https://github.com/OSGeo/gdal/pull/7077 should answer your 
question. You'll note subtle differences of behavior between gdalwarp on 
one side and gdaladdo/gdal_translate on the other side

Even

Le 16/01/2023 à 13:32, Laurențiu Nicola via gdal-dev a écrit :
> 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
>>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230116/b94af604/attachment.htm>


More information about the gdal-dev mailing list