When doing a WFS Get Feature request, I am using the cql_filter option to do some more advanced spatial filtering/quering. I am looking for the centroids of the polygons in a database that intersect with a polygon that I specify.
However, when I try to do the following query:
"INTERSECTS ( centroid( geom ), POLYGON(SomePoly) )
I get the following error:
<ows:ExceptionText xmlns:ows="http://www.opengis.net/ows/1.1">java.lang.IllegalArgumentException: Binary geometry filter, but first expression is not a property name? (it&apos;s a class org.geotools.filter.function.FilterFunction_centroid)
Binary geometry filter, but first expression is not a property name? (it's a class org.geotools.filter.function.FilterFunction_centroid)
Does anyone know the correct way of formatting such queries?