Class ST_RingBuffer
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.functions.spatial.create.ST_RingBuffer
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_RingBuffer
extends org.h2gis.api.AbstractFunction
implements org.h2gis.api.ScalarFunction
Compute a ring buffer around a geometry.
- Author:
- 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.GeometrycomputeNegativeRingBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, org.locationtech.jts.operation.buffer.BufferParameters bufferParameters, boolean doDifference) Compute a ring buffer with a negative offsetstatic org.locationtech.jts.geom.GeometrycomputePositiveRingBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, org.locationtech.jts.operation.buffer.BufferParameters bufferParameters, boolean doDifference) Compute a ring buffer with a positive offsetstatic org.locationtech.jts.geom.GeometryringBuffer(org.locationtech.jts.geom.Geometry geom, double bufferSize, int numBuffer) Compute a ring buffer around a geometrystatic org.locationtech.jts.geom.GeometryringBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, String parameters) static org.locationtech.jts.geom.GeometryringBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, String parameters, boolean doDifference) Compute a ring buffer around a geometrystatic org.locationtech.jts.geom.GeometryrunBuffer(org.locationtech.jts.geom.Geometry geom, double bufferSize, org.locationtech.jts.operation.buffer.BufferParameters bufferParameters) Calculate the ring bufferMethods 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_RingBuffer
public ST_RingBuffer()
-
-
Method Details
-
getJavaStaticMethod
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
ringBuffer
public static org.locationtech.jts.geom.Geometry ringBuffer(org.locationtech.jts.geom.Geometry geom, double bufferSize, int numBuffer) throws SQLException Compute a ring buffer around a geometry- Parameters:
geom-bufferSize-numBuffer-- Returns:
- Throws:
SQLException
-
ringBuffer
public static org.locationtech.jts.geom.Geometry ringBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, String parameters) throws SQLException - Parameters:
geom-bufferDistance-numBuffer-parameters-- Returns:
- Throws:
SQLException
-
ringBuffer
public static org.locationtech.jts.geom.Geometry ringBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, String parameters, boolean doDifference) throws SQLException Compute a ring buffer around a geometry- Parameters:
geom-bufferDistance-numBuffer-parameters-doDifference-- Returns:
- Throws:
SQLException
-
computePositiveRingBuffer
public static org.locationtech.jts.geom.Geometry computePositiveRingBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, org.locationtech.jts.operation.buffer.BufferParameters bufferParameters, boolean doDifference) throws SQLException Compute a ring buffer with a positive offset- Parameters:
geom-bufferDistance-numBuffer-bufferParameters-doDifference-- Returns:
- Throws:
SQLException
-
computeNegativeRingBuffer
public static org.locationtech.jts.geom.Geometry computeNegativeRingBuffer(org.locationtech.jts.geom.Geometry geom, double bufferDistance, int numBuffer, org.locationtech.jts.operation.buffer.BufferParameters bufferParameters, boolean doDifference) throws SQLException Compute a ring buffer with a negative offset- Parameters:
geom-bufferDistance-numBuffer-bufferParameters-doDifference-- Returns:
- Throws:
SQLException
-
runBuffer
public static org.locationtech.jts.geom.Geometry runBuffer(org.locationtech.jts.geom.Geometry geom, double bufferSize, org.locationtech.jts.operation.buffer.BufferParameters bufferParameters) throws SQLException Calculate the ring buffer- Parameters:
geom-bufferSize-bufferParameters-- Returns:
- Throws:
SQLException
-