<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>1) this is currently not implemented in OpenLayers Filter.</div><div>2) you can give a filter to your layer, and the BBOX strategy will combine it with a Logical And.</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div><div><div>On Jan 27, 2010, at 12:54 PM, Grzegorz Kowal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi,<div><br></div><div>1. I'm making a vector layer with WFS protocol. I would like to get sorted features by field "inserted" &nbsp;in desc order.</div>
<div><br></div><div>I see that there is a &lt;ogc:SortBy&gt; element in OGC specs. but I can't&nbsp;figure&nbsp;out how to do this.</div><div><br></div><div>My example, it works fine, it gets all the right stuff but sortBy does not work.<br clear="all">
<br></div><div><div><font face="'courier new', monospace">var poi = new OpenLayers.Layer.Vector("tweets", {</font></div><div><span style="white-space: pre; "><font face="'courier new', monospace">                        </font></span></div>
<div><span style="white-space: pre; "><font face="'courier new', monospace">                        </font></span><font face="'courier new', monospace">strategies: [</font></div><div><span style="white-space: pre; "><font face="'courier new', monospace">                                </font></span><font face="'courier new', monospace">new OpenLayers.Strategy.Cluster()</font></div>
<div><span style="white-space: pre; "><font face="'courier new', monospace">                                </font></span><font face="'courier new', monospace">,new OpenLayers.Strategy.BBOX()</font></div><div><span style="white-space: pre; "><font face="'courier new', monospace">                        </font></span><font face="'courier new', monospace">],</font></div>
<div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protocol: new OpenLayers.Protocol.WFS({</font></div><div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;version: "1.1.0",</font></div>
<div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;url: &nbsp;host + service,&nbsp;</font></div><div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;featureType: "twitter_cache",</font></div>
<div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;featureNS: "<a href="http://zegt.nu/" target="_blank" style="color: rgb(66, 99, 171); ">http://zegt.nu</a>",</font></div><div><span style="white-space: pre; "><font face="'courier new', monospace">                        </font></span><b><font face="'courier new', monospace">sortBy: "inserted"</font></b></div>
<div><span style="white-space: pre; "><font face="'courier new', monospace">                        </font></span></div><div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })</font></div><div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,projection: new OpenLayers.Projection("EPSG:4326")</font></div>
<div><span style="white-space: pre; "><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; ,styleMap: pointMap</font><span style="white-space: pre; "><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp;&nbsp;</font></div>
<div><font face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});</font></div></div><div><br></div><div>2. how to gain more control over <font class="Apple-style-span" face="'courier new', monospace">wfs:Query</font>,&nbsp;<span class="Apple-style-span" style="font-family: 'courier new', monospace; ">wfs:PropertyName and&nbsp;ogc:Filter</span></div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">&lt;wfs:Query typeName="topp:states"&gt;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp;<b>&lt;wfs:PropertyName&gt;topp:STATE_NAME&lt;/wfs:PropertyName&gt;</b></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><b>&nbsp;&nbsp; &nbsp;&lt;wfs:PropertyName&gt;topp:PERSONS&lt;/wfs:PropertyName&gt;</b></font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp;&lt;<b>ogc:Filter</b>&gt;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp; &nbsp;(...)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &lt;/ogc:Filter&gt;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp;&lt;/wfs:Query&gt;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">&lt;/wfs:GetFeature&gt;</font></div></div><div><br></div><div><br></div><div><br></div><div>--&nbsp;<br>salut<br>#wolktm</div></span>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>http://openlayers.org/mailman/listinfo/users<br></blockquote></div><br></div></div></body></html>