<div dir="ltr">There is nothing wrong with OpenLayers. The AND filter combines the feature ids with a bounding box filter. And none of the feature ids you are looking for is inside the bounding box.<div><br></div><div>Andreas.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 1:04 AM, neffets <span dir="ltr"><<a href="mailto:martsystems@gmx.net" target="_blank">martsystems@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I not sure it is a my mistake or a error in OL 2.12:<br>
<br>
I use the filter like:<br>
new OpenLayers.Filter.FeatureId({<br>
  fids: ["st.3005","st.9504","st.21846"]<br>
})<br>
<br>
This produced a request-body:<br>
...<ogc:And><ogc:FeatureId fid="st.3005"/><ogc:FeatureId<br>
fid="st.9504"/><ogc:FeatureId<br>
fid="st.21846"/><ogc:BBOX><ogc:PropertyName>sp_geometry</ogc:PropertyName><gml:Box<br>
xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>" srsName="EPSG:4326"><gml:coordinates<br>
decimal="." cs="," ts=" ">14.159328104722,51.400626869388<br>
14.395019175278,51.4452635058</gml:coordinates></gml:Box></ogc:BBOX></ogc:And>...<br>
<br>
The reponse-body is empty (because the featureIDs are connected with AND?)<br>
<br>
If I insert a OR-Tag by hand in the request everything works well:<br>
...<ogc:And>*<ogc:Or>*<ogc:FeatureId fid="st.3005"/><ogc:FeatureId<br>
fid="st.9504"/><ogc:FeatureId<br>
fid="st.21846"/>*</ogc:Or>*<ogc:BBOX><ogc:PropertyName>sp_geometry</ogc:PropertyName><gml:Box<br>
xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>" srsName="EPSG:4326"><gml:coordinates<br>
decimal="." cs="," ts=" ">14.159328104722,51.400626869388<br>
14.395019175278,51.4452635058</gml:coordinates></gml:Box></ogc:BBOX></ogc:And>...<br>
<br>
What's wrong with my filter?<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Filter-with-FeatureId-tp5049516.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Filter-with-FeatureId-tp5049516.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org/</a><br>Expert service straight from the developers.<br>
</div>