Package org.geotools.renderer.crs
Class GeometryDimensionCollector
- Object
-
- GeometryDimensionCollector
-
- All Implemented Interfaces:
GeometryComponentFilter
public class GeometryDimensionCollector extends Object implements GeometryComponentFilter
Collects component of a given geometry that have the desired dimension
-
-
Constructor Summary
Constructors Constructor Description GeometryDimensionCollector(int targetDimension)
-
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 casesvoid
filter(Geometry geom)
-
-
-
Method Detail
-
filter
public void filter(Geometry geom)
- Specified by:
filter
in interfaceGeometryComponentFilter
-
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
-
-