private ILinearRing CreateLinearRing(ICoordinateSequence coordinates, bool ccw) { if (coordinates != null && Algorithm.CGAlgorithms.IsCCW(coordinates) != ccw) { //CoordinateSequences.Reverse(coordinates); coordinates = coordinates.Reversed(); } return CreateLinearRing(coordinates); }
private ILinearRing CreateLinearRing(ICoordinateSequence coordinates, bool ccw) { if (coordinates != null && Orientation.IsCCW(coordinates) != ccw) { //CoordinateSequences.Reverse(coordinates); coordinates = coordinates.Reversed(); } return(CreateLinearRing(coordinates)); }
private ILinearRing CreateLinearRing(ICoordinateSequence coordinates, bool ccw) { if (coordinates != null && Algorithm.CGAlgorithms.IsCCW(coordinates) != ccw) { //CoordinateSequences.Reverse(coordinates); coordinates = coordinates.Reversed(); } return(CreateLinearRing(coordinates)); }
/// <summary> /// Creates a <see cref="LineString" /> whose coordinates are in the reverse order of this objects. /// </summary> /// <returns>A <see cref="LineString" /> with coordinates in the reverse order.</returns> public override IGeometry Reverse() { /* * var seq = (ICoordinateSequence)_points.Clone(); * CoordinateSequences.Reverse(seq); */ var seq = _points.Reversed(); return(Factory.CreateLineString(seq)); }