Learn R Programming

elevatr (version 0.99.0)

get_aws_points: Get point elevation data from the AWS Terrain Tiles

Description

Function for accessing elevation data from AWS and extracting the elevations

Usage

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

Value

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

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