Learn R Programming

quadkeyr (version 0.1.0)

regular_qk_grid: 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)

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.

Arguments

data

A sf POINT data.frame

See Also

create_qk_grid

quadkey_to_latlong

Examples

Run this code

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

qtll <- quadkey_to_latlong(quadkey = quadkey_vector)

regular_qk_grid(qtll)

Run the code above in your browser using DataLab