getPoly: getPoly

Description Usage Arguments Details Value Examples

Description

getPoly

Usage

1
getPoly(Z, iZ, k)

Arguments

Z

zoning geometry (list of SpatialPolygons)

iZ

current zone index

k

polygon number within current zone

Details

get the kth polygon of the current zone in zoning Z

Value

a polygon (object of class Polygon)

Examples

1
2
3
4
5
6
ZK=initialZoning(qProb=c(0.4,0.2,0.7),mapTest)
Z=ZK$resZ$zonePolygone
P1=getPoly(Z,5,1)
P2=getPoly(Z,5,2) # second polygon is a hole
plot(P1@coords,type="l")
lines(P2@coords,type="l",col="blue")

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