polyToSp: polyToSp

Description Usage Arguments Details Value Examples

Description

polyToSp

Usage

1
polyToSp(Z, iZ, k)

Arguments

Z

zoning geometry (list of SpatialPolygons)

iZ

zone number

k

polygon number

Details

transforms kth polygon of zone into SpatialPolygons

Value

a SpatialPolygons

Examples

1
2
3
4
5
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)

geozoning documentation built on May 2, 2019, 9:43 a.m.