Skip to main content
Returns a two-dimensional Voronoi diagram from the vertices of the supplied geometry. The result is a GeometryCollection of Polygons that covers an envelope larger than the extent of the input vertices. Returns null if input geometry is null. Returns an empty geometry collection if the input geometry contains only one vertex. Returns an empty geometry collection if the extend_to envelope has zero area. ST_VoronoiPolygons

Signatures

Parameters

Geometry
required
The g1 value.
Double
required
The distance tolerance.
Geometry
required
The extend_to value.

Return type

The resulting geometry.

Example