geomon/insert_sensor/Untitled-2.txt

208 lines
9.5 KiB
Plaintext
Raw Normal View History

https://portal.ogc.org/files/?artifact_id=64353
Seite 25
https://github.com/52North/SWE-Ingestion-Service/blob/dev/docs/ProcessDescription.md
<?xml version="1.0" encoding="UTF-8"?>
<sos:InsertObservation service="SOS" version="2.0.0"
xmlns:sos="http://www.opengis.net/sos/2.0"
xmlns:swes="http://www.opengis.net/swes/2.0"
xmlns:swe="http://www.opengis.net/swe/2.0"
xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:om="http://www.opengis.net/om/2.0"
xmlns:sams="http://www.opengis.net/samplingSpatial/2.0"
xmlns:sf="http://www.opengis.net/sampling/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0/sos.xsd http://www.opengis.net/samplingSpatial/2.0 http://schemas.opengis.net/samplingSpatial/2.0/spatialSamplingFeature.xsd">
<!-- <sos:offering>camera1</sos:offering> -->
<sos:observation>
<om:OM_Observation gml:id="ob5">
<!-- <om:type xlink:href="http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_TextObservation"/> -->
<om:type xlink:href="http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_CategoryObservation"/>
<om:phenomenonTime>
<gml:TimeInstant gml:id="phenomenonTime">
<gml:timePosition>2019-11-19T17:46:15.000+00:00</gml:timePosition>
</gml:TimeInstant>
</om:phenomenonTime>
<!-- <om:resultTime>
<gml:TimeInstant gml:id="resultTime">
<gml:timePosition>2019-11-19T13:50:00.000+00:00</gml:timePosition>
</gml:TimeInstant>
</om:resultTime> -->
<om:resultTime>
<gml:TimeInstant gml:id="resultTime">
<gml:timePosition>2019-11-19T13:50:00.000+00:00</gml:timePosition>
</gml:TimeInstant>
</om:resultTime>
<om:procedure xlink:href="camera1"/>
<om:observedProperty xlink:href="http://www.opengis.net/def/property/humanVisualPerception"/>
<om:featureOfInterest>
<sams:SF_SpatialSamplingFeature gml:id="ssf_instance">
<gml:identifier codeSpace="http://www.opengis.net/def/nil/OGC/0/unknown">pechgraben</gml:identifier>
<gml:name>Katastropheneinsatz in Pechgraben</gml:name>
<sf:type xlink:href="http://www.opengis.net/def/samplingFeatureType/OGC-OM/2.0/SF_SamplingPoint"/>
<sf:sampledFeature xlink:href="http://www.52north.org/test/featureOfInterest/1"/>
<sams:shape>
<gml:Point xmlns:ns="http://www.opengis.net/gml/3.2" ns:id="Point_ssf_b3a826dd44012201b013c90c51da28c041f7a92e0cc47260eb9888f6a4e9f747">
<gml:pos srsName="http://www.opengis.net/def/crs/EPSG/0/4326">14.54621, 47.92861</gml:pos>
</gml:Point>
</sams:shape>
</sams:SF_SpatialSamplingFeature>
</om:featureOfInterest>
<!-- <om:result xsi:type="xs:string">text_value</om:result> -->
<om:result xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">
https://www.flickr.com/photos/username/123456789/
</om:result>
<om:result xsi:type="gml:ReferenceType" xlink:href="https://www.flickr.com/photos/username/123456789/"/>
</om:OM_Observation>
</sos:observation>
</sos:InsertObservation>
<om:result xsi:type="swe:DataRecordPropertyType">
<swe:DataRecord>
<!-- <swe:field name="Time">
<swe:Time definition="urn:ogc:def:parameter:x-istsos:1.0:time:iso8601">
2014-06-03T14:10:00+0200
</swe:Time>
</swe:field> -->
<!-- <swe:field name="test_observable_property_9_8_2">
<swe:Category definition="http://www.52north.org/test/observableProperty/9_8_2">
<swe:codeSpace xlink:href="NOT_DEFINED"/>
<swe:value>sunny</swe:value>
</swe:Category>
</swe:field> -->
<!-- <swe:field name="test_observable_property_9_8_3">
<swe:Count definition="http://www.52north.org/test/observableProperty/9_8_3">
<swe:value>35</swe:value>
</swe:Count>
</swe:field> -->
<swe:field name="Url">
<swe:Text definition="Url">
<swe:value>I am text</swe:value>
</swe:Text>
</swe:field>
<swe:field name="Visibility">
<swe:Boolean definition="Visibility">
<swe:value>true</swe:value>
</swe:Boolean>
</swe:field>
</swe:DataRecord>
</om:result>
{
"request": "InsertObservation",
"service": "SOS",
"version": "2.0.0",
"offering": "camera1",
"observation": {
"identifier": {
"value": "ob_test",
"codespace": "http://www.opengis.net/def/nil/OGC/0/unknown"
},
"type": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement",
"procedure": "camera1",
"observedProperty": "Image",
"featureOfInterest": {
"identifier": {
"value": "pechgraben",
"codespace": "http://www.opengis.net/def/nil/OGC/0/unknown"
},
"name": [
{
"value": "Katastropheneinsatz in Pechgraben",
"codespace": "http://www.opengis.net/def/nil/OGC/0/unknown"
}
],
"sampledFeature": [
"http://www.52north.org/test/featureOfInterest/world"
],
"geometry": {
"type": "Point",
"coordinates": [
14.54621,
47.92861
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
}
}
},
"phenomenonTime": "2019-11-19T17:45:15+00:00",
"resultTime": "2019-11-19T17:45:15+00:00",
"result": {
"uom": "m",
"value": 0.28
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd">
<env:Body>
<sos:InsertObservation service="SOS" version="2.0.0"
xmlns:sos="http://www.opengis.net/sos/2.0"
xmlns:swes="http://www.opengis.net/swes/2.0"
xmlns:swe="http://www.opengis.net/swe/2.0"
xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:om="http://www.opengis.net/om/2.0"
xmlns:sams="http://www.opengis.net/samplingSpatial/2.0"
xmlns:sf="http://www.opengis.net/sampling/2.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0/sos.xsd http://www.opengis.net/samplingSpatial/2.0 http://schemas.opengis.net/samplingSpatial/2.0/spatialSamplingFeature.xsd">
<!-- multiple offerings are possible -->
<sos:offering>camera1</sos:offering>
<sos:observation>
<om:OM_Observation gml:id="o1">
<om:type xlink:href="http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_TextObservation"/>
<om:phenomenonTime>
<gml:TimeInstant gml:id="phenomenonTime">
<gml:timePosition>2021-11-19T17:45:15.000+00:00</gml:timePosition>
</gml:TimeInstant>
</om:phenomenonTime>
<om:resultTime xlink:href="#phenomenonTime"/>
<om:procedure xlink:href="camera1"/>
<om:observedProperty xlink:href="Image"/>
<om:featureOfInterest>
<sams:SF_SpatialSamplingFeature gml:id="ssf_instance">
<gml:identifier codeSpace="">pechgraben</gml:identifier>
<gml:name>Katastropheneinsatz in Pechgraben</gml:name>
<sf:type xlink:href="http://www.opengis.net/def/samplingFeatureType/OGC-OM/2.0/SF_SamplingPoint"/>
<sf:sampledFeature xlink:href="http://www.52north.org/test/featureOfInterest/1"/>
<sams:shape>
<gml:Point gml:id="test_feature_9">
<gml:pos srsName="http://www.opengis.net/def/crs/EPSG/0/4326">14.54621 47.92861</gml:pos>
</gml:Point>
</sams:shape>
</sams:SF_SpatialSamplingFeature>
</om:featureOfInterest>
<om:result xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">
https://www.flickr.com/photos/username/55555555/
</om:result>
</om:OM_Observation>
</sos:observation>
</sos:InsertObservation>
</env:Body>
</env:Envelope>