static class Densifier.DensifyTransformer extends GeometryTransformer
Modifier and Type | Field and Description |
---|---|
(package private) double |
distanceTolerance |
factory
Constructor and Description |
---|
DensifyTransformer(double distanceTolerance) |
Modifier and Type | Method and Description |
---|---|
private Geometry |
createValidArea(Geometry roughAreaGeom)
Creates a valid area geometry from one that possibly has bad topology
(i.e.
|
protected CoordinateSequence |
transformCoordinates(CoordinateSequence coords,
Geometry parent)
Transforms a
CoordinateSequence . |
protected Geometry |
transformMultiPolygon(MultiPolygon geom,
Geometry parent) |
protected Geometry |
transformPolygon(Polygon geom,
Geometry parent) |
copy, createCoordinateSequence, getInputGeometry, transform, transformGeometryCollection, transformLinearRing, transformLineString, transformMultiLineString, transformMultiPoint, transformPoint
protected CoordinateSequence transformCoordinates(CoordinateSequence coords, Geometry parent)
GeometryTransformer
CoordinateSequence
.
This method should always return a valid coordinate list for
the desired result type. (E.g. a coordinate list for a LineString
must have 0 or at least 2 points).
If this is not possible, return an empty sequence -
this will be pruned out.transformCoordinates
in class GeometryTransformer
coords
- the coordinates to transformparent
- the parent geometryprotected Geometry transformPolygon(Polygon geom, Geometry parent)
transformPolygon
in class GeometryTransformer
protected Geometry transformMultiPolygon(MultiPolygon geom, Geometry parent)
transformMultiPolygon
in class GeometryTransformer
private Geometry createValidArea(Geometry roughAreaGeom)
roughAreaGeom
- an area geometry possibly containing self-intersections