Learn R Programming

geozoning (version 1.0.0)

detZoneClose: detZoneClose

Description

detZoneClose

Usage

detZoneClose(iZ, Z, zoneN, distIsoZ = 0.075)

Arguments

iZ

zone number

Z

zoning geometry (list of SpatialPolygons)

zoneN

modified zone neighborhood Logical matrix (FALSE values on diagonal)

distIsoZ

threshold distance above which a zone is considered as isolated

Value

a list with components

InterZoneSpace

TRUE if zone is isolated, FALSE otherwise

zoneClose

indices of zones close to zone iZ, empty if zone is isolated

Details

determines zones that are close to current zone, but not neighbors (common border). Therefore embedded or englobing zones are excluded.

Examples

Run this code
# NOT RUN {
data(resZTest)
Z=resZTest$zonePolygone
zoneN=resZTest$zoneNModif
plotZ(Z)
detZoneClose(4,Z,zoneN) # zone 4 is close to zone 3
detZoneClose(6,Z,zoneN) # zone 6 is isolated (no zone at a distance smaller than 0.075).
# }

Run the code above in your browser using DataLab