The Data Source Manager-> Add Vector UI, has an option to add an "OGC API" layer. Under the hood, this is using the "OGCAPI" raster driver, which has support for (vector) tiles, but not features. In GDAL, features is supported through the OAPIAF driver. The UI is a bit misleading, because it gives the impression that you could add features (e.g.: items) from here, when that is not the case.
When trying to add a feature collection, QGIS seems to be looking for tiles.
ERROR: Status 2: File OGCAPI:https://demo.ldproxy.net/daraa/collections/AeronauticCrv/|option:API=ITEMS could not be found
Aborted (core dumped)
One option to solve this could be to remove "items" from the "API" options. Another option, would be to actually provide support for items, but in that case GDAL would need to use the OAPIAF driver, so prepend OAPIAF to the collection path, instead OGCAPI.
I am using QGIS master, built from the code base on 11/07/2024, and GDAL master built also on 11/07/2024.
Steps to reproduce the issue
Add OGC API layer, through the add vector layer menu and select "ogc api". Then add this url:
What is the bug or the crash?
The Data Source Manager-> Add Vector UI, has an option to add an "OGC API" layer. Under the hood, this is using the "OGCAPI" raster driver, which has support for (vector) tiles, but not features. In GDAL, features is supported through the OAPIAF driver. The UI is a bit misleading, because it gives the impression that you could add features (e.g.: items) from here, when that is not the case.
When trying to add a feature collection, QGIS seems to be looking for tiles.
One option to solve this could be to remove "items" from the "API" options. Another option, would be to actually provide support for items, but in that case GDAL would need to use the OAPIAF driver, so prepend OAPIAF to the collection path, instead OGCAPI.
I am using QGIS master, built from the code base on 11/07/2024, and GDAL master built also on 11/07/2024.
Steps to reproduce the issue
Add OGC API layer, through the add vector layer menu and select "ogc api". Then add this url:
https://demo.ldproxy.net/daraa/collections/AeronauticCrv/
On the "API" options, select "items".
Versions