NAME

OSM::Tree::TagList -- OSM Node

SYNOPSIS

DESCRIPTION

Parse OpenStreetMap XML file

AUTHOR

ToPeG

OSM::Tree::TagList

The TagList Object

element()

returns the parent object, of this TagList-object; can be: node, way or relation

case_sensetive(<1/0>)

get/set the casesensitivity of catching keys returns true/false

case(<1/0>)

alias for case_sensetive

key_list([@list])

returns a List of the Keys in this TagList if an list of names ist set, only Names in the list will be returned

key_list_length()

returns the length of this TagList

key_match(RegExp)

returns a list of Tags where the Keys matchs the ReguarExpression

has_key($name)

return true if the given TagName exists

has_all_keys($name1,$name2)

return true if all the given TagNames exists

tag(KEY)

return the tag-Object from this key

tag_add([KEY,VALUE] | TAG)

Create new Tag-Objekt return the tag-Object or undef

tag_del(KEY|TAG)

delete a tag returns 1 on success

tag_list([@names])

returns a List of the Tags in this TagList if an list of names ist set, only tags with a Name in the list will be returned

tag_list_length()

returns the length of this TagList

has_tag(RegExp)

return true if the given TagName exists

has_tags()

return true if Tags exists

tag_hash(name1=>key1,name2=>key2,name3=>key3)

return a hash with the found keys and names as key

Example:

 %tags=$tags->tag_hash(Name=>'name', BusLinie=>'line');
 # returns tomthing like that:
 %tags=(
   Name=>... OSM::Tree::Tag - Object
   BusLinie=>... OSM::Tree::Tag - Object
 );

OSM::Tree::Tag

the Tag-Object

overloads "" and cmp

USING

overload

element()

returns the parent object, of this tag-object; can be: node, way or relation

name()

returns the name of this Tag

value([POS])

return the joined values if no Parameter ist set or returns the parameter at the Position pased trou the Parameter or returns undef if the asked Value do not exists

Example: $first_value=$tag->value(0); $last_value =$tag->value(-1); $third_value=$tag->value(2); $all_values_joined=$tag->value();

value_set(VALUE)

returns 1 on success

value_list()

returns an List of the Values of this Tag

value_list_length()

returns the length valuelist of this Tag

value_inhertit_one(@LIST)

returns 1 if at least one Element of the List is an Value of this Tag otherwise 0 will be returned

value_inhertit_all(@LIST)

returns 1 if at least one Element of the List is an Value of this Tag otherwise 0 will be returned

value_match(RegExp)

returns a list of Values who matchs the ReguarExpression

See also

OSM::Tree::BASE

OSM::Tree::Node

OSM::Tree::Way

OSM::Tree::Relation

OSM::Tree::TagList

OSM::Tree::Polygon

OSM::Tree