Personal tools
You are here: Home OCEANS IE Experiment #1 Get Latest Observation Notes
Document Actions

Get Latest Observation Notes

by Eric Bridger last modified 2007-09-14 11:04

The purpose is to create a simple client which retrieves and displays the latest sea water temperature observations from the GoMOOS SOS server which was  based on the OOSTethsys.org Perl Database Cookbook. It makes use of 3 standard Perl Modules and runs as a CGI script under Apache2 and mod_perl.

  •  LWP.pm        http://search.cpan.org/~gaas/libwww-perl-5.800/lib/LWP.pm
  •  XML::LibXML   http://search.cpan.org/dist/XML-LibXML/
  • CGI.pm        http://search.cpan.org/dist/CGI.pm

Defaults are used for the GetCapabilities URL and for the 'A01' offering and 'sea_water_temperature' observedProperty.
But is was written to be easily adaptable for use with any SOS OOSTethys based server and for any of the offerings or observedProperities described in the GetCapabilities response.

Each time the script runs, a GetCapabilities request is made and information about the GetObservation parameter values is retrieved and an http link to the request is displayed. Clicking the links displays either the raw XML returned by the GetObseration request or a parsed and formatted display of the results.

Both the GetCapabilities requests and the GetObservation requests are handled via the HTTP GET method and the GetObservation request relies on the default behaviour of the OOSTethys SOS servers which return the latest observation when no time parameters are passed.




OOSTethys.org: hosted by GoMOOS | powered by Plone