regular_qk_grid: Convert a incomplete QuadKey 'sf' POINT data.frame into a...

View source: R/regular_grid.R

regular_qk_gridR Documentation

Convert a incomplete QuadKey sf POINT data.frame into a regular grid.

Description

This function completes sf POINT data.frame grid of QuadKeys using the bounding box of the data provided.

Usage

regular_qk_grid(data)

Arguments

data

A sf POINT data.frame

Value

A list with three elements:

  • data A sf POINT data.frame, with the rows needed to complete the grid.

  • num_rows The number of columns of the regular grid.

  • num_cols The number of rows of the regular grid.

See Also

create_qk_grid

quadkey_to_latlong

Examples


quadkey_vector <- c("213", "210", "211")

qtll <- quadkey_to_latlong(quadkey = quadkey_vector)

regular_qk_grid(qtll)

quadkeyr documentation built on April 3, 2025, 8:52 p.m.