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

Not able to identify Converted tiff files #1

Open
yadavkundan516601 opened this issue Dec 28, 2023 · 3 comments
Open

Not able to identify Converted tiff files #1

yadavkundan516601 opened this issue Dec 28, 2023 · 3 comments

Comments

@yadavkundan516601
Copy link

The package is not able to identify the files that has been converted to cog using gdal

@DanielJDufour
Copy link
Member

Thank you for flagging this issue. Would you be able to share the file? Or the gdal command you used?

@yadavkundan516601
Copy link
Author

Sample tiff files link : https://file-examples.com/index.php/sample-images-download/sample-tiff-download/

gdal_translate -co TILED=YES -co COMPRESS=DEFLATE -co BIGTIFF=YES  ${inputTiffPath} ${outputCogPath}

First Download any of the file from above link and then convert it to cog using the command and check using the is-cog package

@DanielJDufour
Copy link
Member

Thank you. Having a test file definitely makes things easier.

I downloaded the first tiff file: https://file-examples.com/wp-content/storage/2017/10/file_example_TIFF_1MB.tiff

Here's output of running gdalinfo ~/Downloads/file_example_TIFF_1MB.tiff

Driver: GTiff/GeoTIFF
Files: /Users/danieldufour/Downloads/file_example_TIFF_1MB.tiff
Size is 650, 434
Metadata:
  TIFFTAG_DOCUMENTNAME=/home/marta/Desktop/www/file ex/files/grafa/tiff/file_example_TIFF_1MB.tiff
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_XRESOLUTION=72.009003
  TIFFTAG_YRESOLUTION=72.009003
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  434.0)
Upper Right (  650.0,    0.0)
Lower Right (  650.0,  434.0)
Center      (  325.0,  217.0)
Band 1 Block=650x64 Type=Byte, ColorInterp=Red
  Mask Flags: PER_DATASET ALPHA 
Band 2 Block=650x64 Type=Byte, ColorInterp=Green
  Mask Flags: PER_DATASET ALPHA 
Band 3 Block=650x64 Type=Byte, ColorInterp=Blue
  Mask Flags: PER_DATASET ALPHA 
Band 4 Block=650x64 Type=Byte, ColorInterp=Alpha

The files don't appear to have any Geospatial metadata associated with them, which means they are missing the G in COG.

Please let me know if I missed anything. Thank you!

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