This function allows to take oficial uruguayan geometries, as object "sf", from various servers.

load_geouy(c, crs = 32721, folder = tempdir())

Arguments

c

Define the geometries to download: may be: "Departamentos", "Secciones", "Zonas", etc. View(metadata) for details.

crs

Define the Coordinate Reference Systems you want the output, default 32721

folder

Folder where are the files download if formato == "zip" in metadata. Default tempdir()

Value

sf object with the requested geometries

See also

Examples

# \donttest{
secc <- load_geouy(c = "Secciones")
#> Reading layer `Secciones' from data source 
#>   `https://mapas.mides.gub.uy:443/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=INECenso:Secciones' 
#>   using driver `GML'
#> Simple feature collection with 232 features and 8 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 366582.2 ymin: 6127919 xmax: 858252.1 ymax: 6671738
#> Projected CRS: WGS 84 / UTM zone 21S
# }