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

COG Ghost Header can be bigger than 200bytes #158

Closed
vincentsarago opened this issue Oct 2, 2020 · 1 comment
Closed

COG Ghost Header can be bigger than 200bytes #158

vincentsarago opened this issue Oct 2, 2020 · 1 comment

Comments

@vincentsarago
Copy link
Member

if ifd_offset > 200:

e.g a COG created with gdal master

II*�GDAL_STRUCTURAL_METADATA_SIZE=000174 bytes
LAYOUT=IFDS_BEFORE_DATA
BLOCK_ORDER=ROW_MAJOR
BLOCK_LEADER=SIZE_AS_UINT4
BLOCK_TRAILER=LAST_4_BYTES_REPEATED
KNOWN_INCOMPATIBLE_EDITION=NO
 MASK_INTERLEAVED_WITH_IMAGERY=YES

☝️ is 226bytes

@kylebarron
Copy link
Member

Fixed with 0a04693

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