View source: R/divide_into_tiles.R
divide_into_tiles | R Documentation |
Divide points into tiles
divide_into_tiles(points, cellsize = 1, buffer = 0.01) make_grid_buffer(points, cellsize = 0.1, overlap = 0.01) tilearoundobj(sfobj, buffer)
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 |
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
make_grid_buffer
: Creates a full grid of overlapping polygons that covers sfobj.
tilearoundobj
: Creates a single rectangle around an sf object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.