Get DEM value for a given latitude and longitude
Source:R/get_raster_layer_value.R
get_dem_value.Rd
This function uses the LINZ data service to obtain the elevation value for a
given latitude and longitude. The function get_raster_layer_value()
is
used to obtain the value for the DEM layer (ID: 51768).
Arguments
- lat
numeric; Latitude
- lon
numeric; Longitude
- key
character; LINZ API key. This can be set as an environment variable using the
add_linz_key()
function or passed as a character. See?add_linz_key
for more information with setting up the API key.