Package org.locationtech.jts.geom.util
Class GeometryMapper
- java.lang.Object
-
- org.locationtech.jts.geom.util.GeometryMapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGeometryMapper.MapOpAn interface for geometry functions used for mapping.
-
Constructor Summary
Constructors Constructor Description GeometryMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collectionmap(Collection geoms, GeometryMapper.MapOp op)static Geometrymap(Geometry geom, GeometryMapper.MapOp op)Maps the members of aGeometry(which may be atomic or composite) into another Geometry of most specific type.
-
-
-
Method Detail
-
map
public 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. null results are skipped. In the case of hierarchicalGeometryCollections, 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
public static Collection map(Collection geoms, GeometryMapper.MapOp op)
-
-