Description Usage Arguments Value Examples
View source: R/filter_by_quadkey.R
filter_by_quadkey()
uses a bounding box to filter the tiles using the quadkey system as an efficient alternative to a spatial join.
1 | filter_by_quadkey(tiles, bbox)
|
tiles |
From |
bbox |
|
A filtered version of the tiles
input
1 2 3 4 5 6 7 8 9 | ## Not run:
# Filters tiles to a bounding box specified by coordinates
filter_by_quadkey(tiles, bbox = sf::st_bbox(c(xmin = 16.1, xmax = 16.6, ymax = 48.6, ymin = 47.9), crs = st_crs(4326)))
# Filters tiles to a bounding box specified by an `sf` object
nc <- st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE)
filter_by_quadkey(tiles, bbox = sf::st_bbox(nc))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.