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
static class TopologyPreservingSimplifier.LineStringTransformer extends GeometryTransformer
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
linestringMap
-
Fields inherited from class org.locationtech.jts.geom.util.GeometryTransformer
factory
-
-
Constructor Summary
Constructors Constructor Description LineStringTransformer(java.util.Map linestringMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
transformCoordinates
protected CoordinateSequence transformCoordinates(CoordinateSequence coords, Geometry parent)
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
-
-