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.5)terrainr_0.7.5.9000.zip(r-4.4)terrainr_0.7.5.9000.zip(r-4.3)
terrainr_0.7.5.9000.tgz(r-4.4-any)terrainr_0.7.5.9000.tgz(r-4.3-any)
terrainr_0.7.5.9000.tar.gz(r-4.5-noble)terrainr_0.7.5.9000.tar.gz(r-4.4-noble)
terrainr_0.7.5.9000.tgz(r-4.4-emscripten)terrainr_0.7.5.9000.tgz(r-4.3-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'))

Peer review:

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

On CRAN:

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

16 exports 71 stars 7.62 score 52 dependencies 74 scripts 448 downloads

Last updated 3 months agofrom:aa3ea67451 (on main). Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 28 2024
R-4.5-winNOTESep 28 2024
R-4.5-linuxNOTESep 28 2024
R-4.4-winOKSep 28 2024
R-4.4-macOKSep 28 2024
R-4.3-winOKSep 28 2024
R-4.3-macOKSep 28 2024

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

A gentle introduction to terrainr

Rendered fromoverview.Rmdusingknitr::rmarkdownon Sep 28 2024.

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

Importing terrainr tiles into Unity

Rendered fromunity_instructions.Rmdusingknitr::rmarkdownon Sep 28 2024.

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