-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from CarstenHollmann/fix/result_insertion
Fis issue #116
- Loading branch information
Showing
10 changed files
with
277 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
...atic/examples/sos_v20/requests_soap/ResultHandling/InsertResultTemplateWithResultTime.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?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:InsertResultTemplate service="SOS" | ||
version="2.0.0" 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/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"> | ||
<sos:proposedTemplate> | ||
<!-- Before using this example, make sure that all preconditions are | ||
fulfilled, e.g. perform InsertSensor example. --> | ||
<sos:ResultTemplate> | ||
<swes:identifier>http://www.52north.org/test/procedure/9/template/2</swes:identifier> | ||
<sos:offering>http://www.52north.org/test/offering/9</sos:offering> | ||
<sos:observationTemplate> | ||
<om:OM_Observation gml:id="sensor2obsTemplate"> | ||
<om:type | ||
xlink:href="http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_CountObservation" /> | ||
<om:phenomenonTime nilReason="template" /> | ||
<om:resultTime nilReason="template" /> | ||
<om:procedure xlink:href="http://www.52north.org/test/procedure/9" /> | ||
<om:observedProperty | ||
xlink:href="http://www.52north.org/test/observableProperty/9_2" /> | ||
<om:featureOfInterest> | ||
<sams:SF_SpatialSamplingFeature | ||
gml:id="sf_test_feature_9"> | ||
<gml:identifier codeSpace="">http://www.52north.org/test/featureOfInterest/9</gml:identifier> | ||
<gml:name>52°North</gml:name> | ||
<sf:type | ||
xlink:href="http://www.opengis.net/def/samplingFeatureType/OGC-OM/2.0/SF_SamplingPoint" /> | ||
<sf:sampledFeature | ||
xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" /> | ||
<sams:shape> | ||
<gml:Point gml:id="point_sf_test_feature_9"> | ||
<gml:pos srsName="http://www.opengis.net/def/crs/EPSG/0/4326">51.935101100104916 7.651968812254194</gml:pos> | ||
</gml:Point> | ||
</sams:shape> | ||
</sams:SF_SpatialSamplingFeature> | ||
</om:featureOfInterest> | ||
<om:result /> | ||
</om:OM_Observation> | ||
</sos:observationTemplate> | ||
<sos:resultStructure> | ||
<swe:DataRecord> | ||
<swe:field name="phenomenonTime"> | ||
<swe:TimeRange | ||
definition="http://www.opengis.net/def/property/OGC/0/PhenomenonTime"> | ||
<swe:uom xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" /> | ||
</swe:TimeRange> | ||
</swe:field> | ||
<swe:field name="phenomenonTime"> | ||
<swe:Time | ||
definition="http://www.opengis.net/def/property/OGC/0/ResultTime"> | ||
<swe:uom xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" /> | ||
</swe:Time> | ||
</swe:field> | ||
<swe:field name="test_observable_property_9"> | ||
<swe:Count definition="http://www.52north.org/test/observableProperty/9_2"> | ||
</swe:Count> | ||
</swe:field> | ||
</swe:DataRecord> | ||
</sos:resultStructure> | ||
<sos:resultEncoding> | ||
<swe:TextEncoding tokenSeparator="#" | ||
blockSeparator="@" /> | ||
</sos:resultEncoding> | ||
</sos:ResultTemplate> | ||
</sos:proposedTemplate> | ||
</sos:InsertResultTemplate> | ||
</env:Body> | ||
</env:Envelope> |
11 changes: 11 additions & 0 deletions
11
...ebapp/static/examples/sos_v20/requests_soap/ResultHandling/InsertResultWithResultTime.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?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:InsertResult service="SOS" version="2.0.0" xmlns:sos="http://www.opengis.net/sos/2.0" | ||
xsi:schemaLocation="http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0/sos.xsd"> | ||
<sos:template>http://www.52north.org/test/procedure/9/template/2</sos:template> | ||
<sos:resultValues>15@2012-11-19T13:30:00+02:00/2012-11-19T13:30:59+02:00#2012-11-19T13:31:01+02:00#159@2012-11-19T13:31:00+02:00/2012-11-19T13:31:59+02:00#2012-11-19T13:32:01+02:00#159@2012-11-19T13:32:00+02:00/2012-11-19T13:32:59+02:00#2012-11-19T13:33:01+02:00#159@2012-11-19T13:33:00+02:00/2012-11-19T13:33:59+02:00#2012-11-19T13:34:01+02:00#160@2012-11-19T13:34:00+02:00/2012-11-19T13:34:59+02:00#2012-11-19T13:35:01+02:00#160@2012-11-19T13:35:00+02:00/2012-11-19T13:35:59+02:00#2012-11-19T13:36:01+02:00#160@2012-11-19T13:36:00+02:00/2012-11-19T13:36:59+02:00#2012-11-19T13:37:01+02:00#160@2012-11-19T13:37:00+02:00/2012-11-19T13:37:59+02:00#2012-11-19T13:38:01+02:00#160@2012-11-19T13:38:00+02:00/2012-11-19T13:38:59+02:00#2012-11-19T13:39:01+02:00#160@2012-11-19T13:39:00+02:00/2012-11-19T13:39:59+02:00#2012-11-19T13:40:01+02:00#160@2012-11-19T13:40:00+02:00/2012-11-19T13:40:59+02:00#2012-11-19T13:41:01+02:00#160@2012-11-19T13:41:00+02:00/2012-11-19T13:41:59+02:00#2012-11-19T13:42:01+02:00#160@2012-11-19T13:42:00+02:00/2012-11-19T13:42:59+02:00#2012-11-19T13:43:01+02:00#159@2012-11-19T13:43:00+02:00/2012-11-19T13:43:59+02:00#2012-11-19T13:44:01+02:00#159@2012-11-19T13:44:00+02:00/2012-11-19T13:44:59+02:00#2012-11-19T13:45:01+02:00#159@</sos:resultValues> | ||
</sos:InsertResult> | ||
</env:Body> | ||
</env:Envelope> |
69 changes: 69 additions & 0 deletions
69
...tatic/examples/sos_v20/requests_xml/ResultHandling/InsertResultTemplateWithResultTime.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<sos:InsertResultTemplate service="SOS" | ||
version="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
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/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/sosInsertResultTemplate.xsd http://www.opengis.net/om/2.0 http://schemas.opengis.net/om/2.0/observation.xsd | ||
http://www.opengis.net/samplingSpatial/2.0 http://schemas.opengis.net/samplingSpatial/2.0/spatialSamplingFeature.xsd"> | ||
<sos:proposedTemplate> | ||
<!-- Before using this example, make sure that all preconditions are fulfilled, | ||
e.g. perform InsertSensor example. --> | ||
<sos:ResultTemplate> | ||
<swes:identifier>http://www.52north.org/test/procedure/9/template/2</swes:identifier> | ||
<sos:offering>http://www.52north.org/test/offering/9</sos:offering> | ||
<sos:observationTemplate> | ||
<om:OM_Observation gml:id="sensor2obsTemplate"> | ||
<om:type | ||
xlink:href="http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_CountObservation" /> | ||
<om:phenomenonTime nilReason="template" /> | ||
<om:resultTime nilReason="template" /> | ||
<om:procedure xlink:href="http://www.52north.org/test/procedure/9" /> | ||
<om:observedProperty | ||
xlink:href="http://www.52north.org/test/observableProperty/9_2" /> | ||
<om:featureOfInterest> | ||
<sams:SF_SpatialSamplingFeature gml:id="sf_test_feature_9"> | ||
<gml:identifier codeSpace="">http://www.52north.org/test/featureOfInterest/9</gml:identifier> | ||
<gml:name>52°North</gml:name> | ||
<sf:type | ||
xlink:href="http://www.opengis.net/def/samplingFeatureType/OGC-OM/2.0/SF_SamplingPoint" /> | ||
<sf:sampledFeature xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" /> | ||
<sams:shape> | ||
<gml:Point gml:id="point_sf_test_feature_9"> | ||
<gml:pos srsName="http://www.opengis.net/def/crs/EPSG/0/4326">51.935101100104916 7.651968812254194</gml:pos> | ||
</gml:Point> | ||
</sams:shape> | ||
</sams:SF_SpatialSamplingFeature> | ||
</om:featureOfInterest> | ||
<om:result /> | ||
</om:OM_Observation> | ||
</sos:observationTemplate> | ||
<sos:resultStructure> | ||
<swe:DataRecord> | ||
<swe:field name="phenomenonTime"> | ||
<swe:TimeRange | ||
definition="http://www.opengis.net/def/property/OGC/0/PhenomenonTime"> | ||
<swe:uom xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" /> | ||
</swe:TimeRange> | ||
</swe:field> | ||
<swe:field name="phenomenonTime"> | ||
<swe:Time | ||
definition="http://www.opengis.net/def/property/OGC/0/ResultTime"> | ||
<swe:uom xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" /> | ||
</swe:Time> | ||
</swe:field> | ||
<swe:field name="test_observable_property_9"> | ||
<swe:Count definition="http://www.52north.org/test/observableProperty/9_2"> | ||
</swe:Count> | ||
</swe:field> | ||
</swe:DataRecord> | ||
</sos:resultStructure> | ||
<sos:resultEncoding> | ||
<swe:TextEncoding tokenSeparator="#" | ||
blockSeparator="@" /> | ||
</sos:resultEncoding> | ||
</sos:ResultTemplate> | ||
</sos:proposedTemplate> | ||
</sos:InsertResultTemplate> |
Oops, something went wrong.