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); } }
output.writeSInt64NoTag(memids_.getLong(i)); if (getTypesList().size() > 0) { output.writeUInt32NoTag(82); output.writeUInt32NoTag(typesMemoizedSerializedSize);
if (!getTypesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize);
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); } }
/** * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> */ @java.lang.Override public java.util.List<org.openstreetmap.osmosis.osmbinary.Osmformat.Relation.MemberType> getTypesList() { return instance.getTypesList(); } /**