I need to filter an OpenLayers layer using a CQL filter to an specific Bounding Box. Is it possible?
Something like this isn't working:
igh > 5000 AND bbox(igh,20786691,22051867,-305577260,-306370356)
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Which mapserver are you running/requesting maps from?
According to Geoserver CQL Tutorial:
CQL provides a full set of geometric filter capabilities. Say, for example, you want to display only the states that do cross the (-90,40,-60,45) bounding box. The filter will be BBOX(the_geom, -90, 40, -60, 45)
For anyone else figuring out how to use
BBOX AND CQL filter with ~version
2.10+. You want to do something like:
So this was restricting with:
Hope that helps, the documentation on this is quite terse