Function for accessing elevation data from AWS and extracting the elevations
get_aws_points(locations, z = 5, units = c("meters", "feet"), ...)
Either a data.frame
with x (e.g. longitude) as the
first column and y (e.g. latitude) as the second column, a
SpatialPoints
/SpatialPointsDataFrame
, or a
sf
POINT
or MULTIPOINT
object.
Elevation for these points will be returned in the
originally supplied class.
The zoom level to return. The zoom ranges from 1 to 14. Resolution of the resultant raster is determined by the zoom and latitude. For details on zoom and resolution see the documentation from Mapzen at https://mapzen.com/documentation/terrain-tiles/data-sources/#what-is-the-ground-resolution. default value is 5 is supplied.
Character string of either meters or feet. Conversions for 'aws' are handled in R as the AWS terrain tiles are served in meters.
Arguments to be passed to get_elev_raster
a list with a SpatialPointsDataFrame or sf POINT or MULTIPOINT object with elevation added to the data slot and a character of the elevation units