ps_elevation_google: Add Z column to sfc based on google maps

View source: R/elevation.R

ps_elevation_googleR Documentation

Add Z column to sfc based on google maps

Description

Add Z column to sfc based on google maps

Usage

ps_elevation_google(
  x,
  sfc_name = ps_active_sfc_name(x),
  Z = "Z",
  key = Sys.getenv("GOOGLE_MAPS_ELEVATION_API_KEY")
)

Arguments

x

The sf object.

sfc_name

A string of the sfc column name.

Z

A string of the name of the Z coordinate.

key

The string of the google maps elevation api key.

Value

The sf object with a Z column of the elevation in metres.


poissonconsulting/poisspatial documentation built on Nov. 9, 2023, 10:09 a.m.