read_geojson_str | R Documentation |
sf
objectLoad GeoJSON as sf
object
read_geojson_str(str, opts = list(), ..., json_opts = list())
read_geojson_file(filename, opts = list(), ..., json_opts = list())
str |
Single string containing GeoJSON |
opts |
Named list of GeoJSON-specific options. Usually created
with |
... |
Any extra named options override those in GeoJSON-specific options
- |
json_opts |
Named list of vanilla JSON options as used by |
filename |
Filename |
sf
object
geojson_file <- system.file("geojson-example.json", package = 'yyjsonr')
read_geojson_file(geojson_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.