Package org.h2gis.functions.spatial.snap
Class ST_SnapToSelf
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.snap.ST_SnapToSelf
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_SnapToSelf extends org.h2gis.api.DeterministicScalarFunctionSnaps a geometry to itself with a given tolerance Allows optionally cleaning the result to ensure it is topologically valid- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ST_SnapToSelf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.Geometryexecute(org.locationtech.jts.geom.Geometry geometryA, double distance)Snaps a geometry to itself with a given tolerancestatic org.locationtech.jts.geom.Geometryexecute(org.locationtech.jts.geom.Geometry geometryA, double distance, boolean clean)Snaps a geometry to itself with a given toleranceStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
execute
public static org.locationtech.jts.geom.Geometry execute(org.locationtech.jts.geom.Geometry geometryA, double distance) throws SQLExceptionSnaps a geometry to itself with a given tolerance- Parameters:
geometryA- a geometry to snapdistance- the tolerance to use- Returns:
- the snapped geometries
- Throws:
SQLException
-
execute
public static org.locationtech.jts.geom.Geometry execute(org.locationtech.jts.geom.Geometry geometryA, double distance, boolean clean) throws SQLExceptionSnaps a geometry to itself with a given tolerance- Parameters:
geometryA- a geometry to snapdistance- the tolerance to useclean- true to clean the geometry- Returns:
- the snapped geometries
- Throws:
SQLException
-
-