Modifier and Type | Class and Description |
---|---|
static interface |
GeometryMapper.MapOp
An interface for geometry functions that map a geometry input to a geometry output.
|
Constructor and Description |
---|
GeometryMapper() |
Modifier and Type | Method and Description |
---|---|
static Geometry |
flatMap(Geometry geom,
int emptyDim,
GeometryMapper.MapOp op)
Maps the atomic elements of a
Geometry
(which may be atomic or composite)
using a GeometryMapper.MapOp mapping operation
into an atomic Geometry or a flat collection
of the most specific type. |
static Collection |
map(Collection geoms,
GeometryMapper.MapOp op) |
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. |
public static Geometry map(Geometry geom, GeometryMapper.MapOp op)
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.geom
- the input atomic or composite geometryop
- the mapping operationpublic static Collection map(Collection geoms, GeometryMapper.MapOp op)
public static Geometry flatMap(Geometry geom, int emptyDim, GeometryMapper.MapOp op)
Geometry
(which may be atomic or composite)
using a GeometryMapper.MapOp
mapping operation
into an atomic Geometry or a flat collection
of the most specific type.
null and empty values returned from the mapping operation
are discarded.geom
- the geometry to mapemptyDim
- the dimension of empty geometry to createop
- the mapping operationCopyright © 2022. All rights reserved.