Exemple #1
0
 void update(const osmium::RelationMember& member) {
     update_int64(member.ref());
     update_int16(uint16_t(member.type()));
     update_string(member.role());
 }
 void relation_member(const osmium::RelationMember& member) {
     *m_out += item_type_to_char(member.type());
     output_int(member.ref());
     *m_out += '@';
     append_encoded_string(member.role());
 }
 /**
  * Overwritten from the base class.
  */
 bool keep_member(const osmium::relations::RelationMeta& /*relation_meta*/, const osmium::RelationMember& member) const {
     // We are only interested in members of type way.
     return member.type() == osmium::item_type::way;
 }
Exemple #4
0
 bool member_is_valid(const osmium::RelationMember& member) {
     return member.type() == osmium::item_type::way;
 }
Exemple #5
0
 bool keep_member(const osmium::relations::RelationMeta&,
                  const osmium::RelationMember& member) const {
     return member.type() == osmium::item_type::way;
 }
 bool new_member(const osmium::Relation& /*relation*/, const osmium::RelationMember& member, std::size_t /*n*/) noexcept {
     return member.type() == osmium::item_type::node;
 }