OSM::Tree::Relation -- OSM Relation
the Relation-Object derived from OSM::Tree::BASE
ToPeG
the relation-object
get an member of this relation
returns an member-object or undef if there is no member with this id
add member
keys are:
- ref = ID of the Way/Node/Relation - type = type of the member (way/node/relation) - role = The Role
see OSM::Tree::Member and OSM-XML spec for more
returns the an member-object if the ref points to an Object in the OSM::Tree or 1 if not or return undef if it fails;
remove a member returns 1 on success;
remove a member returns 1 on success;
get an member-object-list if this relation if an coderefence is given it will use as filter.
returns an member-object-list or an empty list if there are no members
get an member-id-list if this relation
returns an member-id-list or an empty list if there are no members
get the length the list of all members
returns the length of the member-list
returns true if the member-id exists
returns $self->tag('type') but is faster.
the member-object
get the type of the child of this member
returns an String of the type ("way","node","relation")
get the child of this member
returns an Object
returns a String or undef if the XML-tag ist not set