protected override ICoordinateSequence TransformCoordinates(ICoordinateSequence coords, IGeometry parent) { Coordinate[] inputPts = coords.ToCoordinateArray(); Coordinate[] newPts; if (inputPts.Length == 0) { newPts = new Coordinate[0]; } else { newPts = VWLineSimplifier.Simplify(inputPts, _distanceTolerance); } return(Factory.CoordinateSequenceFactory.Create(newPts)); }
public static Coordinate[] Simplify(Coordinate[] pts, double distanceTolerance) { VWLineSimplifier simp = new VWLineSimplifier(pts, distanceTolerance); return(simp.Simplify()); }