Represents a way in OpenStreetMap (a sequence of Nodes) More...
#include <Way.h>
Public Member Functions | |
Way () | |
Way (int64_t id) | |
Constructs a Way with given id. | |
virtual | ~Way () |
boost::property_tree::ptree | get_description () |
osm::ObjectType | get_type () const |
bool | operator== (Way const &e) const |
bool | operator!= (Way const &e) const |
void | fill (osmdb::PropertiesSelection &db) |
Fill attributes and possibly other information from db. | |
virtual int64_t | get_id () const |
void | add_to_relation (osmdb::ElementImporter &db, int64_t relation, std::string const &role) |
Execute the needed method of db to insert this element as member into relation. | |
Data Fields | |
int64_t | id |
std::vector< osm::Node > | nodes |
Member nodes - from first to last. | |
std::set< osm::Tag > | tags |
Way attributes. |
osm::Way::Way | ( | int64_t | id | ) |
void osm::Way::add_to_relation | ( | osmdb::ElementImporter & | db, |
int64_t | parentid, | ||
std::string const & | role | ||
) | [virtual] |
Execute the needed method of db to insert this element as member into relation.
db | to use when inserting |
parentid | relation id |
role | role to use when inserting |
Implements osm::Element.
void osm::Way::fill | ( | osmdb::PropertiesSelection & | db | ) | [virtual] |
boost::property_tree::ptree osm::Way::get_description | ( | ) | [virtual] |
Implements osm::Element.
int64_t osm::Way::get_id | ( | ) | const [virtual] |
osm::ObjectType osm::Way::get_type | ( | ) | const [virtual] |
int64_t osm::Way::id |
std::vector<osm::Node> osm::Way::nodes |
std::set<osm::Tag> osm::Way::tags |