예제 #1
0
 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));
 }
예제 #2
0
        public static Coordinate[] Simplify(Coordinate[] pts, double distanceTolerance)
        {
            VWLineSimplifier simp = new VWLineSimplifier(pts, distanceTolerance);

            return(simp.Simplify());
        }