powered by
holeSp
holeSp(sp)
SpatialPolygons
the number of holes within sp
number of holes in SpatialPolygons
# NOT RUN { ZK=initialZoning(qProb=c(0.4,0.2,0.7),mapTest) Z=ZK$resZ$zonePolygone holeSp(Z[[5]]) #zone 5 has 1 hole # }
Run the code above in your browser using DataLab