==========================
 OIE_SOS_LATEST_OBS.CGI
==========================

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.

  1. LWP.pm http://search.cpan.org/~gaas/libwww-perl-5.800/lib/LWP.pm
  2. XML::LibXML http://search.cpan.org/dist/XML-LibXML/
  3. 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 it runs a GetCapabilities request is run and information about the GetObservation parameter values is updated and a 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 the no time parameters are passed.