reverse method

Geometry reverse()
override

Creates a {@link LineString} whose coordinates are in the reverse order of this objects

@return a {@link LineString} with coordinates in the reverse order

Implementation

Geometry reverse() {
  CoordinateSequence seq = points.copy();
  CoordinateSequences.reverse(seq);
  LinearRing rev = getFactory().createLinearRingSeq(seq);
  return rev;
}