Class ST_Buffer

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

    public class ST_Buffer
    extends org.h2gis.api.DeterministicScalarFunction
    ST_Buffer computes a buffer around a Geometry. Circular arcs are approximated using 8 segments per quadrant. In particular, circles contain 32 line segments.
    Author:
    Nicolas Fortin, Erwan Bocher
    • 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_Buffer()
      Default constructor
    • Constructor Detail

      • ST_Buffer

        public ST_Buffer()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • buffer

        public static org.locationtech.jts.geom.Geometry buffer​(org.locationtech.jts.geom.Geometry geom,
                                                                Double distance)
        Parameters:
        geom - Geometry instance
        distance - Buffer width in projection unit
        Returns:
        geom buffer around geom geometry.
      • buffer

        public static org.locationtech.jts.geom.Geometry buffer​(org.locationtech.jts.geom.Geometry geom,
                                                                Double distance,
                                                                org.h2.value.Value value)
                                                         throws IllegalArgumentException
        Parameters:
        geom - Geometry instance
        distance - Buffer width in projection unit
        value - Int or varchar end type
        Returns:
        a buffer around a geometry.
        Throws:
        IllegalArgumentException