[Geoserver-users] Combining CQL_FILTER and MAXFEATURES in WFS GetFeature

Hi all,

I'm trying to use both CQL_FILTER (to add spatial constraints) and
MAXFEATURES in a WFS GetFeature request. A query with:
SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&CQL_FILTER=INTERSECT(geometry,POINT(98.232999999946
29.115999999383))

returns results as expected.

Once I add &MAXFEATURES=1, though, no results are returned. This continues
through about MAXFEATURES=500. At MAXFEATURES=600, one result begins to be
returned, and when I jump to MAXFEATURES=10000, many results are returned.

Shouldn't MAXFEATURES=n return n results? Is the MAXFEATURES constraint
applied before CQL_FILTER, or am I missing something about how this is set
up? I don't have access to the GeoServer backend, so I unfortunately can't
look at the queries that are being performed.

Thanks,
Tom
--
View this message in context: http://www.nabble.com/Combining-CQL_FILTER-and-MAXFEATURES-in-WFS-GetFeature-tp24259356p24259356.html
Sent from the GeoServer - User mailing list archive at Nabble.com.