Learn R Programming

geozoning (version 1.0.0)

contourToSpp: contourToSpp

Description

contourToSpp

Usage

contourToSpp(co, step)

Arguments

co

contour line (list with contour level and x,y coordinates

step

grid resolution

Value

a list with components

sp

SpatialPolygons corresponding to contour line

contour

SpatialLines corresponding to contour line

polyBuff

SpatialPolygons corresponding to buffer around contour line

surface

SpatialPolygons area

Details

transform contour line into SpatialPolygons

Examples

Run this code
# NOT RUN {
data(mapTest)
cL=list()
cL=contourAuto(cL,mapTest$step,mapTest$xsize,mapTest$ysize,mapTest$krigGrid,c(5,7),mapTest$boundary)
contourToSpp(cL[[8]],0.1)
# }

Run the code above in your browser using DataLab