Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add note about setting internal Nodata in COG #37

Open
vincentsarago opened this issue Apr 3, 2020 · 1 comment
Open

add note about setting internal Nodata in COG #37

vincentsarago opened this issue Apr 3, 2020 · 1 comment

Comments

@vincentsarago
Copy link
Member

First let me say that Nodata/Mask is a complex topic. Internal nodata, bit mask in GeoTIFF are a GDAL specification (meaning introduced by GDAL devs) but are widely supported (e.g https://github.com/geotiffjs/geotiff.js/blob/ac1fe594455430ae9180f5108c0a2f32615d382f/src/globals.js#L107) and not present in the GeoTIFF nor TIFF specification (surprisingly cc @wildintellect).

When sharing data as COG if think it should be mandatory to have the nodata value/mask/alpha band set (at least when there is a ghost part in the data).

It would be really difficult to enforce this in the specification but I think the least we could do is to add a note on this web page telling that if possible a method describing the ghost/masked/undefined area must be used.

from https://github.com/mapbox/nodata

doc

@cholmes any though?

@cholmes
Copy link
Collaborator

cholmes commented Apr 3, 2020

I'm definitely +1 on recommendations in the web page. And if we were further on the 'spec' I'd be into making a 'best practices' document where we also strongly recommend it. But on the web page is a good start. I'd even be ok to put it in the spec, even if it's just a recommendation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants