Re: [gdal-dev] Show isBigTIFF in image metadata
Hi, The exact use case is for the GDAL community help desk. I was wondering how this user https://gis.stackexchange.com/questions/469512/cannot-write-geotiff-larger-than-4gb-with-gdalwarp-despite-using-bigtiff-createo could check if their TIFF is created as BigTIFF or not. -Jukka Rahkonen- Lähettäjä: Kurt Schwehr Lähetetty: perjantai 3. marraskuuta 2023 3.08 Vastaanottaja: Even Rouault Kopio: Rahkonen Jukka ; 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) Aihe: Re: [gdal-dev] Show isBigTIFF in image metadata Jukka, What's the exact use case for needing to know if a tiff is traditional or BigTIFF? Is there a key tool that doesn't understand BigTIFF? The only one I know of is Autodesk Civil3D. Thanks, -Kurt On Thu, Nov 2, 2023 at 2:49 PM Even Rouault via gdal-dev mailto:gdal-dev@lists.osgeo.org>> wrote: Jukka, Does it feel reasonable? I know that overviews may be standard TIFFs while the main image is BigTIFF but maybe the information from the header would be enough. Or have I missed some existing tool? I thought that tiffinfo at least would report TIFF/BigTIFF but it doesn’t. tiffdump does: $ tiffdump byte.tif byte.tif: Magic: 0x4949 Version: 0x2a vs $ tiffdump bigtiff.tif bigtiff.tif: Magic: 0x4949 Version: 0x2b Even -- http://www.spatialys.com<http://www.spatialys.com/> My software is free, but my time generally not. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> https://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Show isBigTIFF in image metadata
Jukka, What's the exact use case for needing to know if a tiff is traditional or BigTIFF? Is there a key tool that doesn't understand BigTIFF? The only one I know of is Autodesk Civil3D. Thanks, -Kurt On Thu, Nov 2, 2023 at 2:49 PM Even Rouault via gdal-dev < gdal-dev@lists.osgeo.org> wrote: > Jukka, > > > Does it feel reasonable? I know that overviews may be standard TIFFs while > the main image is BigTIFF but maybe the information from the header would > be enough. Or have I missed some existing tool? I thought that tiffinfo at > least would report TIFF/BigTIFF but it doesn’t. > > tiffdump does: > > $ tiffdump byte.tif > byte.tif: > Magic: 0x4949 Version: 0x2a > > vs > > $ tiffdump bigtiff.tif > bigtiff.tif: > Magic: 0x4949 Version: 0x2b > > Even > > -- http://www.spatialys.com > My software is free, but my time generally not. > > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev > ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Show isBigTIFF in image metadata
Jukka, Does it feel reasonable? I know that overviews may be standard TIFFs while the main image is BigTIFF but maybe the information from the header would be enough. Or have I missed some existing tool? I thought that tiffinfo at least would report TIFF/BigTIFF but it doesn’t. tiffdump does: $ tiffdump byte.tif byte.tif: Magic: 0x4949 Version: 0x2a vs $ tiffdump bigtiff.tif bigtiff.tif: Magic: 0x4949 Version: 0x2b Even -- http://www.spatialys.com My software is free, but my time generally not. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] Show isBigTIFF in image metadata
Hi, I tried to find some easy way for checking with GDAL if an image is a standard TIFF or BigTIFF but I could not find any. It seems that "more big.tiff" on Windows finds "II+" from the beginning of the file if the image is BigTIFF and "II*" otherwise. Or then I can open the image with a hex editor for seeing if the third byte is 2A or 2B. However, I would like to see the information with gdalinfo for example as Image Structure Metadata: INTERLEAVE=BAND VERSION=BigTIFF Does it feel reasonable? I know that overviews may be standard TIFFs while the main image is BigTIFF but maybe the information from the header would be enough. Or have I missed some existing tool? I thought that tiffinfo at least would report TIFF/BigTIFF but it doesn't. -Jukka Rahkonen- ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev