divide_into_tiles: Divide points into tiles

View source: R/divide_into_tiles.R

divide_into_tilesR Documentation

Divide points into tiles

Description

Divide points into tiles

Usage

divide_into_tiles(points, cellsize = 1, buffer = 0.01)

make_grid_buffer(points, cellsize = 0.1, overlap = 0.01)

tilearoundobj(sfobj, buffer)

Arguments

points

An sf object to cover with a grid. Could also be a bbox object.

cellsize

is the size of a single cell

buffer

A numerical distance of a buffer to include around sfobj in the output tile

overlap

is the amount of overlap of each cell

sfobj

An sf object

Value

A list. Each element contains a slot 'tile' which is an sfc_POLYGON object, and a slot 'pts', which is a an sf object of points covered by the tile with sufficient buffer

An sf multipolygon object made of squares that overlap by buffer, and cover the region bbox expanded by buffer.

an sf polygon object that is rectangular

Functions

  • make_grid_buffer: Creates a full grid of overlapping polygons that covers sfobj.

  • tilearoundobj: Creates a single rectangle around an sf object


sustainablefarms/sflddata documentation built on April 19, 2022, 11:19 a.m.