Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS filtering by QGIS expression supports "$geometry" but not the new "@geometry" #60094

Closed
2 tasks done
kannes opened this issue Jan 9, 2025 · 1 comment · Fixed by #60105
Closed
2 tasks done

WFS filtering by QGIS expression supports "$geometry" but not the new "@geometry" #60094

kannes opened this issue Jan 9, 2025 · 1 comment · Fixed by #60105
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! WFS data provider

Comments

@kannes
Copy link
Contributor

kannes commented Jan 9, 2025

What is the bug or the crash?

QGIS is moving from $ to @ in expressions.

One can use a small subset of QGIS expression functionality in WFS layer filters.

Here only $geometry works. @geometry is not supported yet.

The documentation at https://qgis.org/pyqgis/master/core/QgsVectorLayer.html#ogc-api-features-data-provider-oapif also still uses $geometry.

Steps to reproduce the issue

  1. Load dvg:nw_dvg2_krs https://www.wfs.nrw.de/geobasis/wfs_nw_dvg?VERSION=2.0.0 as layer
  2. Set the layer's filter/subsetstring to intersects(@geometry, geom_from_wkt('POINT(380000 5650000)'))
  3. The layer appears unfiltered (53 features at the time of writing)

Using intersects($geometry, geom_from_wkt('POINT(380000 5650000)')) the layer is correctly filtered to one single feature.

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.40.2-Bratislava
QGIS code branch Release 3.40
 
Libraries
Qt version 5.15.15
Python version 3.12.8
GDAL/OGR version 3.10.0
PROJ version 9.5.1
EPSG Registry database version v11.022 (2024-11-05)
GEOS version 3.13.0-CAPI-1.19.0
SQLite version 3.47.2
PDAL version 2.8.2 (Compiled)2.8.3 (Running)
PostgreSQL client version unknown
SpatiaLite version 5.1.0
QWT version 6.3.0
QScintilla2 version 2.14.1
OS version Manjaro Linux
 
Active Python plugins
MemoryLayerSaver 5.0.2
spatial_filter 1.7
plugin_reloader 0.17
db_manager 0.1.20
MetaSearch 0.3.6
grassprovider 2.12.99
processing 2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@agiudiceandrea
Copy link
Contributor

Please have a look at #60105.

@agiudiceandrea agiudiceandrea removed the Expressions Related to the QGIS expression engine or specific expression functions label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! WFS data provider
Projects
None yet
2 participants