Learn R Programming

geozoning (version 1.0.0)

testInterSpeZ1: testInterSpeZ1

Description

testInterSpeZ1

Usage

testInterSpeZ1(Z, iZ)

Arguments

Z

zoning geometry (list of SpatialPolygons)

iZ

zone number

Value

a Logical value, TRUE if there is an intersection, FALSE if not.

Details

checks, within a zoning, if a given zone intersects with any other zone not within it

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(Z)
Z58=rgeos::gConvexHull(rgeos::gUnion(Z[[8]],Z[[5]]))
Z[[length(Z)+1]]=Z58 # add new zone to zoning
plotZ(Z)
geozoning:::testInterSpe(Z,6,length(Z))
# }

Run the code above in your browser using DataLab