sfc_geojson | R Documentation |
Converts 'sfc' objects to GeoJSON
sfc_geojson(sfc, digits = NULL)
sfc |
simple feature collection object |
digits |
integer specifying the number of decimal places to round numeric coordinates.
numeric values are coorced using |
vector of GeoJSON
## Not run: library(sf) sf <- sf::st_sfc(list(sf::st_point(c(0,0)), sf::st_point(c(1,1)))) sfc_geojson(sf) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.