<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" in desc order.</div>
<div><br></div><div>I see that there is a <ogc:SortBy> element in OGC specs. but I can't figure 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"> protocol: new OpenLayers.Protocol.WFS({</font></div><div><font face="'courier new', monospace"> version: "1.1.0",</font></div>
<div><font face="'courier new', monospace"> url: host + service, </font></div><div><font face="'courier new', monospace"> featureType: "twitter_cache",</font></div>
<div><font face="'courier new', monospace"> 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"> })</font></div><div><font face="'courier new', monospace"> ,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"> ,styleMap: pointMap</font><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"> });</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>, <span class="Apple-style-span" style="font-family: 'courier new', monospace; ">wfs:PropertyName and ogc:Filter</span></div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace"><wfs:Query typeName="topp:states"></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <b><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName></b></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><b> <wfs:PropertyName>topp:PERSONS</wfs:PropertyName></b></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <<b>ogc:Filter</b>></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> (...)</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> </ogc:Filter></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> </wfs:Query></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"></wfs:GetFeature></font></div></div><div><br></div><div><br></div><div><br></div><div>-- <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>