R/polylineLength.R

Defines functions polylineLength

Documented in polylineLength

polylineLength <- function(xy) {
  # purpose
  #   obtain the length of a polyline given as a 2-col matrix of coordinates
  chai <- polylineChainage(xy)
  l <- max(chai)
}

Try the SpatialGraph package in your browser

Any scripts or data that you put into this service are public.

SpatialGraph documentation built on Sept. 28, 2023, 5:08 p.m.