Usage
SpatialLines(LinesList, proj4string = CRS(as.character(NA)))
SpatialLinesDataFrame(sl, data, match.ID = TRUE)
as.SpatialLines.SLDF(SLDF)
getSLlinesSlot(SL)
getSLLinesIDSlots(SL)
getSpatialLinesMidPoints(SL)
LineLength(cc, longlat=FALSE, sum=TRUE)
LinesLength(Ls, longlat=FALSE)
SpatialLinesLengths(SL, longlat)
Arguments
proj4string
Object of class "CRS"
; holding a valid proj4 string
data
object of class data.frame
; the number of rows in data
should equal the number of Lines
elements in sl
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 data
with Lines IDs to match
SLDF
SpatialLinesDataFrame object
cc
Object of class Line
, or two-column matrix with points
longlat
if FALSE, Euclidean distance, if TRUE Great Circle distance in kilometers
sum
default return scalar length of sum of segments in Line, if FALSE, return vector of segment lengths