[OpenLayers-Dev] Advice on Filter 1.1.0 implementation

Tim Schaub tschaub at opengeo.org
Mon Feb 16 14:05:44 EST 2009


Hey-

Peter Bladon wrote:
> Roald,
> 
> Many thanks. Picked up the version from the svn, and it fixes the problem.
> 

Yeah, for the record, Filter Encoding 1.1 came with revision 8812.  So 
it is *not* in 2.7.

http://trac.openlayers.org/changeset/8812

Tim

> 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
>>
>>
> 


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Dev mailing list