There is a newer version of the record available.

Published August 5, 2021 | Version v0.5.0-r
Software Open

ropensci/terrainr: terrainr v 0.5.0

  • 1. SUNY-ESF
  • 2. @actions

Description

(This time for real -- this release matches the one published to CRAN)

  • New features:
    • A new function, make_manifest, now helps automate the import of terrain and imagery to Unity. It fully replaces raster_to_raw_tiles (see Deprecations below). Documentation updates are forthcoming.
  • Deprecations:
    • raster_to_raw_tiles is now deprecated and will be removed in a future release (no earlier than 2022). Use make_manifest instead.
    • The method get_tiles.list is now deprecated and will be removed in a future release (unexported in Fall 2021, removed no earlier than 2022). Convert your list to an sf object instead.
    • The bbox argument to hit_national_map_api is now documented as "An object from [sf::st_bbox]." This is a change from the earlier options of a length 2 list or terrainr_bounding_box object. Those methods are currently still supported, but undocumented; they will be removed in a future release (no earlier than 2022).
  • Improvements and bug fixes:
    • get_tiles no longer mangles data with projected coordinates (via a fix to the internal function split_bbox). If for some reason you want the old behavior back, set the new argument projected to FALSE while providing projected data.
    • The documentation for add_bbox_buffer and set_bbox_side_length now specifies that they should only be used with geographic coordinate systems. If you use these functions with projected data, they will warn; this may be upgraded to an error in future versions.
    • The README images are now of beautiful Hyampom, California, a somewhat more appealing vista than the original Mt Marcy scene.
    • The "Import to Unity" vignette has been rewritten to use make_manifest, as has the overview vignette and other documentation.
    • Typos in the message merge_rasters gives when using the fallback method have been fixed.
    • merge_rasters gains an argument force_fallback which, if TRUE, will use the older, slower method for merging tiles. This is not recommended, but is useful for testing.
  • Internal changes:
    • The slow removal of all terrainr_* custom classes marches on! These classes should no longer be present in any user-facing, non-deprecated code; the only functions still relying on custom classes are internal utilities and the split_bbox function responsible for tiling get_tiles requests.
    • split_bbox should now run faster, particularly for large tile sets, as some nested loops have been vectorized.
    • Improvements to test coverage and CI.

Files

ropensci/terrainr-v0.5.0-r.zip

Files (2.4 MB)

Name Size Download all
md5:76a022308a7fb45fcec253d5c0deb454
2.4 MB Preview Download

Additional details

Related works