| 1 |
\name{SpatialLines} |
| 2 |
\alias{SpatialLines} |
| 3 |
\alias{SpatialLinesDataFrame} |
| 4 |
\alias{as.SpatialLines.SLDF} |
| 5 |
\alias{getSpatialLinesMidPoints} |
| 6 |
\alias{LineLength} |
| 7 |
\alias{LinesLength} |
| 8 |
\alias{SpatialLinesLengths} |
| 9 |
\title{ create objects of class SpatialLines or SpatialLinesDataFrame} |
| 10 |
\description{ create objects of class \code{SpatialLines} or |
| 11 |
\code{SpatialLinesDataFrame} from |
| 12 |
lists of \code{Lines} objects and data.frames; extract list od Lines from a SpatialLines object} |
| 13 |
\usage{ |
| 14 |
SpatialLines(LinesList, proj4string = CRS(as.character(NA))) |
| 15 |
SpatialLinesDataFrame(sl, data, match.ID = TRUE) |
| 16 |
as.SpatialLines.SLDF(SLDF) |
| 17 |
getSpatialLinesMidPoints(SL) |
| 18 |
LineLength(cc, longlat = FALSE, sum = TRUE) |
| 19 |
LinesLength(Ls, longlat = FALSE) |
| 20 |
SpatialLinesLengths(SL, longlat) |
| 21 |
} |
| 22 |
\arguments{ |
| 23 |
\item{LinesList}{ list with objects of class \link{Lines-class}} |
| 24 |
\item{proj4string}{Object of class \code{"CRS"}; holding a valid proj4 string} |
| 25 |
|
| 26 |
\item{sl, SL}{ object of class \link{SpatialLines-class}} |
| 27 |
\item{data}{ object of class \code{data.frame}; the number of rows in \code{data} |
| 28 |
should equal the number of \code{Lines} elements in \code{sl}} |
| 29 |
\item{match.ID}{logical: (default TRUE): match SpatialLines member |
| 30 |
Lines ID slot values with data.frame row names, and re-order the |
| 31 |
data frame rows if necessary; if character: indicates the column |
| 32 |
in \code{data} with Lines IDs to match} |
| 33 |
\item{SLDF}{SpatialLinesDataFrame object} |
| 34 |
\item{Ls}{Object of class \code{Lines}} |
| 35 |
\item{cc}{Object of class \code{Line}, or two-column matrix with points} |
| 36 |
\item{longlat}{if FALSE, Euclidean distance, if TRUE Great Circle distance in kilometers} |
| 37 |
\item{sum}{logical; if \code{TRUE} return scalar length of sum of |
| 38 |
segments in Line, if \code{FALSE} return vector with segment lengths} |
| 39 |
} |
| 40 |
\value{ |
| 41 |
\code{SpatialLines} returns object of class \code{SpatialLines}; |
| 42 |
\code{SpatialLinesDataFrame} returns object of class \code{SpatialLinesDataFrame} |
| 43 |
\code{getSpatialLinesMidPoints} returns an object of class \code{SpatialPoints},each point containing the (weighted) mean of the lines elements; weighted in the sense that mean is called twice. |
| 44 |
} |
| 45 |
\seealso{ \link{SpatialLines-class} } |
| 46 |
|
| 47 |
\keyword{manip} |