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 <<a href="mailto:tschaub@opengeo.org">tschaub@opengeo.org</a>> 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>
> I am trying to get my WFS server to return a filtered set of results (to<br>
> avoid browser overload). I had previously been sending a FILTER param in<br>
> the url - but now this is breaking because of the fact BBOX and FILTER<br>
> are mutually exclusive (tickets #1430 and #1113). I attempted the patch<br>
> in #1430 but it did not seem to work for me.<br>
><br>
> I have been attempting to instead use the Openlayers.Filters - but it is<br>
> just returning the whole of the WFS dataset (unfiltered). I was under<br>
> the impression that you could use an Openlayers Filter to filter the<br>
> data (as well as apply a style). Having checked the documentation it<br>
> looks like only a GeoJSON layer has the option of adding a filter - is<br>
> this true and if so is there any plans to include this v. useful<br>
> functionality in the WFS layer? Alternatively are there any plans to fix<br>
> the FILTER/BBOX error?<br>
><br>
> Many thanks<br>
><br>
> Stuart<br>
><br>
><br>
> Code Snippets:<br>
><br>
> function getDefaultStyle(sld, layerName) {<br>
><br>
> var styles = sld.namedLayers[layerName].userStyles;<br>
> var style;<br>
> for (var i=0; i<styles.length; ++i){<br>
> style = styles[i];<br>
> if(style.isDefault) {<br>
><br>
> break;<br>
> }<br>
> }<br>
><br>
> var rule = new OpenLayers.Rule({<br>
> filter: new OpenLayers.Filter.Comparison(<br>
> {<br>
> type: OpenLayers.Filter.Comparison.EQUAL_TO,<br>
><br>
> property: "ark_id",<br>
> value: "CH05SR_536",}<br>
> )<br>
> });<br>
> style.addRules(rule);<br>
> return style;<br>
> }<br>
><br>
><br>
> style_cxt_schm = getDefaultStyle(sld,"cxt_schm");<br>
> var cxt_schm = new OpenLayers.Layer.WFS(cxt_schm,'php/map/ark_wxs_server.php?TYPENAME=cxt_schm',{},<br>
> {styleMap: new OpenLayers.StyleMap({"default":style_cxt_schm})});<br>
><br>
> map.addLayers([cxt_schm]);<br>
><br>
</div></div>> !DSPAM:4033,486b50fe101954901796417!<br>
><br>
><br>
> ------------------------------------------------------------------------<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>
><br>
><br>
> !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>