| rewind | R Documentation |
rewind
rewind(x, outer = TRUE)
x |
A geojson object, either as list, character string, or json class |
outer |
(logical) counterclockwise ( |
ported from geojson-rewind JS library at
https://github.com/mapbox/geojson-rewind
a geojson object, as json/character class
# character strings
x <- '{
"type":"Polygon",
"coordinates":[
[[100.0,0.0],[100.0,1.0],[101.0,1.0],[101.0,0.0],[100.0,0.0]]
]
}'
rewind(x)
rewind(x, outer = FALSE)
# json
library(jsonlite)
rewind(toJSON(fromJSON(x), auto_unbox = TRUE))
# list
rewind(fromJSON(x, FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.