Class ST_Explode
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.spatial.properties.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.ScalarFunctionThis table function explode Geometry Collection into multiple geometries- Author:
- Nicolas Fortin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classST_Explode.ExplodeResultSetExplode fields only on requeststatic classST_Explode.ExplodeResultSetQueryExplode fields only on request The input data must be a SELECT expression that contains a geometry column
-
Field Summary
Fields Modifier and Type Field Description static StringEXPLODE_FIELDThe default field name for explode count, value is [1-n]
-
Constructor Summary
Constructors Constructor Description ST_Explode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultSetexplode(Connection connection, String tableName)Explode Geometry Collection into multiple geometriesstatic ResultSetexplode(Connection connection, String tableName, String fieldName)Explode Geometry Collection into multiple geometriesStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
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
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.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 tablefieldName- the name of geometry field. If null the first geometry column is used.- Returns:
- Throws:
SQLException
-
-