removeRepeatedPoints static method

List<Coordinate> removeRepeatedPoints(
  1. List<Coordinate> coord
)

If the coordinate array argument has repeated points, constructs a new array containing no repeated points. Otherwise, returns the argument. @see #hasRepeatedPoints(List

Implementation

static List<Coordinate> removeRepeatedPoints(List<Coordinate> coord) {
  if (!CollectionsUtils.hasRepeated(coord)) return coord;
  return CollectionsUtils.removeRepeated(coord);
}