Open mem48 opened 3 years ago
Thanks for the report @mem48. I think the issue is that jts0407 is an LA table. We could probably improve the documentation, PRs welcome: https://itsleeds.github.io/jts/reference/get_jts_data.html
Does this solve the problem?
remotes::install_github("itsleeds/jts")
#> Using github PAT from envvar GITHUB_PAT
#> Skipping install of 'jts' from a github remote, the SHA1 (561ad864) has not changed since last install.
#> Use `force = TRUE` to force installation
library(jts)
library(sf)
#> Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 7.0.0
j = get_jts_data("jts0507", year = 2017)
#> 134 files found in path
nrow(j)
#> [1] 32844
j = get_jts_data("jts0507", year = 2017, output_format = "sf")
#> 134 files found in path
#> Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, : GDAL
#> Error 1: HTTP error code : 404
#> Error: Cannot open "https://opendata.arcgis.com/datasets/42f3aa4ca58742e8a55064a213fb27c9_0.geojson"; The file doesn't seem to exist.
Created on 2021-01-29 by the reprex package (v0.3.0)
get_jts_data("jts0407", year = 2017, type = "lsoa")
returns LA rather than LSOA data