public static String printTags(OSMElement element) { Map<String, String> tags = element.getTags(); Set<String> keys = tags.keySet(); String str = ""; for (String k : keys) { str += k + ": " + tags.get(k) + "\n"; } return str; }
public void consumeOSMElement(OSMElement el, String osmUserName) throws IOException { checksum = el.checksum(); editedXml = OSMXmlWriter.elementToString(el, osmUserName, APP_NAME + " " + appVersion); }