Geo::OSM::DBI::Primitive - Base class for Geo::OSM::DBI::Primitive::Node, Geo::OSM::DBI::Primitive::Way and Geo::OSM::DBI::Primitive::Relation.
…
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).
<Geo::OSM::DBI::Primitive
This is necessary because these derived classes use multiple inheritance.
$osm_dbi must be a <Geo::OSM::DBI>.
$osm_dbi
my $name = $rel->name();
Returns the name of the object;
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.
$lang
To install Geo::OSM::DBI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::OSM::DBI
CPAN shell
perl -MCPAN -e shell install Geo::OSM::DBI
For more information on module installation, please visit the detailed CPAN module installation guide.