[gdal-dev] NODATA values in diferents bands in a DataSet

Abel Pau a.pau at creaf.cat
Tue May 20 23:46:40 PDT 2025


Hello,
I am implementing a driver that allows different NODATA values for each band in a dataset.
>From what I understand in the documentation, I should use the NODATA_VALUES metadata item to document these values. However, I don't see a clear way to indicate that a specific band has no NODATA value within the tuple.
On the other hand, the documentation also suggests that NODATA_VALUES is not widely honoured, which is not very encouraging.
Therefore, would you consider it good practice to separate bands with different NODATA values into separate subdatasets instead?
Thank you very much for the clarification.

Abel Pau Garcia<https://www.creaf.cat/en/about-us/our-people/abel-pau-garcia> <https://www.creaf.cat/en/about-us/our-people/abel-pau-garcia>
[https://www.creaf.cat/sites/default/files/2024-10/logo-creaf-small.jpg] <https://www.creaf.cat/>
MiraMon Technical Lead <https://www.creaf.cat/en/about-us/our-people/abel-pau-garcia> <https://www.creaf.cat/en/about-us/our-people/abel-pau-garcia>
a.pau at creaf.cat<mailto:a.pau at creaf.cat> <mailto:a.pau at creaf.cat>
[https://www.creaf.cat/sites/default/files/cap_0.png]
Let's chat on Teams!<https://teams.microsoft.com/l/chat/0/0?users=a.pau@creaf.cat> <https://teams.microsoft.com/l/chat/0/0?users=a.pau@creaf.cat>
Tel. +34
[https://www.creaf.cat/sites/default/files/2024-10/x_30.png] <https://twitter.com/CREAF_ecologia> [https://www.creaf.cat/sites/default/files/2024-10/linkedin_30.png]  <https://www.linkedin.com/company/creaf/> [https://www.creaf.cat/sites/default/files/2024-10/youtube_30.png]  <https://www.youtube.com/c/creafecologia> [https://www.creaf.cat/sites/default/files/2024-10/instagram_30.png]  <https://www.instagram.com/CREAF_ecologia/>
<http://www.creaf.cat>www.creaf.cat<http://www.creaf.cat> <http://www.creaf.cat>  | <https://www.creaf.cat/en/news-and-agenda/news> Latest news<https://www.creaf.cat/en/news-and-agenda/news> <https://www.creaf.cat/en/news-and-agenda/news>
CREAF. Campus UAB. Edifici C. 08193 Bellaterra (Barcelona) <https://www.openstreetmap.org/way/123379060>

<https://www.creaf.cat/privacy-policy>Privacy policy<https://www.creaf.cat/privacy-policy> <https://www.creaf.cat/privacy-policy>
[https://www.creaf.cat/sites/default/files/2024-10/corner_right_0.png]
Before printing this electronic message, think about the environment.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250521/4a1bf0d8/attachment.htm>


More information about the gdal-dev mailing list