filter_by_quadkey: Filter Tiles by Quadkey

Description Usage Arguments Value Examples

View source: R/filter_by_quadkey.R

Description

filter_by_quadkey() uses a bounding box to filter the tiles using the quadkey system as an efficient alternative to a spatial join.

Usage

1
filter_by_quadkey(tiles, bbox)

Arguments

tiles

From get_performance_tiles()

bbox

sf::st_bbox() bounding box describing area from which to include tiles.

Value

A filtered version of the tiles input

Examples

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)

teamookla/ooklaOpenDataR documentation built on Oct. 23, 2021, 9:48 a.m.