squareGrid

fun squareGrid(bbox: BoundingBox, cellWidth: Length, cellHeight: Length = cellWidth): MultiPolygon(source)

Creates a square grid within a BoundingBox.

Return

a GeometryCollection grid of polygons

Parameters

bbox

BoundingBox bbox extent

cellWidth

of each cell

cellHeight

of each cell