-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Is there a maximum number of bands a COG will support? #146
Comments
It's possible the performance is related to the way georaster is bundling an older version of geotiff.js. Would you be able to see the workaround described here and let me know if that works for you? Long term, I hope to publish a new version of georaster that fixes this issue, but that may take some time because we're in the middle of a re-write. |
I came to the same conclusion, my workaround right now is to download the data directly (gzip compresses it well) and construct the georasters manually as described here (https://github.com/GeoTIFF/georaster?tab=readme-ov-file#load-from-simple-object-on-front-end). Here is the metadata I'm supplying.
However I've run into another issue, with a raster 2000x850 that means there are 1.7m unique tiles. Even when I set the resolution to 8 I still have a good deal of lag when panning/zooming. Is there someway to change the way I create the rasters so they work better with As part of your rewrite are you planning to make it so that there is only a single canvas element? If not I think I'll give that a try, if so maybe I'll wait. In any case good luck with your endeavor. |
@john-a-m , could you try the experimental pre-release version of georaster-layer-for-leaflet and let me know if that improves the performance for you?!
|
Is your feature request related to a problem? Please describe.
I've tried using multiband COGs not more than 20mb. With 24 bands the georaster-layer-for-leaflet plugin is very slow, the original number of bands was 144 (totally unusable). The raster size is approximately 2000x850. The data are also very sparse (~95% of the values in the rasters are 0s).
Describe the solution you'd like
A way to configure the plugin to support a large number of bands, approximately 100-200. My issue may also stem from not understanding the COG format well enough.
Describe alternatives you've considered
Could my issue be solved by creating external overview files? I see in some of the examples where the bands are stored in individual files, is loading 100 separate files reasonable from a performance perspective?
The text was updated successfully, but these errors were encountered: