-
Notifications
You must be signed in to change notification settings - Fork 3
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
allow setting tiff scale + offset + custom metadata #317
Comments
example of custom metadata: https://github.com/VITO-RS-Vegetation/lcfm-production/issues/18 |
For tiffset, we would need to add libtiff-tools to the container. |
The current metadata, visible through gdalinfo, is: Metadata: both can stay, but what we are looking for is: Metadata: So this would be something quite flexible. We are setting the metadata through rasterio (python) and passing a dictionary:
Additionally, there is a difference in how we set the band description and how OpenEO does it: We: The description in OpenEO is at metadata level, which makes that the band names are not displayed in the symbology in Qgis. Relatedly, as you see in the output, there's an offset and scale on every band. In principle, the offset and scale can be different per band. |
Just checking whether this issue is already planned? |
We set the scale and offset through gdal_translate: |
Add a format option to set tiff metadata. Some of these are regular tiff tags, others will have to be encoded as gdal band metadata.
The options in geotrellis are limited, but there are very basic tifftools available in linux:
https://linux.die.net/man/1/tiffset
The idea is to be able to set metadata tags without touching the rest of the file, avoiding a full rewrite. Ideally this is done right after writing the tiff in geotrellis.
Format option will have to be passed through via save_result.
The text was updated successfully, but these errors were encountered: