geolinecompare_diff: geolinecompare_diff

Description Usage Arguments Value Examples

View source: R/geolinecompare_diff.R

Description

This function calculates the length difference between a sf LINESTRING on WGS84 and the equirectangular projection

Usage

1

Arguments

x

object of class geolinecompare

Value

length in meter

Examples

1
2
3
4
5
random_matrix <- matrix(c(runif(30, -90, 90), runif(30, -180, 180)), nrow=10, ncol=2)
random_line <- sf::st_linestring(random_matrix)
random_line <- sf::st_sfc(random_line, crs = 4326)
random_line_comp <- geolinecompare(random_line)
geolinecompare_diff(random_line_comp)

lorenzomorning/plotsphere documentation built on Dec. 21, 2021, 11:48 a.m.