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