georaster-layer-for-leaflet
georaster-layer-for-leaflet copied to clipboard
Error - "Can not get band1 min/max, try to calculate min/max values, or setting domain"
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:
- 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):
- OS: Mac OS Ventura 13.4
- Browser - Chrome 114.0.5735.106 (Official Build) (x86_64)
Additional context Is this a problem at all? I am testing loading single band COGs.
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:
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.