Package org.locationtech.jts.geom.util
Class GeometryMapper
java.lang.Object
org.locationtech.jts.geom.util.GeometryMapper
Methods to map various collections
of
Geometry
s
via defined mapping functions.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
An interface for geometry functions used for mapping. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
map
(Collection geoms, GeometryMapper.MapOp op) static Geometry
map
(Geometry geom, GeometryMapper.MapOp op) Maps the members of aGeometry
(which may be atomic or composite) into another Geometry of most specific type.
-
Constructor Details
-
GeometryMapper
public GeometryMapper()
-
-
Method Details
-
map
Maps the members of aGeometry
(which may be atomic or composite) into another Geometry of most specific type. null results are skipped. In the case of hierarchicalGeometryCollection
s, only the first level of members are mapped.- Parameters:
geom
- the input atomic or composite geometryop
- the mapping operation- Returns:
- a result collection or geometry of most specific type
-
map
-