Bug #5218
closedCreate sensorML string
0%
Description
Given the metadata string, parse this info to create the sensorML format for the same.
Updated by Jing Tao almost 14 years ago
We can create valid sensorML document and metacat can accept it.
The sensorML looks like:
<sml:SensorML
xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
xmlns:swe="http://www.opengis.net/swe/1.0.1"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/sensorML/1.0.1 http://schemas.opengis.net/sensorML/1.0.1/sensorML.xsd" version="1.0.1">
<sml:member>
<sml:System>
<sml:identification>
<sml:IdentifierList>
<sml:identifier name="siteName">
<sml:Term definition="urn:ogc:def:identifier:OGC:uniqueID">
<sml:value>gpp</sml:value>
</sml:Term>
</sml:identifier>
</sml:IdentifierList>
</sml:identification>
<sml:components>
<sml:ComponentList>
<sml:component name="sensor1">
<sml:Component>
<sml:characteristics>
<swe:DataRecord gml:id="sensorCharateristics">
<swe:field name="coefficients">
<swe:Text>
<swe:value></swe:value>
</swe:Text>
</swe:field>
<swe:field name="conversion-type">
<swe:Text>
<swe:value>Linear</swe:value>
</swe:Text>
</swe:field>
<swe:field name="isOn">
<swe:Boolean>
<swe:value>true</swe:value>
</swe:Boolean>
</swe:field>
<swe:field name="latitude">
<swe:Text>
<swe:value>32.884243999999995</swe:value>
</swe:Text>
</swe:field>
<swe:field name="longitude">
<swe:Text>
<swe:value>-117.239457</swe:value>
</swe:Text>
</swe:field>
<swe:field name="measurement-unit">
<swe:Text>
<swe:value>degrees Celsius</swe:value>
</swe:Text>
</swe:field>
<swe:field name="sampleMethod">
<swe:Text>
<swe:value>average</swe:value>
</swe:Text>
</swe:field>
<swe:field name="samples-per-measurement">
<swe:Count>
<swe:value>10</swe:value>
</swe:Count>
</swe:field>
<swe:field name="samplingPeriod">
<swe:Quantity>
<swe:value>2</swe:value>
</swe:Quantity>
</swe:field>
<swe:field name="sensor-make">
<swe:Text>
<swe:value>Vaisala</swe:value>
</swe:Text>
</swe:field>
<swe:field name="sensor-measurement">
<swe:Text>
<swe:value>Temperature</swe:value>
</swe:Text>
</swe:field>
<swe:field name="sensor-model">
<swe:Text>
<swe:value>HMP45A</swe:value>
</swe:Text>
</swe:field>
<swe:field name="serial-number">
<swe:Text>
<swe:value>B3310001</swe:value>
</swe:Text>
</swe:field>
<swe:field name="dataLogger">
<swe:Text>
<swe:value>CR800</swe:value>
</swe:Text>
</swe:field>
</swe:DataRecord>
</sml:characteristics>
</sml:Component>
</sml:component>
</sml:ComponentList>
</sml:components>
</sml:System>
</sml:member>
</sml:SensorML>
Updated by Derik Barseghian almost 14 years ago
changing bugs from REAP to Kepler product