checkContour: checkContour

Description Usage Arguments Details Value Examples

Description

checkContour

Usage

1
checkContour(contourSp, step, refPoint, minSizeNG = 0.001)

Arguments

contourSp

SpatialPolygons corresponding to closed contour line

step

grid resolution

refPoint

referene point

minSizeNG

zone area threshold under which a zone is not admissible

Details

check admissibility for contour line: surface >minSizeNG and refPoint close enough

Value

Null if contour is not admissible or a list with components

contourSp

SpatialPolygons corresponding to admissible contour

polyBuff

SpatialPolygons corresponding to gBuffer around admissible contour

Examples

1
2
3
4
5
6
7
8
9
data(mapTest)
cL=contourAuto(list(),mapTest$step,mapTest$xsize,mapTest$ysize,
   mapTest$krigGrid,c(5,7),mapTest$boundary)
pG=polyToSp2(sp::Polygon(mapTest$boundary)) #SpatialPolygons corresponding to map boundary
rgeos::plot(pG)
sp8 = contourToSpp(cL[[8]],0.1)$sp
refPoint = rgeos::gCentroid(sp8)
resp=checkContour(sp8,mapTest$step,refPoint)
rgeos::plot(resp$contourSp,col="red",add=TRUE)

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