Skip to main content
added 119 characters in body
Source Link

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.

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'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.

Source Link

gdalinfo on partial GeoTIFF file

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?