Class ST_Clip

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

    public class ST_Clip
    extends org.h2gis.api.DeterministicScalarFunction
    Function to clip a [Multi]Polygon or [Multi]LineString geometry with another [Multi]Polygon or [Multi]LineString geometry.
    Author:
    Erwan Bocher, CNRS, 2023
    • 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_Clip()  
    • Constructor Detail

      • ST_Clip

        public ST_Clip()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • execute

        public static org.locationtech.jts.geom.Geometry execute​(org.locationtech.jts.geom.Geometry geomToClip,
                                                                 org.locationtech.jts.geom.Geometry geomForClip)
                                                          throws SQLException,
                                                                 org.locationtech.jts.io.ParseException
        Clip a [Multi]Polygon or [Multi]LineString geometry with another [Multi]Polygon or [Multi]LineString geometry
        Parameters:
        geomToClip - [Multi]Polygon or [Multi]LineString
        geomForClip - [Multi]Polygon or [Multi]LineString
        Returns:
        Throws:
        SQLException
        org.locationtech.jts.io.ParseException