Description Usage Arguments Value Examples
View source: R/get_heightmap.R
Load an elevation map from file
1 | load_heightmap(filename)
|
filename |
The path to the .tif file to import as an elevation map. |
A matrix of elevations for use with further mapping utilities.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
bbox <- get_centroid_bounding_box(c(
"lat" = 44.121268,
"lng" = -73.903734
),
distance = 10
)
heightmap_file <- tempfile("heightmap_file", fileext = ".tif")
get_heightmap(bbox, save.tif = TRUE, filename = heightmap_file)
heightmap <- load_heightmap(heightmap_file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.