Class ST_GeometryTypeCode

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

    public class ST_GeometryTypeCode
    extends org.h2gis.api.DeterministicScalarFunction
    Returns the OGC SFS GeometryTypeCodes of a Geometry. This function does not take account of Z nor M. This function is not part of SFS; see ST_GeometryType It is used in constraints.
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_GeometryTypeCode

        public ST_GeometryTypeCode()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • getTypeCode

        public static Integer getTypeCode​(org.locationtech.jts.geom.Geometry geometry)
                                   throws IOException
        Parameters:
        geometry - Geometry WKB.
        Returns:
        Returns the OGC SFS GeometryTypeCodes of a Geometry. This function does not take account of Z nor M.
        Throws:
        IOException - WKB is not valid.