Thanks Tim<br><br>For now to get around it I am just loading up a new Vector layer with features parsed from the GML returned by a direct URL to the WFS server with the normal FILTER param in it (and no BBOX).<br><br>I look forward to 2.7!<br>
<br>Stuart<br><br><div class="gmail_quote">On Wed, Jul 2, 2008 at 9:11 PM, Tim Schaub &lt;<a href="mailto:tschaub@opengeo.org">tschaub@opengeo.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey-<br>
<br>
This is scheduled to be fixed in 2.7.<br>
<br>
The new vector behavior work includes a WFS protocol that properly<br>
handles ogc:Filter.<br>
<br>
If you want to try it out, find the vector behavior sandbox:<br>
<a href="http://svn.openlayers.org/sandbox/vector-behavior" target="_blank">http://svn.openlayers.org/sandbox/vector-behavior</a><br>
<br>
Remaining issues will be ironed out in the next few months.<br>
<br>
Tim<br>
<div><div></div><div class="Wj3C7c"><br>
Stuart Eve wrote:<br>
&gt; I am trying to get my WFS server to return a filtered set of results (to<br>
&gt; avoid browser overload). I had previously been sending a FILTER param in<br>
&gt; the url - but now this is breaking because of the fact BBOX and FILTER<br>
&gt; are mutually exclusive (tickets #1430 and #1113). I attempted the patch<br>
&gt; in #1430 but it did not seem to work for me.<br>
&gt;<br>
&gt; I have been attempting to instead use the Openlayers.Filters - but it is<br>
&gt; just returning the whole of the WFS dataset (unfiltered). I was under<br>
&gt; the impression that you could use an Openlayers Filter to filter the<br>
&gt; data (as well as apply a style). Having checked the documentation it<br>
&gt; looks like only a GeoJSON layer has the option of adding a filter - is<br>
&gt; this true and if so is there any plans to include this v. useful<br>
&gt; functionality in the WFS layer? Alternatively are there any plans to fix<br>
&gt; the FILTER/BBOX error?<br>
&gt;<br>
&gt; Many thanks<br>
&gt;<br>
&gt; Stuart<br>
&gt;<br>
&gt;<br>
&gt; Code Snippets:<br>
&gt;<br>
&gt; &nbsp; &nbsp; function getDefaultStyle(sld, layerName) {<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var styles = sld.namedLayers[layerName].userStyles;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var style;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=0; i&lt;styles.length; ++i){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; style = styles[i];<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(style.isDefault) {<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var rule = new OpenLayers.Rule({<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filter: new OpenLayers.Filter.Comparison(<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;type: OpenLayers.Filter.Comparison.EQUAL_TO,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;property: &quot;ark_id&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;value: &quot;CH05SR_536&quot;,}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;style.addRules(rule);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return style;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; style_cxt_schm = getDefaultStyle(sld,&quot;cxt_schm&quot;);<br>
&gt; &nbsp; &nbsp; var cxt_schm = new OpenLayers.Layer.WFS(cxt_schm,&#39;php/map/ark_wxs_server.php?TYPENAME=cxt_schm&#39;,{},<br>
&gt; &nbsp; &nbsp; {styleMap: new OpenLayers.StyleMap({&quot;default&quot;:style_cxt_schm})});<br>
&gt;<br>
&gt; &nbsp; &nbsp; map.addLayers([cxt_schm]);<br>
&gt;<br>
</div></div>&gt; !DSPAM:4033,486b50fe101954901796417!<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt; !DSPAM:4033,486b50fe101954901796417!<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>