| catr_wfs_get_address_bbox | R Documentation |
Retrieve spatial address data through several types of WFS queries:
By bounding box: catr_wfs_get_address_bbox() retrieves objects included
in the provided bounding box. See Bounding box.
By street code: catr_wfs_get_address_codvia() retrieves objects for
specific addresses.
By cadastral reference: catr_wfs_get_address_rc() retrieves objects for
specific cadastral references.
By postal codes: catr_wfs_get_address_postalcode() retrieves objects for
specific postal codes.
catr_wfs_get_address_bbox(x, srs = NULL, verbose = FALSE)
catr_wfs_get_address_codvia(codvia, del, mun, srs = NULL, verbose = FALSE)
catr_wfs_get_address_rc(rc, srs = NULL, verbose = FALSE)
catr_wfs_get_address_postalcode(postalcode, srs = NULL, verbose = FALSE)
x |
Input defining the query area. See Bounding box. It can be:
|
srs |
SRS/CRS to use in the query. To see allowed values, use
catr_srs_values, specifically the |
verbose |
Logical. Whether to display informational messages. |
codvia |
Cadastral street code. |
del |
Cadastral office code. |
mun |
Cadastral municipality code. |
rc |
Cadastral reference to retrieve. |
postalcode |
Postal code. |
An sf object. Returns NULL if the
data cannot be
retrieved.
The API service is limited to a bounding box of 4 km2 and a maximum of 5,000 elements.
When x is a numeric vector, make sure that srs matches the
coordinate values. This function queries the bounding box in
EPSG:25830, ETRS89 / UTM zone 30N, to work around a
potential API issue.
When x is an sf object, the srs value is ignored. In
this case, the bounding box of the sf object is
used for the query (see sf::st_bbox()).
The result uses the SRS of the input spatial object or the srs value
provided with a numeric vector.
INSPIRE services for cadastral cartography.
catr_wms_get_layer() downloads a map image using the returned spatial
object as its extent (x).
Work with cadastral addresses:
catr_atom_get_address(),
catr_atom_get_address_db_all()
Query WFS INSPIRE services:
catr_wfs_get_buildings_bbox(),
catr_wfs_get_parcels_bbox(),
inspire_wfs_get()
ad <- catr_wfs_get_address_bbox(
c(
233673, 4015968, 233761, 4016008
),
srs = 25830
)
library(ggplot2)
ggplot(ad) +
geom_sf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.