Package: terrainr 0.7.5.9000

Michael Mahoney

terrainr: Landscape Visualizations in R and 'Unity'

Functions for the retrieval, manipulation, and visualization of 'geospatial' data, with an aim towards producing '3D' landscape visualizations in the 'Unity' '3D' rendering engine. Functions are also provided for retrieving elevation data and base map tiles from the 'USGS' National Map <https://apps.nationalmap.gov/services/>.

Authors:Michael Mahoney [aut, cre], Mike Johnson [rev], Sydney Foks [rev]

terrainr_0.7.5.9000.tar.gz
terrainr_0.7.5.9000.zip(r-4.6)terrainr_0.7.5.9000.zip(r-4.5)terrainr_0.7.5.9000.zip(r-4.4)
terrainr_0.7.5.9000.tgz(r-4.6-any)terrainr_0.7.5.9000.tgz(r-4.5-any)
terrainr_0.7.5.9000.tar.gz(r-4.6-any)terrainr_0.7.5.9000.tar.gz(r-4.5-any)
terrainr_0.7.5.9000.tgz(r-4.5-emscripten)
terrainr.pdf |terrainr.html
terrainr/json (API)
NEWS

# Install 'terrainr' in R:
install.packages('terrainr', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #416

Bug tracker:https://github.com/ropensci/terrainr/issues

Pkgdown/docs site:https://docs.ropensci.org

On CRAN:

Conda:

datasetsdemsmapmap-tilesmappingnational-mapnhdorthoimagerypeer-reviewedprogressrretrieve-dataterrainrunityunity-rendering-engineusgs

7.15 score 74 stars 95 scripts 413 downloads 16 exports 43 dependencies

Last updated from:333db1ceed (on main). Checks:8 OK, 2 ERROR. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK149
pkgdown docsOK169
source / vignettesOK795
linux-release-x86_64OK704
macos-devel-arm64ERROR258
macos-release-arm64ERROR283
windows-develOK90
windows-releaseOK111
windows-oldrelOK501
wasm-releaseOK850

Exports:add_bbox_buffercombine_overlaysgeom_spatial_rgbgeoreference_overlayget_tileshit_national_map_apimake_manifestmake_unitymerge_rastersraster_to_raw_tilesset_bbox_side_lengthstat_spatial_rgbStatSpatialRGBtransform_elevationtransform_overlayvector_to_overlay

Dependencies:askpassbase64encclassclassIntclicpp11curlDBIe1071farverggplot2gluegtablehttrisobandjsonliteKernSmoothlabelinglifecyclemagickmagrittrMASSmimeopensslpngproceduralnamesproxyR6RColorBrewerRcpprlangs2S7scalessfsysterraunifirunitsvctrsviridisLitewithrwk

A gentle introduction to terrainr

Rendered fromoverview.Rmdusingknitr::rmarkdownon Dec 16 2025.

Last update: 2021-07-28
Started: 2020-10-09

Importing terrainr tiles into Unity

Rendered fromunity_instructions.Rmdusingknitr::rmarkdownon Dec 16 2025.

Last update: 2022-05-04
Started: 2020-10-13

Readme and manuals

Help Manual

Help pageTopics
Add a uniform buffer around a bounding box for geographic coordinatesaddbuff add_bbox_buffer add_bbox_buffer.Raster add_bbox_buffer.sf add_bbox_buffer.SpatRaster set_bbox_side_length set_bbox_side_length.Raster set_bbox_side_length.sf set_bbox_side_length.SpatRaster
Combine multiple image overlays into a single filecombine_overlays
Plot RGB rasters in ggplot2geom_spatial_rgb StatSpatialRGB stat_spatial_rgb
Georeference image overlays based on a reference rastergeoreference_overlay
A user-friendly way to get USGS National Map data tiles for an areaget_tiles get_tiles.list get_tiles.Raster get_tiles.sf get_tiles.sfc get_tiles.SpatRaster
Transform rasters and write manifest file for import into Unitymake_manifest transform_elevation transform_overlay
Initialize terrain inside of a Unity project.make_unity
Merge multiple raster files into a single rastermerge_rasters
Crop a raster and convert the output tiles into new formats.raster_to_raw_tiles
Turn spatial vector data into an image overlayvector_to_overlay