Download MapBiomas Alerta Peru deforestation alerts with spatial filtering
Source:R/mapbiomas-alerta.R
get_mapbiomas_peru_alerta.RdDownload the latest deforestation alerts detected by MapBiomas Alerta Peru for a specific geographic area using an sf object (bounding box or polygon). For more details, please visit: MapBiomas Peru Platform
Usage
get_mapbiomas_peru_alerta(
region = NULL,
from = NULL,
to = NULL,
dsn = NULL,
method = "within",
show_progress = TRUE,
quiet = TRUE,
timeout = 60
)Arguments
- region
An sf object specifying the area of interest (must be in EPSG:4326 - WGS 84).
- from
Character. Start date in
"YYYY-MM-DD"format. IfNULL, no lower bound.- to
Character. End date in
"YYYY-MM-DD"format. IfNULL, no upper bound.- dsn
Character. Output filename. If missing, a temporary GeoJSON file is created.
- method
Character. Spatial predicate used to filter the downloaded alerts against
region:"intersects"(safest default is"within"for backward compatibility),"within","contains","crosses","touches".- show_progress
Logical. Show cli progress. Default
TRUE.- quiet
Logical. Suppress messages from
sf::st_read(). DefaultTRUE.- timeout
Numeric. Seconds to wait for the server response (default 60).