Skip to content

Commit fa92a96

Browse files
committed
Update buildings to April 2023
1 parent 1a907f8 commit fa92a96

3 files changed

Lines changed: 43434 additions & 43087 deletions

File tree

buildings/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</tr>
3131
<tr>
3232
<td>Temporal coverage</td>
33-
<td>October 2019</td>
33+
<td>April 2023</td>
3434
</tr>
3535
<tr>
3636
<td>Update frequency</td>
@@ -54,7 +54,7 @@
5454
</tr>
5555
<tr>
5656
<td>Last updated</td>
57-
<td>April 2020</td>
57+
<td>June 2023</td>
5858
</tr>
5959
<tr>
6060
<td>Notes</td>

buildings/pre-processing.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ library(tidyverse) ; library(sf)
99

1010
# load data ---------------------------
1111
buildings <- st_read("OS OpenMap Local (ESRI Shape File) SJ/data/SJ_Building.shp") %>%
12-
st_transform(27700)
12+
st_transform(4326)
1313

1414
# UK Local Authority Districts
1515
# Source: ONS Open Geography Portal
16-
# URL: https://geoportal.statistics.gov.uk/datasets/local-authority-districts-december-2019-boundaries-uk-bfc
17-
trafford <- st_read("https://ons-inspire.esriuk.com/arcgis/rest/services/Administrative_Boundaries/Local_Authority_Districts_December_2019_Boundaries_UK_BFC/MapServer/0/query?where=lad19cd%20%3D%20'E08000009'&outFields=lad19cd,lad19nm&outSR=27700&f=geojson") %>%
18-
rename(area_code = lad19cd, area_name = lad19nm)
16+
# URL: https://geoportal.statistics.gov.uk/datasets/ons::local-authority-districts-may-2023-uk-bfc
17+
18+
trafford <- st_read("https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_May_2023_UK_BFC/FeatureServer/0/query?where=LAD23NM%20%3D%20'TRAFFORD'&outFields=LAD23CD,LAD23NM&outSR=4326&f=json") %>%
19+
rename(area_code = LAD23CD, area_name = LAD23NM)
1920

2021
# intersect data ---------------------------
2122
trafford_buildings <- st_intersection(buildings, trafford)

0 commit comments

Comments
 (0)