NAME

OSM::Tree::BASE -- BaseClass for Node Way Relation

SYNOPSIS

DESCRIPTION

BaseClass for

OSM::Tree::Node

OSM::Tree::Way

OSM::Tree::Relation

AUTHOR

ToPeG

USING

OSM::Tree::TagList

METHODS

id()

get the ID of this Object

returns an String of this ID

has_tags()

return 1 if this object has tags or 0 otherwise

tags(<CASESENITIVE>)

get an TagList-Object of this object

see OSM::Tree::TagList for more

returns an TagList-Object or undefined, if no tags in this node

has_tag(NAME,<CASESENITIVE>)

return 1 if this object has tag with this name or 0 otherwise

tag(NAME,<CASESENITIVE>)

get the value of the named tag

see OSM::Tree::TagList for more

returns an Tag-Object or undef if the named tag don't exists

user()

get the name of the creator of this node

returns a String of the autorname or undef if the XML-tag ist not set

action()

get the name of the creator of this node

returns a String of the autorname or undef if the XML-tag ist not set

self_del()

remove themself from the OSM Tree

user_id()

get the id of the creator of this node

returns a String of the autorname or undef if the XML-tag ist not set

changeset()

???

time()

get the timestamp of the creation of this node

returns a String of the Format: JJJJ-MM-DDTHH:MM:SS+HH:MM

like: 2009-03-30T19:38:29+01:00

or undef if the XML-tag ist not set

visible()

get the visibility of this node

returns a String contains "true" or "false" or undef if the XML-tag ist not set

type()

get the type of this Object

returns a String contains "Node", "Way" or "Relation"

version()

get the version of this Object

returns a Integer Number > 0

relation_list([<types>,...])

get the relation-objects to this node/way/relation

if a list of Types ist set only that kind of relations will be returned

see OSM::Tree::Relation for more

returns an relation-object list

relation_id_list()

get the relation-ids to this way

returns a relationID list

relation_list_length()

get the length the list of the relations

returns the length of the realtion-list

force_delete(<1/0>)

If i's set the nodes/ways/relation are deleted from the Stack. If it's not set the tag "action='delete'" is set

It's set by default

returns the actual state

show_deleted(<1/0>)

If i's set the nodes/ways/relation with "action='delete'" are listet as normal returns the actual state

It's not set by default

to_xml()

convert Element back to OSM-XML-Element

returns the a String of the OSM-XML-Tag

See also

OSM::Tree::BASE

OSM::Tree::Node

OSM::Tree::Way

OSM::Tree::Relation

OSM::Tree::TagList

OSM::Tree