<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://water.usgs.gov/XML/AQ" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://water.usgs.gov/XML/AQ" elementFormDefault="qualified" version="1.0">
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
  <xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
  <xsd:include schemaLocation="../shared/HistoryGroup.xsd"/>
  <xsd:include schemaLocation="../shared/ReferenceListCodeType.xsd"/>

  <xsd:element name="GageMeasurementPoint">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>The reference point from which a water level is measured.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="StartDateTime" type="DateTimeWithDatum">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The starting date and time that this measurement point is valid.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="EndDateTime" type="DateTimeWithDatum" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The ending date and time that this measurement point is valid.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
	<xsd:element name="MeasurementPointCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code, used for crest-stage gages, indicating if the pin or cap is the measurement point.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MinimumStageValue" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The minimum stage that can be read from this sensor at the measurement point.  The default units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MaximumStageValue" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The maximum stage that can be read from this sensor at the measurement point.  The default units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeasurementPointElevationValue" type="IEEE754FloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The elevation of the measurement point. The default units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:group ref="HistoryGroup"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
