[OpenLayers-Dev] Advice on Filter 1.1.0 implementation

Peter Bladon peter at bladonfamily.co.uk
Wed Feb 11 16:33:23 EST 2009


Roald,

Many thanks. Picked up the version from the svn, and it fixes the problem.

The more I see of OpenLayers, the more I like it!

Peter


Roald de Wit wrote:
> 
> 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
> roald.dewit at lisasoft.com
> 
> 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
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> 
> 

-- 
View this message in context: http://n2.nabble.com/Advice-on-Filter-1.1.0-implementation-tp2305213p2311577.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.




More information about the Dev mailing list