stac-utils / stac-layer

Visualize a STAC Item or Collection on a Leaflet Map
Creative Commons Zero v1.0 Universal
47 stars 11 forks source link

Don't change GDAL VFS URLs to absolute URLs for tile server #27

Closed m-mohr closed 2 years ago

m-mohr commented 2 years ago

Originates from https://github.com/radiantearth/stac-browser/issues/116

I think it would be good if a tile server is enforced and the URL for display is a /vsi... (GDAL VFS), then stac-layer should just pass through the URL instead of changing it to absolute.

m-mohr commented 2 years ago

Additionally, strip /vsicurl/ from URLs.

m-mohr commented 2 years ago

A simple workaround is to simply use buildTileUrlTemplate as shown in https://github.com/radiantearth/stac-browser/issues/116#issuecomment-1038390404 - A separate implementation is probably not needed in stac-layer.