Hi Ivan,<br><br>Thanks for the link!<br><br>I have add this:<br><br><span class="ul-threaded" style="margin: 0.5em 0pt 0pt -20px;"><span class="text-cell">vavar sub = childFilter.CLASS_NAME.split(".").pop();
<br> if(sub === "FeatureId") {
<br> for(var i=0; i<childFilter.fids.length; ++i) {
<br> this.writeNode("FeatureId",
childFilter.fids[i], node);
<br> }
<br> } else {
<br> this.writeNode(
<br> this.getFilterType(childFilter),
childFilter, node
<br> );
<br> }
</span></span><br><br>For the writer of 'Not' filter and now I can write my filter correctly.<br>But now I have to read this sld.<br><br>For the moment I have this error: <br><br>obj.fids is undefined in v1.js (line 100)<br>
<br>I don't know what I have to change in readers to solved this.<br>Do you have an idea?<br><br>Regards<br><br>Jim<br><br><div class="gmail_quote">2010/1/10 Ivan Grcic <span dir="ltr"><<a href="mailto:igrcic@gmail.com">igrcic@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, check out this:<br>
<br>
<a href="http://n2.nabble.com/Fwd-Help-to-create-FeatureId-filter-OpenLayers-Filter-Logical-NOT-td4146688.html" target="_blank">http://n2.nabble.com/Fwd-Help-to-create-FeatureId-filter-OpenLayers-Filter-Logical-NOT-td4146688.html</a><br>
<br>
Cheers<br>
<div><div></div><div class="h5"><br>
On Thu, Jan 7, 2010 at 9:34 AM, Jimmy Aumard <<a href="mailto:jimmy.aumard@gmail.com">jimmy.aumard@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I try to create a filter like that:<br>
><br>
> filter=new OpenLayers.Filter.Logical({<br>
> type:"!",<br>
> filters:[new OpenLayers.Filter.FeatureId({<br>
> fids: "test.4"<br>
> })]<br>
> });<br>
><br>
> It's work but when I would like to transform this in SLD like:<br>
> f=new OpenLayers.Format.Filter();<br>
> f.write(filter);<br>
><br>
> I have this:<br>
> Filter writing not supported for rule type: undefined<br>
><br>
> If I try to start with an SLD an make f.read() it's doesn't works too, I<br>
> have an empty filter Not.<br>
><br>
> I use OpenLayers 2.8.<br>
> Anyone know how can make this kind of filter?<br>
><br>
> Regards<br>
><br>
> Jim<br>
><br>
> --<br>
> Aumard Jimmy<br>
> Développeur<br>
><br>
> KINAXIA<br>
> c/o CICA / PacaEst<br>
> 2229 Route des Crêtes<br>
> F-06560 Sophia Antipolis<br>
><br>
> Tél.: +33 (0)4 8973 0242<br>
> Mob.: +33 (0)6 6017 2827<br>
> Fax : +33 (0)4 8307 6583<br>
><br>
> <a href="http://www.kinaxia.fr" target="_blank">http://www.kinaxia.fr</a><br>
><br>
</div></div><div class="im">> _______________________________________________<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>
<br>
<br>
<br>
</div>--<br>
<font color="#888888">Ivan Grcic<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Aumard Jimmy<br>Développeur <br><br>KINAXIA<br>c/o CICA / PacaEst<br>2229 Route des Crêtes<br>F-06560 Sophia Antipolis<br><br>Tél.: +33 (0)4 8973 0242<br>Mob.: +33 (0)6 6017 2827<br>
Fax : +33 (0)4 8307 6583<br><br><a href="http://www.kinaxia.fr">http://www.kinaxia.fr</a><br>