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.DeterministicScalarFunction
ST_MakeLine constructs a LINESTRING from POINT and MULTIPOINT geometries.
- Author:
- Adam Gouge
-
Field Summary
FieldsFields inherited from interface org.h2gis.api.Function
PROP_NAME, PROP_REMARKSFields inherited from interface org.h2gis.api.ScalarFunction
PROP_DETERMINISTIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 MULTIPOINTsMethods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2gis.api.Function
getProperty
-
Field Details
-
REQUIRED_NUMBER_OF_POINTS
public static final int REQUIRED_NUMBER_OF_POINTS- See Also:
-
-
Constructor Details
-
ST_MakeLine
public ST_MakeLine()
-
-
Method Details
-
getJavaStaticMethod
-
createLine
public static org.locationtech.jts.geom.LineString createLine(org.locationtech.jts.geom.Geometry pointA, org.locationtech.jts.geom.Geometry... optionalPoints) throws SQLException Constructs 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 SQLException Constructs 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
-