Description Usage Arguments Details Value Examples
checkContour
1 | checkContour(contourSp, step, refPoint, minSizeNG = 0.001)
|
contourSp |
SpatialPolygons corresponding to closed contour line |
step |
grid resolution |
refPoint |
referene point |
minSizeNG |
zone area threshold under which a zone is not admissible |
check admissibility for contour line: surface >minSizeNG and refPoint close enough
Null if contour is not admissible or a list with components
SpatialPolygons corresponding to admissible contour
polyBuff
SpatialPolygons corresponding to gBuffer around admissible contour
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.