O'Reilly logo

PostGIS Cookbook by Bborie Park, Stephen Vincent Mather, Thomas J. Kraft, Paolo Corti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using external scripts to embed new functionality in order to calculate a Voronoi diagram

PostgreSQL provides a variety of ways to embed functionality that otherwise is not native to either the database or the database extensions in use.

In our case, for the purposes of this recipe, we are interested in applying a space-filling technique called a Voronoi diagram. The following screenshot shows a Voronoi diagram generated from a set of address points. Note how the points from which the diagram was generated are equidistant to the lines that divide them. Packed soap bubbles viewed from above form a similar network of shapes.

Using external scripts to embed new functionality in order to calculate a Voronoi diagram

Voronoi diagrams are a space-filling ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required