geolinecompare: geolinecompare

Description Usage Arguments Value Examples

View source: R/geolinecompare.R

Description

This function takes a LINESTRING simple feature in WGS84 and creates its copy in an equirectangular projection as if the ellipsoidal coordinates are treated as metrics and not as spherical. It returns a list as s3 class geolinecompare

Usage

1
geolinecompare(sfline_wgs84)

Arguments

sfline_wgs84

a LINESTRING simple feature in WGS84

Value

object of class geolinecompare

Examples

1
2
3
4
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)
geolinecompare <- geolinecompare(random_line)

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