qgis / qgis-docker

Official Docker image for QGIS Server and Desktop
GNU Affero General Public License v3.0
67 stars 21 forks source link

WFS3 API endpoint #57

Closed jacobwod closed 3 years ago

jacobwod commented 3 years ago

Solution

I figured it out. Feel free to add this to the documentation, as others might be looking for the new endpoints.

Given the current projects directory structure, for a project inside schools/schools.qgs, it can be reached like this:

API:
http://lx-srv0419:8080/ogc/wfs3/api?MAP=/io/data/schools/schools.qgs

Collections:
http://lx-srv0419:8080/ogc/wfs3/collections?MAP=/io/data/schools/schools.qgs

Conformance:
http://lx-srv0419:8080/ogc/wfs3/conformance?MAP=/io/data/schools/schools.qgs

Original question

Thanks for this Docker container, it works great!

I have just one minor issue: I can't figure out how to reach QGIS Server's OGC WFS3 API endpoint. It's supposed to be under /api when running pure, via fcgi.

Accordning to your documentation, the /ows/endpoint bypasses the MAP rewrite and should be a way out. But I can't figure it out anyway.

This works (for WFS 1.0.0):

curl -X GET "localhost:8080/ows/?SERVICE=WFS&MAP=/io/data/schools/schools.qgs&REQUEST=GetCapabilities"

This doesn't (obviously, as there's no service named WFS3, we should access it via another endpoint):

curl -X GET "localhost:8080/ows/?SERVICE=WFS3&MAP=/io/data/schools/schools.qgs&REQUEST=GetCapabilities"

Any ideas?