sp2PSLG | R Documentation |
sp2PSLG
Convert SpatialLines or SpatialPolygons a Planar Straight Line Graph object
sp2PSLG
sp2PSLG(sp)
sp |
SpatialLines or SpatialPolygons |
pslg class
library(rgeos)
sl = readWKT("MULTIPOLYGON(((1 1,5 1,5 5,1 5,1 1),(2 2,2 3,3 3,3 2,2 2)))")
x = sp2PSLG(sl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.