This function allows you to download the latest version of data available on the sernanp geoviewer. For more information, you can visit the following web page: https://geo.sernanp.gob.pe/visorsernanp/
Arguments
- layer
Select only one from the list of available layers, for more information please use `get_data_sources(provider = "sernanp")`. Defaults to NULL.
- dsn
Character. Output filename with the spatial format. If missing, a temporary file is created.
- show_progress
Logical. Suppress bar progress.
- quiet
Logical. Suppress info message.
Examples
# \donttest{
library(geoidep)
library(sf)
anp <- get_sernanp_data(layer = "zonificacion_anp" , show_progress = FALSE)
#> Reading layer `file1ab75a56172' from data source
#> `/tmp/Rtmpxr6CpH/file1ab75a56172.geojson' using driver `GeoJSON'
#> Simple feature collection with 81 features and 15 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -81.16315 ymin: -17.17388 xmax: -68.65278 ymax: -0.07370002
#> Geodetic CRS: WGS 84
plot(st_geometry(anp))
# }