<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:npsbmp="http://webservices.chesapeakebay.net/schemas" targetNamespace="http://webservices.chesapeakebay.net/schemas" version="1.1">
	<xsd:include schemaLocation="SC_GeographicLocationDescription_v2.0.xsd"/>
	<xsd:annotation>
		<xsd:documentation>
				Schema Name  : NPSBMP_GeographicLocation_v1.0.xsd
				Schema Identification : 
				Current Version Available At :  http://webservices.chesapeakebay.net/schemas
				Description   :   Geographic identifiers to locate a practice to varying precisions	
				Application   :    Non Point Source Best Management Practices (NPS BMP)  Exchange
				Developed by  : 	 Virginia Department of Conservation and Recreation
				Point of Contact :   Karl Huber
				Last Modified by :
			</xsd:documentation>
	</xsd:annotation>
	<xsd:element name="GeographicLocation" type="npsbmp:GeographicLocationType"/>
  <xsd:element name="HUCFourDigitCode" type="xsd:string"/>
  <xsd:simpleType name="HUCFourDigitCode">
    <xsd:annotation>
      <xsd:documentation>
        Four digit code identifying the hydrologic unit in which the object occurs
        to the subbasin level of precision.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:length value="4"/>
      <xsd:pattern value="[0-9]{4}"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:element name="HUCSixDigitCode" type="xsd:string"/>
  <xsd:simpleType name="HUCSixDigitCode">
    <xsd:annotation>
      <xsd:documentation>
        Six digit code identifying the hydrologic unit in which the object occurs
        to the subbasin level of precision.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:length value="6"/>
      <xsd:pattern value="[0-9]{6}"/>
    </xsd:restriction>
  </xsd:simpleType>
	<xsd:element name="HUCEightDigitCode" type="xsd:string"/>
	<xsd:simpleType name="HUCEightDigitCode">
		<xsd:annotation>
			<xsd:documentation>Eight digit code identifying the hydrologic unit in which the object occurs
			to the subbasin level of precision.</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:length value="8"/>
			<xsd:pattern value="[0-9]{8}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="HUCTenDigitCode" type="xsd:string"/>
	<xsd:simpleType name="HUCTenDigitCode">
		<xsd:annotation>
			<xsd:documentation>Ten digit code identifying the hydrologic unit in which the object occurs
			to the watershed level of precision.</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:length value="10"/>
			<xsd:pattern value="[0-9]{10}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="HUCTwelveDigitCode" type="xsd:string"/>
	<xsd:simpleType name="HUCTwelveDigitCode">
		<xsd:annotation>
			<xsd:documentation>Twelve digit code identifying the hydrologic unit in which the object occurs
			to the subwatershed level of precision.</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:length value="12"/>
			<xsd:pattern value="[0-9]{12}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="GeographicLocationType">
		<xsd:complexContent>
			<xsd:extension base="npsbmp:GeographicLocationDescriptionDataType">
				<xsd:sequence>
					<xsd:element ref="npsbmp:HUCFourDigitCode" minOccurs="0"/>
					<xsd:element ref="npsbmp:HUCSixDigitCode" minOccurs="0"/>
					<xsd:element ref="npsbmp:HUCEightDigitCode" minOccurs="0"/>
					<xsd:element ref="npsbmp:HUCTenDigitCode" minOccurs="0"/>
					<xsd:element ref="npsbmp:HUCTwelveDigitCode" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
</xsd:schema>
