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.ScalarFunction
This table function explode Geometry Collection into multiple geometries
- Author:
- Nicolas Fortin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExplode fields only on requeststatic classExplode fields only on request The input data must be a SELECT expression that contains a geometry column -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default field name for explode count, value is [1-n]Fields inherited from interface org.h2gis.api.Function
PROP_NAME, PROP_REMARKSFields inherited from interface org.h2gis.api.ScalarFunction
PROP_DETERMINISTIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultSetexplode(Connection connection, String tableName) Explode Geometry Collection into multiple geometriesstatic ResultSetexplode(Connection connection, String tableName, String fieldName) Explode Geometry Collection into multiple geometriesMethods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2gis.api.Function
getProperty
-
Field Details
-
EXPLODE_FIELD
The default field name for explode count, value is [1-n]- See Also:
-
-
Constructor Details
-
ST_Explode
public ST_Explode()
-
-
Method Details
-
getJavaStaticMethod
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
explode
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
-