[mapserver-users] Filter elements on multiple layers

leene leene_85 at yahoo.de
Wed Nov 3 07:44:30 PDT 2010


Hey,
I have a problem with filtering elements of multiple layers.
My mapserver (version 5.2.1) is configured with two layers - layer1 and layer2. 
For better understanding see attachment: layer1 has black crosses and layer2 has 
red points. Now I try to get features by id - but I don't know the corresponding 
layer. Therefore I send the following request:

http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter=

<Filter><OR>
<PropertyIsEqualTo><PropertyName>ID</PropertyName><Literal>idAofLayer1</Literal></PropertyIsEqualTo>

<PropertyIsEqualTo><PropertyName>ID</PropertyName><Literal>idBofLayer1</Literal></PropertyIsEqualTo>

<PropertyIsEqualTo><PropertyName>ID</PropertyName><Literal>idCofLayer2</Literal></PropertyIsEqualTo>

</OR></Filter>

In the response are some features missing but they exist in the shapefile. I 
found out following rules: 

1. All features of layer2 (red points in attachment) are returned correctly.
2. Features of layer1 (black crosses) which are inside the blue frame are also 
returned correctly.
3. Features of layer1 which are outside the blue frame (bounds of layer2) are 
missing - if I filter the missing elements only on layer1 I get the features.

Is this a bug or where is my mistake?

Regards,
Cathleen

By the way: Is there a date of mapserver 6 release? 
http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to 
date.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101103/e3e9c245/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.JPG
Type: image/jpeg
Size: 7529 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101103/e3e9c245/attachment.jpe>


More information about the MapServer-users mailing list