get_aws_points function

Get point elevation data from the AWS Terrain Tiles

Get point elevation data from the AWS Terrain Tiles

Function for accessing elevation data from AWS and extracting the elevations

get_aws_points( locations, z = 5, units = c("meters", "feet"), verbose = TRUE, ... )

Arguments

  • locations: 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.
  • z: 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://github.com/tilezen/joerd/blob/master/docs/data-sources.md#what-is-the-ground-resolution. default value is 5 is supplied.
  • units: Character string of either meters or feet. Conversions for 'aws' are handled in R as the AWS terrain tiles are served in meters.
  • verbose: Report back messages.
  • ...: Arguments to be passed to get_elev_raster

Returns

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

  • Maintainer: Jeffrey Hollister
  • License: MIT + file LICENSE
  • Last published: 2023-09-12