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.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.