<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi,<br><span>thank you Alex. I found the solution in the same thread, you've posted: <a target="_blank" href="http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10704.html">http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10704.html</a></span><br><br>I must add the <BBOX> of the whole map to the filter and I'll get all matches.<br><br>Regards,<br>Cathleen<br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> Alexander Petkov <greenkov@gmail.com><br><b><span style="font-weight: bold;">An:</span></b> leene <leene_85@yahoo.de><br><b><span
style="font-weight: bold;">CC:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Gesendet:</span></b> Mittwoch, den 3. November 2010, 20:30:39 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> Re: [mapserver-users] Filter elements on multiple layers<br></font><br>Hmm, I just tested this--it seems that you'd always get features where<br>the envelopes for the results from each layer spatially intersect,<br>(i.e. anything within the blue rectangle of your image).<br><br> Alex<br><br>On Wed, Nov 3, 2010 at 11:37 AM, Alexander Petkov <<a ymailto="mailto:greenkov@gmail.com" href="mailto:greenkov@gmail.com">greenkov@gmail.com</a>> wrote:<br>> You might have to specify your filter for each typename, as in:<br>> <a href="http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER="
target="_blank">http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER=</a>(<Filter>...</Filter>)(<Filter>...</Filter>)<br>><br>><br>> See this thread:<br>> <a href="http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10695.html" target="_blank">http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10695.html</a><br>><br>><br>> Alex<br>><br>> On Wed, Nov 3, 2010 at 8:44 AM, leene <<a ymailto="mailto:leene_85@yahoo.de" href="mailto:leene_85@yahoo.de">leene_85@yahoo.de</a>> wrote:<br>>> Hey,<br>>> I have a problem with filtering elements of multiple layers.<br>>> My mapserver (version 5.2.1) is configured with two layers - layer1 and<br>>> layer2. For better understanding see attachment: layer1 has black crosses<br>>> and layer2 has red points. Now I try to
get features by id - but I don't<br>>> know the corresponding layer. Therefore I send the following request:<br>>><br>>> <a href="http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter=" target="_blank">http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter=</a><br>>> <Filter><OR><br>>> <PropertyIsEqualTo><PropertyName>ID</PropertyName><Literal>idAofLayer1</Literal></PropertyIsEqualTo><br>>> <PropertyIsEqualTo><PropertyName>ID</PropertyName><Literal>idBofLayer1</Literal></PropertyIsEqualTo><br>>> <PropertyIsEqualTo><PropertyName>ID</PropertyName><Literal>idCofLayer2</Literal></PropertyIsEqualTo><br>>>
</OR></Filter><br>>><br>>> In the response are some features missing but they exist in the shapefile. I<br>>> found out following rules:<br>>> 1. All features of layer2 (red points in attachment) are returned correctly.<br>>> 2. Features of layer1 (black crosses) which are inside the blue frame are<br>>> also returned correctly.<br>>> 3. Features of layer1 which are outside the blue frame (bounds of layer2)<br>>> are missing - if I filter the missing elements only on layer1 I get the<br>>> features.<br>>><br>>> Is this a bug or where is my mistake?<br>>><br>>> Regards,<br>>> Cathleen<br>>><br>>> By the way: Is there a date of mapserver 6 release?<br>>> <a href="http://trac.osgeo.org/mapserver/wiki/60ReleasePlan" target="_blank">http://trac.osgeo.org/mapserver/wiki/60ReleasePlan</a> doesn't seem to be up to<br>>>
date.<br>>><br>>><br>>> _______________________________________________<br>>> mapserver-users mailing list<br>>> <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>>><br>>><br>><br></div></div>
</div><br></body></html>