| mc_export | R Documentation |
Writes the spatial components of any movecost result object to disk: rasters as GeoTIFF, vector layers as GeoPackage (which, unlike the ESRI shapefiles produced by movecost <= 2.x, preserves full attribute names and supports mixed geometry without sidecar files). File names carry the cost function code as a suffix, as in movecost <= 2.x.
mc_export(x, dir = ".", prefix = NULL, overwrite = FALSE)
x |
a movecost result object (any of |
dir |
output directory (default: current working directory). |
prefix |
optional file-name prefix (default: the class-specific name). |
overwrite |
TRUE or FALSE (default): overwrite existing files. |
Invisibly, a character vector with the paths of the written files.
## Not run:
dtm <- mc_volc()
start <- mc_volc_loc(); destin <- mc_destin_loc()
surf <- mc_surface(dtm, funct = "t", move = 8)
acc <- mc_accum(surf, start, breaks = 0.05)
mc_export(acc, dir = tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.