SpatialLines {sp} | R Documentation |
create objects of class SpatialLines or SpatialLinesDataFrame
Description
create objects of class SpatialLines
or
SpatialLinesDataFrame
from
lists of Lines
objects and data.frames; extract list od Lines from a SpatialLines object
Usage
SpatialLines(LinesList, proj4string = CRS(as.character(NA)))
SpatialLinesDataFrame(sl, data, match.ID = TRUE)
as.SpatialLines.SLDF(SLDF)
getSpatialLinesMidPoints(SL)
LineLength(cc, longlat = FALSE, sum = TRUE)
LinesLength(Ls, longlat = FALSE)
SpatialLinesLengths(SL, longlat)
Arguments
LinesList |
list with objects of class Lines-class |
proj4string |
Object of class |
sl , SL |
object of class SpatialLines-class |
data |
object of class |
match.ID |
logical: (default TRUE): match SpatialLines member
Lines ID slot values with data.frame row names, and re-order the
data frame rows if necessary; if character: indicates the column
in |
SLDF |
SpatialLinesDataFrame object |
Ls |
Object of class |
cc |
Object of class |
longlat |
if FALSE, Euclidean distance, if TRUE Great Circle distance in kilometers |
sum |
logical; if |
Value
SpatialLines
returns object of class SpatialLines
;
SpatialLinesDataFrame
returns object of class SpatialLinesDataFrame
getSpatialLinesMidPoints
returns an object of class SpatialPoints
,each point containing the (weighted) mean of the lines elements; weighted in the sense that mean is called twice.