<?xml version="1.0" encoding="utf-8"?>
<metadata 
   xsi:noNamespaceSchemaLocation="http://www.fgdc.gov/metadata/fgdc-std-001-1998.xsd" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
   <Esri>
      <PublishedDocID>{8B22035C-8063-4727-8B2A-C15A3584579E}</PublishedDocID>
   </Esri>
   <idinfo>
      <citation>
         <citeinfo>
            <origin>US Environmental Protection Agency, Office of Water</origin>
            <pubdate>20101005</pubdate>
            <title>EPA Office of Water (OW): Water Quality Assessment Information</title>
            <edition>2010</edition>
            <geoform>vector digital data</geoform>
            <pubinfo>
               <publish>U.S. EPA Office of Water (OW)</publish>
               <pubplace>Washington, DC</pubplace>
            </pubinfo>
            <onlink>https://watersgeo.epa.gov/mwm/data/wqsstates.kmz</onlink>
			<onlink>https://edg.epa.gov/metadata/</onlink>
            <onlink>https://watersgeo.epa.gov/mwm/</onlink>
         </citeinfo>
      </citation>
      <descript>
         <abstract>Data layer mashup in a kmz format using Census data: U.S. States (Generalized) represents the 50 states and the District of Columbia of the United State.  This polygonal data was enhanced with outline boundaries for the Virgin Islands, Northern Mariana Islands, and Guam from TIGER data: TIGER/Line Shapefile, 2008, nation, U.S., State and Equivalent (https://www.census.gov/geo/www/tiger).  Attribute data from the Assessment Total Maximum Daily Load Tracking and Implementation System (ATTAINS) database was joined to this boundary layer to summarize the latest available data for each state.  ATTAINS presents information about water quality assessments, impairments and restorative actions using Total Maximum Daily Loads.</abstract>
         <purpose>This data is used in the US EPA Office of Waters (OW) MyWaters Mapper application (https://watersgeo.epa.gov/mwm/ ) to graphically display the latest ATTAINS data for each state.  </purpose>
         <supplinf>Largest scale when displaying the data: 1:3,000,000.</supplinf>
      </descript>
      <timeperd>
         <current>Publication date</current>
         <timeinfo>
            <sngdate>
               <caldate>20101005</caldate>
            </sngdate>
         </timeinfo>
      </timeperd>
      <status>
         <progress>Complete</progress>
         <update>As needed</update>
      </status>
      <spdom>
         <bounding>
            <westbc>-179.230233</westbc>
            <eastbc>179.859681</eastbc>
            <northbc>71.441059</northbc>
            <southbc>-14.597259</southbc>
         </bounding>
      </spdom>
      <keywords>
         <theme>
            <themekt>User keywords</themekt>
            <themekey>polygon</themekey>
            <themekey>area</themekey>
            <themekey>boundaries</themekey>
            <themekey>ATTAINS</themekey>
            <themekey>Water Quality</themekey>
            <themekey>impaired waters</themekey>
            <themekey>303d</themekey>
            <themekey>TMDL</themekey>
            <themekey>listed waters</themekey>
            <themekey>total maximum daily loads</themekey>
         </theme>
         <place>
            <placekt>None</placekt>
            <placekey>United States</placekey>
            <placekey>U.S. States</placekey>
            <placekey>States</placekey>
         </place>
         <temporal>
            <tempkt>None</tempkt>
         </temporal>
         <theme>
            <themekt>ISO 19115 Topic Category</themekt>
            <themekey>boundaries</themekey>
            <themekey>environment</themekey>
            <themekey>inlandWaters</themekey>
         </theme>
         <theme>
            <themekt>EPA GIS Keyword Thesaurus</themekt>
            <themekey>Contaminant</themekey>
            <themekey>Water</themekey>
         </theme>
      </keywords>
      <accconst>Access granted to Licensee only.</accconst>
      <useconst>The data are provided by multiple, third party data vendors under license to ESRI for inclusion on ESRI Data &amp; Maps for use with ESRIÂ® software.  Each data vendor has its own data licensing policies and may grant varying redistribution rights to end users. Please consult the redistribution rights below for this data set provided on ESRI Data &amp; Maps. As used herein, â€œGeodataâ€� shall mean any digital data set consisting of geographic data coordinates and associated attributes. The redistribution rights for this data set: Redistribution rights are granted by the data vendor for hard-copy renditions or static, electronic map images (e.g. .gif, .jpeg, etc.) that are plotted, printed, or publicly displayed with proper metadata and source/copyright attribution to the respective data vendor(s).  Geodata is redistributable with a Value-Added Software Application developed by ESRI Business Partners on a royalty-free basis with proper metadata and source/copyright attribution to the respective data vendor(s).  Geodata is redistributable without a Value-Added Software Application (i.e., adding the sample data to an existing, [non]commercial data set for redistribution) with proper metadata and source/copyright attribution to the respective data vendor(s). The terms and conditions below apply to all the data sets provided on ESRI Data &amp; Maps. Proprietary Rights and Copyright: Licensee acknowledges that the Data and Related Materials contain proprietary and confidential property of ESRI and its licensor(s). The Data and Related Materials are owned by ESRI and its licensor(s) and are protected by United States copyright laws and applicable international copyright treaties and/or conventions. Limited Warranty and Disclaimer: ESRI warrants that the media upon which the Data and Related Materials are provided will be free from defects in materials and workmanship under normal use and service for a period of ninety (90) days from the date of receipt. THE DATA AND RELATED MATERIALS ARE EXCLUDED FROM THE LIMITED WARRANTY, AND THE LICENSEE EXPRESSLY ACKNOWLEDGES THAT THE DATA CONTAINS SOME NONCONFORMITIES, DEFECTS, OR ERRORS. ESRI DOES NOT WARRANT THAT THE DATA WILL MEET LICENSEE'S NEEDS OR EXPECTATIONS; THAT THE USE OF THE DATA WILL BE UNINTERRUPTED; OR THAT ALL NONCONFORMITIES, DEFECTS, OR ERRORS CAN OR WILL BE CORRECTED. ESRI IS NOT INVITING RELIANCE ON THIS DATA, AND THE LICENSEE SHOULD ALWAYS VERIFY ACTUAL DATA. EXCEPT FOR THE LIMITED WARRANTY SET FORTH ABOVE, THE DATA AND RELATED MATERIALS CONTAINED THEREIN ARE PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. HIGH RISK ACTIVITIES: (A) THE DATA AND RELATED MATERIALS ARE NOT FAULT-TOLERANT AND ARE NOT DESIGNED, MANUFACTURED, OR INTENDED FOR USE OR RESALE FOR INSURANCE UNDERWRITING OR WITH CRITICAL HEALTH AND SAFETY OR ONLINE CONTROL EQUIPMENT IN HAZARDOUS ENVIRONMENTS THAT REQUIRE FAIL-SAFE PERFORMANCE, INCLUDING, BUT NOT LIMITED TO THE OPERATION OF NUCLEAR FACILITIES, NAVIGATION OR GUIDANCE (I.E., AIRCRAFT, NAUTICAL VEHICLE, ETC.), OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, EMERGENCY RESPONSE, TERRORISM PREVENTION OR RESPONSE, LIFE SUPPORT, OR WEAPONS SYSTEMS ("HIGH RISK ACTIVITIES"). ESRI SPECIFICALLY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES.(B) TO THE EXTENT PERMITTED BY LAW, LICENSEE AGREES TO INDEMNIFY, DEFEND, AND HOLD ESRI, ITS OFFICERS, DIRECTORS, EMPLOYEES, AGENTS, SUBCONTRACTORS, LICENSORS, SUCCESSORS, AND ASSIGNS HARMLESS FROM AND AGAINST ANY AND ALL LIABILITY, LOSSES, CLAIMS, EXPENSES (INCLUDING ATTORNEYS' FEES), DEMANDS, OR DAMAGES OF ANY KIND, INCLUDING DIRECT, INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, ARISING OUT OF OR IN ANY WAY CONNECTED WITH LICENSEE'S USE OR PERMITTING THE USE BY OTHERS OF THE DATA, AND VENDOR'S HARDWARE OR SOFTWARE FOR HIGH RISK ACTIVITIES. DELIVERY OF THE DATA, AND VENDOR'S HARDWARE OR SOFTWARE DOES NOT CONSTITUTE A WAIVER OF THE RIGHTS AND OBLIGATIONS SET FORTH IN THIS ARTICLE. Exclusive Remedy and Limitation of Liability: The entire liability of ESRI or its licensor(s) and Licensee's exclusive remedy shall be to terminate the Agreement upon Licensee returning the Data and Related Materials to ESRI with a copy of Licensee's invoice/receipt and ESRI returning the license fees paid to Licensee. IN NO EVENT SHALL ESRI AND/OR ITS LICENSOR(S) BE LIABLE FOR COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOST PROFITS, LOST SALES, OR BUSINESS EXPENDITURES, INVESTMENTS, OR COMMITMENTS IN CONNECTION WITH ANY BUSINESS; LOSS OF ANY GOODWILL; OR FOR ANY INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT OR USE OF THE DATA AND RELATED MATERIALS, HOWEVER CAUSED, ON ANY THEORY OF LIABILITY, AND WHETHER OR NOT ESRI OR ITS LICENSOR(S) HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THESE LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY EXCLUSIVE REMEDY. Third Party Beneficiary: ESRI's licensor(s) has (have) authorized ESRI to (sub)distribute and (sub)license its (their) data as incorporated into the Data and Related Materials. As an intended third party beneficiary to this Agreement, the ESRI licensor(s) is (are) entitled to directly enforce, in its own name, the rights and obligations undertaken by the Licensee and to seek all legal and equitable remedies as are afforded to ESRI. In the event that the data vendor(s) has (have) granted the end user permission to redistribute the Geodata, please use proper proprietary or copyright attribution for the various data vendor(s), and provide the associated metadata file(s) with the Geodata. In compliance with FGDC metadata standards, ESRI has attempted to practice proper metadata methodologies by providing any data source information, descriptions, and file names to assist in this effort.</useconst>
      <secinfo>
         <secsys>FIPS Pub 199</secsys>
         <secclass>No Confidentiality</secclass>
         <sechandl>Standard Technical Controls</sechandl>
      </secinfo>
      <ptcontac>
         <cntinfo>
            <cntorgp>
               <cntorg>U.S. Environmental Protection Agency, Headquarters</cntorg>
               <cntper>Tracy Kerchkof</cntper>
            </cntorgp>
            <cntpos>Information Technology Specialist U.S. EPA Office of Water</cntpos>
            <cntaddr>
               <addrtype>mailing address</addrtype>
               <address>1200 Pennsylvania Avenue, N.W.</address>
               <address>Mail Code 4101M</address>
               <city>Washington</city>
               <state>DC</state>
               <postal>20460</postal>
            </cntaddr>
            <cntvoice>202-566-1145</cntvoice>
            <cntemail>waters_support@epa.gov</cntemail>
            <cntinst>https://www3.epa.gov/</cntinst>
         </cntinfo>
      </ptcontac>
   </idinfo>
   <dataqual>
      <complete>Features represented have not been tested for completeness</complete>
      <posacc>
         <horizpa>
            <horizpar>The geospatial part of this data set was extracted from the ArcUSA 1:25M database, then generalized. Generalizing reduces positional accuracy and the tolerance was not recorded so the positional accuracy exceeds that of the ArcUSA data set. The positional accuracy of the ArcUSA 1:25M data set is 1792 meters which is based on generalizingâ€“to a tolerance of 500 metersâ€“the 1:2,000,000-scale USGS Digital Line Graph (DLG) source data.</horizpar>
         </horizpa>
      </posacc>
      <lineage>
         <srcinfo>
            <srccite>
               <citeinfo>
                  <title>ArcUSAâ„¢ 1:25M</title>
                  <origin>ESRI</origin>
                  <pubdate>19920601</pubdate>
                  <edition>1</edition>
                  <geoform>vector digital data</geoform>
                  <pubinfo>
                     <publish>ESRI</publish>
                     <pubplace>Redlands, California, USA</pubplace>
                  </pubinfo>
               </citeinfo>
            </srccite>
            <srcscale>25000000</srcscale>
            <typesrc>CDâ€“ROM</typesrc>
            <srctime>
               <timeinfo>
                  <sngdate>
                     <caldate>19920601</caldate>
                  </sngdate>
               </timeinfo>
               <srccurr>publication date</srccurr>
            </srctime>
            <srccitea>ArcUSA 1:25M</srccitea>
            <srccontr>Attribute and geospatial data</srccontr>
         </srcinfo>
         <srcinfo>
            <srccite>
               <citeinfo>
                  <origin>Department of Commerce, Census Bureau</origin>
                  <title>Summary File 1 (SF1)</title>
                  <edition>2000</edition>
                  <serinfo>
                     <sername>Summary File 1 (SF1)</sername>
                     <issue>2000</issue>
                  </serinfo>
                  <pubinfo>
                     <publish>Department of Commerce, Census Bureau</publish>
                     <pubplace>USA</pubplace>
                  </pubinfo>
                  <othercit>The Summary File 1 (SF1) data is based on the 2000 Census of Population.</othercit>
                  <pubdate>2001</pubdate>
               </citeinfo>
            </srccite>
            <typesrc>CDâ€“ROM</typesrc>
            <srctime>
               <timeinfo>
                  <sngdate>
                     <caldate>2000</caldate>
                  </sngdate>
               </timeinfo>
               <srccurr>ground condition</srccurr>
            </srctime>
            <srccitea>Census SF1</srccitea>
            <srccontr>Attribute data</srccontr>
         </srcinfo>
         <srcinfo>
            <srccite>
               <citeinfo>
                  <title>ESRI Community Data</title>
                  <origin>ESRI</origin>
                  <pubdate>2001; 200303; 200407; 20050519, 20070606</pubdate>
                  <edition>2007</edition>
                  <geoform>tabular digital data</geoform>
                  <serinfo>
                     <sername>ESRIÂ® Communityâ„¢ Data</sername>
                     <issue>2007</issue>
                  </serinfo>
                  <pubinfo>
                     <pubplace>Redlands, California, USA</pubplace>
                     <publish>ESRI</publish>
                  </pubinfo>
                  <onlink>http://www.esri.com</onlink>
                  <othercit>Currently provides the POP2007 attribute. In the past has provided the POP2005, POP2004, POP2003, and POP2001 attributes.</othercit>
               </citeinfo>
            </srccite>
            <srccitea>ESRI Community Data</srccitea>
            <srccontr>Attribute data</srccontr>
            <srctime>
               <timeinfo>
                  <mdattim>
                     <sngdate>
                        <caldate>2001</caldate>
                     </sngdate>
                     <sngdate>
                        <caldate>200303</caldate>
                     </sngdate>
                     <sngdate>
                        <caldate>200407</caldate>
                     </sngdate>
                     <sngdate>
                        <caldate>20050519</caldate>
                     </sngdate>
                     <sngdate>
                        <caldate>20070606</caldate>
                     </sngdate>
                  </mdattim>
               </timeinfo>
               <srccurr>publication date</srccurr>
            </srctime>
            <typesrc>electronic mail system, CDâ€“ROM, DVDâ€“ROM</typesrc>
         </srcinfo>
         <srcinfo>
            <typesrc>CDâ€“ROM</typesrc>
            <srccitea>USDA Farm</srccitea>
            <srccite>
               <citeinfo>
                  <title>1997 Census of Agriculture</title>
                  <origin>U.S. Department of Agriculture (USDA), National Agricultural Statistics Service (NASS)</origin>
                  <pubdate>199903</pubdate>
                  <serinfo>
                     <sername>Census of Agriculture</sername>
                     <issue>1997</issue>
                  </serinfo>
                  <pubinfo>
                     <pubplace>USA</pubplace>
                     <publish>U.S. Department of Agriculture (USDA), National Agricultural Statistics Service (NASS)</publish>
                  </pubinfo>
                  <othercit>The farm attributes come from data published by the U.S. Department of Agriculture (USDA), National Agricultural Statistics Service (NASS) based on the 1997 Census of Agriculture.</othercit>
                  <edition>1997</edition>
               </citeinfo>
            </srccite>
            <srccontr>Attribute data</srccontr>
            <srctime>
               <timeinfo>
                  <sngdate>
                     <caldate>1997</caldate>
                  </sngdate>
               </timeinfo>
               <srccurr>ground condition</srccurr>
            </srctime>
         </srcinfo>
         <srcinfo>
            <srccite>
               <citeinfo>
                  <title>Dynamap/Census Boundaries v4.0</title>
                  <origin>Tele Atlas North America, Inc.</origin>
                  <pubdate>200201</pubdate>
                  <edition>Version 4.0</edition>
                  <geoform>vector digital data</geoform>
                  <serinfo>
                     <sername>Tele AtlasÂ® DynamapÂ®/Census Boundaries</sername>
                     <issue>v4.0</issue>
                  </serinfo>
                  <pubinfo>
                     <publish>Tele Atlas North America, Inc.</publish>
                     <pubplace>Lebanon, New Hampshire, USA</pubplace>
                  </pubinfo>
               </citeinfo>
            </srccite>
            <srcscale>100000</srcscale>
            <typesrc>CDâ€“ROM</typesrc>
            <srctime>
               <timeinfo>
                  <sngdate>
                     <caldate>200201</caldate>
                  </sngdate>
               </timeinfo>
               <srccurr>publication date</srccurr>
            </srctime>
            <srccitea>Tele Atlas Dynamap/Census Boundaries v4.0</srccitea>
            <srccontr>Attribute and geospatial data</srccontr>
         </srcinfo>
         <procstep>
            <procdate>20021010</procdate>
            <procdesc>The following steps were performed by ESRI: Copied the Molokai coastline from U.S. Counties (Generalized). Created ArcGISÂ® layer file (.lyr), projection file (.prj), and spatial indices. Converted the data set to SDC.</procdesc>
         </procstep>
         <procstep>
            <procdate>20101115</procdate>
            <procdesc>Used ESRI created state polygon layer in sdc format and converted to shapefile</procdesc>
         </procstep>
         <procstep>
            <procdate>20101115</procdate>
            <procdesc>Created attribute table from ATTAINS database using the following SQL:

select * from 
(
  select  state, cycle, 'Total Size' t, 
          sum(stream_size) stream_size, 
          sum(river_size) river_size,
          sum(bay_size) bay_size,
          sum(coastal_size) coastal_size,
          sum(wetland_size) wetland_size,
          sum(gls_size) gls_size,
          sum(glo_size) glo_size,
          sum(glc_size) glc_size,
          sum(inland_size) inland_size,
          sum(watershed_size) watershed_size,
          sum(unknown_size) unknown_size
  from (
    select  a.state, a.cycle,  
            decode(water_type_group, 'STREAM/CREEK/RIVER', total_water_size, null) stream_size,
            decode(water_type_group, 'LAKE/RESERVOIR/POND', total_water_size, null) river_size,
            decode(water_type_group, 'BAY/ESTUARY', total_water_size, null) bay_size,
            decode(water_type_group, 'COASTAL', total_water_size, null) coastal_size,
            decode(water_type_group, 'OCEAN/NEAR COASTAL', total_water_size, null) ocean_size,
            decode(water_type_group, 'WETLAND', total_water_size, null) wetland_size,
            decode(water_type_group, 'GREAT LAKES SHORELINE', total_water_size, null) gls_size,
            decode(water_type_group, 'GREAT LAKES OPEN WATER', total_water_size, null) glo_size,
            decode(water_type_group, 'GREAT LAKES CONNECTING CHANNEL', total_water_size, null) glc_size,
            decode(water_type_group, 'INLAND LAKE SHORELINE', total_water_size, null) inland_size,
            decode(water_type_group, 'WATERSHED', total_water_size, null) watershed_size,
            decode(water_type_group, 'UNKNOWN', total_water_size, null) unknown_size
    from    attains.total_state_size a, attains.assessment_control b
    where   a.state   = b.state
      and   a.cycle   = b.current_year)
  group by state, cycle, 'Total Size'  
  union
  select  state, cycle, 'Good Waters' t, 
          sum(stream_size) stream_size, 
          sum(river_size) river_size,
          sum(bay_size) bay_size,
          sum(coastal_size) coastal_size,
          sum(wetland_size) wetland_size,
          sum(gls_size) gls_size,
          sum(glo_size) glo_size,
          sum(glc_size) glc_size,
          sum(inland_size) inland_size,
          sum(watershed_size) watershed_size,
          sum(unknown_size) unknown_size
  from (
    select  a.state, a.cycle,  
            decode(water_type_group, 'STREAM/CREEK/RIVER', total_size, null) stream_size,
            decode(water_type_group, 'LAKE/RESERVOIR/POND', total_size, null) river_size,
            decode(water_type_group, 'BAY/ESTUARY', total_size, null) bay_size,
            decode(water_type_group, 'COASTAL', total_size, null) coastal_size,
            decode(water_type_group, 'OCEAN/NEAR COASTAL', total_size, null) ocean_size,
            decode(water_type_group, 'WETLAND', total_size, null) wetland_size,
            decode(water_type_group, 'GREAT LAKES SHORELINE', total_size, null) gls_size,
            decode(water_type_group, 'GREAT LAKES OPEN WATER', total_size, null) glo_size,
            decode(water_type_group, 'GREAT LAKES CONNECTING CHANNEL', total_size, null) glc_size,
            decode(water_type_group, 'INLAND LAKE SHORELINE', total_size, null) inland_size,
            decode(water_type_group, 'WATERSHED', total_size, null) watershed_size,
            decode(water_type_group, 'UNKNOWN', total_size, null) unknown_size
    from    attains.mv_impaired_pie a, attains.assessment_control b
    where   a.state   = b.state
      and   a.cycle   = b.current_year
      and   status    = 'GOOD')
  group by state, cycle, 'Good Waters'
  union
  select  state, cycle, 'Impaired Waters' t, 
          sum(stream_size) stream_size, 
          sum(river_size) river_size,
          sum(bay_size) bay_size,
          sum(coastal_size) coastal_size,
          sum(wetland_size) wetland_size,
          sum(gls_size) gls_size,
          sum(glo_size) glo_size,
          sum(glc_size) glc_size,
          sum(inland_size) inland_size,
          sum(watershed_size) watershed_size,
          sum(unknown_size) unknown_size
  from (
    select  a.state, a.cycle,  
            decode(water_type_group, 'STREAM/CREEK/RIVER', total_size, null) stream_size,
            decode(water_type_group, 'LAKE/RESERVOIR/POND', total_size, null) river_size,
            decode(water_type_group, 'BAY/ESTUARY', total_size, null) bay_size,
            decode(water_type_group, 'COASTAL', total_size, null) coastal_size,
            decode(water_type_group, 'OCEAN/NEAR COASTAL', total_size, null) ocean_size,
            decode(water_type_group, 'WETLAND', total_size, null) wetland_size,
            decode(water_type_group, 'GREAT LAKES SHORELINE', total_size, null) gls_size,
            decode(water_type_group, 'GREAT LAKES OPEN WATER', total_size, null) glo_size,
            decode(water_type_group, 'GREAT LAKES CONNECTING CHANNEL', total_size, null) glc_size,
            decode(water_type_group, 'INLAND LAKE SHORELINE', total_size, null) inland_size,
            decode(water_type_group, 'WATERSHED', total_size, null) watershed_size,
            decode(water_type_group, 'UNKNOWN', total_size, null) unknown_size
    from    attains.mv_impaired_pie a, attains.assessment_control b
    where   a.state   = b.state
      and   a.cycle   = b.current_year
      and   status    &lt;&gt; 'GOOD')
  group by state, cycle, 'Impaired Waters'
)
order by state, cycle, decode(t, 'Total Size', 1, 'Good Waters', 2, 'Impaired Waters', 3, 4);

select  state, current_year cycle, 
        get_top_state_cause(state, current_year, 'STREAM/CREEK/RIVER') stream_cause,
        get_top_state_cause(state, current_year, 'LAKE/RESERVOIR/POND') river_cause,
        get_top_state_cause(state, current_year, 'BAY/ESTUARY') bay_cause,
        get_top_state_cause(state, current_year, 'COASTAL') coastal_cause,
        get_top_state_cause(state, current_year, 'OCEAN/NEAR COASTAL') ocean_cause,
        get_top_state_cause(state, current_year, 'WETLAND') wetland_cause,
        get_top_state_cause(state, current_year, 'GREAT LAKES SHORELINE') gls_cause,
        get_top_state_cause(state, current_year, 'GREAT LAKES OPEN WATER') glo_cause,
        get_top_state_cause(state, current_year, 'GREAT LAKES CONNECTING CHANNEL') glc_cause,
        get_top_state_cause(state, current_year, 'INLAND LAKE SHORELINE') inland_cause,
        get_top_state_cause(state, current_year, 'WATERSHED') watershed_cause,
        get_top_state_cause(state, current_year, 'UNKNOWN') unknown_cause
from    attains.assessment_control 
order by  state;

select  state, current_year cycle, 
        get_top_state_source(state, current_year, 'STREAM/CREEK/RIVER') stream_source,
        get_top_state_source(state, current_year, 'LAKE/RESERVOIR/POND') river_source,
        get_top_state_source(state, current_year, 'BAY/ESTUARY') bay_source,
        get_top_state_source(state, current_year, 'COASTAL') coastal_source,
        get_top_state_source(state, current_year, 'OCEAN/NEAR COASTAL') ocean_source,
        get_top_state_source(state, current_year, 'WETLAND') wetland_source,
        get_top_state_source(state, current_year, 'GREAT LAKES SHORELINE') gls_source,
        get_top_state_source(state, current_year, 'GREAT LAKES OPEN WATER') glo_source,
        get_top_state_source(state, current_year, 'GREAT LAKES CONNECTING CHANNEL') glc_source,
        get_top_state_source(state, current_year, 'INLAND LAKE SHORELINE') inland_source,
        get_top_state_source(state, current_year, 'WATERSHED') watershed_source,
        get_top_state_source(state, current_year, 'UNKNOWN') unknown_source
from    attains.assessment_control 
order by  state;</procdesc>
         </procstep>
         <procstep>
            <procdate>20101005</procdate>
            <procdesc>Joined attribute data to states layer, exported out to kmz file using ArcToolbox, Layer to KML tool</procdesc>
         </procstep>
      </lineage>
   </dataqual>
   <spref>
      <horizsys>
         <geodetic>
            <horizdn>D_WGS_1984_Major_Auxiliary_Sphere</horizdn>
            <ellips>WGS_1984_Major_Auxiliary_Sphere</ellips>
            <semiaxis>6378137.000000</semiaxis>
            <denflat>298.257224</denflat>
         </geodetic>
         <planar>
            <planci>
               <plandu>meters</plandu>
               <plance>coordinate pair</plance>
               <coordrep>
                  <absres>0.000001</absres>
                  <ordres>0.000001</ordres>
               </coordrep>
            </planci>
            <mapproj>
               <mapprojn>Mercator</mapprojn>
               <mercator>
                  <stdparll>0.000000</stdparll>
                  <longcm>0.000000</longcm>
                  <feast>0.000000</feast>
                  <fnorth>0.000000</fnorth>
               </mercator>
            </mapproj>
         </planar>
      </horizsys>
   </spref>
   <eainfo>
      <detailed>
         <enttyp>
            <enttypl>Water Quality Assessment Information</enttypl>
            <enttypd>Latest TMDL and 303d data from ATTAINS by State</enttypd>
            <enttypds>Office of Water</enttypds>
         </enttyp>
         <attr>
            <attrlabl>ObjectID</attrlabl>
            <attrdef>Internal feature number.</attrdef>
            <attrdefs>ESRI</attrdefs>
            <attrdomv>
               <udom>Sequential unique whole numbers that are automatically generated.</udom>
            </attrdomv>
         </attr>
         <attr>
            <attrlabl>Shape</attrlabl>
            <attrdef>Feature geometry.</attrdef>
            <attrdefs>ESRI</attrdefs>
            <attrdomv>
               <udom>Coordinates defining the features.</udom>
            </attrdomv>
         </attr>
         <attr>
            <attrlabl>STUSPS</attrlabl>
         </attr>
         <attr>
            <attrlabl>NAME</attrlabl>
         </attr>
         <attr>
            <attrlabl>STATE</attrlabl>
         </attr>
         <attr>
            <attrlabl>CYCLE</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_STREAM_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_ASSESS_STREAM</attrlabl>
         </attr>
         <attr>
            <attrlabl>GW_STREAM_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>IW_STREAM_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_ASSESS_STREAM</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_GW_STREAM</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_IW_STREAM</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_LAKE_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_ASSESS_LAKE</attrlabl>
         </attr>
         <attr>
            <attrlabl>GW_LAKE_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>IW_LAKE_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_ASSESS_LAKE</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_GW_LAKE</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_IW_LAKE</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_BAY_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_ASSESS_BAY</attrlabl>
         </attr>
         <attr>
            <attrlabl>GW_BAY_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>IW_BAY_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_ASSESS_BAY</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_GW_BAY</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_IW_BAY</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_COASTAL_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>TOTAL_ASSESS_COASTAL</attrlabl>
         </attr>
         <attr>
            <attrlabl>GW_COASTAL_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>IW_COASTAL_SIZE</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_ASSESS_COASTAL</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_GW_COASTAL</attrlabl>
         </attr>
         <attr>
            <attrlabl>PERCENT_IW_COASTAL</attrlabl>
         </attr>
         <attr>
            <attrlabl>STREAM_CAUSE</attrlabl>
         </attr>
         <attr>
            <attrlabl>LAKE_CAUSE</attrlabl>
         </attr>
         <attr>
            <attrlabl>BAY_CAUSE</attrlabl>
         </attr>
         <attr>
            <attrlabl>COASTAL_CAUSE</attrlabl>
         </attr>
         <attr>
            <attrlabl>STREAM_SOURCE</attrlabl>
         </attr>
         <attr>
            <attrlabl>LAKE_SOURCE</attrlabl>
         </attr>
         <attr>
            <attrlabl>BAY_SOURCE</attrlabl>
         </attr>
         <attr>
            <attrlabl>COASTAL_SOURCE</attrlabl>
         </attr>
         <attr>
            <attrlabl>Shape_Length</attrlabl>
            <attrdef>Length of feature in internal units.</attrdef>
            <attrdefs>ESRI</attrdefs>
            <attrdomv>
               <udom>Positive real numbers that are automatically generated.</udom>
            </attrdomv>
         </attr>
         <attr>
            <attrlabl>Shape_Area</attrlabl>
            <attrdef>Area of feature in internal units squared.</attrdef>
            <attrdefs>ESRI</attrdefs>
            <attrdomv>
               <udom>Positive real numbers that are automatically generated.</udom>
            </attrdomv>
         </attr>
      </detailed>
      <overview>
         <eaover>Layer rendering is based on Total Water Quality Needs calculation. To calculate this information for each state: -- Total Water Quality Needs ($M) - Use the total of Categories I, II, III,  IV, V,  VI, &amp; X. -- Wastewater Treatment Plant Needs ($M) - Use Categories I &amp; II -- Wastewater Pipe Needs ($M) - Use Categories  III,  IV, &amp; X -- Combined Sewer Overflow and Stormwater Management Needs ($M) - Use Categories V &amp; VI -- Septic System and Nonpoint Source Control Needs ($M) - Use Categories XII and VII respectively.</eaover>
         <eadetcit>Ted Czado, CWNS Team, Czado.Ted@epamail.epa.gov, US EPA Office of Water</eadetcit>
      </overview>
   </eainfo>
   <distinfo>
      <distrib>
         <cntinfo>
            <cntorgp>
               <cntorg>U.S. Environmental Protection Agency</cntorg>
               <cntper>Tracy Kerchkof</cntper>
            </cntorgp>
            <cntpos>Information Technology Specialist U.S. EPA Office of Water</cntpos>
            <cntaddr>
               <addrtype>mailing address</addrtype>
               <address>1200 Pennsylvania Avenue, N.W.</address>
               <city>Washington</city>
               <state>DC</state>
               <postal>20460</postal>
            </cntaddr>
            <cntvoice>202-566-1145</cntvoice>
            <cntemail>waters_support@epa.gov</cntemail>
            <cntinst>https://www3.epa.gov/</cntinst>
         </cntinfo>
      </distrib>
      <resdesc>Live Data and Maps</resdesc>
      <distliab>https://edg.epa.gov/EPA_Data_License.htm</distliab>
   </distinfo>
   <metainfo>
      <metstdn>FGDC Content Standards for Digital Geospatial Metadata</metstdn>
      <metstdv>FGDC-STD-001-1998</metstdv>
      <mettc>local time</mettc>
      <metd>20101214</metd>
      <metfrd>20141115</metfrd>
      <metc>
         <cntinfo>
            <cntorgp>
               <cntorg>U.S. Environmental Protection Agency</cntorg>
               <cntper>Tracy Kerchkof</cntper>
            </cntorgp>
            <cntpos>Information Technology Specialist U.S. EPA Office of Water</cntpos>
            <cntaddr>
               <addrtype>mailing address</addrtype>
               <address>1200 Pennsylvania Ave. NW</address>
               <city>Washington</city>
               <state>DC</state>
               <postal>20460</postal>
            </cntaddr>
            <cntvoice>202-566-1145</cntvoice>
            <cntemail>waters_support@epa.gov</cntemail>
         </cntinfo>
      </metc>
   </metainfo>
</metadata>
