class VoronoiDiagram extends Serializable
A class to compute the Voronoi diagram of a set of points. See <geotrellis_home>/docs/vector/voronoi.md for more information.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- VoronoiDiagram
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new VoronoiDiagram(dt: DelaunayTriangulation, extent: Extent)
Value Members
- val dt: DelaunayTriangulation
- val extent: Extent
- val pointSet: CompleteIndexedPointSet
-
def
voronoiCell(i: Int): Option[Polygon]
A method to generate the Voronoi cell corresponding to the point in verts(i).
A method to generate the Voronoi cell corresponding to the point in verts(i). Note that if verts(i) is not distinct, this function may raise an exception.
-
def
voronoiCells(): Seq[Polygon]
The polygonal regions of the Voronoi diagram.
The polygonal regions of the Voronoi diagram. There exists one such convex polygon for each distinct vector of verts.
-
def
voronoiCellsWithPoints(): Seq[(Polygon, Coordinate)]
Provides an iterator over the Voronoi cells of the diagram and the points that defined the corresponding polygonal regions.