load_heightmap: Load an elevation map from file

Description Usage Arguments Value Examples

View source: R/get_heightmap.R

Description

Load an elevation map from file

Usage

1
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

 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)

spacey documentation built on March 15, 2020, 1:07 a.m.