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
859 stars 179 forks source link

Fix resolution detection for ModelTransformation #337

Closed m-mohr closed 1 year ago

m-mohr commented 1 year ago

For details and example images please see this issue: https://github.com/openlayers/openlayers/issues/14238

It looks like for GeoTiffs with a ModelTransformationTag the 5th element needs to be negated. It works for my example images, but I'm not sure whether that has any side effects. What do you GeoTiff experts think?

Related issue: https://github.com/geotiffjs/geotiff.js/issues/40

constantinius commented 1 year ago

@m-mohr not sure if I ever encountered images using ModelTransformation. Do you have some test image we could put in the tests?

m-mohr commented 1 year ago

@constantinius Yes, please see the images attached to the openlayers issue.