Package org.h2gis.functions.spatial.edit
Class ST_RemoveRepeatedPoints
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.edit.ST_RemoveRepeatedPoints
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_RemoveRepeatedPoints extends org.h2gis.api.DeterministicScalarFunctionRemove duplicated points on a geometry- Author:
- Erwan Bocher CNRS
-
-
Constructor Summary
Constructors Constructor Description ST_RemoveRepeatedPoints()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static org.locationtech.jts.geom.GeometryCollectionremoveDuplicateCoordinates(org.locationtech.jts.geom.GeometryCollection geometryCollection, double tolerance)Removes duplicated coordinates within a GeometryCollectionstatic org.locationtech.jts.geom.GeometryremoveDuplicateCoordinates(org.locationtech.jts.geom.Geometry geom, double tolerance)Removes duplicated points within a geometry.static org.locationtech.jts.geom.LinearRingremoveDuplicateCoordinates(org.locationtech.jts.geom.LinearRing linearRing, double tolerance)Removes duplicated coordinates within a linearRing.static org.locationtech.jts.geom.LineStringremoveDuplicateCoordinates(org.locationtech.jts.geom.LineString linestring, double tolerance)Removes duplicated coordinates within a LineString.static org.locationtech.jts.geom.MultiLineStringremoveDuplicateCoordinates(org.locationtech.jts.geom.MultiLineString multiLineString, double tolerance)Removes duplicated coordinates in a MultiLineString.static org.locationtech.jts.geom.MultiPolygonremoveDuplicateCoordinates(org.locationtech.jts.geom.MultiPolygon multiPolygon, double tolerance)Removes duplicated coordinates within a MultiPolygon.static org.locationtech.jts.geom.PolygonremoveDuplicateCoordinates(org.locationtech.jts.geom.Polygon polygon, double tolerance)Removes duplicated coordinates within a Polygon.static org.locationtech.jts.geom.GeometryremoveRepeatedPoints(org.locationtech.jts.geom.Geometry geometry)Returns a version of the given geometry with duplicated points removed.static org.locationtech.jts.geom.GeometryremoveRepeatedPoints(org.locationtech.jts.geom.Geometry geometry, double tolerance)Returns a version of the given geometry with duplicated points removed.-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
removeRepeatedPoints
public static org.locationtech.jts.geom.Geometry removeRepeatedPoints(org.locationtech.jts.geom.Geometry geometry) throws SQLException, SQLExceptionReturns a version of the given geometry with duplicated points removed.- Parameters:
geometry-- Returns:
- Throws:
SQLException
-
removeRepeatedPoints
public static org.locationtech.jts.geom.Geometry removeRepeatedPoints(org.locationtech.jts.geom.Geometry geometry, double tolerance) throws SQLExceptionReturns a version of the given geometry with duplicated points removed.- Parameters:
geometry-tolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.Geometry removeDuplicateCoordinates(org.locationtech.jts.geom.Geometry geom, double tolerance) throws SQLExceptionRemoves duplicated points within a geometry.- Parameters:
geom-tolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.LineString removeDuplicateCoordinates(org.locationtech.jts.geom.LineString linestring, double tolerance) throws SQLExceptionRemoves duplicated coordinates within a LineString.- Parameters:
linestring-tolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.LinearRing removeDuplicateCoordinates(org.locationtech.jts.geom.LinearRing linearRing, double tolerance)Removes duplicated coordinates within a linearRing.- Parameters:
linearRing-tolerance- to delete the coordinates- Returns:
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.MultiLineString removeDuplicateCoordinates(org.locationtech.jts.geom.MultiLineString multiLineString, double tolerance) throws SQLExceptionRemoves duplicated coordinates in a MultiLineString.- Parameters:
multiLineString-tolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.Polygon removeDuplicateCoordinates(org.locationtech.jts.geom.Polygon polygon, double tolerance) throws SQLExceptionRemoves duplicated coordinates within a Polygon.- Parameters:
polygon- the input polygontolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.MultiPolygon removeDuplicateCoordinates(org.locationtech.jts.geom.MultiPolygon multiPolygon, double tolerance) throws SQLExceptionRemoves duplicated coordinates within a MultiPolygon.- Parameters:
multiPolygon-tolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
removeDuplicateCoordinates
public static org.locationtech.jts.geom.GeometryCollection removeDuplicateCoordinates(org.locationtech.jts.geom.GeometryCollection geometryCollection, double tolerance) throws SQLExceptionRemoves duplicated coordinates within a GeometryCollection- Parameters:
geometryCollection-tolerance- to delete the coordinates- Returns:
- Throws:
SQLException
-
-