geo_pointgrid: Pointgrid

View source: R/pointgrid.R

geo_pointgridR Documentation

Pointgrid

Description

Takes a bounding box and a cell depth and returns a set of Point's in a grid.

Usage

geo_pointgrid(bbox, cell_size, units = "kilometers")

Arguments

bbox

extent in ⁠[minX, minY, maxX, maxY]⁠ order

cell_size

(numeric) the distance across each cell

units

(character) used in calculating cellSize, can be degrees, radians, miles, or kilometers (default)

Value

FeatureCollection<Point> grid of points

Examples

extent <- c(-70.823364, -33.553984, -70.473175, -33.302986)
cellSize <- 1
units <- 'miles'
x <- geo_pointgrid(extent, cellSize, units)
x

ropenscilabs/geoops documentation built on Nov. 8, 2024, 4:01 a.m.