UNPKG

@mangosystem/ogc-schemas

Version:

Jsonix XML-JSON mappings for OGC Schemas.

74 lines (67 loc) 2.41 kB
<?xml version="1.0" encoding="UTF-8"?> <wml2:MeasurementTimeseries gml:id="xsd-measurement-timeseries-tvp.example" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wml2="http://www.opengis.net/waterml/2.0" xmlns:swe="http://www.opengis.net/swe/2.0" xsi:schemaLocation="http://www.opengis.net/waterml/2.0 http://schemas.opengis.net/waterml/2.0/waterml2.xsd" > <gml:description>Example timeseries for XML encoding http://www.opengis.net/spec/waterml/2.0/req/xsd-timeseries-time-value-pair</gml:description> <wml2:metadata> <wml2:MeasurementTimeseriesMetadata> <wml2:temporalExtent> <gml:TimePeriod gml:id="time-period.1"> <gml:beginPosition>2011-11-21T12:27:00+10:00</gml:beginPosition> <gml:endPosition>2011-11-21T12:30:00+10:00</gml:endPosition> </gml:TimePeriod> </wml2:temporalExtent> <wml2:baseTime>2011-11-21T12:27:00+10:00</wml2:baseTime> <wml2:spacing>PT1M</wml2:spacing> </wml2:MeasurementTimeseriesMetadata> </wml2:metadata> <wml2:defaultPointMetadata> <wml2:DefaultTVPMeasurementMetadata> <wml2:uom code="ms"/> <wml2:interpolationType xlink:href="http://www.opengis.net/def/waterml/2.0/interpolationType/continuous" xlink:title="Instantaneous"/> <wml2:aggregationDuration>P1M</wml2:aggregationDuration> </wml2:DefaultTVPMeasurementMetadata> </wml2:defaultPointMetadata> <wml2:point> <wml2:MeasurementTVP> <wml2:value>3.0</wml2:value> </wml2:MeasurementTVP> </wml2:point> <wml2:point> <wml2:MeasurementTVP> <wml2:value>3.2</wml2:value> <wml2:metadata> <wml2:TVPMeasurementMetadata> <wml2:accuracy> <swe:Quantity> <swe:uom code="m"/> <swe:value>0.1</swe:value> </swe:Quantity> </wml2:accuracy> </wml2:TVPMeasurementMetadata> </wml2:metadata> </wml2:MeasurementTVP> </wml2:point> <wml2:point> <wml2:MeasurementTVP> <wml2:value xsi:nil="true"/> <wml2:metadata> <wml2:TVPMeasurementMetadata> <wml2:nilReason xlink:href="http://www.opengis.net/def/nil/OGC/0/missing" xlink:title="missing"/> </wml2:TVPMeasurementMetadata> </wml2:metadata> </wml2:MeasurementTVP> </wml2:point> <wml2:point> <wml2:MeasurementTVP> <wml2:value>3.63</wml2:value> </wml2:MeasurementTVP> </wml2:point> </wml2:MeasurementTimeseries>