qgis-stac-plugin icon indicating copy to clipboard operation
qgis-stac-plugin copied to clipboard

Add support for relative href links

Open GorgiAstro opened this issue 4 months ago • 0 comments

My use case: I use the STAC FastAPI server to serve the STAC catalog, collection & items. The assets are stored and served from the same server, so I use a relative link in the href field of the asset, while the collection contains the absolute server root URI. Relative href links are supported in the STAC spec, and I managed to download sucessfully the asset from the STAC browser. However it does not look like relative asset links are supported by the QGIS STAC plugin. Looking at the source code and adding a few print, the assets' relative href is never resolved using the root href URI.

GorgiAstro avatar Oct 15 '24 14:10 GorgiAstro