Learn R Programming

geozoning (version 1.0.0)

polyToSp: polyToSp

Description

polyToSp

Usage

polyToSp(Z, iZ, k)

Arguments

Z

zoning geometry (list of SpatialPolygons)

iZ

zone number

k

polygon number

Value

a SpatialPolygons

Details

transforms kth polygon of zone into SpatialPolygons

Examples

Run this code
# NOT RUN {
ZK=initialZoning(qProb=c(0.4,0.2,0.7),mapTest)
Z=ZK$resZ$zonePolygone
sph=geozoning:::polyToSp(Z,5,2)
plotZ(Z)
sp::plot(sph,type="l",col="blue",add=TRUE)
# }

Run the code above in your browser using DataLab