Hi Peter,
Not sure if you have tried this, but OL (at least 2.7) supports filter
1.1.0:
var filter_1_1 = new OpenLayers.Format.Filter({version: "1.1.0"});
This should give you a gml:Envelope.
Cheers, Roald
On Wed, 2009-02-11 at 08:24 +1030, Peter Bladon wrote:
> Hi,
>
> I'm trying to write some code to run against a CSW 2.0.1 server
> (Geonetwork).
>
> OpenLayers.Filter implements OGC Filter 1.0.0 (or bits of it) which
> specifies BBOX with gml:Box.
>
> Geonetwork requires OGC Filter 1.1.0 which requires gml:Envelope
>
> Any suggestions for an elegant solution - I have an ugly kludge that adds an
> extra method to GML.js for writing gml:Envelope when passed an
> OpenLayers.Bounds object, called directly from an updated filter format
> class. Be nicer if it conformed to existing pattern, where GML is produced
> based on class type (ie reads class of passed in object and produces
> specific gml:XXX). I don't want to change existing bounds production, as
> this could break a lot of other stuff.
>
> Ta
>
> Peter
>
--
Roald de Wit
Software Engineer
[email protected]
Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/
The contents of this email are confidential and may be subject to legal or
professional privilege and copyright. No representation is made that this email
is free of viruses or other defects. If you have received this communication in
error, you may not copy or distribute any part of it or otherwise disclose its
contents to anyone. Please advise the sender of your incorrect receipt of this
correspondence.
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev