<?xml version="1.0" encoding="UTF-8"?>
<MD_Metadata xmlns="http://www.isotc211.org/2005/gmd"
             xmlns:gco="http://www.isotc211.org/2005/gco"
             xmlns:gmd="http://www.isotc211.org/2005/gmd"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.isotc211.org/2005/gmd
               http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd">

  <language>
    <gco:CharacterString>eng</gco:CharacterString>
  </language>

  <characterSet>
    <MD_CharacterSetCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_CharacterSetCode"
                         codeListValue="utf8"/>
  </characterSet>

  <hierarchyLevel>
    <MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ScopeCode"
                  codeListValue="dataset"/>
  </hierarchyLevel>

  <contact>
    <CI_ResponsibleParty>
      <individualName><gco:CharacterString>Jason Nemecek</gco:CharacterString></individualName>
      <organisationName><gco:CharacterString>USDA Natural Resources Conservation Service</gco:CharacterString></organisationName>
      <role>
        <CI_RoleCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_RoleCode"
                     codeListValue="pointOfContact"/>
      </role>
    </CI_ResponsibleParty>
  </contact>

  <dateStamp><gco:Date>2026-06-01</gco:Date></dateStamp>

  <identificationInfo>
    <MD_DataIdentification>
      <citation>
        <CI_Citation>
          <title>
            <gco:CharacterString>NRCS Regenerative Agriculture Risk Map — Fragile Soil Index and Organic Matter Depletion, National SSURGO</gco:CharacterString>
          </title>
          <date>
            <CI_Date>
              <date><gco:Date>2026-06-01</gco:Date></date>
              <dateType>
                <CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode"
                                 codeListValue="publication"/>
              </dateType>
            </CI_Date>
          </date>
        </CI_Citation>
      </citation>

      <abstract>
        <gco:CharacterString>
          County- and map-unit-level visualization of two USDA NRCS soil health
          interpretations derived from the National Cooperative Soil Survey (NCSS)
          SSURGO database: (1) Fragile Soil Index (FSI) — a composite measure of
          soil structural sensitivity to disturbance; and (2) SOH - Organic Matter
          Depletion — vulnerability of soil organic matter to tillage and management.

          Aggregation methodology: Dominant Condition. For each SSURGO map unit,
          the dominant interpretation class is the rating with the highest sum of
          major-component percentages (majcompflag = 'Yes', ordered by comppct_r DESC).
          County averages are area-weighted spatial intersections of map unit polygons
          against US Census TIGER county boundaries.

          Data are retrieved from the USDA SDA (Soil Data Access) REST API and
          refreshed on a quarterly basis following SSURGO update cycles.
        </gco:CharacterString>
      </abstract>

      <language>
        <gco:CharacterString>eng</gco:CharacterString>
      </language>

      <extent>
        <EX_Extent>
          <geographicElement>
            <EX_GeographicBoundingBox>
              <westBoundLongitude><gco:Decimal>-179.15</gco:Decimal></westBoundLongitude>
              <eastBoundLongitude><gco:Decimal>179.78</gco:Decimal></eastBoundLongitude>
              <southBoundLatitude><gco:Decimal>-14.55</gco:Decimal></southBoundLatitude>
              <northBoundLatitude><gco:Decimal>71.54</gco:Decimal></northBoundLatitude>
            </EX_GeographicBoundingBox>
          </geographicElement>
        </EX_Extent>
      </extent>

    </MD_DataIdentification>
  </identificationInfo>

  <distributionInfo>
    <MD_Distribution>
      <transferOptions>
        <MD_DigitalTransferOptions>
          <onLine>
            <CI_OnlineResource>
              <linkage>
                <gco:URL>https://jneme910.github.io/NRCS-Soil-Data-Access/docs/soil-health-risk-map.html</gco:URL>
              </linkage>
              <name><gco:CharacterString>Regenerative Agriculture Risk Map (Interactive)</gco:CharacterString></name>
              <function>
                <CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_OnLineFunctionCode"
                                       codeListValue="mapDigital"/>
              </function>
            </CI_OnlineResource>
          </onLine>
          <onLine>
            <CI_OnlineResource>
              <linkage>
                <gco:URL>https://sdmdataaccess.sc.egov.usda.gov</gco:URL>
              </linkage>
              <name><gco:CharacterString>USDA SDA (Soil Data Access) REST API — source data</gco:CharacterString></name>
              <function>
                <CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_OnLineFunctionCode"
                                       codeListValue="download"/>
              </function>
            </CI_OnlineResource>
          </onLine>
          <onLine>
            <CI_OnlineResource>
              <linkage>
                <gco:URL>https://github.com/jneme910/NRCS-Soil-Data-Access</gco:URL>
              </linkage>
              <name><gco:CharacterString>Source code and build pipeline (GitHub)</gco:CharacterString></name>
              <function>
                <CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_OnLineFunctionCode"
                                       codeListValue="information"/>
              </function>
            </CI_OnlineResource>
          </onLine>
        </MD_DigitalTransferOptions>
      </transferOptions>
    </MD_Distribution>
  </distributionInfo>

  <dataQualityInfo>
    <DQ_DataQuality>
      <scope>
        <DQ_Scope>
          <level>
            <MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ScopeCode"
                          codeListValue="dataset"/>
          </level>
        </DQ_Scope>
      </scope>
      <lineage>
        <LI_Lineage>
          <statement>
            <gco:CharacterString>
              1. Soil interpretation ratings (FSI class, FSI value, OM class, OM value)
                 fetched via SDA tabular REST API using dominant-condition SQL aggregation.
              2. Map unit polygon geometry fetched via SDA spatial REST API (mupolygongeo,
                 WGS84), chunked by survey area to stay within SDA response limits.
              3. County area-weighted averages computed by spatial intersection of SSURGO
                 map unit polygon centroids against US Census TIGER/Line county boundaries.
              4. Vector tiles (PMTiles format) generated by tippecanoe, zoom levels 7-10,
                 served via GitHub Pages.
              5. Update frequency: quarterly, following SSURGO update cycles.
            </gco:CharacterString>
          </statement>
        </LI_Lineage>
      </lineage>
    </DQ_DataQuality>
  </dataQualityInfo>

  <referenceSystemInfo>
    <MD_ReferenceSystem>
      <referenceSystemIdentifier>
        <RS_Identifier>
          <code><gco:CharacterString>EPSG:4326</gco:CharacterString></code>
          <codeSpace><gco:CharacterString>EPSG</gco:CharacterString></codeSpace>
        </RS_Identifier>
      </referenceSystemIdentifier>
    </MD_ReferenceSystem>
  </referenceSystemInfo>

</MD_Metadata>
