[gdal-dev] Can Geotiff file contain multiply Ortofotos

Brad Hards bradh at frogmouth.net
Tue Mar 7 15:01:06 PST 2023


On Wednesday, 8 March 2023 6:53:17 AM AEDT Raivo Rebane wrote:
> I studied and asked from https://chat.openai.com/chat how to read
> multiband raster image, but I did'nt find anywhere how to rread from
> tiff file next frame or ortofo bands
> 
> Please ask me if it's possible

It is possible. See https://gdal.org/drivers/raster/gtiff.html#subdatasets for 
how the multiple images are identified.

Use gdalinfo on your file to see the specific characteristics.

See https://gdal.org/tutorials/raster_api_tut.html for use of the Raster API 
abstraction.

So you just need to pass the correct name to the open call.


Brad





More information about the gdal-dev mailing list