Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Yes but why you just dont put those shapefiles in a db and query over that? – g07kore May 11 '15 at 15:24
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=""/>
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.