ScotGovAnalysis / opendatascot

An R package to pull data from statistics.gov.scot into R
https://scotgovanalysis.github.io/opendatascot/
MIT License
47 stars 6 forks source link

Missing areas using get_spatial_layer #112

Closed AlexStead closed 1 year ago

AlexStead commented 1 year ago

Hi,

I'm having an issue using the get_spatial_layer function to download data on the boundaries of census geographies. The function appears to work fine when I use it to download population-weighted centroids, but when I download boundary data on data zones or intermediate zones there are 1,000 or 500 missing, respectively. Here are the commands I am using:

DZ11 <- get_spatial_layer("https://maps.gov.scot/server/rest/services/ScotGov/StatisticalUnits/MapServer/2")
IZ11 <- get_spatial_layer("https://maps.gov.scot/server/rest/services/ScotGov/StatisticalUnits/MapServer/6")

If I then ggplot these data, we can see the missing DZs and IZs quite clearly - see the attached jpg files.

DZ_boundaries IZ_boundaries

GordonBryden commented 1 year ago

Hi Alex, I'm afraid get_spatial_layer is not from this library, and I don't have any control over the API or databases you are pulling them from. You will need to contact those teams instead.

AlexStead commented 1 year ago

Oops, my mistake! For some reason I was sure it was from the opendatascot package!