Class ST_Split

  • All Implemented Interfaces:
    org.h2gis.api.Function, org.h2gis.api.ScalarFunction

    public class ST_Split
    extends org.h2gis.api.DeterministicScalarFunction
    This function split a line by a line a line by a point a polygon by a line
    Author:
    Erwan Bocher
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static double PRECISION  
      • Fields inherited from interface org.h2gis.api.Function

        PROP_NAME, PROP_REMARKS
      • Fields inherited from interface org.h2gis.api.ScalarFunction

        PROP_DETERMINISTIC
    • Constructor Summary

      Constructors 
      Constructor Description
      ST_Split()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getJavaStaticMethod()  
      static org.locationtech.jts.geom.Geometry split​(org.locationtech.jts.geom.Geometry geomA, org.locationtech.jts.geom.Geometry geomB)
      Split a geometry a according a geometry b.
      static org.locationtech.jts.geom.Geometry split​(org.locationtech.jts.geom.Geometry geomA, org.locationtech.jts.geom.Geometry geomB, double tolerance)
      Split a geometry a according a geometry b using a snapping tolerance.
      • Methods inherited from class org.h2gis.api.AbstractFunction

        addProperty, getProperty, removeProperty
      • Methods inherited from interface org.h2gis.api.Function

        getProperty
    • Constructor Detail

      • ST_Split

        public ST_Split()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • split

        public static org.locationtech.jts.geom.Geometry split​(org.locationtech.jts.geom.Geometry geomA,
                                                               org.locationtech.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 org.locationtech.jts.geom.Geometry split​(org.locationtech.jts.geom.Geometry geomA,
                                                               org.locationtech.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