catrnav_wfs_get_address_bbox | R Documentation |
Get the spatial data of addresses by bounding box.
catrnav_wfs_get_address_bbox(x, srs, verbose = FALSE, count = NULL)
x |
See Details. It could be:
|
srs |
SRS/CRS to use on the query. See Details. |
verbose |
Logical, displays information. Useful for debugging, default
is |
count |
integer, indicating the maximum number of features to return.
The default value |
When x
is a numeric vector, make sure that the srs
matches the coordinate
values. Additionally, when the srs
correspond to a geographic reference system
(4326, 4258), the function queries the bounding box on
EPSG:25830 - ETRS89 / UTM zone 30N. The result is
provided always in the SRS provided in srs
.
When x
is a sf
object, the value srs
is ignored. The query is
performed using EPSG:25830 (ETRS89 / UTM zone 30N) and
the spatial object is projected back to the SRS of the initial object.
A sf
object.
sf::st_bbox()
CatastRo::catr_wfs_get_address_bbox()
downtown <- c(-1.646812, 42.814528, -1.638036, 42.820320)
ad <- catrnav_wfs_get_address_bbox(downtown, srs = 4326)
library(ggplot2)
ggplot(ad) +
geom_sf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.