Class ST_3DLength

  • All Implemented Interfaces:
    org.h2gis.api.Function, org.h2gis.api.ScalarFunction

    public class ST_3DLength
    extends org.h2gis.api.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.api.Function

        PROP_NAME, PROP_REMARKS
      • Fields inherited from interface org.h2gis.api.ScalarFunction

        PROP_DETERMINISTIC
    • Constructor Summary

      Constructors 
      Constructor Description
      ST_3DLength()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getJavaStaticMethod()  
      static double length3D​(org.locationtech.jts.geom.CoordinateSequence points)
      Computes the length of a LineString specified by a sequence of coordinates.
      static double length3D​(org.locationtech.jts.geom.Geometry geom)
      Returns the 3D length of the given geometry.
      static double length3D​(org.locationtech.jts.geom.LineString lineString)
      Returns the 3D perimeter of the given LineString.
      static double length3D​(org.locationtech.jts.geom.Polygon polygon)
      Returns the 3D perimeter of the given polygon.
      static Double stLength3D​(org.locationtech.jts.geom.Geometry geom)
      Returns the 3D length (of a LineString or MultiLineString) ortherwise 0.
      • Methods inherited from class org.h2gis.api.AbstractFunction

        addProperty, getProperty, removeProperty
      • Methods inherited from interface org.h2gis.api.Function

        getProperty
    • Constructor Detail

      • ST_3DLength

        public ST_3DLength()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • stLength3D

        public static Double stLength3D​(org.locationtech.jts.geom.Geometry geom)
        Returns the 3D length (of a LineString or MultiLineString) ortherwise 0.
        Parameters:
        geom - Geometry
        Returns:
        The 3D length (of a LineString or MultiLineString) ortherwise 0
      • length3D

        public static double length3D​(org.locationtech.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​(org.locationtech.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​(org.locationtech.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​(org.locationtech.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