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

Band option does nothing for Plotty renderer #47

Open
OneOfCats opened this issue Sep 26, 2023 · 0 comments
Open

Band option does nothing for Plotty renderer #47

OneOfCats opened this issue Sep 26, 2023 · 0 comments

Comments

@OneOfCats
Copy link

I have a GeoTIFF file with 12 different bands. I can open it in QGIS and see 12 bands with different raster data (monthly solar data of the location). But when I open it in browser with leaflet-geotiff-2 , the band option does not have any effect. It always shows the first band, no matter which number I use. I do it in this way:

const rendererOptions = {
    displayMin: 0,
    displayMax: 150,
    //band: 500
  };
  const renderer = L.LeafletGeotiff.rgb(rendererOptions);

  const options = {
    renderer: renderer,
    band: 500,
    bounds: [[lat - 0.000910557, lng - 0.001185149], [lat + 0.000912543, lng + 0.001183351]]
  };
  
  return L.leafletGeotiff(url, options).addTo(map);

Tried this option in renderer config too as you can see, no effect. Tried RGB renderer, and it recognizes rBand, gBand, bBand options and sees different bands correctly. I am now using this renderer, but it feels hacky

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

No branches or pull requests

1 participant