GeoTIFF / georaster-layer-for-leaflet

Display GeoTIFFs and soon other types of raster on your Leaflet Map
https://geotiff.github.io/georaster-layer-for-leaflet-example/
Apache License 2.0
296 stars 58 forks source link

Error - "Can not get band1 min/max, try to calculate min/max values, or setting domain" #127

Open staffordsmith83 opened 1 year ago

staffordsmith83 commented 1 year ago

Describe the bug When loading a single band raster, I get this error message - "Can not get band1 min/max, try to calculate min/max values, or setting domain"

Is this a problem at all? I cant find where in the georaster-layer-for-leaflet code it is coming from.

To Reproduce Steps to reproduce the behavior:

  1. Load this publicly available COG: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/56/J/NP/2023/4/S2A_56JNP_20230410_0_L2A/B04.tif

Expected behavior This error is logged.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Is this a problem at all? I am testing loading single band COGs.

DanielJDufour commented 1 year ago

hmmm.. that's an interesting error. When I try to load the raster at app.geotiff.io (which is using the latest georaster-layer-for-leaflet I think) it seems to work:

Screen Shot 2023-06-08 at 11 19 41 PM

Would you be able to share some of the relevant code? My best guess is that the issue is at an intersection with another library.