Package org.h2gis.functions.spatial.edit
Class ST_CollectionExtract
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.edit.ST_CollectionExtract
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_CollectionExtract extends org.h2gis.api.DeterministicScalarFunction- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ST_CollectionExtract()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.Geometryexecute(org.locationtech.jts.geom.Geometry geometry, int dimension)Given a (multi)geometry, returns a (multi)geometry consisting only of elements of the specified type.static org.locationtech.jts.geom.Geometryexecute(org.locationtech.jts.geom.Geometry geometry, int dimension1, int dimension2)Given a (multi)geometry, returns a (multi)geometry consisting only of elements of the specified type.StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
execute
public static org.locationtech.jts.geom.Geometry execute(org.locationtech.jts.geom.Geometry geometry, int dimension1, int dimension2) throws SQLExceptionGiven a (multi)geometry, returns a (multi)geometry consisting only of elements of the specified type. Sub-geometries that are not the specified type are ignored. If there are no sub-geometries of the right type, an EMPTY geometry will be returned. Only points, lines and polygons are extracted.- Parameters:
geometry-dimension1- one dimension to filterdimension2- second dimension to filter- Returns:
- Throws:
SQLException
-
execute
public static org.locationtech.jts.geom.Geometry execute(org.locationtech.jts.geom.Geometry geometry, int dimension) throws SQLExceptionGiven a (multi)geometry, returns a (multi)geometry consisting only of elements of the specified type. Sub-geometries that are not the specified type are ignored. If there are no sub-geometries of the right type, an EMPTY geometry will be returned. Only points, lines and polygons are extracted.- Parameters:
geometry-dimension-- Returns:
- Throws:
SQLException
-
-