[OpenLayers-Dev] writing Filter
tschaub at openplans.org
Wed May 7 11:31:48 EDT 2008
Yeah, my intention is to pull the ogc:Filter readers and writers out of
SLD and put them in a Filter format. Then SLD can extend itself with
readers/writers from Filter.
bartvde at osgis.nl wrote:
> 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,
> 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,
>> Dev mailing list
>> Dev at openlayers.org
> Dev mailing list
> Dev at openlayers.org
More information about the Dev