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://cafri-labs.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

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

On CRAN:

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

7.35 score 71 stars 78 scripts 411 downloads 16 exports 52 dependencies

Last updated 4 months agofrom:aa3ea67451. Checks:OK: 5 NOTE: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 13 2024
R-4.5-winNOTEOct 13 2024
R-4.5-linuxNOTEOct 13 2024
R-4.4-winOKOct 13 2024
R-4.4-macOKOct 13 2024
R-4.3-winOKOct 13 2024
R-4.3-macOKOct 13 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 Oct 13 2024.

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

Importing terrainr tiles into Unity

Rendered fromunity_instructions.Rmdusingknitr::rmarkdownon Oct 13 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