Class ST_StartPoint

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

    public class ST_StartPoint
    extends org.h2gis.api.DeterministicScalarFunction
    Returns the first coordinate of a Geometry as a POINT, given that the Geometry is a LINESTRING or a MULTILINESTRING containing only one LINESTRING; Returns NULL for all other Geometries.
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_StartPoint

        public ST_StartPoint()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • getStartPoint

        public static org.locationtech.jts.geom.Geometry getStartPoint​(org.locationtech.jts.geom.Geometry geometry)
        Parameters:
        geometry - Geometry
        Returns:
        The first coordinate of a Geometry as a POINT, given that the Geometry is a LINESTRING or a MULTILINESTRING containing only one LINESTRING; Returns NULL for all other Geometries.