georaster-layer-for-leaflet icon indicating copy to clipboard operation
georaster-layer-for-leaflet copied to clipboard

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

Open staffordsmith83 opened this issue 2 years ago • 1 comments

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):

  • 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.

staffordsmith83 avatar Jun 09 '23 03:06 staffordsmith83

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.

DanielJDufour avatar Jun 09 '23 03:06 DanielJDufour