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.DeterministicScalarFunctionExpands a geometry's envelope by the given delta X and delta Y.- Author:
- Erwan Bocher, Nicolas Fortin
-
-
Constructor Summary
Constructors Constructor Description ST_Expand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String 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
-
-