WebService::SOS - a module for interfacing with an OpenGIS Sensor Observation Service (SOS)
use WebService::SOS; my $sosclient = WebService::SOS->new( server_url => 'http://someserver.com/path/to/sos/server' ); my $cap = $sosclient->GetCapabilities(); my $desc = $sosclient->DescribeSensor($procedure); my $obs = $sosclient->GetObservation($offering,$observedProperty,$beginTime,$endTime);
This module provides methods for interfacing with an OpenGIS Sensor Observation Service (SOS).
GetCapabilities
get the capabillities
DescribeSensor
describe a sensor
GetObservation
get an observation
new(%args)
$sosclient = WebService::SOS->new( server_url => 'http://somehost.com/path/to/sos/server' );
options:
server_url - full url to the sos web service server (required)
server_url
method - can be "post" (default) or "get"
method
debug - set to 1 to get some debugging output on STDERR
debug
GetCapabilities()
$cap = $sosclient->GetCapabilities();
this method takes no options
DescribeSensor($procedure)
$desc = $sosclient->DescribeSensor($procedure);
$procedure - the sensor to query (AllowedValues are specified in response from GetCapabilities())
$procedure
GetObservation($offering,$observedProperty,$beginTime,$endTime)
$offering - the sensor to query (AllowedValues are specified in response from GetCapabilities())
$offering
$observedProperty - the property to query for (AllowedValues are specified in response from GetCapabilities())
$observedProperty
$beginTime - the start of the time range for which you want to query (in ISO 8601 date and time format)
$beginTime
$endTime - the end of the time range for which you want to query (in ISO 8601 date and time format)
$endTime
This module clucks on all errors.
cluck
http://www.opengeospatial.org/standards/sos - documentation on the OpenGIS SOS standard
http://www.iso.org/iso/date_and_time_format - ISO 8601 date and time format
http://github.com/jamescdavis/WebService-SOS
James C. Davis, <jdavis@cpan.org>
Copyright (C) 2011 by James C. Davis
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::SOS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::SOS
CPAN shell
perl -MCPAN -e shell install WebService::SOS
For more information on module installation, please visit the detailed CPAN module installation guide.