<?xml version="1.0" encoding="UTF-8"?>
<wml2dr:MeasurementTimeseriesDomainRange xmlns:wml2="http://www.opengis.net/waterml/2.0" xmlns:wml2dr="http://www.opengis.net/waterml-dr/2.0"
  xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmlcov="http://www.opengis.net/gmlcov/1.0" xmlns:swe="http://www.opengis.net/swe/2.0"
  xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/waterml/2.0 http://schemas.opengis.net/waterml/2.0/waterml2.xsd
  http://www.opengis.net/waterml-dr/2.0 http://schemas.opengis.net/waterml/2.0/domain-range-informative/timeseries-domain-range.xsd"
  gml:id="ts_dr_ex">

  <gml:description>A handcrafted example of a domain-range style timeseries.</gml:description>
  <gml:domainSet>
    <wml2dr:TimePositionList gml:id="temporal_domain">
      <wml2dr:timePositionList>2001-01-01T00:00:00Z 2001-01-02T00:00:00Z 2001-01-03T00:00:00Z 2001-01-04T00:00:00Z 2001-01-05T00:00:00Z
        2001-01-06T00:00:00Z</wml2dr:timePositionList>
    </wml2dr:TimePositionList>
  </gml:domainSet>

  <gml:rangeSet>
    <gml:QuantityList uom="m"> 2.03 2.06 2.42 missing 2.04 2.23 </gml:QuantityList>
  </gml:rangeSet>

  <gmlcov:rangeType>
    <swe:DataRecord>
      <swe:field name="range_set">
        <swe:Quantity>
          <swe:uom code="m"/>
        </swe:Quantity>
      </swe:field>
    </swe:DataRecord>
  </gmlcov:rangeType>

  <gmlcov:metadata>
    <gmlcov:Extension>
      <wml2dr:MeasurementTimeseriesMetadataExtension>
        <wml2dr:defaultMetadata>
          <wml2:DefaultTVPMeasurementMetadata>
            <wml2:quality xlink:href="http://opengis.net/def/waterml/2.0/quality/good"/>
            <wml2:interpolationType xlink:href="http://opengis.net/def/waterml/2.0/interpolationType/continuous"/>
          </wml2:DefaultTVPMeasurementMetadata>
        </wml2dr:defaultMetadata>

        <wml2dr:annotation>
          <wml2dr:AnnotationCoverage gml:id="quality_cov">
            <gml:domainSet xlink:href="#temporal_domain"/>
            <gml:rangeSet>
              <gml:CategoryList codeSpace="http://opengis.net/def/waterml/2.0/quality/"> good bad good missing good bad</gml:CategoryList>
            </gml:rangeSet>
            <gmlcov:rangeType/>
          </wml2dr:AnnotationCoverage>
        </wml2dr:annotation>

        <wml2dr:annotation>
          <wml2dr:AnnotationCoverage gml:id="comment_cov">
            <gml:domainSet xlink:href="#temporal_domain"/>
            <gml:rangeSet>
              <gml:ValueArray gml:id="comment_array">
                <gml:valueComponents>
                  <gml:Category>This is a free text comment</gml:Category>
                  <gml:Category xsi:nil="true"/>
                  <gml:Category>Example comment</gml:Category>
                  <gml:Category>Another one</gml:Category>
                  <gml:Category>Has to be one for each point</gml:Category>
                </gml:valueComponents>
              </gml:ValueArray>
            </gml:rangeSet>
            <gmlcov:rangeType/>
          </wml2dr:AnnotationCoverage>
        </wml2dr:annotation>
      </wml2dr:MeasurementTimeseriesMetadataExtension>
    </gmlcov:Extension>
  </gmlcov:metadata>

</wml2dr:MeasurementTimeseriesDomainRange>
