public class GeometryDimensionCollector extends Object implements GeometryComponentFilter
| Constructor and Description | 
|---|
| GeometryDimensionCollector(int targetDimension) | 
| Modifier and Type | Method and 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) | 
public GeometryDimensionCollector(int targetDimension)
public void filter(Geometry geom)
filter in interface GeometryComponentFilterpublic Geometry collect()
Copyright © 1996–2019 Geotools. All rights reserved.