ST_Voronoi
Signatures
Description
Create Voronoi diagram from a set of points or a delaunay mesh.
OUT_DIMENSION
Geometry dimension of voronoi returned:
- 0 for voronoi vertex (circumcenter of delaunay triangles)
- 1 for voronoi edges
- 2 (default) for voronoi polygons
MULTIPOINT input
If the input is a MULTIPOINT
then a QuadEdge delaunay graph is produced internally with a minimal envelope. At the final step the voronoi polygons/lines/vertex are produced. Z values are ignored.
MULTIPOLYGON input
If the input is a MULTIPOLYGON
made of triangles mesh. Using geometry coordinates this function compute the triangle neighbors of the provided mesh.
Examples
Create classic voronoi polygons with default envelope. (Z values are not kept.)
Create voronoi polygons with Z values with input points as envelope.Then create a new table with one voronoi polygon per row.
Use case
A specific use case, using ST_Voronoi
function is avalaible HERE.