Skip to main content
Runs Getis and Ord’s G Local (Gi or Gi*) statistic on the geometry given the weights and level. Getis and Ord’s Gi and Gi* statistics are used to identify data points with locally high values (hot spots) and low values (cold spots) in a spatial dataset. The ST_WeightedDistanceBand and ST_BinaryDistanceBand functions can be used to generate the weights column.

Signatures

Parameters

geom
Geometry
required
The input geometry.
weights
Struct
required
The weights value.
level
Integer
required
The level value.

Return type

A struct containing the result fields.

Example