Title: | Download Spatial Datasets of Peru |
---|---|
Description: | Provides convenient access to the official spatial datasets of Peru as 'sf' objects in R. This package includes a wide range of geospatial data covering various aspects of Peruvian geography, such as: administrative divisions (Source: INEI <https://ide.inei.gob.pe/>), protected natural areas (Source: GEO ANP - SERNANP <https://geo.sernanp.gob.pe/visorsernanp/>). All datasets are harmonized in terms of attributes, projection, and topology, ensuring consistency and ease of use for spatial analysis and visualization. |
Authors: | Paul E. Santos Andrade [aut, cre]
|
Maintainer: | Paul E. Santos Andrade <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.2 |
Built: | 2025-02-14 03:41:01 UTC |
Source: | https://github.com/paulesantos/geoperu |
Downloads spatial data of protected natural areas in Peru declared by SERNAP (National Service of Natural Protected Areas). Data were obtained from GEO ANP as the official source. The data are in the "WGRS84" reference system and CRS(4326).
get_anp_peru(anp = NULL, showProgress = TRUE)
get_anp_peru(anp = NULL, showProgress = TRUE)
anp |
A character or a vector with the name(s) of the protected natural areas in Peru. |
showProgress |
Logical TRUE or FALSE to display a progress bar during download. |
An "sf" "data.frame"
object containing the spatial data of Peru's protected natural areas.
# Read specific ANP manu <- get_anp_peru(anp = "Manu") pampa_galeras <- get_anp_peru(anp = "Pampa Galeras") # Read more than one ANP anps <- get_anp_peru(anp = c("Manu", "Yanachaga", "Calipuy"))
# Read specific ANP manu <- get_anp_peru(anp = "Manu") pampa_galeras <- get_anp_peru(anp = "Pampa Galeras") # Read more than one ANP anps <- get_anp_peru(anp = c("Manu", "Yanachaga", "Calipuy"))
Downloads spatial data of Peru using Geodetic reference system "WGRS84" and CRS(4326).
get_geo_peru( geography = "all", level = "all", simplified = TRUE, showProgress = TRUE )
get_geo_peru( geography = "all", level = "all", simplified = TRUE, showProgress = TRUE )
geography |
A character or a vector with the name of geographical region. An exception is "all" to request all Peru data. |
level |
A character: "all" for national level data, "dep" for department level data, and "prov" for provincial level data. |
simplified |
A logical TRUE or FALSE, to select data with all districts or a polygon simplified to a higher level. |
showProgress |
Logical TRUE or FALSE to display a progress bar during download. |
An "sf" "data.frame"
object containing the spatial data of Peru.
# Read specific province anta <- get_geo_peru(geography = "ANTA", level = "prov", simplified = TRUE) # Read more than one province df <- get_geo_peru(geography = c("CALCA"), level = "prov", simplified = FALSE) # Read department level data cusco <- get_geo_peru(geography = "cusco", level = "dep", simplified = TRUE)
# Read specific province anta <- get_geo_peru(geography = "ANTA", level = "prov", simplified = TRUE) # Read more than one province df <- get_geo_peru(geography = c("CALCA"), level = "prov", simplified = FALSE) # Read department level data cusco <- get_geo_peru(geography = "cusco", level = "dep", simplified = TRUE)
Información geográfica vectorial de los 1722 distritos del PERU y su geometría.
peru
peru
A SpatialPolygonsDataFrame