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

I have two layers: one representing admin boundaries (multipolygon), and the other representing population (multipoint). I've made it possible to select a polygon to display. For the displayed polygon, I'd like to display total population, which means summing all the points that belong inside the selected polygon.

Any pointers on how to proceed? Thanks in advance.

share|improve this question
up vote 1 down vote accepted

You will have to use WPS, the gs:Aggregate process and feed it with a WFS request for that same feature's polygon, chaining it with the collectGeometries process.

share|improve this answer
That sounds workable. I've also been going thru cross layer query. Split as to which is more appropriate. Do u have any experience working with cross layer queries. What would you advice on their usage for this particular scenario. – okello Jul 3 '12 at 14:36
I managed this with a combination filters in the accompanying WFS request. Thanks a lot for the pointer. – okello Jul 23 '12 at 6:50

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.