R/load_geouy.R
load_geouy.Rd
This function allows to take oficial uruguayan geometries, as object "sf", from various servers.
load_geouy(c, crs = 32721, folder = tempdir())
Define the geometries to download: may be: "Departamentos", "Secciones", "Zonas", etc. View(metadata) for details.
Define the Coordinate Reference Systems you want the output, default 32721
Folder where are the files download if formato == "zip" in metadata. Default tempdir()
sf object with the requested geometries
Other service:
add_geom()
,
geocode_ide_uy()
,
reverse_ide_uy()
,
tiles_geouy()
,
where_uy()
,
which_uy()
# \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
# }