Class ST_PolyFromWKB

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

    public class ST_PolyFromWKB
    extends org.h2gis.api.DeterministicScalarFunction
    Convert Well Known Binary into Geometry then check that it is a Polygon
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_PolyFromWKB

        public ST_PolyFromWKB()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • toPolygon

        public static org.locationtech.jts.geom.Geometry toPolygon​(byte[] bytes)
                                                            throws SQLException,
                                                                   IOException
        Parameters:
        bytes - WKB
        Returns:
        Geometry instance of null if bytes are null
        Throws:
        SQLException - Wkb parse exception
        IOException
      • toPolygon

        public static org.locationtech.jts.geom.Geometry toPolygon​(byte[] bytes,
                                                                   int srid)
                                                            throws SQLException,
                                                                   IOException
        Parameters:
        bytes - WKB
        srid - SRID
        Returns:
        Geometry instance of null if bytes are null
        Throws:
        SQLException - Wkb parse exception
        IOException