René Nyffenegger

Geo::OSM::DBI::Primitive - Base class for Geo::OSM::DBI::Primitive::Node, Geo::OSM::DBI::Primitive::Way and Geo::OSM::DBI::Primitive::Relation.

SYNOPSIS

METHODS

_init_geo_osm_dbi_primitive

    my sth = $self->_init_geo_osm_dbi_primitive($osm_dbi);

Initializes a derived class of <Geo::OSM::DBI::Primitive> ( Geo::OSM::DBI::Primitive::Node, Geo::OSM::DBI::Primitive::Way and Geo::OSM::DBI::Primitive::Relation).

This is necessary because these derived classes use multiple inheritance.

$osm_dbi must be a <Geo::OSM::DBI>.

name

    my $name = $rel->name();

Returns the name of the object;

name_in_lang

    my $lang = 'de'; # or 'en' or 'fr' or 'it' or …
    my $name = $rel->name_in_lang($lang);

Returns the name of the object in the language $lang.