Load an elevation map from file

load_heightmap(filename)

Arguments

filename

The path to the .tif file to import as an elevation map.

Value

A matrix of elevations for use with further mapping utilities.

Examples

if (FALSE) { 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) }