0

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
  • 2
    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
2

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"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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