GetCapabilities (SOS)

In order to work with an SOS, you first need some information about the service. For example, what sensors are connected and what measurement (Phenomena) they deliver, where the sensors are, what objects (Features) are measured by them and which of the SOS-Operations are available for this service.
With the GetCapabilities-request a client can request the self-description of the service with its metadata, containing this and other informations.

The GetCapabilities-request can be sent as a GET- or POST-request to the service.

Parameter
The mandatory parameters that must be submitted with this request:

  • request – set to „GetCapabilities“
  • version – for this version of the SOS set to „1.0.0“
  • service – set to „SOS“

Optional parameters for this request are:

  • AcceptVersions – This is where the client can specify which SOS-versions are supported by him
  • Section – The document delivered by the service is divided into five sections(see Capabilities ). To avoid unnecessary traffic, you can specify here which of these sections are required and should be supplied by the service.
  • updateSequence
  • AcceptFormats – With this parameter you can provide additional information, the form in which the document can be submitted. Default it is sent as text/xml document, but also compressed files like application/zip are possible.

example GET request:
http://www.example.org/sos?SERVICE=SOS&REQUEST=GetCapabilities&VERSION=1.0.0

examples of a POST request :

Short

<?xml version="1.0" encoding="UTF-8"?>
<GetCapabilities xmlns="http://www.opengis.net/sos/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" service="SOS" version="1.0.0">
</GetCapabilities>

or with other attributes

<?xml version="1.0" encoding="UTF-8"?>
<GetCapabilities xmlns="http://www.opengis.net/sos/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" service="SOS">
<ows:AcceptVersions>
   <ows:Version>1.0.0</ows:Version>
</ows:AcceptVersions>
<ows:Sections>   
       <ows:Section>OperationsMetadata</ows:Section>   
    <ows:Section>ServiceIdentification</ows:Section>
    <ows:Section>Filter_Capabilities</ows:Section>
    <ows:Section>Contents</ows:Section> 
</ows:Sections> 
</GetCapabilities>

The response to a GetCapabilities request is a Capabilities-Dokument

Schreibe einen Kommentar