Class ST_Expand
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.api.DeterministicScalarFunction
org.h2gis.functions.spatial.create.ST_Expand
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Expand
extends org.h2gis.api.DeterministicScalarFunction
Expands a geometry's envelope by the given delta X and delta Y.
- Author:
- Erwan Bocher, Nicolas Fortin
-
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.Geometryexpand(org.locationtech.jts.geom.Geometry geometry, double delta) Expands a geometry's envelope by the given delta X and delta Y.static org.locationtech.jts.geom.Geometryexpand(org.locationtech.jts.geom.Geometry geometry, double deltaX, double deltaY) Expands a geometry's envelope by the given delta X and delta Y.Methods 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_Expand
public ST_Expand()
-
-
Method Details
-
getJavaStaticMethod
-
expand
public static org.locationtech.jts.geom.Geometry expand(org.locationtech.jts.geom.Geometry geometry, double delta) Expands a geometry's envelope by the given delta X and delta Y. Both positive and negative distances are supported.- Parameters:
geometry- the input geometrydelta- the distance to expand the envelope along the X and Y axis- Returns:
- the expanded geometry
-
expand
public static org.locationtech.jts.geom.Geometry expand(org.locationtech.jts.geom.Geometry geometry, double deltaX, double deltaY) Expands a geometry's envelope by the given delta X and delta Y. Both positive and negative distances are supported.- Parameters:
geometry- the input geometrydeltaX- the distance to expand the envelope along the X axisdeltaY- the distance to expand the envelope along the Y axis- Returns:
- the expanded geometry
-