interZoneC: interZoneC

Description Usage Arguments Details Value Examples

Description

interZoneC

Usage

1
interZoneC(Z, iC, iZC, closePt)

Arguments

Z

zoning geometry (list of SpatialPolygons)

iC

zone number

iZC

other zone number

closePt

SpatialPoints object in other zone used as circle center

Details

finds two intersection points of a circle with a zone. The circle radius is chosen so that it will intersect both zones given as arguments.

Value

a list with components

spi

Two SpatialPoints to be used for the junction of the two zones

ord

Order in which to use the points

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(mapTest)
qProb=c(0.2,0.5)
ZK = initialZoning(qProb, mapTest)
K=ZK$resZ
Z=K$zonePolygone
plotZ(K$zonePolygone) # zoning
closePt = geozoning:::getClosePt(Z,6,8)
points(closePt,col="red")
res  = geozoning:::interZoneC(Z,6,8,closePt)
points(res$spi,col="red")

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