The function takes a Simple Feature Polygon and a size argument and creates a list with an indexed matrix with coordinates and a Simple Feature object, that consists of hexagonal grids.
Arguments
- shape
Simple Feature Polygon of the considered area
- size
The cellsize of the grid in meters. Default is 500
- plotGrid
Logical value indicating whether the results should be plotted. Default is
FALSE
Value
Returns a list with 2 elements. List element 1 will have the grid cell IDS, and the X and Y coordinates of the centers of each grid cell. List element 2 is the grid as Simple Feature Polygons, which is used for plotting purposes.
See also
Other Helper Functions:
get_grids()
,
grid_area()
,
isSpatial()
,
permutations()
,
readintegerSel()
,
readinteger()
,
splitAt()
,
windata_format()