Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

We have a specific point and would like to count all features in a circular area with center at that specific point.

The data is:
- Stored in a shapefile layer created in QGIS
- Served by geoserver
- Browsed by a web browser using openlayers

Thank you in advance for your advice.

share|improve this question
do you have a spatial database (like postgres/postgis)? –  Mapperz Feb 7 '13 at 21:18
Yes, but I think it's not what I need in this case, as the features are all in shapefiles. –  Martin0x777 Feb 22 '13 at 19:07

1 Answer 1

up vote 2 down vote accepted

Issue a WFS-hits request with a specific ECQL filter (maybe DWITHIN)

Example request
http://<server>/wfs/?&version=1.1.0&request=GetFeature&typeName=ns:layer&resultType=hits&CQL_FILTER=<ECQL FILTER>

The response is something like

<wfs:FeatureCollection numberOfFeatures="324" timeStamp="2013-02-08T18:18:28.649Z" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"/>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.