lengthLine: Length of lines

Description Usage Arguments Value See Also Examples

View source: R/lengthLine.R

Description

Compute the length of lines

Usage

1

Arguments

line

longitude/latitude of line as a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialLines* or SpatialPolygons* object

Value

length (in meters) for each line

See Also

For planar coordinates, see gLength

Examples

1
2
line <- rbind(c(-180,-20), c(-150,-10), c(-140,55), c(10, 0), c(-140,-60))
d <- lengthLine(line)

geosphere documentation built on May 2, 2019, 5:16 p.m.