public void visit(Way w) { if (w.isNewOrUndeleted() || w.isModified() || w.isDeleted()) { // upload new ways as well as modified and deleted ones hull.add(w); for (Node n : w.getNodes()) { // we upload modified nodes even if they aren't in the current // selection. n.visit(this); } } }