[OpenLayers-Dev] writing Filter

bartvde at osgis.nl bartvde at osgis.nl
Wed May 7 09:13:59 EDT 2008


Okay, with quite a few code lines I could get the job done .... :

var sld = new OpenLayers.Format.SLD.v1();
var dummyNode = sld.createElementNSPlus("Dummy");
var flt = sld.writeNode(dummyNode, "ogc:Filter", filter);
var xml = new OpenLayers.Format.XML();
layer.filter = xml.write(flt);

Best regards,
Bart

On Wed, 07 May 2008 14:40:09 +0200, <bartvde at osgis.nl> wrote:
> Hi list,
> 
> currently Format.SLD can write a ogc:Filter node. This works fine when I
> use SLD WMS.
> 
> Now I also want to use the same Filter XML for use in a WFS GetFeature
> request (to show an attribute tabel of the selection).
> 
> How can I currently write the Filter?
> 
> Should there be a Format.Filter or something similar?
> 
> Best regards,
> Bart
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev




More information about the Dev mailing list