testInterSpe: testInterSpe

Description Usage Arguments Details Value Examples

Description

testInterSpe

Usage

1
testInterSpe(Z, i1, i2)

Arguments

Z

zoning geometry (list of SpatialPolygons)

i1

first zone number

i2

second zone number

Details

checks if 2 zones in a zoning share somme common part (using gOverlaps)

Value

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

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(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))

hazaeljones/geozoning documentation built on May 30, 2019, 3:06 p.m.