Class ST_Explode

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

    public class ST_Explode
    extends org.h2gis.api.AbstractFunction
    implements org.h2gis.api.ScalarFunction
    This table function explode Geometry Collection into multiple geometries
    Author:
    Nicolas Fortin
    • Field Detail

      • EXPLODE_FIELD

        public static final String EXPLODE_FIELD
        The default field name for explode count, value is [1-n]
        See Also:
        Constant Field Values
    • Constructor Detail

      • ST_Explode

        public ST_Explode()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
        Specified by:
        getJavaStaticMethod in interface org.h2gis.api.ScalarFunction
      • explode

        public static ResultSet explode​(Connection connection,
                                        String tableName)
                                 throws SQLException
        Explode Geometry Collection into multiple geometries
        Parameters:
        connection -
        tableName - the name of the input table or select query
        Returns:
        A result set with the same content of specified table but with atomic geometries and duplicate values.
        Throws:
        SQLException
      • explode

        public static ResultSet explode​(Connection connection,
                                        String tableName,
                                        String fieldName)
                                 throws SQLException
        Explode Geometry Collection into multiple geometries
        Parameters:
        connection -
        tableName - the name of the input table
        fieldName - the name of geometry field. If null the first geometry column is used.
        Returns:
        Throws:
        SQLException