Calculate line length of line with geographic or projected CRS
Takes a line (represented in sf or sp classes) and returns a numeric value representing distance in meters.
geo_length(shp)
shp |
A spatial line object |
lib_versions <- sf::sf_extSoftVersion() lib_versions if (lib_versions[3] >= "6.3.1") { geo_length(routes_fast) geo_length(routes_fast_sf) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.