Skip to content

Add WFS and OAPIF support #15

@kannes

Description

@kannes

@pathmapper and I were trying spatial queries on WFS layers and it might "just work". Not sure if every WFS will allow for it but it might be worth trying.

Example:
On https://www.wfs.nrw.de/geobasis/wfs_nw_dvg -> dvg:nw_dvg2_krs the filter SELECT * FROM nw_dvg1_krs WHERE ST_Intersects(msGeometry, ST_GeometryFromText('POINT(455600 5720000)')) works.

msGeometry is the name of the geometry column. We looked it up manually on https://www.wfs.nrw.de/geobasis/wfs_nw_dvg?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=2.0.0&TYPENAMES=dvg:nw_dvg2_krs&TYPENAME=dvg:nw_dvg2_krs

nw_dvg1_krs is the name of the layer server-side.

It might be ugly/hard to get this via PyQGIS as layer.dataProvider().uri().geometryColumn() returns an empty string :(

Being able to filter (slow and quickly overloaded) WFS servers would be great!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions