geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
878 stars 183 forks source link

Get geo keys from image file directory #197

Closed tschaub closed 3 years ago

tschaub commented 3 years ago

It looks like the getImage method of a MultiGeoTIFF doesn't properly assign geo keys to the image. It looks like it was a typo to try to access the imageFile. geoKeyDirectory property.

I don't see existing tests for a MultiGeoTIFF. Any suggestions on putting together suitable test data?

constantinius commented 3 years ago

Hi @tschaub

Thanks for catching this!

A MultiGeoTIFF is a representation of a TIFF with external overviews. So generating one via GDAL during testing and then having a test targeting such a file would ve great, if you want to contribute.