How to use SpatialOperator in filter expression in QGIS

المشرف العام

Administrator
طاقم الإدارة
In a python script I want to specify a request filter expression using a spatial operator. I am following the general syntax "field name" operator condition. For example:

setFilterExpression('$geometry soOverlaps QgsRectangle(...)')This gives no results and no error.

Please can somebody provide an example on how to build a valid expression using these spatial operators.



أكثر...
 
أعلى