AcademySoftwareFoundation / OpenImageIO

Reading, writing, and processing images in a wide variety of file formats, using a format-agnostic API, aimed at VFX applications.
https://openimageio.readthedocs.org
Apache License 2.0
1.96k stars 596 forks source link

[FEATURE REQUEST] Support Geotiffs #3174

Open tvatooms opened 2 years ago

tvatooms commented 2 years ago

Is your feature request related to a problem? Please describe. I'm currently using OIIO to generate Big geotiffs (larger than 4GBytes). I get difficulties to manage custom Tiif tags TIFFTAG_GEOTIEPOINTS, TIFFTAG_GEOPIXELSCALE) which don't seem to be a part of exif tags. Moreover, previous code which allowed to write geotiff files used the method GTIFSetFromProj4 from Geotiff lib. This method allows to update tiff tags according Proj4 projection. Do you know if there is an elegant way to write such Geotiffs files using OIIO ? I tried to firstly write the tiff using OIIO then update the header using GeoTiff lib but It doesn't seem to work. Any idea ?

Describe the solution you'd like A perfect solution would be to allow OIIO to manage as well tiff as geotiff format (using libtiff and geotiff)

lgritz commented 2 years ago

I'm not sure how to do this now, those tags aren't among those that OIIO's tiff handling knows about. Somebody would need to add proper GeoTIFF support. I don't have the time to do it, but I would gladly accept a PR that implemented this.