@Override protected void parseWays(List<Osmformat.Way> ways) { for (Osmformat.Way w : ways) { AvroWay w2 = new AvroWay(); AvroPrimitive p = getPrimitive(w.getInfo()); p.setId(w.getId()); p.setTags(getTags(w.getKeysList(), w.getValsList())); w2.setCommon(p); long lastRef = 0; List<Long> nodes = new ArrayList<>(w.getRefsCount()); for (Long ref : w.getRefsList()) { lastRef += ref; nodes.add(lastRef); } w2.setNodes(nodes); try { wayWriter.append(w2); } catch (IOException e) { LOGGER.error("Unable to write way", e); } } }
.computeMessageSize(4, getInfo());
output.writeMessage(4, getInfo());
Osmformat.Info info = i.getInfo(); tmp = new Way(new CommonEntityData(id, info.getVersion(), getDate(info), getUser(info), info.getChangeset(), tags), nodes);
entityData = buildCommonEntityData(way.getId(), way.getKeysList(), way.getValsList(), way.getInfo(), fieldDecoder);
/** * <code>optional .OSMPBF.Info info = 4;</code> */ @java.lang.Override public org.openstreetmap.osmosis.osmbinary.Osmformat.Info getInfo() { return instance.getInfo(); } /**