Learn R Programming

spacey (version 0.1.1)

load_heightmap: Load an elevation map from file

Description

Load an elevation map from file

Usage

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

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab