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

To pull features using WFS from several layers in one request, I have two options: One, create a layer group, and then get features from the layer group, as opposed to individual layers. Two, use cross layer filtering to obtain features for each desired layer.

Now, I'm not adept at cross layer filtering. But it appears to me as the more flexible and robust solution. What I wish to achieve is obtain points within a selected administrative boundary. The administrative boundaries and the points/population layers are separate.

I'll appreciate any advice on the way to go.

My environment: GeoServer 2.1.3, OpenLayers 2.11, PostGIS 1.5.

share|improve this question
up vote 2 down vote accepted

The first is not an option, layer groups exist only for WMS. Cross layer filtering is to filter layers, not to get multiple ones in one request. If you need data from more than one layer in WFS just create a Query element for each one of them in the request, as mandated by the WFS spec, or if you are using a GET request use a comma separate value.

A quick read of the WFS specification would certainly help

share|improve this answer
Thanks. I've a better understanding of this now. – okello Jul 12 '12 at 9:55

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.