Learn R Programming

geozoning (version 1.0.0)

zoneQ: zoneQ

Description

zoneQ

Usage

zoneQ(contourSp, iC, iE, Z, K, simplitol = 0.001)

Arguments

contourSp

contour line transformed into SpatialPolygons

iC

zone to grow

iE

englobing zone

Z

zoning geometry (list of SpatialPolygons)

K

zoning object (such as returned by calNei function)

simplitol

tolerance for spatial polygons geometry simplification

Value

a zoning geometry updated with the grown zone(list of SpatialPolygons)

Details

called by optiGrow,replaces the current zone by a bigger one

Examples

Run this code
# NOT RUN {
data(mapTest)
qProb=c(0.3,0.5)
criti = correctionTree(qProb,mapTest)
K = criti$zk[[2]][[1]]
Z=K$zonePolygone
plotZ(Z)
iC=4
iE=detZoneEng(iC,Z,K$zoneNModif)
envel=calFrame(iC,Z,K$zoneNModif)
sp::plot(envel,add=TRUE,col="blue")
Qseq = genQseq(qProb,K,mapTest,iC,iE)
resi = geozoning:::findCinZ(iC,Z,K,mapTest,Qseq[5],envel)
Zopti=geozoning:::zoneQ(resi$contourSp,iC,iE,Z,K)
plotZ(Zopti)
# }

Run the code above in your browser using DataLab