Class ST_LocateAlong
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.distance.ST_LocateAlong
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_LocateAlong extends org.h2gis.api.DeterministicScalarFunctionST_LocateAlong returns a MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance. A positive offset places the point to the left of the segment (with the ordering given by Coordinate traversal); a negative offset to the right. For areal elements, only exterior rings are supported.- Author:
- Adam Gouge, Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ST_LocateAlong()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static org.locationtech.jts.geom.MultiPointlocateAlong(org.locationtech.jts.geom.Geometry geom, double segmentLengthFraction, double offsetDistance)Returns a MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance.-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
locateAlong
public static org.locationtech.jts.geom.MultiPoint locateAlong(org.locationtech.jts.geom.Geometry geom, double segmentLengthFraction, double offsetDistance)Returns a MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance.- Parameters:
geom- GeometrysegmentLengthFraction- Segment length fractionoffsetDistance- Offset distance- Returns:
- A MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance
-
-