From 939411077bf8c0a6c509d32e9c894b9468ea34ac Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea Date: Sat, 11 Jan 2025 14:21:59 +0100 Subject: [PATCH] [WFS] Better fix for @geometry in filter expression --- src/core/qgsogcutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/qgsogcutils.cpp b/src/core/qgsogcutils.cpp index 891ae45799e6..16a3d25f3e1f 100644 --- a/src/core/qgsogcutils.cpp +++ b/src/core/qgsogcutils.cpp @@ -2318,7 +2318,7 @@ static bool isGeometryColumn( const QgsExpressionNode *node ) const QgsExpressionNodeFunction *fn = static_cast( node ); QgsExpressionFunction *fd = QgsExpression::Functions()[fn->fnIndex()]; - return fd->name() == QLatin1String( "$geometry" ) || fn->referencedVariables().contains( QLatin1String( "geometry" ) ); + return fd->name() == QLatin1String( "$geometry" ) || ( fd->name() == QLatin1String( "var" ) && fn->referencedVariables().contains( QLatin1String( "geometry" ) ) ); } static QgsGeometry geometryFromConstExpr( const QgsExpressionNode *node )