removeRepeatedPoints static method
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);
}