Class ST_X

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

    public class ST_X
    extends org.h2gis.api.DeterministicScalarFunction
    Get the first X coordinate
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_X

        public ST_X()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • getX

        public static Double getX​(org.locationtech.jts.geom.Geometry geometry)
        Parameters:
        geometry - Geometry instance
        Returns:
        A x coordinate or null if null or empty geometry.