powered by
Takes a bounding box and a cell depth and returns a set of Point's in a grid.
geo_pointgrid(bbox, cell_size, units = "kilometers")
extent in [minX, minY, maxX, maxY] order
[minX, minY, maxX, maxY]
(numeric) the distance across each cell
(character) used in calculating cellSize, can be degrees, radians, miles, or kilometers (default)
FeatureCollection<Point> grid of points
# NOT RUN { extent <- c(-70.823364, -33.553984, -70.473175, -33.302986) cellSize <- 1 units <- 'miles' x <- geo_pointgrid(extent, cellSize, units) x # }
Run the code above in your browser using DataLab