An open API service indexing awesome lists of open source software.

https://github.com/jamescdavis/webservice-sos

A perl module for interfacing with an OpenGIS Sensor Observation Service (SOS). See: http://www.opengeospatial.org/standards/sos
https://github.com/jamescdavis/webservice-sos

Last synced: 9 months ago
JSON representation

A perl module for interfacing with an OpenGIS Sensor Observation Service (SOS). See: http://www.opengeospatial.org/standards/sos

Awesome Lists containing this project

README

          

=head1 NAME

WebService::SOS - a module for interfacing with an OpenGIS Sensor Observation Service (SOS)

=head1 SYNOPSIS

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

=head1 DESCRIPTION

This module provides methods for interfacing with an OpenGIS Sensor Observation Service (SOS).

=over

=item *

GetCapabilities

=over

=item *

get the capabillities

=back

=item *

DescribeSensor

=over

=item *

describe a sensor

=back

=item *

GetObservation

=over

=item *

get an observation

=back

=back

=head1 METHODS

new(%args)

=over

$sosclient = WebService::SOS->new( server_url => 'http://somehost.com/path/to/sos/server' );

options:

=over

C - full url to the sos web service server (required)

C - can be "post" (default) or "get"

C - set to 1 to get some debugging output on STDERR

=back

=back

GetCapabilities()

=over

$cap = $sosclient->GetCapabilities();

this method takes no options

=back

DescribeSensor($procedure)

=over

$desc = $sosclient->DescribeSensor($procedure);

options:

=over

C<$procedure> - the sensor to query (AllowedValues are specified in response from C)

=back

=back

GetObservation($offering,$observedProperty,$beginTime,$endTime)

=over

options:

=over

C<$offering> - the sensor to query (AllowedValues are specified in response from C)

C<$observedProperty> - the property to query for (AllowedValues are specified in response from C)

C<$beginTime> - the start of the time range for which you want to query (in ISO 8601 date and time format)

C<$endTime> - the end of the time range for which you want to query (in ISO 8601 date and time format)

=back

=back

=head1 ERRORS

This module Cs on all errors.

=head1 SEE ALSO

=over

L - documentation on the OpenGIS SOS standard

L - ISO 8601 date and time format

=back

=head1 SOURCE REPOSITORY

L

=head1 AUTHOR

James C. Davis, Ejdavis@cpan.orgE

=head1 COPYRIGHT AND LICENSE

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.