Skip to content

webdggrid / Topology

Enumeration: Topology

Defined in: webdggrid.ts:22

The shape of each cell in the Discrete Global Grid System.

DGGRID supports four cell topologies. The most common choice for geospatial analysis is HEXAGON because hexagonal cells have equal adjacency (every neighbour shares an edge), uniform area, and minimal boundary-to-area ratio.

Export

Example

ts
import { Topology } from 'webdggrid';

dggs.setDggs({ topology: Topology.HEXAGON, ... }, 4);

Enumeration Members

DIAMOND

DIAMOND: "DIAMOND"

Defined in: webdggrid.ts:28

Four-sided diamond cells (squares rotated 45°).


HEXAGON

HEXAGON: "HEXAGON"

Defined in: webdggrid.ts:24

Six-sided cells — the default and most widely used topology.


TRIANGLE

TRIANGLE: "TRIANGLE"

Defined in: webdggrid.ts:26

Three-sided cells.