/** * Simplify a collection of TaggedLineStrings * * @param taggedLines the collection of lines to simplify */ public void simplify(Collection taggedLines) { for (Iterator i = taggedLines.iterator(); i.hasNext(); ) { inputIndex.add((TaggedLineString) i.next()); } for (Iterator i = taggedLines.iterator(); i.hasNext(); ) { TaggedLineStringSimplifier tlss = new TaggedLineStringSimplifier(inputIndex, outputIndex); tlss.setDistanceTolerance(distanceTolerance); tlss.simplify((TaggedLineString) i.next()); } }
/** * Simplify a collection of TaggedLineStrings * * @param taggedLines the collection of lines to simplify */ public void simplify(Collection taggedLines) { for (Iterator i = taggedLines.iterator(); i.hasNext(); ) { inputIndex.add((TaggedLineString) i.next()); } for (Iterator i = taggedLines.iterator(); i.hasNext(); ) { TaggedLineStringSimplifier tlss = new TaggedLineStringSimplifier(inputIndex, outputIndex); tlss.setDistanceTolerance(distanceTolerance); tlss.simplify((TaggedLineString) i.next()); } }