ropensci / geojsonio

Convert many data formats to & from GeoJSON & TopoJSON
https://docs.ropensci.org/geojsonio
Other
151 stars 59 forks source link

Maybe use sf instead of sp within topojson_read? #144

Closed sckott closed 5 years ago

sckott commented 5 years ago

via https://stackoverflow.com/q/54413792/1091766

sckott commented 5 years ago
remotes::install_github("ropensci/geojsonio@topojson_read-sp2sf")
library(geojsonio)
r15 <- "https://raw.githubusercontent.com/pachamaltese/chilemaps/master/data_topojson/simplified_provinces/new/r15.topojson"
out <- topojson_read(r15)
x <- topojson_json(out)
library(jqr)
jq(x, "objects[] | objects.foo.geometries[].properties.province_id")
#> [
#>    "151",
#>    "152"
#> ]
sckott commented 5 years ago

thoughts @ateucher ?

sckott commented 5 years ago

suppress GDAL messages in test suite for this fxn. see GDAL env vars

github-actions[bot] commented 2 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.