static class TopologyPreservingSimplifier.LineStringTransformer extends GeometryTransformer
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
linestringMap |
factory
Constructor and Description |
---|
LineStringTransformer(java.util.Map linestringMap) |
Modifier and Type | Method and Description |
---|---|
protected CoordinateSequence |
transformCoordinates(CoordinateSequence coords,
Geometry parent)
Transforms a
CoordinateSequence . |
copy, createCoordinateSequence, getInputGeometry, transform, transformGeometryCollection, transformLinearRing, transformLineString, transformMultiLineString, transformMultiPoint, transformMultiPolygon, transformPoint, transformPolygon
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 geometry