This function return an 'sf' object with the geometry of the consult id or group of ids, of an administrative units in Uruguay.

where_uy(c = "Localidades pg", d = "cod", e, crs = 32721)

Arguments

c

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

d

A vector who determines the variables to be consult, with two options: "cod" or "name". Default "cod".

e

A vector who determines the ids or names to identify.

crs

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

Value

sf object with the geometries of the d ids

See also

Other service: add_geom(), geocode_ide_uy(), load_geouy(), which_uy()

Examples

# \donttest{ x <- where_uy(c = "Localidades pg", d = "cod", e = c(1120, 2220))
#> Reading layer `Localidades_pg' from data source `https://mapas.mides.gub.uy:443/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=INECenso:Localidades_pg' using driver `GML' #> Simple feature collection with 615 features and 10 fields #> geometry type: MULTIPOLYGON #> dimension: XY #> bbox: xmin: 367295 ymin: 6127919 xmax: 850978.1 ymax: 6661441 #> projected CRS: WGS 84 / UTM zone 21S
#> Warning: Your consult has less matches than elements in 1120, verify filterYour consult has less matches than elements in 2220, verify filter
# }