Class ST_PointFromWKB

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

    public class ST_PointFromWKB
    extends org.h2gis.api.DeterministicScalarFunction
    Convert Well Known Binary into a POINT.
    Author:
    Erwan Bocher
    • Constructor Detail

      • ST_PointFromWKB

        public ST_PointFromWKB()
    • Method Detail

      • toPoint

        public static org.locationtech.jts.geom.Geometry toPoint​(byte[] bytes)
                                                          throws SQLException,
                                                                 IOException
        Convert WKT into a Point
        Parameters:
        bytes - Byte array
        Returns:
        Point instance of null if bytes null
        Throws:
        SQLException - WKB Parse error
        IOException
      • toPoint

        public static org.locationtech.jts.geom.Geometry toPoint​(byte[] bytes,
                                                                 int srid)
                                                          throws SQLException,
                                                                 IOException
        Convert WKT into a Point
        Parameters:
        bytes - Byte array
        srid - SRID
        Returns:
        Point instance of null if bytes null
        Throws:
        SQLException - WKB Parse error
        IOException
      • getJavaStaticMethod

        public String getJavaStaticMethod()