kbgg / qgis-stac-browser

Plugin for QGIS to browse and download assets from STAC APIs
Apache License 2.0
26 stars 9 forks source link

support SwissTopo STAC API #85

Open cholmes opened 3 years ago

cholmes commented 3 years ago

Trying to add https://data.geo.admin.ch/api/stac/v0.9/ I get 'Connection Failed; http error':

Screen Shot 2021-05-04 at 10 45 01 AM

It looks to be a 0.9.0 STAC API/core, not sure what the backend is.

volaya commented 3 years ago

If the url is added without the trailing slash, it works fine.

I made a small PR to automalically clean the URL of any trailing slash that it might have:

https://github.com/kbgg/qgis-stac-browser/pull/87

However, after that, it shows the collection, but the search does not work. There are several issues:

1) the server expects the datetime property (as recommended in the STAC API docs) instead of time (as the plugin does). This is fixed already in a PR that is not yet merged:

https://github.com/kbgg/qgis-stac-browser/pull/79

2) Even with that, the server does not process correctly the request and the search fails. It seems to be a server issue. I tried manually outside of the plugin, with well-formed searches that work on other services, and it keeps failing.