Description Usage Arguments Details Value Examples
interCB
1 2 |
co |
contour line |
step |
map grid resolution |
bd |
map boundary |
envel |
envelope |
disp |
info level (0-no info, 1- add lines to plot) |
generates SpatialPolygons object corresponding to intersection of contour with boundary, must be within SpatialPolygons given in envel argument
a SpatialPolygons
1 2 3 4 5 6 7 | data(mapTest)
pG=polyToSp2(sp::Polygon(mapTest$boundary)) #SpatialPolygons corresponding to map boundary
cL=contourAuto(list(),mapTest$step,mapTest$xsize,mapTest$ysize,
mapTest$krigGrid,c(5,7),mapTest$boundary)
ps = geozoning:::interCB(cL[[8]],mapTest$step,mapTest$boundary,pG)#envelope is the whole map
sp::plot(pG)
sp::plot(ps,col="red",add=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.