Learn R Programming

geozoning (version 1.0.0)

lineToSp: lineToSp

Description

lineToSp

Usage

lineToSp(lin)

Arguments

lin

list with x and y line coordinates

Value

a SpatialPolygons

Details

transform closed 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)
lin=data.frame(x=cL[[8]]$x,y=cL[[8]]$y)
sp=geozoning:::lineToSp(lin)
# }

Run the code above in your browser using DataLab