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.GeometrycollectionExtract(org.locationtech.jts.geom.Geometry geometry, int dimension)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()
-
collectionExtract
public static org.locationtech.jts.geom.Geometry collectionExtract(org.locationtech.jts.geom.Geometry geometry, int dimension) throws org.locationtech.jts.io.ParseExceptionGiven 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:
org.locationtech.jts.io.ParseException
-
-