org.h2gis.h2spatialext.function.spatial.processing
Class ST_Split

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

public class ST_Split
extends DeterministicScalarFunction

This function split a line by a line a line by a point a polygon by a line

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_Split()
           
 
Method Summary
 String getJavaStaticMethod()
           
static com.vividsolutions.jts.geom.Geometry split(com.vividsolutions.jts.geom.Geometry geomA, com.vividsolutions.jts.geom.Geometry geomB)
          Split a geometry a according a geometry b.
static com.vividsolutions.jts.geom.Geometry split(com.vividsolutions.jts.geom.Geometry geomA, com.vividsolutions.jts.geom.Geometry geomB, double tolerance)
          Split a geometry a according a geometry b using a snapping tolerance.
 
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_Split

public ST_Split()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

split

public static com.vividsolutions.jts.geom.Geometry split(com.vividsolutions.jts.geom.Geometry geomA,
                                                         com.vividsolutions.jts.geom.Geometry geomB)
                                                  throws SQLException
Split a geometry a according a geometry b. Supported operations are : split a line by a line a line by a point a polygon by a line. A default tolerance of 10E-6 is used to snap the cutter point.

Parameters:
geomA -
geomB -
Returns:
Throws:
SQLException

split

public static com.vividsolutions.jts.geom.Geometry split(com.vividsolutions.jts.geom.Geometry geomA,
                                                         com.vividsolutions.jts.geom.Geometry geomB,
                                                         double tolerance)
                                                  throws SQLException
Split a geometry a according a geometry b using a snapping tolerance. This function support only the operations : - split a line or a multiline with a point.

Parameters:
geomA - the geometry to be splited
geomB - the geometry used to split
tolerance - a distance tolerance to snap the split geometry
Returns:
Throws:
SQLException


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