Learn R Programming

geozoning (version 1.0.0)

polyToSp2: polyToSp2

Description

polyToSp2

Usage

polyToSp2(p)

Arguments

p

polygon

Value

a SpatialPolygons

Details

transforms polygon into SpatialPolygons

Examples

Run this code
# NOT RUN {
ZK=initialZoning(qProb=c(0.4,0.2,0.7),mapTest)
Z=ZK$resZ$zonePolygone
sp=Z[[5]]
P1=geozoning:::getPolySp(sp,1)
sph=polyToSp2(P1)
plotZ(Z)
sp::plot(sph,col="blue",lwd=2,add=TRUE)
# }

Run the code above in your browser using DataLab