<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 &lt;BBOX&gt; 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 &lt;greenkov@gmail.com&gt;<br><b><span style="font-weight: bold;">An:</span></b> leene &lt;leene_85@yahoo.de&gt;<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 &lt;<a ymailto="mailto:greenkov@gmail.com" href="mailto:greenkov@gmail.com">greenkov@gmail.com</a>&gt; wrote:<br>&gt; You might have to specify your filter for each typename, as in:<br>&gt; <a href="http://my-server/fcgi-bin/mapserv&amp;map=mymap.map&amp;service=WFS&amp;version=1.1.0&amp;request=GetFeature&amp;typename=layer1,layer2&amp;FILTER="
 target="_blank">http://my-server/fcgi-bin/mapserv&amp;map=mymap.map&amp;service=WFS&amp;version=1.1.0&amp;request=GetFeature&amp;typename=layer1,layer2&amp;FILTER=</a>(&lt;Filter&gt;...&lt;/Filter&gt;)(&lt;Filter&gt;...&lt;/Filter&gt;)<br>&gt;<br>&gt;<br>&gt; See this thread:<br>&gt; <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>&gt;<br>&gt;<br>&gt; Alex<br>&gt;<br>&gt; On Wed, Nov 3, 2010 at 8:44 AM, leene &lt;<a ymailto="mailto:leene_85@yahoo.de" href="mailto:leene_85@yahoo.de">leene_85@yahoo.de</a>&gt; wrote:<br>&gt;&gt; Hey,<br>&gt;&gt; I have a problem with filtering elements of multiple layers.<br>&gt;&gt; My mapserver (version 5.2.1) is configured with two layers - layer1 and<br>&gt;&gt; layer2. For better understanding see attachment: layer1 has black crosses<br>&gt;&gt; and layer2 has red points. Now I try to
 get features by id - but I don't<br>&gt;&gt; know the corresponding layer. Therefore I send the following request:<br>&gt;&gt;<br>&gt;&gt; <a href="http://my-server/fcgi-bin/mapserv?map=mymap.map&amp;service=WFS&amp;version=1.1.0&amp;request=GetFeature&amp;typename=layer1,layer2&amp;filter=" target="_blank">http://my-server/fcgi-bin/mapserv?map=mymap.map&amp;service=WFS&amp;version=1.1.0&amp;request=GetFeature&amp;typename=layer1,layer2&amp;filter=</a><br>&gt;&gt; &lt;Filter&gt;&lt;OR&gt;<br>&gt;&gt; &lt;PropertyIsEqualTo&gt;&lt;PropertyName&gt;ID&lt;/PropertyName&gt;&lt;Literal&gt;idAofLayer1&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;<br>&gt;&gt; &lt;PropertyIsEqualTo&gt;&lt;PropertyName&gt;ID&lt;/PropertyName&gt;&lt;Literal&gt;idBofLayer1&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;<br>&gt;&gt; &lt;PropertyIsEqualTo&gt;&lt;PropertyName&gt;ID&lt;/PropertyName&gt;&lt;Literal&gt;idCofLayer2&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;<br>&gt;&gt;
 &lt;/OR&gt;&lt;/Filter&gt;<br>&gt;&gt;<br>&gt;&gt; In the response are some features missing but they exist in the shapefile. I<br>&gt;&gt; found out following rules:<br>&gt;&gt; 1. All features of layer2 (red points in attachment) are returned correctly.<br>&gt;&gt; 2. Features of layer1 (black crosses) which are inside the blue frame are<br>&gt;&gt; also returned correctly.<br>&gt;&gt; 3. Features of layer1 which are outside the blue frame (bounds of layer2)<br>&gt;&gt; are missing - if I filter the missing elements only on layer1 I get the<br>&gt;&gt; features.<br>&gt;&gt;<br>&gt;&gt; Is this a bug or where is my mistake?<br>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt; Cathleen<br>&gt;&gt;<br>&gt;&gt; By the way: Is there a date of mapserver 6 release?<br>&gt;&gt; <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>&gt;&gt;
 date.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; mapserver-users mailing list<br>&gt;&gt; <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br></div></div>
</div><br></body></html>