You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ttn-ogcswe-integration/templates/sostransactional_sensor.xml

73 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<sml:PhysicalComponent gml:id="{{SENSOR_ID}}"
xmlns:swes="http://www.opengis.net/swes/2.0"
xmlns:sos="http://www.opengis.net/sos/2.0"
xmlns:swe="http://www.opengis.net/swe/2.0"
xmlns:sml="http://www.opengis.net/sensorml/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xsi:schemaLocation="http://www.opengis.net/sensorml/2.0 http://schemas.opengis.net/sensorml/2.0/sensorML.xsd">
<gml:description>Sensor feeds via thethingsnetwork.org integration</gml:description>
<gml:identifier codeSpace="uniqueID">{{HOST}}/procedure/{{SENSOR_ID}}</gml:identifier>
<sml:capabilities name="offerings">
<sml:CapabilityList>
<sml:capability name="offeringID">
<swe:Text definition="urn:ogc:def:identifier:OGC:offeringID">
<swe:label>{{SENSOR_ID}}</swe:label>
<swe:value>{{HOST}}/offering/{{SENSOR_ID}}</swe:value>
</swe:Text>
</sml:capability>
</sml:CapabilityList>
</sml:capabilities>
<sml:outputs>
<sml:OutputList>
{{#each SENSORS}}
<sml:output name="{{observedPropertyName}}">
<swe:Quantity definition="{{observedProperty}}">
<swe:label>{{observedPropertyName}}</swe:label>
<swe:uom code="{{unitOfMeasurement}}"/>
</swe:Quantity>
</sml:output>
{{/each}}
</sml:OutputList>
</sml:outputs>
{{#if LATITUDE}}
{{#if LONGITUDE}}
<sml:position>
<swe:Vector definition="http://sensorml.com/ont/swe/property/SensorLocation"
referenceFrame="http://www.opengis.net/def/crs/EPSG/6.7/4326">
<swe:coordinate name="Lat">
<swe:Quantity definition="http://sensorml.com/ont/swe/property/Latitude" axisID="Lat">
<swe:uom code="deg"/>
<swe:value>{{LATITUDE}}</swe:value>
</swe:Quantity>
</swe:coordinate>
<swe:coordinate name="Lon">
<swe:Quantity definition="http://sensorml.com/ont/swe/property/Longitude" axisID="Long">
<swe:uom code="deg"/>
<swe:value>{{LONGITUDE}}</swe:value>
</swe:Quantity>
</swe:coordinate>
{{#if ALTITUDE}}
<swe:coordinate name="Altitude">
<swe:Quantity definition="http://sensorml.com/ont/swe/property/Altitude" axisID="Alt">
<swe:uom code="m"/>
<swe:value>{{ALTITUDE}}</swe:value>
</swe:Quantity>
</swe:coordinate>
{{/if}}
</swe:Vector>
</sml:position>
{{/if}}
{{/if}}
</sml:PhysicalComponent>