Learn R Programming

geozoning (version 1.0.0)

interZoneC: interZoneC

Description

interZoneC

Usage

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

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

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.

Examples

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab