O'Reilly logo

Applying and Extending Oracle Spatial by Siva Ravada, Simon Gerard Greener

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

A collection of useful functions

The source code that accompanies this chapter includes the following additional Java based functionality:

Function

Code snippet and image

ST_Voronoi

Takes a geometry collection and creates a Voronoi diagram from the geometries' points, returning the resulting triangles as geometries.

DelaunayTriangulationBuilder builder = new
 DelaunayTriangulationBuilder();
builder.setTolerance(tolerance);
builder.setSites(
        GeometryCollection);
QuadEdgeSubdivision subdiv =
       builder.getSubdivision();
Geometry gOut = 
    subdiv.getVoronoiDiagram(
               GeometryFactory);

A collection of useful functions

ST_DelaunayTriangles

Takes a geometry collection and creates a ...

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