Closed giswqs closed 2 years ago
Aha, so you're bringing up something that I wanted to make clear with the name. localtileserver
is intended to be used only to serve tiles from raster files that exist on your local filesystem. If you want a tile server that can handle accessing remote files, you have a few options:
remotetileserver
package or submodule here large_image
which is simply wrapping GDAL for data access.In your particular case, this should work because your raster is a pre-tiled Cloud Optimized GeoTiff. I have this working locally with minimal changes to localtileserver
I will push the change to a PR for you to test soon
Resonant GeoData seems awesome. I need to look into it. It would be great if you can make localtileserver work for pre-tiled COG. It might be too much work to create and maintain another package like remotetileserver
.
It might be too much work to create and maintain another package like remotetileserver.
Well that is what Resonant GeoData is.... 😉
Based on the example datasets, it seems an XML file is needed to render COG hosted online. Any guidelines on how you created the XML file? It would be awesome if a tile client can be created the same way for both local and online COG files.
Ideally, something like this:
I used to rely on titiler to render online COGs. I am considering switching to localtileserver to support both local and online COGs.
https://leafmap.org/notebooks/03_cog_stac/