Class GeometryDimensionCollector

  • All Implemented Interfaces:
    GeometryComponentFilter

    public class GeometryDimensionCollector
    extends Object
    implements GeometryComponentFilter
    Collects component of a given geometry that have the desired dimension
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Geometry collect()
      Returns the collected elements as either: null: in case the colletion is empty single geometry: in case there is a single item multi-geometry: in all other cases
      void filter​(Geometry geom)  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeometryDimensionCollector

        public GeometryDimensionCollector​(int targetDimension)
    • Method Detail

      • filter

        public void filter​(Geometry geom)
        Specified by:
        filter in interface GeometryComponentFilter
      • collect

        public Geometry collect()
        Returns the collected elements as either:
        • null: in case the colletion is empty
        • single geometry: in case there is a single item
        • multi-geometry: in all other cases