class SnapTransformer extends GeometryTransformer
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isSelfSnap |
private Coordinate[] |
snapPts |
private double |
snapTolerance |
factory| Constructor and Description |
|---|
SnapTransformer(double snapTolerance,
Coordinate[] snapPts) |
SnapTransformer(double snapTolerance,
Coordinate[] snapPts,
boolean isSelfSnap) |
| Modifier and Type | Method and Description |
|---|---|
private Coordinate[] |
snapLine(Coordinate[] srcPts,
Coordinate[] snapPts) |
protected CoordinateSequence |
transformCoordinates(CoordinateSequence coords,
Geometry parent)
Transforms a
CoordinateSequence. |
copy, createCoordinateSequence, getInputGeometry, transform, transformGeometryCollection, transformLinearRing, transformLineString, transformMultiLineString, transformMultiPoint, transformMultiPolygon, transformPoint, transformPolygonprivate double snapTolerance
private Coordinate[] snapPts
private boolean isSelfSnap
SnapTransformer(double snapTolerance,
Coordinate[] snapPts)
SnapTransformer(double snapTolerance,
Coordinate[] snapPts,
boolean isSelfSnap)
protected CoordinateSequence transformCoordinates(CoordinateSequence coords, Geometry parent)
GeometryTransformerCoordinateSequence.
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 GeometryTransformercoords - the coordinates to transformparent - the parent geometryprivate Coordinate[] snapLine(Coordinate[] srcPts, Coordinate[] snapPts)