Geospatial · Areas and surfaces
Voronoi
Draws one area per point covering everywhere closer to it than to any other point, such as the nearest-store territory for every shop.
Also known as: Thiessen polygons
How it works
Pick the Point geometry column and a Mode. Planar (projected / regional), the default, builds the diagram on the flat plane and clips every region to a box slightly larger than the extent of the points; on lon/lat data it warns that the result is distorted, so reproject upstream or switch mode. Spherical (global lon/lat) builds the regions on the sphere, needs geographic coordinates and the scipy package in the project venv. Each row keeps its columns and its geometry column now holds the region instead of the point. A row whose geometry is not a point stops the run.
Inputs and outputs
Inputs
data— Table
Outputs
data— Table
Settings
The Attributes panel of Voronoi, as in the app: the controls work, but nothing runs — there is no data behind it.
The same settings, as the Assistant writes them
{
geometryColumn: string
mode: "planar"|"spherical"
}planar = DuckDB ST_VoronoiDiagram (projected/regional); spherical = scipy SphericalVoronoi (global lon/lat, needs scipy)
Example
You want a nearest-store territory for every shop in a city, with the stores in a projected CRS. Set Point geometry column to geometry and Mode to Planar, then Spatial Join customers to the territories to see which store each one is closest to.