diff --git a/getBoundaryData.R b/getBoundaryData.R index 9dc90608b90106330a14de24c1926e5944274845..52dfdce2edd04c0a0db469484111335d6c6f5bf8 100644 --- a/getBoundaryData.R +++ b/getBoundaryData.R @@ -15,7 +15,16 @@ geo_query <- "https://ons-inspire.esriuk.com/arcgis/rest/services/Administrative message("Loading LA geometry from ONS Open Geography API") la_sf_data <- sf::st_read(geo_query) head(la_sf_data) + +# save it out for re-use +# two possible locations - repo or UoS resource drive + +# Repo outf <- path.expand(paste0(here::here("data", "boundaries", "la_solent.shp"))) + +# UoS resource drive +outf <- paste0(outPath, "LA_solent_2018.shp") + sf::write_sf(la_sf_data, outf) # MSOA boundaries for the Solent region ----