org.h2gis.h2spatialext.function.spatial.create
Class ST_MakeLine

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.h2spatialext.function.spatial.create.ST_MakeLine
All Implemented Interfaces:
Function, ScalarFunction

public class ST_MakeLine
extends DeterministicScalarFunction

ST_MakeLine constructs a LINESTRING from POINT and MULTIPOINT geometries.

Author:
Adam Gouge

Field Summary
static int REQUIRED_NUMBER_OF_POINTS
           
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_MakeLine()
           
 
Method Summary
static com.vividsolutions.jts.geom.LineString createLine(com.vividsolutions.jts.geom.GeometryCollection points)
          Constructs a LINESTRING from the given collection of POINTs and/or MULTIPOINTs
static com.vividsolutions.jts.geom.LineString createLine(com.vividsolutions.jts.geom.Geometry pointA, com.vividsolutions.jts.geom.Geometry... optionalPoints)
          Constructs a LINESTRING from the given POINTs or MULTIPOINTs
 String getJavaStaticMethod()
           
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Field Detail

REQUIRED_NUMBER_OF_POINTS

public static final int REQUIRED_NUMBER_OF_POINTS
See Also:
Constant Field Values
Constructor Detail

ST_MakeLine

public ST_MakeLine()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

createLine

public static com.vividsolutions.jts.geom.LineString createLine(com.vividsolutions.jts.geom.Geometry pointA,
                                                                com.vividsolutions.jts.geom.Geometry... optionalPoints)
                                                         throws SQLException
Constructs a LINESTRING from the given POINTs or MULTIPOINTs

Parameters:
pointA - The first POINT or MULTIPOINT
optionalPoints - Optional POINTs or MULTIPOINTs
Returns:
The LINESTRING constructed from the given POINTs or MULTIPOINTs
Throws:
SQLException

createLine

public static com.vividsolutions.jts.geom.LineString createLine(com.vividsolutions.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


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.