<?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">69c8dcee-8b79-4fe5-8257-e3e7d7b6a38d</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>
      <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"
                             codeSpace="ISOTC211/19115"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:dateStamp>
      <gco:DateTime xmlns:gco="http://www.isotc211.org/2005/gco">2021-10-18T11:36:15</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: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">9756</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">3994</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">6.18(10.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">NZ Coastlines and Islands Merc41</gco:CharacterString>
               </gmd:title>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date xmlns:gco="http://www.isotc211.org/2005/gco">2021-08-11</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"
                                             codeListValue="revision"
                                             codeSpace="ISOTC211/19115"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <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">This provides a vector coastline and islands layer which is based on the Topo50 products. 

It is a combination of the following layers:

- [NZ Coastlines (Topo 1:50k)](http://data.linz.govt.nz/layer/258-nz-coastlines-topo-150k/)
- [NZ Island Polygons (Topo 1:50k)](http://data.linz.govt.nz/layer/288-nz-island-polygons-topo-150k/)
- [NZ Auckland Is Island Polygons (Topo, 1:50k)](http://data.linz.govt.nz/layer/959-nz-auckland-is-island-polygons-topo-150k/)
- [NZ Campbell Is / Motu Ihupuku Island Polygons (Topo, 1:50k)](http://data.linz.govt.nz/layer/932-nz-campbell-is-motu-ihupuku-island-polygons-topo-150k/)- [NZ Antipodes Is Island Polygons (Topo, 1:25k)](http://data.linz.govt.nz/layer/978-nz-antipodes-is-island-polygons-topo-125k/)
- [NZ Kermadec Is Island Polygons (Topo, 1:25k)](http://data.linz.govt.nz/layer/908-nz-kermadec-is-island-polygons-topo-125k/)- [NZ Bounty Is Island Polygons (Topo, 1:25k)](http://data.linz.govt.nz/layer/992-nz-bounty-is-island-polygons-topo-125k/)
- [NZ Snares Is / Tini Heke Island Polygons (Topo, 1:25k)](http://data.linz.govt.nz/layer/893-nz-snares-is-tini-heke-island-polygons-topo-125k/)
- [NZ Chatham Is island polygons (Topo, 1:50k)](http://data.linz.govt.nz/layer/86-nz-chatham-is-island-polygons-topo-150k/)Islands from the NZ Island Polygons layer that lie within the NZ Coastline and Chatham Islands areas (i.e. islands in lakes, rivers and estuaries) have been removed.

The GIS workflow to create the layer is: 

1. NZ Coastlines were converted from a polyline to a polygon using a polyline to polygon tool.
2. The resulting coastal polygon was then used as an input into an erase tool and run against the NZ Island Polygon layer to remove all islands lying within the NZ Mainland and Stewart Island. 
3. This was then merged with the NZ Chatham Is island polygons (Topo, 1:50k) that have had the islands within the main island polygon removed, NZ Auckland Is Island Polygons (Topo, 1:50k), NZ Campbell Is / Motu Ihupuku Island, NZ Antipodes Is Island Polygons (Topo, 1:25k), NZ Kermadec Is Island Polygons (Topo, 1:25k), NZ Bounty Is Island Polygons (Topo, 1:25k) and NZ Snares Is / Tini Heke Island Polygons (Topo, 1:25k) layers using a merge tool. 
4. Lake Onoke from the NZ Lake Polygons (Topo 1:50k) layer and Te Whanga Lagoon from the NZ Chatham Is lagoon polygons (Topo, 1:50k) layer were then erased from the resultant polygon layer to include these two water bodies in the coastline definition.

Coastline data from the Australian islands (Lord Howe, Norfolk, and Macquarie Is.) sourced from Geoscience Australia.</gco:CharacterString>
         </gmd:abstract>
         <gmd:purpose>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">This data is primarily sourced from the NZ Topo50 dataset with the Australian islands (Lord Howe, Norfolk, and Macquarie Is.) sourced from Geoscience Australia. Topo50 is the official topographic map series in New Zealand. When using Topo50 data, please be aware that permits may be required to visit some sensitive and special islands and areas. Contact the Department of Conservation to see if you need to apply for a permit. 

Projection Mercator41</gco:CharacterString>
         </gmd:purpose>
         <gmd:credit>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Land Information New Zealand (and Geoscience Australia for Lord Howe, Norfolk, and Macquarie Is.)</gco:CharacterString>
         </gmd:credit>
         <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">coastlline</gco:CharacterString>
               </gmd:keyword>
               <gmd:keyword>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">NZ</gco:CharacterString>
               </gmd:keyword>
               <gmd:keyword>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Polyline</gco:CharacterString>
               </gmd:keyword>
               <gmd:keyword>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Mercator41</gco:CharacterString>
               </gmd:keyword>
            </gmd:MD_Keywords>
         </gmd:descriptiveKeywords>
         <gmd:resourceConstraints>
            <gmd:MD_Constraints>
               <gmd:useLimitation>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Released under Creative Commons By with:Following Disclaimers:1. The existence of a road or track does not necessarily indicate public right of access.2. Closed tracks are defined as being no longer maintained or passable and should not be used by recreationalists. The Department of Conservation or other authorities should be contacted for the latest information on tracks and huts.3. Not all aerial wires, cableways and obstructions that could be hazardous to aircraft are held in the data.4. Contours and spot elevations in forest and snow areas may be less accurate.5. Not all pipelines including both underground and above ground are held in the data or shown on the printed maps. For the latest information please contact the utility and infrastructure agencies6. Permits may be required to visit some sensitive and special islands and areas. Contact the Department of Conservation to see if you need to apply for a permit.Following Attribution:If you publish, distribute or otherwise disseminate this work to the public without adapting it, the following attribution to Land Information New Zealand should be used:"CC-By Land Information New Zealand"If you adapt this work in any way or include it in a collection, and publish, distribute or otherwise disseminate that adaptation or collection to the public, the following attribution to Land Information New Zealand should be used:"Contains data sourced from Land Information New Zealand under CC-By."If attribution stacking problems exist then the requirement to display the above attribution statements is waived and in lieu the attribution statement is to be made in any terms or conditions associated with the work/ product/ application/ etc.</gco:CharacterString>
               </gmd:useLimitation>
            </gmd:MD_Constraints>
         </gmd:resourceConstraints>
         <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>boundaries</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:description>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">New Zealand</gco:CharacterString>
               </gmd:description>
               <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">160.00</gco:Decimal>
                     </gmd:westBoundLongitude>
                     <gmd:eastBoundLongitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">175.00</gco:Decimal>
                     </gmd:eastBoundLongitude>
                     <gmd:southBoundLatitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-54.760845</gco:Decimal>
                     </gmd:southBoundLatitude>
                     <gmd:northBoundLatitude>
                        <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-28.999327</gco:Decimal>
                     </gmd:northBoundLatitude>
                  </gmd:EX_GeographicBoundingBox>
               </gmd:geographicElement>
            </gmd:EX_Extent>
         </gmd:extent>
      </gmd:MD_DataIdentification>
  </gmd:identificationInfo>
  <gmd:distributionInfo>
      <gmd:MD_Distribution>
         <gmd:distributionFormat>
            <gmd:MD_Format>
               <gmd:name>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">SDE Feature Class</gco:CharacterString>
               </gmd:name>
               <gmd:version>
                  <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">10.1</gco:CharacterString>
               </gmd:version>
            </gmd:MD_Format>
         </gmd:distributionFormat>
         <gmd:distributor>
            <gmd:MD_Distributor>
               <gmd:distributorContact xmlns:gco="http://www.isotc211.org/2005/gco" gco:nilReason="missing"/>
               <gmd:distributorFormat>
                  <gmd:MD_Format>
                     <gmd:name>
                        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">SDE Feature Class</gco:CharacterString>
                     </gmd:name>
                     <gmd:version>
                        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">10.1</gco:CharacterString>
                     </gmd:version>
                  </gmd:MD_Format>
               </gmd:distributorFormat>
               <gmd:distributorTransferOptions>
                  <gmd:MD_DigitalTransferOptions/>
               </gmd:distributorTransferOptions>
            </gmd:MD_Distributor>
         </gmd:distributor>
      </gmd:MD_Distribution>
  </gmd:distributionInfo>
</gmd:MD_Metadata>