Class ST_Intersection

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

    public class ST_Intersection
    extends org.h2gis.api.DeterministicScalarFunction
    Compute the intersection of two Geometries.
    Author:
    Nicolas Fortin
    • Field Summary

      • 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_Intersection()
      Default constructor
    • Constructor Detail

      • ST_Intersection

        public ST_Intersection()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • intersection

        public static org.locationtech.jts.geom.Geometry intersection​(org.locationtech.jts.geom.Geometry a,
                                                                      org.locationtech.jts.geom.Geometry b)
                                                               throws SQLException
        Parameters:
        a - Geometry instance.
        b - Geometry instance
        Returns:
        the intersection between two geometries
        Throws:
        SQLException
      • intersection

        public static org.locationtech.jts.geom.Geometry intersection​(org.locationtech.jts.geom.Geometry a,
                                                                      org.locationtech.jts.geom.Geometry b,
                                                                      double gridSize)
                                                               throws SQLException
        Parameters:
        a - Geometry instance.
        b - Geometry instance
        gridSize - size of a grid to snap the input geometries
        Returns:
        the intersection between two geometries
        Throws:
        SQLException