private void addAll(Set<Feature> s, Iterator<Feature> i) {
   while (i.hasNext()) s.add(i.next());
 }