[OpenLayers-Dev] protocol having multiple formats?

bartvde at osgis.nl bartvde at osgis.nl
Wed Jul 8 09:35:06 EDT 2009

Hi Eric,

SOS is a bit different from WFS.

To get the location of a sensor, DescribeSensor is used. It returns among
other information the geographical position of the sensor.

To get the actual data (wind speed etc.), GetObservation is used.

So DescribeSensor needs to be used from within the protocol in this case.

Currently I have writing out the request XML in a Format.SOS class, and
Format.SOSDescribeSensor currently only parses the DescribeSensor reponse.
Maybe I should just move writing out the DescribeSensor request XML into
the Format.SOSDescribeSensor and then I would just have to deal with 1
format class from within the protocol.

Best regards,

> On Wednesday, July 8, 2009,  <bartvde at osgis.nl> wrote:
>> Hi list,
>> a question, would it be uncommon for a protocol to have multiple
>> formats?
>> I am asking since I am writing a client for an OGC Sensor Observation
>> Service, and I have created multiple formats for it, depending on which
>> request they handle (for instance DescribeSensor and GetObservation). Or
>> is it advisable to combine all this in 1 single format?
> Hi Bart
> I don't know anything about these sensor protocols and formats, but
> isn't GetObsevation like GetFeatures and DescribeSensor like
> DescribeFeatureType? The type of objects our protocols currently deal
> with are features (i.e. objects to be added to a vector layer), so if
> my previous sentence is correct it'd make sense that the sensor
> protocol do GetObservation requests. A DescribeSensor format could
> still be written, but it wouldn't be used from within a protocol. Note
> that this is just my gut feeling.
> Cheers,
>> Best regards,
>> Bart
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
> --
> Eric Lemoine
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com

More information about the Dev mailing list