org.h2gis.h2spatialext.function.spatial.properties
Class ST_Explode

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.h2spatialext.function.spatial.properties.ST_Explode
All Implemented Interfaces:
Function, ScalarFunction

public class ST_Explode
extends DeterministicScalarFunction

This table function explode Geometry Collection into multiple geometries

Author:
Nicolas Fortin

Field Summary
static String EXPLODE_FIELD
          The default field name for explode count, value is [1-n]
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_Explode()
           
 
Method Summary
static ResultSet explode(Connection connection, String tableName)
          Explode Geometry Collection into multiple geometries
static ResultSet explode(Connection connection, String tableName, String fieldName)
           
 String getJavaStaticMethod()
           
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

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()

explode

public static ResultSet explode(Connection connection,
                                String tableName)
                         throws SQLException
Explode Geometry Collection into multiple geometries

Parameters:
connection -
tableName -
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
Parameters:
connection -
tableName -
fieldName -
Returns:
Throws:
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.