View source: R/mland_export_gis.R
mland_export_gis | R Documentation |
Exports points, buffers and intersections between buffers and rasterlayers, as vector and raster files.
mland_export_gis(
x,
raster = NULL,
points = NULL,
radii = NULL,
ext_raster = NULL,
name = NULL,
gdal = c("COMPRESS=DEFLATE", "PREDICTOR=2", "ZLEVEL=9"),
...
)
x |
An object of class 'MultiLand' generated with |
raster , ext_raster |
Numeric. The rasterlayers to be exported. |
points |
Numeric or character vector of points to be processed. See Details. |
radii |
Numeric vector of radii to be processed. |
name |
Character. Name of the zip file where files will be exported. |
gdal |
GeoTiff creation options for rasters (GeoTiff file format).
|
... |
Other arguments passed to terra::writeRaster. |
If argument points
is a character vector,
mland_export_gis()
will assume that the 'MultiLand' object inputted in argument x
was created with
site_ref = TRUE
. This is, there is an attribute in points layer data with the names for
each individual point. Therefore, the inputted values in argument points
will be taken as these
identification names. Otherwise, if a numeric vector is declared, the inputted values
will be taken as the automatically generated point ids (created when running mland()
).
GIS data from a 'MultiLand' object is exported through a zip file.
mland()
, mland_save()
, mland_load()
## Not run:
# Loads a 'MultiLand' object
ernesdesign <- system.file("extdata", "ernesdesign.zip", package = "multilandr")
ernesdesign <- mland_load(ernesdesign)
# Exports as GIS data
mland_export_gis(ernesdesign, dir = "ernesdesign")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.