Description Usage Arguments Value Examples
View source: R/Polygon_Json_Creator.R
Takes an SF object with polygon data and coverts it to a ESRI format json string
1 | Polygon_Json_Creator(boundary, geometry = "geometry", wkid = "4326")
|
boundary |
is expected to be a SF object with boundary data |
geometry |
is expected to be a string with the field name containing the geometry data |
wkid |
a text string indicating the well know id to be used. |
returns a json string
1 2 3 4 | library(sf)
nc <- st_read( system.file("shape/nc.shp", package="sf"))
json <- esriformatr::Polygon_Json_Creator(nc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.