Package org.locationtech.jts.simplify
Class TopologyPreservingSimplifier.LineStringTransformer
java.lang.Object
org.locationtech.jts.geom.util.GeometryTransformer
org.locationtech.jts.simplify.TopologyPreservingSimplifier.LineStringTransformer
- Enclosing class:
TopologyPreservingSimplifier
-
Field Summary
FieldsFields inherited from class org.locationtech.jts.geom.util.GeometryTransformer
factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CoordinateSequence
transformCoordinates
(CoordinateSequence coords, Geometry parent) Transforms aCoordinateSequence
.Methods inherited from class org.locationtech.jts.geom.util.GeometryTransformer
copy, createCoordinateSequence, getInputGeometry, transform, transformGeometryCollection, transformLinearRing, transformLineString, transformMultiLineString, transformMultiPoint, transformMultiPolygon, transformPoint, transformPolygon
-
Field Details
-
linestringMap
-
-
Constructor Details
-
LineStringTransformer
-
-
Method Details
-
transformCoordinates
Description copied from class:GeometryTransformer
Transforms aCoordinateSequence
. 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.- Overrides:
transformCoordinates
in classGeometryTransformer
- Parameters:
coords
- the coordinates to transformparent
- the parent geometry- Returns:
- the transformed coordinates
-