Polygon_Json_Creator: Polygon_Json_Creator

Description Usage Arguments Value Examples

View source: R/Polygon_Json_Creator.R

Description

Takes an SF object with polygon data and coverts it to a ESRI format json string

Usage

1
Polygon_Json_Creator(boundary, geometry = "geometry", wkid = "4326")

Arguments

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.

Value

returns a json string

Examples

1
2
3
4
library(sf)
nc <- st_read( system.file("shape/nc.shp", package="sf"))

json <- esriformatr::Polygon_Json_Creator(nc)

Woracle/esriformatr documentation built on Aug. 30, 2021, 2:25 p.m.