org.h2gis.h2spatialext.function.spatial.properties
Class ST_3DLength

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

public class ST_3DLength
extends DeterministicScalarFunction

ST_3DLength returns the 3D length (of a LineString) or the 3D perimeter (of a Polygon). In the case of a 2D geometry, ST_3DLength returns the same value as ST_Length.

Author:
Adam Gouge

Field Summary
 
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_3DLength()
           
 
Method Summary
 String getJavaStaticMethod()
           
static double length3D(com.vividsolutions.jts.geom.CoordinateSequence points)
          Computes the length of a LineString specified by a sequence of coordinates.
static double length3D(com.vividsolutions.jts.geom.Geometry geom)
          Returns the 3D length of the given geometry.
static double length3D(com.vividsolutions.jts.geom.LineString lineString)
          Returns the 3D perimeter of the given LineString.
static double length3D(com.vividsolutions.jts.geom.Polygon polygon)
          Returns the 3D perimeter of the given polygon.
static Double stLength3D(com.vividsolutions.jts.geom.Geometry geom)
          Returns the 3D length (of a LineString) or the 3D perimeter (of a Polygon).
 
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
 

Constructor Detail

ST_3DLength

public ST_3DLength()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

stLength3D

public static Double stLength3D(com.vividsolutions.jts.geom.Geometry geom)
Returns the 3D length (of a LineString) or the 3D perimeter (of a Polygon).

Parameters:
geom - Geometry
Returns:
The 3D length (of a LineString) or the 3D perimeter (of a Polygon)

length3D

public static double length3D(com.vividsolutions.jts.geom.Geometry geom)
Returns the 3D length of the given geometry.

Parameters:
geom - Geometry
Returns:
The 3D length of the given geometry

length3D

public static double length3D(com.vividsolutions.jts.geom.Polygon polygon)
Returns the 3D perimeter of the given polygon.

Parameters:
polygon - Polygon
Returns:
The 3D perimeter of the given polygon

length3D

public static double length3D(com.vividsolutions.jts.geom.LineString lineString)
Returns the 3D perimeter of the given LineString.

Parameters:
lineString - LineString
Returns:
The 3D perimeter of the given LineString

length3D

public static double length3D(com.vividsolutions.jts.geom.CoordinateSequence points)
Computes the length of a LineString specified by a sequence of coordinates.

Parameters:
points - The coordinate sequence
Returns:
The length of the corresponding LineString


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