SOS GetObservation.xml template
sosGetObservation.xml
—
Extensible Markup Language (XML),
3Kb
File contents
<?xml version="1.0" encoding="UTF-8"?>
<om:Observation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/om ../../../../../../ows4/schema0/swe/branches/swe-ows4-demo/om/current/commonObservation.xsd"
xmlns:swe="http://www.opengis.net/swe/0"
xmlns:gml="http://www.opengis.net/gml"
xmlns:om="http://www.opengis.net/om"
xmlns:xlink="http://www.w3.org/1999/xlink"
gml:id="YOUR_DATASET_ID">
<gml:description></gml:description>
<gml:name></gml:name>
<gml:location>
<gml:Point gml:id="OBSERVATION_LOCATION" srsName="urn:ogc:def:crs:EPSG:6.5:4329">
<!-- use lat lon depth in deg deg m -->
<gml:coordinates></gml:coordinates>
</gml:Point>
</gml:location>
<!-- Time of response- use TimePeriod for a series of data -->
<!-- or TimeInstant for a single measurement -->
<om:time>
<gml:TimePeriod gml:id="DATA_TIME">
<gml:beginPosition/>
<gml:endPosition/>
</gml:TimePeriod>
</om:time>
<!-- Procedure -->
<om:procedure />
<!-- the property measured -->
<om:observedProperty xlink:href="http://marinemetadata.org/2005/02/cf#sea_water_salinity"/>
<!-- Feature Of Interest -->
<om:featureOfInterest xlink:href="urn:something:bodyOfWater"/>
<!-- Result Structure and Encoding -->
<om:resultDefinition>
<swe:DataBlockDefinition>
<swe:components name="buoyMeasurements">
<swe:DataRecord>
<swe:field name="time">
<swe:Time definition="urn:ogc:phenomenon:time:iso8601"/>
</swe:field>
<swe:field name="latitude">
<swe:Quantity definition="urn:ogc:phenomenon:latitude:wgs84">
<swe:uom code="deg"/>
</swe:Quantity>
</swe:field>
<swe:field name="longitude">
<swe:Quantity definition="urn:ogc:phenomenon:longitude:wgs84">
<!-- 'deg' is code for meters -->
<swe:uom code="deg"/>
</swe:Quantity>
</swe:field>
<swe:field name="depth">
<swe:Quantity definition="urn:ogc:phenomenon:depth">
<!-- 'm' is code for meters -->
<swe:uom code="m"/>
</swe:Quantity>
</swe:field>
<swe:field name="salinity">
<swe:Quantity definition="http://marinemetadata.org/2005/02/cf#sea_water_salinity">
<swe:uom xlink:href="urn:mmi.org:units#psu"/>
</swe:Quantity>
</swe:field>
</swe:DataRecord>
</swe:components>
<swe:encoding>
<swe:AsciiBlock tokenSeparator="," blockSeparator=" " decimalSeparator="."/>
</swe:encoding>
</swe:DataBlockDefinition>
</om:resultDefinition>
<om:result></om:result>
</om:Observation>

