qgis / qgis-docker

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

Enable wfs3 #60

Closed m-kuhn closed 3 years ago

m-kuhn commented 3 years ago

Thanks for merging @daniviga

@faebebin tested this on Friday and mentioned some issues with the webinterface, even though individual requests work. If you have a precise description, can you add that here, @faebebin? Thanks

daniviga commented 3 years ago

Let me know if I can help, BTW there's any specific reason why you'd like to have a new endpoint for wfs3 instead of relying on the existing ogc one?

m-kuhn commented 3 years ago

If I understood it correctly, this path is hardcoded into QGIS (CC @mbernasocchi )

daniviga commented 3 years ago

Doing this means that everything after /wfs3/ will be passed to /qgis/qgis_mapserv.fcgi e.g.

/wfs3/?SERVICE=WMS&VERSION=1.3.0&MAP=project.qgs -> /qgis/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&MAP=project.qgs

If it is expected that QGIS takes /wfs3/ directly this is not going to work

faebebin commented 3 years ago

@daniviga , @m-kuhn I currently solved it like this, for not having to pass ?map=/path/to/proj.qgs but rather can request wfs3/<poj-name>/uri/rest/etc

        location /ogc/wfs3/ {
            rewrite ^/ogc/wfs3/([^/]*)/(.*)$ /qgis/qgis_mapserv.fcgi/wfs3/$2?map=/io/data/$1/$1.qgs;
        }
        location /ogc/ { ...

But this means you have to specify the .