Skip to contents

Converting sfc geometries to grid square codes

Usage

geometry_to_grid(geometry, grid_size, options = "ALL_TOUCHED=TRUE", ...)

Arguments

geometry

A sfc vector.

grid_size

A grid size.

options

Options vector for GDALRasterize passed on to stars::st_rasterize().

...

Passed on to stars::st_rasterize().

Value

A list of grid vectors.