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.5-any)terrainr_0.7.5.9000.tgz(r-4.4-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_0.7.5.9000.tgz(r-4.4-emscripten)
terrainr.pdf |terrainr.html
terrainr/json (API)
NEWS

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

Reviews:rOpenSci Software Review #416

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

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

On CRAN:

Conda:

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

7.11 score 73 stars 88 scripts 323 downloads 16 exports 49 dependencies

Last updated 1 years ago from:aa3ea67451 (on main). Checks:5 NOTE, 6 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64NOTE144
pkgdown docsOK187
source / vignettesOK207
linux-release-x86_64NOTE146
macos-release-arm64NOTE84
macos-oldrel-arm64OK107
windows-develNOTE103
windows-releaseNOTE87
windows-oldrelOK114
wasm-releaseOK147
wasm-oldrelOK201

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:askpassbase64encclassclassIntclicurlDBIe1071farverggplot2gluegtablehttrisobandjsonliteKernSmoothlabelinglatticelifecyclemagickmagrittrMASSMatrixmgcvmimenlmeopensslpillarpkgconfigpngproceduralnamesproxyR6RColorBrewerRcpprlangs2scalessfsysterratibbleunifirunitsutf8vctrsviridisLitewithrwk

A gentle introduction to terrainr

Rendered fromoverview.Rmdusingknitr::rmarkdownon Jun 28 2025.

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

Importing terrainr tiles into Unity

Rendered fromunity_instructions.Rmdusingknitr::rmarkdownon Jun 28 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