<?xml version="1.0" encoding="UTF-8"?>
<WMS_Capabilities version="1.3.0"
  xmlns="http://www.opengis.net/wms"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:esri_wms="http://www.esri.com/wms"
  xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.esri.com/wms https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?version=1.3.0%26service=WMS%26request=GetSchemaExtension">
  <Service>
    <Name><![CDATA[WMS]]></Name>
    <Title><![CDATA[Scottish Postcode Directory (SPD) View Service]]></Title>
    <Abstract><![CDATA[The Scottish Postcode Directory (SPD) is the definitive source for postcode geographies in Scotland, updated twice a year by National Records of Scotland (NRS). It is a comprehensive geographical lookup file that maps all postcodes in Scotland to higher geographical levels, such as council areas and data zones, and contains both current and deleted postcodes. The SPD includes: 1) A list of live and deleted postcodes across Scotland (Postcode Index); 2) Mapping of postcodes to higher geographical areas like census output areas, data zones, and council areas; 3) Digital boundaries for live postcodes, sectors and districts; 4)Digital point locations for live postcodes, sectors and districts (grid references).  The SPD is used to link postcodes to other data sources and higher geographies, and helps to understand and analyse geographical patterns in Scotland. Note the published version of the SPD does not include Royal Mail information on Delivery Point Count (DPC), Delivery Point Count Non-Residential (DPCNR) or Household Count (HC). Those interested in this information should enquire with geographycustomerservices@nrscotland.gov.uk.]]></Abstract>
    <KeywordList><Keyword><![CDATA[Statistical units, statistical data, Boundaries, Postcodes]]></Keyword></KeywordList>
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?"/>
    <ContactInformation>
      <ContactPersonPrimary>
        <ContactPerson><![CDATA[Geography]]></ContactPerson>
        <ContactOrganization><![CDATA[National Records of Scotland (NRS)]]></ContactOrganization>
      </ContactPersonPrimary>
      <ContactPosition><![CDATA[Geography Branch]]></ContactPosition>
      <ContactAddress>
        <AddressType><![CDATA[Postal]]></AddressType>
        <Address><![CDATA[General Register House, 2 Princes Street]]></Address>
        <City><![CDATA[City of Edinburgh]]></City>
        <StateOrProvince><![CDATA[Scotland]]></StateOrProvince>
        <PostCode><![CDATA[EH1 3YY]]></PostCode>
        <Country><![CDATA[United Kingdom]]></Country>
      </ContactAddress>
      <ContactVoiceTelephone><![CDATA[]]></ContactVoiceTelephone>
      <ContactFacsimileTelephone><![CDATA[]]></ContactFacsimileTelephone>
      <ContactElectronicMailAddress><![CDATA[geographycustomerservices@nrscotland.gov.uk]]></ContactElectronicMailAddress>
    </ContactInformation>
    <Fees><![CDATA[None]]></Fees>
    <AccessConstraints><![CDATA[No limitations to public access]]></AccessConstraints>
    <MaxWidth>4096</MaxWidth>
    <MaxHeight>4096</MaxHeight>
  </Service>
  <Capability>
    <Request>
      <GetCapabilities>
        <Format>application/vnd.ogc.wms_xml</Format>
        <Format>text/xml</Format>
        <DCPType>
          <HTTP><Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?"/></Get></HTTP>
        </DCPType>
      </GetCapabilities>
      <GetMap>
        <Format>image/bmp</Format>
        <Format>image/jpeg</Format>
        <Format>image/tiff</Format>
        <Format>image/png</Format>
        <Format>image/png8</Format>
        <Format>image/png24</Format>
        <Format>image/png32</Format>
        <Format>image/gif</Format>
        <Format>image/svg+xml</Format>
        <DCPType>
          <HTTP><Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?"/></Get></HTTP>
        </DCPType>
      </GetMap>
      <GetFeatureInfo>
        <Format>application/vnd.esri.wms_raw_xml</Format>
        <Format>application/vnd.esri.wms_featureinfo_xml</Format>
        <Format>application/vnd.ogc.wms_xml</Format>
        <Format>application/geo+json</Format>
        <Format>text/xml</Format>
        <Format>text/html</Format>
        <Format>text/plain</Format>
        <DCPType>
          <HTTP><Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?"/></Get></HTTP>
        </DCPType>
      </GetFeatureInfo>
      <esri_wms:GetStyles>
        <Format>application/vnd.ogc.sld+xml</Format>
        <DCPType>
          <HTTP><Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?"/></Get></HTTP>
        </DCPType>
      </esri_wms:GetStyles>
    </Request>
    <Exception>
      <Format>application/vnd.ogc.se_xml</Format>
      <Format>application/vnd.ogc.se_inimage</Format>
      <Format>application/vnd.ogc.se_blank</Format>
      <Format>text/xml</Format>
      <Format>XML</Format>
    </Exception>
    <Layer>
      <Title><![CDATA[SPD]]></Title>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-9.229868</westBoundLongitude><eastBoundLongitude>-0.705303</eastBoundLongitude><southBoundLatitude>54.513381</southBoundLatitude><northBoundLatitude>60.866111</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-9.229868" miny="54.513381" maxx="-0.705303" maxy="60.866111"/>
<BoundingBox CRS="EPSG:4326" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
<BoundingBox CRS="EPSG:27700" minx="5512.998500" miny="530253.778100" maxx="470323.000100" maxy="1220301.502000"/>
<BoundingBox CRS="EPSG:4258" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
      <Layer queryable="1">
        <Name>PostcodeDistrict</Name>
        <Title><![CDATA[PostcodeDistrict]]></Title>
        <Abstract><![CDATA[Postcode district boundaries are created and maintained by National Records of Scotland (NRS).  Postcode districts are represented by the outward code (first part of a postcode). For example, if the individual postcode is EH12 7TB, then the district of that postcode is EH12.  Postcodes that fall within the same district are dissolved to create postcode district boundaries.    NRS publish these boundaries twice a year as part of the Scottish Postcode Directory (SPD) which should be considered the definitive source for postcode geographies in Scotland.]]></Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-9.229868</westBoundLongitude><eastBoundLongitude>-0.705303</eastBoundLongitude><southBoundLatitude>54.513381</southBoundLatitude><northBoundLatitude>60.866111</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-9.229868" miny="54.513381" maxx="-0.705303" maxy="60.866111"/>
<BoundingBox CRS="EPSG:4326" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
<BoundingBox CRS="EPSG:27700" minx="5512.998500" miny="530253.778100" maxx="470323.000100" maxy="1220301.502000"/>
<BoundingBox CRS="EPSG:4258" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
        <Style>
          <Name>default</Name>
          <Title><![CDATA[PostcodeDistrict]]></Title>
          <LegendURL width="18" height="18">
            <Format>image/png</Format>
            <OnlineResource xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=PostcodeDistrict" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
          </LegendURL>
        </Style>
      </Layer>
      <Layer queryable="1">
        <Name>PostcodeSector</Name>
        <Title><![CDATA[PostcodeSector]]></Title>
        <Abstract><![CDATA[Postcode sector boundaries are created and maintained by National Records of Scotland (NRS).  Postcode sectors are represented by the outward code (first part of a postcode) plus the first character of the inward code. For example, if the individual postcode is EH12 7TB, then the sector of that postcode is EH12 7.  Postcodes that fall within the same sector are dissolved to create postcode sector boundaries.    NRS publish these boundaries twice a year as part of the Scottish Postcode Directory (SPD) which should be considered the definitive source for postcode geographies in Scotland.]]></Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-9.229868</westBoundLongitude><eastBoundLongitude>-0.705303</eastBoundLongitude><southBoundLatitude>54.513381</southBoundLatitude><northBoundLatitude>60.866111</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-9.229868" miny="54.513381" maxx="-0.705303" maxy="60.866111"/>
<BoundingBox CRS="EPSG:4326" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
<BoundingBox CRS="EPSG:27700" minx="5512.998500" miny="530253.778100" maxx="470323.000100" maxy="1220301.502000"/>
<BoundingBox CRS="EPSG:4258" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
        <Style>
          <Name>default</Name>
          <Title><![CDATA[PostcodeSector]]></Title>
          <LegendURL width="18" height="18">
            <Format>image/png</Format>
            <OnlineResource xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=PostcodeSector" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
          </LegendURL>
        </Style>
      </Layer>
      <Layer queryable="1">
        <Name>PostcodeUnit</Name>
        <Title><![CDATA[PostcodeUnit]]></Title>
        <Abstract><![CDATA[Postcode unit boundaries are created and maintained by National Records of Scotland (NRS) for every live small user postcode so that the entire land surface of Scotland is covered by postcode polygons.    The dataset represents the smallest plotted unit in Scotland which supports the production of high quality statistics.    NRS publish these boundaries twice a year as part of the Scottish Postcode Directory (SPD) which should be considered the definitive source for postcode geographies in Scotland.     Note the published version of the SPD does not include Royal Mail information on Delivery Point Count (DPC), Delivery Point Count Non-Residential (DPCNR) or Household Count (HC). Those interested in this information should enquire with geographycustomerservices@nrscotland.gov.uk.]]></Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-9.229868</westBoundLongitude><eastBoundLongitude>-0.705303</eastBoundLongitude><southBoundLatitude>54.513381</southBoundLatitude><northBoundLatitude>60.866111</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-9.229868" miny="54.513381" maxx="-0.705303" maxy="60.866111"/>
<BoundingBox CRS="EPSG:4326" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
<BoundingBox CRS="EPSG:27700" minx="5512.998500" miny="530253.778100" maxx="470323.000100" maxy="1220301.502000"/>
<BoundingBox CRS="EPSG:4258" minx="54.513381" miny="-9.229868" maxx="60.866111" maxy="-0.705303"/>
        <Style>
          <Name>default</Name>
          <Title><![CDATA[PostcodeUnit]]></Title>
          <LegendURL width="18" height="18">
            <Format>image/png</Format>
            <OnlineResource xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=PostcodeUnit" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
          </LegendURL>
        </Style>
        <MaxScaleDenominator>22678.571429</MaxScaleDenominator>
      </Layer>
      <Layer queryable="1">
        <Name>PostcodeDistrictGridRef</Name>
        <Title><![CDATA[PostcodeDistrictGridRef]]></Title>
        <Abstract><![CDATA[Postcode district grid references are created and maintained by National Records of Scotland (NRS).  Grid references are calculated based on the Royal Mail Delivery Point Count of the postcodes within the postcode district, while ensuring that the centroid is located inside the boundary.    NRS publish these grid references twice a year as part of the Scottish Postcode Directory (SPD) which should be considered the definitive source for postcode geographies in Scotland.]]></Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-8.022266</westBoundLongitude><eastBoundLongitude>-1.167293</eastBoundLongitude><southBoundLatitude>54.743182</southBoundLatitude><northBoundLatitude>60.281267</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-8.022266" miny="54.743182" maxx="-1.167293" maxy="60.281267"/>
<BoundingBox CRS="EPSG:4326" minx="54.743182" miny="-8.022266" maxx="60.281267" maxy="-1.167293"/>
<BoundingBox CRS="EPSG:27700" minx="65900.000000" miny="551079.000000" maxx="446050.000000" maxy="1155169.000000"/>
<BoundingBox CRS="EPSG:4258" minx="54.743182" miny="-8.022266" maxx="60.281267" maxy="-1.167293"/>
        <Style>
          <Name>default</Name>
          <Title><![CDATA[PostcodeDistrictGridRef]]></Title>
          <LegendURL width="18" height="18">
            <Format>image/png</Format>
            <OnlineResource xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=PostcodeDistrictGridRef" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
          </LegendURL>
        </Style>
      </Layer>
      <Layer queryable="1">
        <Name>PostcodeSectorGridRef</Name>
        <Title><![CDATA[PostcodeSectorGridRef]]></Title>
        <Abstract><![CDATA[Postcode sector grid references are created and maintained by National Records of Scotland (NRS).  Grid references are calculated based on the Royal Mail Delivery Point Count of the postcodes within the postcode sector, while ensuring that the centroid is located inside the boundary.    NRS publish these grid references twice a year as part of the Scottish Postcode Directory (SPD) which should be considered the definitive source for postcode geographies in Scotland.]]></Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-8.022266</westBoundLongitude><eastBoundLongitude>-1.167293</eastBoundLongitude><southBoundLatitude>54.659366</southBoundLatitude><northBoundLatitude>60.281267</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-8.022266" miny="54.659366" maxx="-1.167293" maxy="60.281267"/>
<BoundingBox CRS="EPSG:4326" minx="54.659366" miny="-8.022266" maxx="60.281267" maxy="-1.167293"/>
<BoundingBox CRS="EPSG:27700" minx="65900.000000" miny="541715.000000" maxx="446050.000000" maxy="1155169.000000"/>
<BoundingBox CRS="EPSG:4258" minx="54.659366" miny="-8.022266" maxx="60.281267" maxy="-1.167293"/>
        <Style>
          <Name>default</Name>
          <Title><![CDATA[PostcodeSectorGridRef]]></Title>
          <LegendURL width="18" height="18">
            <Format>image/png</Format>
            <OnlineResource xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=PostcodeSectorGridRef" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
          </LegendURL>
        </Style>
      </Layer>
      <Layer queryable="1">
        <Name>PostcodeGridRef</Name>
        <Title><![CDATA[PostcodeGridRef]]></Title>
        <Abstract><![CDATA[Postcode grid references are created and maintained by National Records of Scotland (NRS) for every live small user postcode to accompany the postcode unit boundaries.    Postcode grid references are used in point in polygon processes to allocate each postcode to a set of higher area geographies (e.g. Health Boards).     Grid references are published twice a year as part of the Scottish Postcode Directory (SPD) which should be considered the definitive source for postcode geographies in Scotland.]]></Abstract>
<CRS>CRS:84</CRS>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:27700</CRS>
<CRS>EPSG:4258</CRS>
<EX_GeographicBoundingBox><westBoundLongitude>-8.172374</westBoundLongitude><eastBoundLongitude>-0.734082</eastBoundLongitude><southBoundLatitude>54.570094</southBoundLatitude><northBoundLatitude>60.823480</northBoundLatitude></EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" minx="-8.172374" miny="54.570094" maxx="-0.734082" maxy="60.823480"/>
<BoundingBox CRS="EPSG:4326" minx="54.570094" miny="-8.172374" maxx="60.823480" maxy="-0.734082"/>
<BoundingBox CRS="EPSG:27700" minx="63195.000000" miny="531942.000000" maxx="468851.000000" maxy="1215553.594100"/>
<BoundingBox CRS="EPSG:4258" minx="54.570094" miny="-8.172374" maxx="60.823480" maxy="-0.734082"/>
        <Style>
          <Name>default</Name>
          <Title><![CDATA[PostcodeGridRef]]></Title>
          <LegendURL width="18" height="18">
            <Format>image/png</Format>
            <OnlineResource xlink:href="https://maps.data.gov.scot:443/arcgis/services/NRS/SPD/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=PostcodeGridRef" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
          </LegendURL>
        </Style>
        <MaxScaleDenominator>9449.404762</MaxScaleDenominator>
      </Layer>
    </Layer>
  </Capability>
</WMS_Capabilities>
