Learn R Programming

spNetwork (version 0.4.4.6)

build_grid: Spatial grid

Description

Generate a grid of a specified shape in the bbox of a Spatial object.

Usage

build_grid(grid_shape, spatial)

Value

A feature collection of polygons representing the grid

Arguments

grid_shape

A numeric vector of length 2 indicating the number of rows and the numbers of columns of the grid

spatial

A list of spatial feature collections objects (package sf)

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab