I'm trying to determine the pixel size and corner coordinates of a GeoTIFF file in a cloud service that I'm developing, before uploading the file completely. So my plan is to upload the first 10kB or so and then run gdalinfo on the partial file.
Unfortunately this seems to work on some files and fail on others. Can the header info read by gdalinfo be spread over large portions of the file so that I can't expect to be able to do this? Is there any other possibility?
I have to adapt to any GeoTIFF files that my users might provide. So I can't convert to a cloud-optimized GeoTIFF.