Class ST_Buffer
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.api.DeterministicScalarFunction
org.h2gis.functions.spatial.buffer.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_REMARKSFields inherited from interface org.h2gis.api.ScalarFunction
PROP_DETERMINISTIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.Geometrystatic org.locationtech.jts.geom.GeometryMethods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2gis.api.Function
getProperty
-
Constructor Details
-
ST_Buffer
public ST_Buffer()Default constructor
-
-
Method Details
-
getJavaStaticMethod
-
buffer
public static org.locationtech.jts.geom.Geometry buffer(org.locationtech.jts.geom.Geometry geom, Double distance) - Parameters:
geom- Geometry instancedistance- 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 instancedistance- Buffer width in projection unitvalue- Int or varchar end type- Returns:
- a buffer around a geometry.
- Throws:
IllegalArgumentException
-