org.h2gis.h2spatialext.function.spatial.mesh
Class DelaunayTools

java.lang.Object
  extended by org.h2gis.h2spatialext.function.spatial.mesh.DelaunayTools

public class DelaunayTools
extends Object

Tools to convert JDelaunay objects to JTS Geometries

Author:
Erwan Bocher

Constructor Summary
DelaunayTools()
           
 
Method Summary
static com.vividsolutions.jts.geom.LineString toLineString(org.jdelaunay.delaunay.geometries.DEdge dEdge)
          Convert a JDelaunay edge to a JTS linestring
static com.vividsolutions.jts.geom.MultiLineString toMultiLineString(List<org.jdelaunay.delaunay.geometries.DEdge> edges)
          Convert a list of triangles to a JTS MultiLineString
static com.vividsolutions.jts.geom.MultiPolygon toMultiPolygon(List<org.jdelaunay.delaunay.geometries.DTriangle> triangles)
          Convert a list of triangles to a JTS MultiPolygon
static com.vividsolutions.jts.geom.Polygon toPolygon(org.jdelaunay.delaunay.geometries.DTriangle triangle)
          Convert a JDelaunay triangle to a JTS polygon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelaunayTools

public DelaunayTools()
Method Detail

toMultiPolygon

public static com.vividsolutions.jts.geom.MultiPolygon toMultiPolygon(List<org.jdelaunay.delaunay.geometries.DTriangle> triangles)
Convert a list of triangles to a JTS MultiPolygon

Parameters:
triangles -
Returns:

toPolygon

public static com.vividsolutions.jts.geom.Polygon toPolygon(org.jdelaunay.delaunay.geometries.DTriangle triangle)
Convert a JDelaunay triangle to a JTS polygon

Parameters:
triangle -
Returns:

toMultiLineString

public static com.vividsolutions.jts.geom.MultiLineString toMultiLineString(List<org.jdelaunay.delaunay.geometries.DEdge> edges)
Convert a list of triangles to a JTS MultiLineString

Parameters:
edges -
Returns:

toLineString

public static com.vividsolutions.jts.geom.LineString toLineString(org.jdelaunay.delaunay.geometries.DEdge dEdge)
Convert a JDelaunay edge to a JTS linestring

Parameters:
dEdge -
Returns:


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.