I'm trying to use PHP's CURL function to fetch geoJSON information from a GeoServer instance. I'm doing this using url variables rather than trying to construct a full xml GetFeature request.
However, I would like to be able to get a subset of the results based on some of the property fields' contents.
So, while I can get all of the results using this url:
can I also limit the results to "Where field LIKE value" or "field = value"?
I've spent an hour trawling through the Geoserver/ECQL documentation and none of it clearly states "append the functions to your URL in this format". As a result, I'm not clear if it's possible to use url variables to perform these tasks, but some people seem to suggest that it is.
Can anyone help with a clear example of a working filter using GeoServer's WFS with URL parameters?
&CQL_FILTER=field=value AND field=value AND field=value- but you need to URL encode the " AND " so that the spaces are encoded. Hope this helps save someone else time. – Ambulare Aug 14 '14 at 09:23&CQL_FILTER=field=value AND field=value AND field=valuebecomes%26CQL_FILTER%3Dfield%3Dvalue+AND+field%3Dvalue+AND+field%3Dvalue. – shaheen g Aug 20 '21 at 23:46