<?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"
                 xsi:schemaLocation="http://www.isotc211.org/2005/gmd https://www.isotc211.org/2005/gmd/gmd.xsd http://www.isotc211.org/2005/gmx https://www.isotc211.org/2005/gmx/gmx.xsd http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd">
  <gmd:fileIdentifier>
      <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">0abeee37-9805-459a-8c9f-b0f488775aa0</gco:CharacterString>
  </gmd:fileIdentifier>
  <gmd:language>
      <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"
                        codeSpace="ISO639-2"/>
  </gmd:language>
  <gmd:characterSet>
      <gmd:MD_CharacterSetCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_CharacterSetCode"
                               codeListValue="utf8"
                               codeSpace="ISOTC211/19115"/>
  </gmd:characterSet>
  <gmd:hierarchyLevel>
      <gmd:MD_ScopeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_ScopeCode"
                        codeListValue="dataset"
                        codeSpace="ISOTC211/19115"/>
  </gmd:hierarchyLevel>
  <gmd:hierarchyLevelName>
      <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">dataset</gco:CharacterString>
  </gmd:hierarchyLevelName>
  <gmd:contact xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="missing"/>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Steinmetz</gco:CharacterString>
         </gmd:individualName>
         <gmd:organisationName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Tilmann</gco:CharacterString>
         </gmd:organisationName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:electronicMailAddress>
                        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">tilmann.steinmetz@niwa.co.nz</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/ML_gmxCodelists.xml#CI_RoleCode"
                             codeListValue="publisher"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">enquiries</gco:CharacterString>
         </gmd:individualName>
         <gmd:organisationName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">NIWA</gco:CharacterString>
         </gmd:organisationName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:electronicMailAddress>
                        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">enquiries@niwa.co.nz</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/ML_gmxCodelists.xml#CI_RoleCode"
                             codeListValue="pointOfContact"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="missing">
            <gco:CharacterString/>
         </gmd:individualName>
         <gmd:organisationName xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="missing">
            <gco:CharacterString/>
         </gmd:organisationName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:electronicMailAddress xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="missing">
                        <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/ML_gmxCodelists.xml#CI_RoleCode"
                             codeListValue=""/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Enquiries</gco:CharacterString>
         </gmd:individualName>
         <gmd:organisationName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">NIWA</gco:CharacterString>
         </gmd:organisationName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:electronicMailAddress>
                        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">enquiries@niwa.co.nz</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/ML_gmxCodelists.xml#CI_RoleCode"
                             codeListValue="pointOfContact"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Enquiries</gco:CharacterString>
         </gmd:individualName>
         <gmd:organisationName>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">NIWA</gco:CharacterString>
         </gmd:organisationName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:electronicMailAddress>
                        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">enquiries@niwa.co.nz</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/ML_gmxCodelists.xml#CI_RoleCode"
                             codeListValue="pointOfContact"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:dateStamp>
      <gco:DateTime xmlns:gco="http://www.isotc211.org/2005/gco">2022-11-14T17:29:05</gco:DateTime>
  </gmd:dateStamp>
  <gmd:metadataStandardName>
      <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">ISO 19139 Geographic Information - Metadata - Implementation Specification</gco:CharacterString>
  </gmd:metadataStandardName>
  <gmd:metadataStandardVersion>
      <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">2007</gco:CharacterString>
  </gmd:metadataStandardVersion>
  <gmd:dataSetURI>
      <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">https://niwa.maps.arcgis.com/home/item.html?id=3a4b6cc2c1c74fbb8ddbe25df28e410c</gco:CharacterString>
  </gmd:dataSetURI>
  <gmd:spatialRepresentationInfo>
      <gmd:MD_VectorSpatialRepresentation>
         <gmd:topologyLevel>
            <gmd:MD_TopologyLevelCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_TopologyLevelCode"
                                      codeListValue="geometryOnly"
                                      codeSpace="ISOTC211/19115"/>
         </gmd:topologyLevel>
         <gmd:geometricObjects>
            <gmd:MD_GeometricObjects>
               <gmd:geometricObjectType>
                  <gmd:MD_GeometricObjectTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_GeometricObjectTypeCode"
                                                  codeListValue="composite"
                                                  codeSpace="ISOTC211/19115"/>
               </gmd:geometricObjectType>
               <gmd:geometricObjectCount>
                  <gco:Integer xmlns:gco="http://www.isotc211.org/2005/gco">593517</gco:Integer>
               </gmd:geometricObjectCount>
            </gmd:MD_GeometricObjects>
         </gmd:geometricObjects>
      </gmd:MD_VectorSpatialRepresentation>
  </gmd:spatialRepresentationInfo>
  <gmd:referenceSystemInfo>
      <gmd:MD_ReferenceSystem>
         <gmd:referenceSystemIdentifier>
            <gmd:RS_Identifier>
               <gmd:code>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">2193</gco:CharacterString>
               </gmd:code>
               <gmd:codeSpace>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">EPSG</gco:CharacterString>
               </gmd:codeSpace>
               <gmd:version>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">7.9.4(9.0.0)</gco:CharacterString>
               </gmd:version>
            </gmd:RS_Identifier>
         </gmd:referenceSystemIdentifier>
      </gmd:MD_ReferenceSystem>
  </gmd:referenceSystemInfo>
  <gmd:identificationInfo>
      <gmd:MD_DataIdentification>
         <gmd:citation>
            <gmd:CI_Citation>
               <gmd:title>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">REC riverlines v2.5 (River Environment Classification)</gco:CharacterString>
               </gmd:title>
               <gmd:date xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="missing"/>
               <gmd:presentationForm>
                  <gmd:CI_PresentationFormCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_PresentationFormCode"
                                               codeListValue="mapDigital"
                                               codeSpace="ISOTC211/19115"/>
               </gmd:presentationForm>
            </gmd:CI_Citation>
         </gmd:citation>
         <gmd:abstract>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">NIWA REC 2v5 (River Environment Classification) 

The REC has been used to classify all the rivers of New Zealand at a 1:50,000 mapping scale. The area classified comprises 267,000 km2 and 426,000 km of river network. This datasets is for the River Lines.

Attributes associated directly with network:

Field - Type  - Description:

Catarea Real Watershed area in m2 
CUM_Area Real Area upstream of a reach (and including this reach area) in m2.
Nzsegment Integer Reach identifier to be used with REC2 (supersedes nzreach in REC1).
nz_fnode Integer Unique number of preceding river segment's outlet node.
nz_tnode Integer Unique number of following river segment's inlet node.
Lengthdown RealThe distance to coast from any reach to its outlet reach, where the river drains (m).
Headwater Integer Number (0) denoting whether a stream is a “source” (headwater) stream. Non-zero for non-headwater streams.
Hydseq Integer A unique number denoting the hydrological processing order of a river segment relative to others in the newtork.
StreamOrder Integer A number describing the Strahler order a reach in a network of reaches.
euclid_dist Real The straight line distance of a reach from the reach “inlet” to its “outlet”.
upElev Real Height (asl) of the upstream end of a reach section in a watershed (m).
downElev Real Height (asl) of the downstream end of a reach section in a watershed (m).
upcoordX Real Easting of the upstream end of a river segment in m (NZTM2000).
upcoordY Real Northing of the upstream end of a river segment in m (NZTM2000).
downcoordX Real Easting of the downstream end of a river segment in m (NZTM2000).
downcoordY Real Northing of the downstream end of a river segment in m (NZTM2000).
sinuosityReal Actual distance divided by the straight line distance giving the degree of curvature of the stream
nzreach_rec1 IntegerThe REC1 identifiying number for the corresponding\closest reach from REC1 (can be used to retrieve the REC management classes)
headw_dist Integer Distance of the furthermost “source” or headwater reach from any reach (m).
Shape_length RealThe length of the reach (vector) as calculated by ArcGIS.
Segslpmax Real Maximum segment slope along length of reach.
Segslpmean Real Mean segment slope along length of reach. LID Integer Lake Identifier number(LID) of overlapping lake.
Reachtype Integer A value of 2 is assigned if the segment is an outlet to the lake, otherwise 0 or null.
nextdownid integer segment number of the most downstream reach</gco:CharacterString>
         </gmd:abstract>
         <gmd:pointOfContact>
            <gmd:CI_ResponsibleParty>
               <gmd:individualName>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Enquiries</gco:CharacterString>
               </gmd:individualName>
               <gmd:organisationName>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">NIWA</gco:CharacterString>
               </gmd:organisationName>
               <gmd:contactInfo>
                  <gmd:CI_Contact>
                     <gmd:address>
                        <gmd:CI_Address>
                           <gmd:electronicMailAddress>
                              <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">enquiries@niwa.co.nz</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/ML_gmxCodelists.xml#CI_RoleCode"
                                   codeListValue="pointOfContact"/>
               </gmd:role>
            </gmd:CI_ResponsibleParty>
         </gmd:pointOfContact>
         <gmd:graphicOverview>
            <gmd:MD_BrowseGraphic>
               <gmd:fileName>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">https://dc.niwa.co.nz:/niwa_dc/srv/api/records/0abeee37-9805-459a-8c9f-b0f488775aa0/attachments/REC Screenshot Thumbnail.png</gco:CharacterString>
               </gmd:fileName>
            </gmd:MD_BrowseGraphic>
         </gmd:graphicOverview>
         <gmd:descriptiveKeywords>
            <gmd:MD_Keywords>
               <gmd:keyword>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Downloadable Data</gco:CharacterString>
               </gmd:keyword>
               <gmd:thesaurusName uuidref="723f6998-058e-11dc-8314-0800200c9a66"/>
            </gmd:MD_Keywords>
         </gmd:descriptiveKeywords>
         <gmd:descriptiveKeywords>
            <gmd:MD_Keywords>
               <gmd:keyword>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">River</gco:CharacterString>
               </gmd:keyword>
               <gmd:keyword>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Model</gco:CharacterString>
               </gmd:keyword>
               <gmd:type>
                  <gmd:MD_KeywordTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_KeywordTypeCode"
                                          codeListValue="theme"/>
               </gmd:type>
            </gmd:MD_Keywords>
         </gmd:descriptiveKeywords>
         <gmd:spatialRepresentationType>
            <gmd:MD_SpatialRepresentationTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_SpatialRepresentationTypeCode"
                                                  codeListValue="vector"
                                                  codeSpace="ISOTC211/19115"/>
         </gmd:spatialRepresentationType>
         <gmd:language>
            <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"
                              codeSpace="ISO639-2"/>
         </gmd:language>
         <gmd:characterSet>
            <gmd:MD_CharacterSetCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_CharacterSetCode"
                                     codeListValue="utf8"
                                     codeSpace="ISOTC211/19115"/>
         </gmd:characterSet>
         <gmd:topicCategory>
            <gmd:MD_TopicCategoryCode>inlandWaters</gmd:MD_TopicCategoryCode>
         </gmd:topicCategory>
         <gmd:topicCategory>
            <gmd:MD_TopicCategoryCode>geoscientificInformation</gmd:MD_TopicCategoryCode>
         </gmd:topicCategory>
         <gmd:environmentDescription>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Version 6.2 (Build 9200) ; Esri ArcGIS 10.6.1.9270</gco:CharacterString>
         </gmd:environmentDescription>
         <gmd:extent>
            <gmd:EX_Extent>
               <gmd:geographicElement>
                  <gmd:EX_GeographicBoundingBox>
                     <gmd:extentTypeCode>
                        <gco:Boolean xmlns:gco="http://www.isotc211.org/2005/gco">true</gco:Boolean>
                     </gmd:extentTypeCode>
                     <gmd:westBoundLongitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">166.263794</gco:Decimal>
                     </gmd:westBoundLongitude>
                     <gmd:eastBoundLongitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">179.462723</gco:Decimal>
                     </gmd:eastBoundLongitude>
                     <gmd:southBoundLatitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-47.415205</gco:Decimal>
                     </gmd:southBoundLatitude>
                     <gmd:northBoundLatitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-34.275544</gco:Decimal>
                     </gmd:northBoundLatitude>
                  </gmd:EX_GeographicBoundingBox>
               </gmd:geographicElement>
            </gmd:EX_Extent>
         </gmd:extent>
      </gmd:MD_DataIdentification>
  </gmd:identificationInfo>
  <gmd:distributionInfo xmlns:gco="http://www.isotc211.org/2005/gco">
      <gmd:MD_Distribution>
         <gmd:distributionFormat>
            <gmd:MD_Format>
               <gmd:name>
                  <gco:CharacterString>SDE Feature Class</gco:CharacterString>
               </gmd:name>
               <gmd:version gco:nilReason="missing"/>
            </gmd:MD_Format>
         </gmd:distributionFormat>
         <gmd:distributionFormat>
            <gmd:MD_Format>
               <gmd:name>
                  <gco:CharacterString>Esri Web Service</gco:CharacterString>
               </gmd:name>
               <gmd:version>
                  <gco:CharacterString>Geoservice</gco:CharacterString>
               </gmd:version>
            </gmd:MD_Format>
         </gmd:distributionFormat>
         <gmd:distributor>
            <gmd:MD_Distributor>
               <gmd:distributorContact gco:nilReason="missing"/>
               <gmd:distributorFormat>
                  <gmd:MD_Format>
                     <gmd:name>
                        <gco:CharacterString>File Geodatabase Feature Class</gco:CharacterString>
                     </gmd:name>
                     <gmd:version gco:nilReason="missing"/>
                  </gmd:MD_Format>
               </gmd:distributorFormat>
               <gmd:distributorTransferOptions>
                  <gmd:MD_DigitalTransferOptions/>
               </gmd:distributorTransferOptions>
            </gmd:MD_Distributor>
         </gmd:distributor>
         <gmd:distributor/>
         <gmd:transferOptions>
            <gmd:MD_DigitalTransferOptions>
               <gmd:onLine>
                  <gmd:CI_OnlineResource>
                     <gmd:linkage>
                        <gmd:URL>https://niwa.maps.arcgis.com/home/item.html?id=3a4b6cc2c1c74fbb8ddbe25df28e410c</gmd:URL>
                     </gmd:linkage>
                     <gmd:protocol>
                        <gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
                     </gmd:protocol>
                     <gmd:name>
                        <gco:CharacterString>REC2 in ArcGIS Online</gco:CharacterString>
                     </gmd:name>
                     <gmd:function>
                        <gmd:CI_OnLineFunctionCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_OnLineFunctionCode"
                                                   codeListValue="download"/>
                     </gmd:function>
                  </gmd:CI_OnlineResource>
               </gmd:onLine>
            </gmd:MD_DigitalTransferOptions>
         </gmd:transferOptions>
      </gmd:MD_Distribution>
  </gmd:distributionInfo>
</gmd:MD_Metadata>