Skip to contents

This function allows you to download deforestation alert information detected by Geobosque for any polygon located in Peru. For more details, please visit the following website: Geobosque Platform

Usage

get_early_warning(region, sf = TRUE, show_progress = TRUE)

Arguments

region

A string Specifies the unique geographical code of interest.

sf

Logical. Indicates whether to return the data as an sf object.

show_progress

Logical. If TRUE, shows a progress bar during download.

Value

A tibble or sf object, depending on the value of sf.

Examples

# \donttest{
library(geoidep)
loreto <- get_departaments(show_progress = FALSE) |> subset(nombdep == "LORETO")
warning_point <- get_early_warning(region = loreto, sf = TRUE, show_progress = FALSE)
head(warning_point)
#> Simple feature collection with 6 features and 1 field
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: -74.76901 ymin: -1.339448 xmax: -74.67241 ymax: -1.26944
#> Geodetic CRS:  WGS 84
#> # A tibble: 6 × 2
#>   descrip                     geometry
#>   <chr>                    <POINT [°]>
#> 1 Warning points  (-74.76901 -1.26944)
#> 2 Warning points (-74.76901 -1.269711)
#> 3 Warning points  (-74.70524 -1.31367)
#> 4 Warning points (-74.68381 -1.333207)
#> 5 Warning points (-74.68381 -1.333479)
#> 6 Warning points (-74.67241 -1.339448)
# }