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 Details

    • linestringMap

      private Map linestringMap
  • Constructor Details

    • LineStringTransformer

      public LineStringTransformer(Map linestringMap)
  • Method Details

    • transformCoordinates

      protected CoordinateSequence transformCoordinates(CoordinateSequence coords, Geometry parent)
      Description copied from class: GeometryTransformer
      Transforms a 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.
      Overrides:
      transformCoordinates in class GeometryTransformer
      Parameters:
      coords - the coordinates to transform
      parent - the parent geometry
      Returns:
      the transformed coordinates