geo_trianglegrid: Trianglegrid

View source: R/trianglegrid.R

geo_trianglegridR Documentation

Trianglegrid

Description

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

Usage

geo_trianglegrid(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<Polygon> grid of polygons

Examples

geo_trianglegrid(c(-77.3876, 38.7198, -76.9482, 39.0277), 3, "miles")
geo_trianglegrid(c(-77.3876, 38.7198, -76.9482, 39.0277), 10, "miles")
geo_trianglegrid(c(-77.3876, 38.7198, -76.9482, 39.0277), 30, "miles")

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