v.voronoi(1)
β¨ v.voronoi β the manual, but make it make sense β¨
okay bestie, so this is the GRASS GIS User's Manual page for v.voronoi, and honestly? it's giving geometry icon energy. let's get into it π
KEYWORDS: vector, geometry, triangulation, skeleton
πΈ NAME πΈ
v.voronoi β creates a Voronoi diagram constrained to the extents of the current region, built from an input vector map that's full of points or centroids. periodt.
π SYNOPSIS π
v.voronoi
v.voronoi --help
v.voronoi [-aslt] input=name [layer=string] output=name
[smoothness=float] [thin=float] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]
π FLAGS π
-aβ create a Voronoi diagram but for input areas (not just points, bestie)-sβ extract skeletons for input areas-lβ output the tessellation as a graph (lines), not as areas-tβ do not create an attribute table, we're keeping it light--overwriteβ allow output files to overwrite existing files (careful, she's bold)--helpβ print usage summary--verboseβ verbose module output--quietβ quiet module output--uiβ force launching GUI dialog
π¦ PARAMETERS π¦
input=name[required] β name of input vector map. or, plot twist, a data source for direct OGR access.layer=stringβ layer number or name ('-1'for all layers). one single vector map can be connected to multiple database tables, and this number decides which table gets used. when you're doing direct OGR access, this is the layer name. Default:-1output=name[required] β name for output vector map. yes queen, name your creation.smoothness=floatβ factor for output smoothness. applies to input areas only. smaller values β smoother output, but heads up, they can cause numerical instability. Default:0.25thin=floatβ maximum dangle length of skeletons. applies only to skeleton extraction. Default= -1will extract the center line. Default:-1
π DESCRIPTION π
v.voronoi creates a Voronoi diagram (aka Thiessen polygons) from points or centroids. that's the whole vibe.
the bounds of the output map are limited by the current region (go peek at g.region if you need a refresher).
the -a flag lets you create a Voronoi diagram for areas.
the -s flag lets you extract the center line of areas, or skeletons of areas with thin >= 0. smaller values for the thin option preserve more detail, while negative values extract only the center line. iykyk.
π₯ NOTES π₯
v.voronoi suffers from numerical instability, and results can sometimes contain a whole lot of artefacts. it's not her fault, it's just like that.
when you're creating Voronoi diagrams for areas, or skeletons for areas, it is highly recommended to simplify the areas first with v.generalize. do not skip this step, bestie, i'm begging π
Voronoi diagrams may be used for nearest-neighbor flood filling. give the centroids attributes (start with v.db.addcolumn), then optionally convert the result to a raster map with v.to.rast.
the extraction of skeletons and center lines with the -s flag is a brute force approach. faster and more accurate algorithms to extract skeletons from areas do exist, but they are not yet implemented. in the meantime, skeletons and center lines can be simplified with the Douglas-Peucker algorithm: v.generalize method=douglas.
β EXAMPLE β
πΈ Voronoi diagram for points πΈ
this example uses the hospitals in the North Carolina dataset.
g.region -p raster=elev_state_500m
v.voronoi input=hospitals output=hospitals_voronoi
Result: Voronoi diagram for hospitals in North Carolina
π¦ Voronoi diagram for areas π¦
this example uses urban areas in the North Carolina dataset.
g.region -p n=162500 s=80000 w=727000 e=846000 res=500
v.voronoi input=urbanarea output=urbanarea_voronoi -a
Result: Voronoi diagram for urban areas in North Carolina
π§ Skeletons and center lines of areas π§
this example uses urban areas in the North Carolina dataset.
g.region -p n=161000 s=135500 w=768500 e=805500 res=500
v.voronoi input=urbanarea output=urbanarea_centerline -s
v.voronoi input=urbanarea output=urbanarea_skeleton -s thin=2000
Result: Skeleton (blue) and center line (red) for urban areas in North Carolina
π REFERENCES π
Steve J. Fortune, (1987). A Sweepline Algorithm for Voronoi Diagrams, Algorithmica 2, 153-174 (DOI).
π SEE ALSO π
g.region, v.delaunay, v.hull
Voronoi diagram (Wikipedia)
π AUTHORS π
- James Darrell McCauley, Purdue University
- GRASS 5 update, improvements: Andrea Aime, Modena, Italy
- GRASS 5.7 update: Radim Blazek
- Markus Metz
π SOURCE CODE π
Available at: v.voronoi source code (history)
Accessed: Saturday Jan 17 05:41:34 2026
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page, bestie π«Ά this was GRASS GIS 8.4.2, and the manpage itself answers to v.voronoi(1). go make some polygons, slay π
β¨
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms