Description Usage Arguments Details Value Author(s) See Also Examples
Query https://open-elevation.com server to get elevation for a given longitude and latitude from the SRTM version 4.1 dataset at spatial resolution: 30 Arc-Seconds equivalent to 250 meters.
1 |
lng |
Latitude. Vector of Geographic coordinates (e.g. 14.136882) |
lat |
Longitude. Vector of Geographic coordinates (e.g. 47.510895) |
x |
Object of class |
sp |
If |
Nothing here yet.
A list
or SpatialPointsDataFrame
with CRS("+init=epsg:4326")
.
Roland Kaiser
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # single latitude longitude pair
r <- elevation(lng = 13, lat = 47, sp = FALSE)
class(r)
print(r)
# latitude longitude duplet
r <- elevation(lng = c(13,14), lat = c(47,48), sp = FALSE)
class(r)
print(r)
# return SpatialPointsDataFrame
r <- elevation(lng = c(13,14), lat = c(47,48), sp = TRUE)
print(r)
# use Spatial object as argumnet 'x'
r <- elevation(x = r)
print(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.