Class ST_MakeLine
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.create.ST_MakeLine
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_MakeLine extends org.h2gis.api.DeterministicScalarFunctionST_MakeLine constructs a LINESTRING from POINT and MULTIPOINT geometries.- Author:
- Adam Gouge
-
-
Field Summary
Fields Modifier and Type Field Description static intREQUIRED_NUMBER_OF_POINTS
-
Constructor Summary
Constructors Constructor Description ST_MakeLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.LineStringcreateLine(org.locationtech.jts.geom.GeometryCollection points)Constructs a LINESTRING from the given collection of POINTs and/or MULTIPOINTsstatic org.locationtech.jts.geom.LineStringcreateLine(org.locationtech.jts.geom.Geometry pointA, org.locationtech.jts.geom.Geometry... optionalPoints)Constructs a LINESTRING from the given POINTs or MULTIPOINTsStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Field Detail
-
REQUIRED_NUMBER_OF_POINTS
public static final int REQUIRED_NUMBER_OF_POINTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
createLine
public static org.locationtech.jts.geom.LineString createLine(org.locationtech.jts.geom.Geometry pointA, org.locationtech.jts.geom.Geometry... optionalPoints) throws SQLExceptionConstructs a LINESTRING from the given POINTs or MULTIPOINTs- Parameters:
pointA- The first POINT or MULTIPOINToptionalPoints- Optional POINTs or MULTIPOINTs- Returns:
- The LINESTRING constructed from the given POINTs or MULTIPOINTs
- Throws:
SQLException
-
createLine
public static org.locationtech.jts.geom.LineString createLine(org.locationtech.jts.geom.GeometryCollection points) throws SQLExceptionConstructs a LINESTRING from the given collection of POINTs and/or MULTIPOINTs- Parameters:
points- Points- Returns:
- The LINESTRING constructed from the given collection of POINTs and/or MULTIPOINTs
- Throws:
SQLException
-
-