roads 1.2.0
CRAN release: 2024-06-27
- Change dynamic least cost paths (DLCP) to iterative least cost paths (ILCP) throughout
- Change default
roadMethodto"ilcp"inprojectRoads - Add ability to use a custom
weightFunctionand add aweightFunctiongradePenaltyFnthat determines the grade between two cells - Add a vignette and a demo data set
dem_exampleto show howgradePenaltyFncan be used. - Change argument name from
costtoweightRastersince it no longer represents a cost surface and can now be inputs to theweightFunction. Also changeroadsInCosttoroadsInWeight. - returned roads are no longer unioned together.
- Deprecate
getDistFromSourceand useterra::distanceinstead. - Fix bug in
getLandingsFromTargetand change so that patches are used for 0,1 rasters and ids are used otherwise using terra::as.polygons to make it faster.
roads 1.1.1
CRAN release: 2023-06-24
- Fix an issue where updates to
terrawere causing roads to break - In the process removed
rasterandspfrom dependencies and converted example data toterraandsfformats. This requires a new functionprepExDatato unwrap theterraobjects that needed to be wrapped for storage
roads 1.1.0
CRAN release: 2023-02-02
- converted to using
terrathroughout the package.rasterobjects are still accepted but will be converted toterraformats. - Added
getDistFromSourcefunction to use moving windows to quickly get a raster of the distance from the nearest source (e.g road). - remove
SpaDES.toolsdependency because it was archived on CRAN and there is an equivalent method interranow. - The returned cost raster now includes the projected roads as having a cost of 0. This makes it easier to loop additional road building over time but is a change from the previous version where the input cost surface was returned.
