Closed
Description
Describe the bug
When trying to add a certain GeoTIFF to an OpenLayers map, it renders in an incorrect location. The GeoTIFF in question is https://unnerving-monsoon.ams3.cdn.digitaloceanspaces.com/Georgia/2023-10-30-06-47-55_UMBRA-04.tif. This is not reproduced in QGIS or other COG tools.
To Reproduce
Steps to reproduce the behavior:
- Go to https://www.cogeo.org/map/ and use the URL above. The TIFF renders correctly, using Marblecutter.
- Go to https://geotiffjs.github.io/cog-explorer/ and use the URL above. The TIFF renders in an incorrect location, using OpenLayers.
It can also be reproduced by adding the following source to an OpenLayers map:
const source = new GeoTIFF({
normalize: true,
bands: [1, 1, 1],
sources: [
{
url: 'https://unnerving-monsoon.ams3.cdn.digitaloceanspaces.com/Georgia/2023-10-30-06-47-55_UMBRA-04.tif',
bands: [1, 1, 1],
max: 300,
},
],
});
Expected behavior
The projection and extent is read and interpreted correctly.