com.vividsolutions.jts.geom.util
Class GeometryMapper
java.lang.Object
com.vividsolutions.jts.geom.util.GeometryMapper
public class GeometryMapper
- extends Object
Methods to map various collections
of Geometry
s
via defined mapping functions.
- Author:
- Martin Davis
Nested Class Summary |
static interface |
GeometryMapper.MapOp
An interface for geometry functions used for mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeometryMapper
public GeometryMapper()
map
public static Geometry map(Geometry geom,
GeometryMapper.MapOp op)
- Maps the members of a
Geometry
(which may be atomic or composite)
into another Geometry of most specific type.
null results are skipped.
In the case of hierarchical GeometryCollection
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
public static Collection map(Collection geoms,
GeometryMapper.MapOp op)
Copyright © 2012. All Rights Reserved.