sp2PSLG: Convert SpatialLines or SpatialPolygons a Planar Straight...

Description Usage Arguments Value Examples

View source: R/Func_Misc.R

Description

Convert SpatialLines or SpatialPolygons a Planar Straight Line Graph object sp2PSLG

Usage

1
sp2PSLG(sp)

Arguments

sp

SpatialLines or SpatialPolygons

Value

pslg class

Examples

1
2
3
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)),((6 3,9 2,9 4,6 3)))")
x = sp2PSLG(sl)

shulele/PIHMgisR documentation built on Jan. 27, 2020, 7:51 a.m.