Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
staffordsmith83 opened this issue Jun 9, 2023 · 1 comment
Labels

Comments

@staffordsmith83
Copy link

staffordsmith83 commented Jun 9, 2023

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.

@DanielJDufour
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants