Skip to content

Commit

Permalink
[WFS] Better fix for @geometry in filter expression
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Jan 11, 2025
1 parent 42e7ad1 commit 9394110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsogcutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ static bool isGeometryColumn( const QgsExpressionNode *node )

const QgsExpressionNodeFunction *fn = static_cast<const QgsExpressionNodeFunction *>( 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 )
Expand Down

0 comments on commit 9394110

Please sign in to comment.