org.h2gis.h2spatialext.function.spatial.edit
Class ST_AddPoint

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.h2spatialext.function.spatial.edit.ST_AddPoint
All Implemented Interfaces:
Function, ScalarFunction

public class ST_AddPoint
extends DeterministicScalarFunction

Author:
Erwan Bocher

Field Summary
static double PRECISION
           
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_AddPoint()
           
 
Method Summary
static com.vividsolutions.jts.geom.Geometry addPoint(com.vividsolutions.jts.geom.Geometry geometry, com.vividsolutions.jts.geom.Point point)
          Returns a new geometry based on an existing one, with a specific point as a new vertex.
static com.vividsolutions.jts.geom.Geometry addPoint(com.vividsolutions.jts.geom.Geometry geometry, com.vividsolutions.jts.geom.Point point, double tolerance)
          Returns a new geometry based on an existing one, with a specific point as a new vertex.
 String getJavaStaticMethod()
           
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Field Detail

PRECISION

public static final double PRECISION
See Also:
Constant Field Values
Constructor Detail

ST_AddPoint

public ST_AddPoint()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

addPoint

public static com.vividsolutions.jts.geom.Geometry addPoint(com.vividsolutions.jts.geom.Geometry geometry,
                                                            com.vividsolutions.jts.geom.Point point)
                                                     throws SQLException
Returns a new geometry based on an existing one, with a specific point as a new vertex. A default distance 10E-6 is used to snap the input point.

Parameters:
geometry -
point -
Returns:
Throws:
SQLException

addPoint

public static com.vividsolutions.jts.geom.Geometry addPoint(com.vividsolutions.jts.geom.Geometry geometry,
                                                            com.vividsolutions.jts.geom.Point point,
                                                            double tolerance)
                                                     throws SQLException
Returns a new geometry based on an existing one, with a specific point as a new vertex.

Parameters:
geometry -
point -
tolerance -
Returns:
Null if the vertex cannot be inserted
Throws:
SQLException - If the vertex can be inserted but it makes the geometry to be in an invalid shape


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