| to_wkt | R Documentation |
To WKT
to_wkt(x, recursive = FALSE)
x |
An object of class |
recursive |
(logical) Whether to recursively drill down and split
all polygons that would result in |
library("rgeos")
wkt <- "POLYGON((-180 -20, -140 55, 10 0, -140 -60, -180 -20))"
poly <- readWKT(wkt)
polys <- chop(x = poly)
to_wkt(polys)
to_wkt(polys)[[2]]
to_wkt(polys, recursive = FALSE)
to_wkt(polys, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.