private void processRelations(List<Osmformat.Relation> relations, PbfFieldDecoder fieldDecoder) { for (Osmformat.Relation relation : relations) { Map<String, String> tags = buildTags(relation.getKeysList(), relation.getValsList(), fieldDecoder); ReaderRelation osmRelation = new ReaderRelation(relation.getId()); osmRelation.setTags(tags); buildRelationMembers(osmRelation, relation.getMemidsList(), relation.getRolesSidList(), relation.getTypesList(), fieldDecoder); // Add the bound object to the results. decodedEntities.add(osmRelation); } }
/** * <code>repeated uint32 vals = 3 [packed = true];</code> */ @java.lang.Override public java.util.List<java.lang.Integer> getValsList() { return java.util.Collections.unmodifiableList( instance.getValsList()); } /**
output.writeUInt32NoTag(keys_.getInt(i)); if (getValsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(valsMemoizedSerializedSize);
if (!getValsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream
AvroPrimitive p = getPrimitive(r.getInfo()); p.setId(r.getId()); p.setTags(getTags(r.getKeysList(), r.getValsList())); r2.setCommon(p);
private void processRelations(List<Relation> relations, PbfFieldDecoder fieldDecoder) { for (Relation relation : relations) { org.openstreetmap.osmosis.core.domain.v0_6.Relation osmRelation; CommonEntityData entityData; if (relation.hasInfo()) { entityData = buildCommonEntityData(relation.getId(), relation.getKeysList(), relation.getValsList(), relation.getInfo(), fieldDecoder); } else { entityData = buildCommonEntityData(relation.getId(), relation.getKeysList(), relation.getValsList(), fieldDecoder); } osmRelation = new org.openstreetmap.osmosis.core.domain.v0_6.Relation(entityData); buildRelationMembers(osmRelation, relation.getMemidsList(), relation.getRolesSidList(), relation.getTypesList(), fieldDecoder); // Add the bound object to the results. decodedEntities.add(new RelationContainer(osmRelation)); } }
private void processRelations(List<Osmformat.Relation> relations, PbfFieldDecoder fieldDecoder) { for (Osmformat.Relation relation : relations) { Map<String, String> tags = buildTags(relation.getKeysList(), relation.getValsList(), fieldDecoder); ReaderRelation osmRelation = new ReaderRelation(relation.getId()); osmRelation.setTags(tags); buildRelationMembers(osmRelation, relation.getMemidsList(), relation.getRolesSidList(), relation.getTypesList(), fieldDecoder); // Add the bound object to the results. decodedEntities.add(osmRelation); } }
private void processRelations( List<Osmformat.Relation> relations, PbfFieldDecoder fieldDecoder ) { for (Osmformat.Relation relation : relations) { Map<String, String> tags = buildTags(relation.getKeysList(), relation.getValsList(), fieldDecoder); OSMRelation osmRelation = new OSMRelation(relation.getId()); osmRelation.setTags(tags); buildRelationMembers(osmRelation, relation.getMemidsList(), relation.getRolesSidList(), relation.getTypesList(), fieldDecoder); // Add the bound object to the results. decodedEntities.add(osmRelation); } }
private void processRelations(List<Osmformat.Relation> relations, PbfFieldDecoder fieldDecoder) { for (Osmformat.Relation relation : relations) { Map<String, String> tags = buildTags(relation.getKeysList(), relation.getValsList(), fieldDecoder); ReaderRelation osmRelation = new ReaderRelation(relation.getId()); osmRelation.setTags(tags); buildRelationMembers(osmRelation, relation.getMemidsList(), relation.getRolesSidList(), relation.getTypesList(), fieldDecoder); // Add the bound object to the results. decodedEntities.add(osmRelation); } }