get_elevation: Get the elevation from a dataframe with longitude and...

Description Usage Arguments Value

View source: R/get_elevation.R

Description

This function loads a dataframe. It accepts an R object with unique asset identifier (default set as "AssetID"), longitude and latitude to calculate elevation.

Usage

1
2
3
4
5
6
7
8
get_elevation(
  x,
  AssetID = "AssetID",
  Longitude = "Longitude",
  Latitude = "Latitude",
  unit = "meters",
  src = "epqs"
)

Arguments

x

An R object or a dataframe

AssetID

An asset base containing the AssetID, Longitude and Latitude

Longitude

numerical string(s) consisting geographic coordinate specific to the east-west position of a point on the Earth's surface

Latitude

numerical string(s) consisting geographic coordinate specific to the north-south position of a point on the Earth's surface

unit

elevation unit in "meters" or "feet"

src

this selects which API to use. "epqs"is best for US only, "aws" for large number of points (>500)

Value

Returns the same dataframe with the addition of the "elevation" column


tayoso2/sfXtra documentation built on Dec. 23, 2021, 7:50 a.m.