Class 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 Detail

      • ST_CollectionExtract

        public ST_CollectionExtract()
    • 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.ParseException
        Given 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