<?xml version="1.0" encoding="utf-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:gco="http://www.isotc211.org/2005/gco"
                 xmlns:gmx="http://www.isotc211.org/2005/gmx"
                 xmlns:gml="http://www.opengis.net/gml/3.2"
                 xmlns:xlink="http://www.w3.org/1999/xlink"
                 xsi:schemaLocation="http://www.isotc211.org/2005/gmx ../XSD_Schemas/ISO_19139_Schemas/gmx/gmx.xsd">
 <gmd:fileIdentifier>
  <gco:CharacterString>4f4c4942-4343-5764-6473-313136333239</gco:CharacterString>
 </gmd:fileIdentifier>
 <!-- Metadata Language -->
 <gmd:language>
  <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php"
                    codeListValue="eng">eng</gmd:LanguageCode>
 </gmd:language>
 <!-- Resource Type -->
 <gmd:hierarchyLevel>
 <gmd:MD_ScopeCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#MD_ScopeCode "
    codeListValue="dataset">dataset</gmd:MD_ScopeCode>
 </gmd:hierarchyLevel>
   <!-- Metadata Point of Contact -->
   <gmd:contact>
    <gmd:CI_ResponsibleParty>
     <gmd:organisationName>
      <gco:CharacterString>Natural Resources Wales (NRW)</gco:CharacterString>
     </gmd:organisationName>
     <gmd:contactInfo>
      <gmd:CI_Contact>
       <gmd:phone>
        <gmd:CI_Telephone>
         <gmd:voice>
          <gco:CharacterString>0300 065 3000</gco:CharacterString>
         </gmd:voice>
        </gmd:CI_Telephone>
       </gmd:phone>
       <gmd:address>
        <gmd:CI_Address>
         <gmd:deliveryPoint>
          <gco:CharacterString>Maes-y-Ffynnon</gco:CharacterString>
         </gmd:deliveryPoint>
         <gmd:postalCode>
          <gco:CharacterString>LL57 2DW</gco:CharacterString>
         </gmd:postalCode>
         <gmd:electronicMailAddress>
          <gco:CharacterString>enquiries@naturalresourceswales.gov.uk</gco:CharacterString>
         </gmd:electronicMailAddress>
        </gmd:CI_Address>
       </gmd:address>
      </gmd:CI_Contact>
     </gmd:contactInfo>
<gmd:role>
      <gmd:CI_RoleCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_RoleCode"
        codeListValue="pointOfContact">pointOfContact</gmd:CI_RoleCode>
     </gmd:role>
    </gmd:CI_ResponsibleParty>
   </gmd:contact>
 <!-- Date of Update of Metadata -->
 <gmd:dateStamp>
  <gco:Date>2023-11-02</gco:Date>
 </gmd:dateStamp>
 <!-- Metadata Standard Name -->
 <gmd:metadataStandardName>
  <gco:CharacterString>Gemini</gco:CharacterString>
 </gmd:metadataStandardName>
 <!-- Metadata Standard Version -->
 <gmd:metadataStandardVersion>
  <gco:CharacterString>2.2</gco:CharacterString>
 </gmd:metadataStandardVersion>
 <!-- Spatial Reference System -->
 <gmd:referenceSystemInfo>
  <gmd:MD_ReferenceSystem>
   <gmd:referenceSystemIdentifier>
    <gmd:RS_Identifier>
     <gmd:code>
       <gco:CharacterString>urn:ogc:def:crs:EPSG::BNG</gco:CharacterString>
     </gmd:code>
     <gmd:codeSpace>
      <gco:CharacterString>OGP</gco:CharacterString>
     </gmd:codeSpace>
    </gmd:RS_Identifier>
   </gmd:referenceSystemIdentifier>
  </gmd:MD_ReferenceSystem>
 </gmd:referenceSystemInfo>
 <gmd:identificationInfo>
   <gmd:MD_DataIdentification>
   <gmd:citation>
    <gmd:CI_Citation>
      <!-- Resource Title -->
      <gmd:title>
        <gco:CharacterString>Consented Discharges to Controlled Waters with Conditions</gco:CharacterString>
      </gmd:title>
      <!-- Alternative Title -->
     <gmd:alternateTitle>
       <gco:CharacterString>AfA184 Consented Discharges to Controlled Waters with Conditions</gco:CharacterString>
     </gmd:alternateTitle>
     <gmd:alternateTitle>
       <gco:CharacterString>Gollyngiadau a Ganiateir I Ddyfoedd a Reolir (gydag amodau)</gco:CharacterString>
     </gmd:alternateTitle>
     <!-- Dataset Reference Date - Publication -->
     <gmd:date>
      <gmd:CI_Date>
       <gmd:date>
        <gco:Date>2023-10-30</gco:Date>
       </gmd:date>
       <gmd:dateType>
        <gmd:CI_DateTypeCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_DateTypeCode"
          codeListValue="publication">publication</gmd:CI_DateTypeCode>
       </gmd:dateType>
      </gmd:CI_Date>
     </gmd:date>
     <!-- Unique Resource Identifier -->
     <gmd:identifier>
       <gmd:RS_Identifier>
         <gmd:code>
           <gco:CharacterString>116329</gco:CharacterString>
         </gmd:code>
         <gmd:codeSpace>
           <gco:CharacterString>https://naturalresources.wales</gco:CharacterString>
         </gmd:codeSpace>
       </gmd:RS_Identifier>
     </gmd:identifier>
    </gmd:CI_Citation>
   </gmd:citation>
   <!-- Resource Abstract -->
   <gmd:abstract>
    <gco:CharacterString>
      This dataset provide details of permit details as required under the Environmental Permit Regulations. Information is held for all permit holders and covers all substances that are controlled. The data come from Natural Resources Wales public Register. The data set contains 3 tiers of information:
Tier 1 - Site and General
Information relating to the permit operator, discharge address and type. The date of permit issue, effective and revocation. Information where the effluent enters the environment (such as river, coastal, groundwater) for each permit.
Tier 2 - Outlet and release
Data on the effluent type e.g. Sewage effluent, Storm Overflow, Trade. The location is supplied for the effluent and the outlet in OS Nation Grid Reference format. Further detail is provided on the permit type and treatment type.
Tier 3 - Determinand /release detail Limits
Further detail is provided on the amount that can be discharged and in which time period in months. Release details/determinands are the substances and numerical limits that make up the effluent. This could include chemical, biological, and physical limits. The permitted limits are included for each determinand /release detail. Data is provided for each effluent and may contain one or more determinands depending on the complexity of the discharge.
    </gco:CharacterString>
   </gmd:abstract>
   <!-- Owner -->
   <gmd:pointOfContact>
    <gmd:CI_ResponsibleParty>
     <gmd:organisationName>
      <gco:CharacterString>Natural Resources Wales (NRW)</gco:CharacterString>
     </gmd:organisationName>
     <gmd:contactInfo>
      <gmd:CI_Contact>
       <gmd:phone>
        <gmd:CI_Telephone>
         <gmd:voice>
          <gco:CharacterString>0300 065 3000</gco:CharacterString>
         </gmd:voice>
        </gmd:CI_Telephone>
       </gmd:phone>
       <gmd:address>
        <gmd:CI_Address>
         <gmd:deliveryPoint>
          <gco:CharacterString>Maes-y-Ffynnon</gco:CharacterString>
         </gmd:deliveryPoint>
         <gmd:postalCode>
          <gco:CharacterString>LL57 2DW</gco:CharacterString>
         </gmd:postalCode>
         <gmd:electronicMailAddress>
          <gco:CharacterString>enquiries@naturalresourceswales.gov.uk</gco:CharacterString>
         </gmd:electronicMailAddress>
        </gmd:CI_Address>
       </gmd:address>
      </gmd:CI_Contact>
     </gmd:contactInfo>
     <gmd:role>
      <gmd:CI_RoleCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_RoleCode"
        codeListValue="owner">owner</gmd:CI_RoleCode>
     </gmd:role>
    </gmd:CI_ResponsibleParty>
   </gmd:pointOfContact>
   <!-- Originator -->
   <gmd:pointOfContact>
    <gmd:CI_ResponsibleParty>
     <gmd:organisationName>
      <gco:CharacterString>Natural Resources Wales (NRW)</gco:CharacterString>
     </gmd:organisationName>
     <gmd:contactInfo>
      <gmd:CI_Contact>
       <gmd:phone>
        <gmd:CI_Telephone>
         <gmd:voice>
          <gco:CharacterString>0300 065 3000</gco:CharacterString>
         </gmd:voice>
        </gmd:CI_Telephone>
       </gmd:phone>
       <gmd:address>
        <gmd:CI_Address>
         <gmd:deliveryPoint>
          <gco:CharacterString>Maes-y-Ffynnon</gco:CharacterString>
         </gmd:deliveryPoint>
         <gmd:postalCode>
          <gco:CharacterString>LL57 2DW</gco:CharacterString>
         </gmd:postalCode>
         <gmd:electronicMailAddress>
          <gco:CharacterString>enquiries@naturalresourceswales.gov.uk</gco:CharacterString>
         </gmd:electronicMailAddress>
        </gmd:CI_Address>
       </gmd:address>
      </gmd:CI_Contact>
     </gmd:contactInfo>
     <gmd:role>
      <gmd:CI_RoleCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_RoleCode"
        codeListValue="originator">originator</gmd:CI_RoleCode>
     </gmd:role>
    </gmd:CI_ResponsibleParty>
   </gmd:pointOfContact>
   <!-- Frequency of Update -->
   <gmd:resourceMaintenance>
    <gmd:MD_MaintenanceInformation>
     <gmd:maintenanceAndUpdateFrequency>
      <gmd:MD_MaintenanceFrequencyCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#MD_MaintenanceFrequencyCode"
        codeListValue="quarterly">quarterly</gmd:MD_MaintenanceFrequencyCode>
     </gmd:maintenanceAndUpdateFrequency>
    </gmd:MD_MaintenanceInformation>
   </gmd:resourceMaintenance>
   <!-- Data Format -->
   <gmd:resourceFormat>
    <gmd:MD_Format>
     <gmd:name>
     <gmx:Anchor xlink:href="http://vocab.nerc.ac.uk/collection/M01/current/DOC/">Documents</gmx:Anchor>
     </gmd:name>
      <gmd:version gco:nilReason="inapplicable"/>
    </gmd:MD_Format>
   </gmd:resourceFormat>
   <!-- INSPIRE Keyword -->
   <gmd:descriptiveKeywords>
     <gmd:MD_Keywords>
       <gmd:keyword>
         <gco:CharacterString>Utility and governmental services</gco:CharacterString>
       </gmd:keyword>
       <gmd:thesaurusName>
         <gmd:CI_Citation>
           <gmd:title>
             <gco:CharacterString>GEMET - INSPIRE themes, version 1.0</gco:CharacterString>
           </gmd:title>
           <gmd:date>
             <gmd:CI_Date>
               <gmd:date>
                 <gco:Date>2023-11-03</gco:Date>
               </gmd:date>
               <gmd:dateType>
                 <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_DateTypeCode"
                                      codeListValue="publication">publication</gmd:CI_DateTypeCode>
               </gmd:dateType>
             </gmd:CI_Date>
           </gmd:date>
         </gmd:CI_Citation>
       </gmd:thesaurusName>
     </gmd:MD_Keywords>
   </gmd:descriptiveKeywords>
<!-- Use Constraints-->
   <gmd:resourceConstraints>
     <gmd:MD_Constraints>
       <gmd:useLimitation>
         <gco:CharacterString>&#xA9; CNC/NRW Data may be re-used under provision and in line with the terms of a NRW licence. </gco:CharacterString>
       </gmd:useLimitation>
     </gmd:MD_Constraints>
   </gmd:resourceConstraints>
 <!-- Limitations on Public Access -->
   <gmd:resourceConstraints>
    <gmd:MD_LegalConstraints>
     <gmd:accessConstraints>
      <gmd:MD_RestrictionCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#MD_RestrictionCode"
        codeListValue="otherRestrictions">otherRestrictions</gmd:MD_RestrictionCode>
     </gmd:accessConstraints>
     <gmd:otherConstraints>
      <gco:CharacterString>Access to this data may be restricted under relevant legislation. NRW may NOT publish or disseminate the data freely.</gco:CharacterString>
     </gmd:otherConstraints>
</gmd:MD_LegalConstraints>
   </gmd:resourceConstraints>
<!-- Spatial Representation Type -->
   <!-- Dataset Language -->
   <gmd:language>
     <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php"
                       codeListValue="eng">eng</gmd:LanguageCode>
   </gmd:language>
   <!-- Topic Category -->
   <gmd:topicCategory>
    <gmd:MD_TopicCategoryCode>inlandWaters</gmd:MD_TopicCategoryCode>
   </gmd:topicCategory>
   <!-- Extent -->
   <gmd:extent>
    <gmd:EX_Extent>
      <gmd:geographicElement>
      <gmd:EX_GeographicDescription>
       <!-- Extent - by Identifier -->
       <gmd:geographicIdentifier>
      <gmd:MD_Identifier>
         <gmd:authority>
          <gmd:CI_Citation>
           <gmd:title>
            <gco:CharacterString>ISO3166 Countries</gco:CharacterString>
           </gmd:title>
           <gmd:date>
            <gmd:CI_Date>
             <gmd:date>
              <gco:Date>2023-11-03</gco:Date>
             </gmd:date>
             <gmd:dateType>
              <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication">publication</gmd:CI_DateTypeCode>
             </gmd:dateType>
            </gmd:CI_Date>
           </gmd:date>
          </gmd:CI_Citation>
         </gmd:authority>
         <gmd:code>
          <gco:CharacterString>Wales (WLS)</gco:CharacterString>
         </gmd:code>
        </gmd:MD_Identifier>
       </gmd:geographicIdentifier>
      </gmd:EX_GeographicDescription>
     </gmd:geographicElement>
<!-- Geographic Bounding Box -->
     <gmd:geographicElement>
      <gmd:EX_GeographicBoundingBox>
       <gmd:westBoundLongitude>
        <gco:Decimal>-5.77774100</gco:Decimal>
       </gmd:westBoundLongitude>
       <gmd:eastBoundLongitude><gco:Decimal>-2.60886500</gco:Decimal>
       </gmd:eastBoundLongitude>
       <gmd:southBoundLatitude>
        <gco:Decimal>51.24082900</gco:Decimal>
       </gmd:southBoundLatitude>
       <gmd:northBoundLatitude><gco:Decimal>53.51306700</gco:Decimal>
       </gmd:northBoundLatitude>
      </gmd:EX_GeographicBoundingBox>
     </gmd:geographicElement>
     <!-- Temporal Extent -->
     <gmd:temporalElement>
      <gmd:EX_TemporalExtent>
       <gmd:extent>
         <gml:TimePeriod gml:id="medinMEDIN01">
           <gml:beginPosition>2013-04-01</gml:beginPosition>
           <gml:endPosition>2023-10-30</gml:endPosition>
         </gml:TimePeriod>
       </gmd:extent>
      </gmd:EX_TemporalExtent>
     </gmd:temporalElement>
    </gmd:EX_Extent>
   </gmd:extent>
   </gmd:MD_DataIdentification>
  </gmd:identificationInfo>
<!--Resource Locator -->
  <gmd:distributionInfo>
   <gmd:MD_Distribution>
    <!--The ISO 19115 Constraints require this element!-->
    <gmd:distributionFormat gco:nilReason="inapplicable" />
   <!-- Distributor -->
   <gmd:distributor>
    <gmd:MD_Distributor>
    <gmd:distributorContact>
    <gmd:CI_ResponsibleParty>
     <gmd:organisationName>
      <gco:CharacterString>Natural Resources Wales (NRW)</gco:CharacterString>
     </gmd:organisationName>
     <gmd:contactInfo>
      <gmd:CI_Contact>
       <gmd:phone>
        <gmd:CI_Telephone>
         <gmd:voice>
          <gco:CharacterString>0300 065 3000</gco:CharacterString>
         </gmd:voice>
        </gmd:CI_Telephone>
       </gmd:phone>
       <gmd:address>
        <gmd:CI_Address>
         <gmd:deliveryPoint>
          <gco:CharacterString>Maes-y-Ffynnon</gco:CharacterString>
         </gmd:deliveryPoint>
         <gmd:postalCode>
          <gco:CharacterString>LL57 2DW</gco:CharacterString>
         </gmd:postalCode>
          <gmd:electronicMailAddress>
          <gco:CharacterString>enquiries@naturalresourceswales.gov.uk</gco:CharacterString>
         </gmd:electronicMailAddress>
        </gmd:CI_Address>
       </gmd:address>
      </gmd:CI_Contact>
     </gmd:contactInfo>
     <gmd:role>
      <gmd:CI_RoleCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#CI_RoleCode"
        codeListValue="distributor">distributor</gmd:CI_RoleCode>
     </gmd:role>
    </gmd:CI_ResponsibleParty>
    </gmd:distributorContact>
    </gmd:MD_Distributor>
   </gmd:distributor>
    <gmd:transferOptions>
     <gmd:MD_DigitalTransferOptions>
      <gmd:onLine>
       <gmd:CI_OnlineResource>
        <gmd:linkage>
         <gmd:URL>https://datamap.gov.wales/layers/geonode:nrw_water_quality_permits</gmd:URL>
        </gmd:linkage>
<gmd:name>
<gco:CharacterString>Download Data and Web Services</gco:CharacterString>
</gmd:name>
       </gmd:CI_OnlineResource>
      </gmd:onLine>
      <gmd:onLine>
       <gmd:CI_OnlineResource>
        <gmd:linkage>
         <gmd:URL>https://datamap.gov.wales/capabilities/layer/3544/?access_token=67k4GhAr91AqiAXnyngsm3l40RrZII&amp;ows_service=wms</gmd:URL>
        </gmd:linkage>
<gmd:name>
<gco:CharacterString>Web Mapping Service</gco:CharacterString>
</gmd:name>
       </gmd:CI_OnlineResource>
      </gmd:onLine>
     </gmd:MD_DigitalTransferOptions>
    </gmd:transferOptions>
   </gmd:MD_Distribution>
  </gmd:distributionInfo>
   <!-- Data Quality Info -->
 <gmd:dataQualityInfo>
  <gmd:DQ_DataQuality>
   <!-- Scope - Required by ISO 19115 -->
   <gmd:scope>
    <gmd:DQ_Scope>
     <gmd:level>
      <gmd:MD_ScopeCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/gmxCodelists.xml#MD_ScopeCode"
       codeListValue="dataset">dataset</gmd:MD_ScopeCode>
     </gmd:level>
    </gmd:DQ_Scope>
   </gmd:scope>
    <!-- Lineage -->
    <gmd:lineage>
      <gmd:LI_Lineage>
       <gmd:statement>
        <gco:CharacterString>Data was stored in the legacy  EA WIMS database from 2013-04-01 to 2016-06-26 before being transitioned into NRW&#x27;s Permitting And Licencing System (PALS) database on the 2016/06/27.  This dataset has now incorporated NRW_DS116215 Consented Discharges to Controlled Waters and will also be used to highlight any discharges that have List 1 or 2 substances as detailed in NRW-DS116311 Discharges of Consented List 1 and 2 Substances.
        </gco:CharacterString>
       </gmd:statement>
      </gmd:LI_Lineage>
    </gmd:lineage>
   </gmd:DQ_DataQuality>
  </gmd:dataQualityInfo>
</gmd:MD_Metadata>
