Access Elevation Data from Various APIs

Several web services are available that provide access to elevation data. This package provides access to several of those services and returns elevation data either as a SpatialPointsDataFrame from point elevation services or as a raster object from raster elevation services. Currently, the package supports access to the Amazon Web Services Terrain Tiles < https://aws.amazon.com/public-datasets/terrain/> and the USGS Elevation Point Query Service < http://ned.usgs.gov/epqs/>.


Travis Appveyor CRAN RStudio mirror downloads Coverage Status DOI An R package for accessing elevation data from various sources

The elevatr package currently provides access to elevation data from AWS Open Data Terrain Tiles for raster digital elevation models. For point elevation data,the USGS Elevation Point Query Service) may be used or the point elevations may be derived from the AWS Tiles. Additional elevation data sources may be added.

Currently this package includes just two primary functions to access elevation web services:

  • get_elev_point(): Get point elevations using the USGS Elevation Point Query Service (for the US Only) or using the AWS Terrian Tiles (global). This will accept a data frame of x (long) and y (lat), a SpatialPoints/SpatialPointsDataFame, or a Simple Features object as input. A SpatialPointsDataFrame or Simple Features object is returned, depending on the class of the input locations.
  • get_elev_raster(): Get elevation data as a raster (e.g. a Digital Elevation Model) from the AWS Open Data Terrain Tiles. Other sources may be added later. This will accept a data frame of of x (long) and y (lat) or any sp or raster object as input and will return a raster object of the elevation tiles that cover the bounding box of the input spatial data.

Installation

Version 0.2.0 of this package is currently available from CRAN and may be installed by:

install.packages("elevatr")

The development version (this repo) may installed with devtools:

library(devtools)
install_github("jhollist/elevatr")

Attribution

Mapzen terrain tiles (which supply the AWS source) contain 3DEP, SRTM, and GMTED2010 content courtesy of the U.S. Geological Survey and ETOPO1 content courtesy of U.S. National Oceanic and Atmospheric Administration.

Repositories

The source code for this repository is maintained at https://github.com/jhollist/elevatr which is also mirrored at https://github.com/usepa/elevatr

EPA Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("elevatr")

0.2.0 by Jeffrey Hollister, 6 months ago


https://www.github.com/jhollist/elevatr


Report a bug at https://github.com/jhollist/elevatr/issues


Browse source code at https://github.com/cran/elevatr


Authors: Jeffrey Hollister [aut, cre] , Tarak Shah [ctb]


Documentation:   PDF Manual  


CC0 license


Imports sp, raster, httr, jsonlite, progress, sf

Suggests testthat, knitr, rmarkdown, formatR, rgdal


See at CRAN