stac-utils / stac-layer

Visualize a STAC Item or Collection on a Leaflet Map
Creative Commons Zero v1.0 Universal
48 stars 11 forks source link

"Invalid byte order" on geotiffs #30

Closed drwelby closed 2 years ago

drwelby commented 2 years ago

See:

https://radiantearth.github.io/stac-browser/#/external/ard.maxar.com/samples/v4/sample-001/10/120020223032/2016-10-08/103001005D31F500.json

Loading any GeoTIFF layer throws:

stac-layer.min.js:2 caught error so checking geometry: TypeError: Invalid byte order value.
    at stac-layer.min.js:2:652030
    at u (stac-layer.min.js:2:452806)
    at Generator._invoke (stac-layer.min.js:2:452594)
    at Generator.next (stac-layer.min.js:2:453235)
    at h (stac-layer.min.js:2:488229)
    at a (stac-layer.min.js:2:488434)
drwelby commented 2 years ago

Geotiff.js throws the error on line 531 of https://geotiffjs.github.io/geotiff.js/geotiff.js.html

These images used to render so I don't think it's coming from the source image formatting

DanielJDufour commented 2 years ago

hey, just confirming that I saw this. I'm beyond busy today and tomorrow, but will hopefully have some time this weekend to debug. I'm very sorry about this!

drwelby commented 2 years ago

The error was triggered because OPTIONS requests weren't getting through. We had to fix our CORS configuration for OPTIONS and then TIFFs started rendering again.