Class ST_LineSubstring
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.linear_referencing.ST_LineSubstring
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_LineSubstring extends org.h2gis.api.DeterministicScalarFunction- Author:
- Erwan Bocher, CNRS (2023) Extract a section of the input line starting and ending at the given fractions.
-
-
Constructor Summary
Constructors Constructor Description ST_LineSubstring()
-
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 geometry, double start, double end)Extract a section of the input LineString or MultiLineString starting and ending at the given fractions.StringgetJavaStaticMethod()-
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 geometry, double start, double end) throws SQLExceptionExtract a section of the input LineString or MultiLineString starting and ending at the given fractions.- Parameters:
geometry- the input linesstart- the start fraction between 0 and 1end- the end fraction between 0 and 1- Returns:
- single or multiparts lines
- Throws:
SQLException
-
-