Description Usage Arguments Details Value Examples
extensionLine
1 | extensionLine(contourL = NULL, step = NULL, bdSP, superLines)
|
contourL |
contour line |
step |
grid step as returned by calStep |
bdSP |
list, contains x and y coordinates of map boundaries |
superLines |
object returned by superLines(bdSP) |
closes contour lines by extending them to their interesection with the map border
a list
1 2 3 4 5 6 7 8 9 10 | data(mapTest)
step=mapTest$step
xsize=mapTest$xsize
ysize=mapTest$ysize
cL=contourLines(seq(step, xsize-step, by=step),seq(step, ysize-step, by=step),
mapTest$krigGrid, levels = c(5,7))
plot(mapTest$boundary,type="l",col="red")
lines(cL[[1]])#contour line is not closed
lines(geozoning:::extensionLine(cL[[1]],step,sp::SpatialPoints(mapTest$boundary),
geozoning:::superLines(mapTest$boundary)),col="red") #contour line is closed
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.