Ejemplo n.º 1
0
 /// <summary>
 /// Simplify a collection of <c>TaggedLineString</c>s.
 /// </summary>
 /// <param name="taggedLines">The collection of lines to simplify.</param>
 public void Simplify(IList taggedLines)
 {
     for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext(); )
         inputIndex.Add((TaggedLineString)i.Current);
     for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext(); )
     {
         TaggedLineStringSimplifier tlss
                       = new TaggedLineStringSimplifier(inputIndex, outputIndex);
         tlss.DistanceTolerance = distanceTolerance;
         tlss.Simplify((TaggedLineString)i.Current);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Simplify a collection of <c>TaggedLineString</c>s.
 /// </summary>
 /// <param name="taggedLines">The collection of lines to simplify.</param>
 public void Simplify(IList taggedLines)
 {
     for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext();)
     {
         inputIndex.Add((TaggedLineString)i.Current);
     }
     for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext();)
     {
         TaggedLineStringSimplifier tlss
             = new TaggedLineStringSimplifier(inputIndex, outputIndex);
         tlss.DistanceTolerance = distanceTolerance;
         tlss.Simplify((TaggedLineString)i.Current);
     }
 }