You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get some imagery from geotiff and display it as tiles on openlayers. The openlayers requests give me the bounding box of the tile it wants, so I use GeotiffImage.readRasters(). Even though the requested tile size matches the geotiff tiles, each readRasters call actually results in 4 getTileOrStrip() calls per sample. This seems very inefficient as each tile that open layers needs ends up taking 4 times longer than it should to retrieve. Possible solutions:
Align openlayers tiles with the geotiff source tiles and use GeotiffImage.getTileOrStrip() directly. The result from getTileOrStrip() doesn't seem to be in the same format as what readRasters() returns, so what must I do to make it work?
Have geotiff.js cache the returned tiles from getTileOrStrip() so that it doesn't need to fetch them again. Is there a way to do this?
Thanks.
The text was updated successfully, but these errors were encountered:
There is the cache options when creating a GeoTIFF, which is handed down to the GeoTIFFImage, resulting in a cache object to store already parsed tiles/strips. I see that it is not consistently exposed for all factory functions (which should be easy to fix), but for the fromUrl it s there:
I'm trying to get some imagery from geotiff and display it as tiles on openlayers. The openlayers requests give me the bounding box of the tile it wants, so I use GeotiffImage.readRasters(). Even though the requested tile size matches the geotiff tiles, each readRasters call actually results in 4 getTileOrStrip() calls per sample. This seems very inefficient as each tile that open layers needs ends up taking 4 times longer than it should to retrieve. Possible solutions:
Thanks.
The text was updated successfully, but these errors were encountered: