org.h2gis.h2spatialext.function.spatial.topography
Class TINFeatureFactory

java.lang.Object
  extended by org.h2gis.h2spatialext.function.spatial.topography.TINFeatureFactory

public final class TINFeatureFactory
extends Object

A factory used to create jDelaunay objects from JTS geometries.

Author:
Erwan Bocher

Method Summary
static org.jdelaunay.delaunay.geometries.DEdge createDEdge(com.vividsolutions.jts.geom.Geometry geom)
          Tries to create a DEdge from the given geometry, which is supposed to be formed of exactly two coordinates.
static org.jdelaunay.delaunay.geometries.DPoint createDPoint(com.vividsolutions.jts.geom.Coordinate coord)
          A factory to create a DPoint from a Coordinate.
static org.jdelaunay.delaunay.geometries.DPoint createDPoint(com.vividsolutions.jts.geom.Geometry geom)
          A factory to create a DPoint from a Geometry
static org.jdelaunay.delaunay.geometries.DTriangle createDTriangle(com.vividsolutions.jts.geom.Geometry geom)
          A factory to create a DTriangle from a Geometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDTriangle

public static org.jdelaunay.delaunay.geometries.DTriangle createDTriangle(com.vividsolutions.jts.geom.Geometry geom)
                                                                   throws org.jdelaunay.delaunay.error.DelaunayError
A factory to create a DTriangle from a Geometry

Parameters:
geom -
Returns:
Throws:
org.jdelaunay.delaunay.error.DelaunayError - If the triangle can't be generated
IllegalArgumentException - If there are not exactly 3 coordinates in geom.

createDPoint

public static org.jdelaunay.delaunay.geometries.DPoint createDPoint(com.vividsolutions.jts.geom.Geometry geom)
                                                             throws org.jdelaunay.delaunay.error.DelaunayError
A factory to create a DPoint from a Geometry

Parameters:
geom -
Returns:
Throws:
org.jdelaunay.delaunay.error.DelaunayError - If the DPoint can't be generated. In most cases, it means that the input point has a Double.NaN coordinate.
IllegalArgumentException - If there are not exactly 1 coordinates in geom.

createDEdge

public static org.jdelaunay.delaunay.geometries.DEdge createDEdge(com.vividsolutions.jts.geom.Geometry geom)
                                                           throws org.jdelaunay.delaunay.error.DelaunayError
Tries to create a DEdge from the given geometry, which is supposed to be formed of exactly two coordinates.

Parameters:
geom -
Returns:
Throws:
org.jdelaunay.delaunay.error.DelaunayError
IllegalArgumentException - If there are not exactly 2 coordinates in geom.

createDPoint

public static org.jdelaunay.delaunay.geometries.DPoint createDPoint(com.vividsolutions.jts.geom.Coordinate coord)
                                                             throws org.jdelaunay.delaunay.error.DelaunayError
A factory to create a DPoint from a Coordinate.

Parameters:
coord -
Returns:
Throws:
org.jdelaunay.delaunay.error.DelaunayError - if one of the coordinate values is Double.Nan


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