43 if (entry != node->
getTags().end()) {
44 std::stringstream strstream(entry->second.str());
46 strstream >> tagvalue;
49 if (!strstream.bad() && tagvalue >=
value) {
50 next->matchNode(nodeID, ti, attributes);
60 if (entry != way->
getTags().end()) {
61 std::stringstream strstream(entry->second.str());
63 strstream >> tagvalue;
65 if (!strstream.bad() && tagvalue >=
value) {
66 next->matchWay(wayID, ti, attributes);
75 if (entry != relation->
getTags().end()) {
76 std::stringstream strstream(entry->second.str());
78 strstream >> tagvalue;
80 if (!strstream.bad() && tagvalue >=
value) {
81 next->matchRelation(relID, ti, attributes);
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
TagLargerEqualsSelector(const shared_ptr< Rule > &rule, const shared_ptr< Selector > &next, const string &tag, const int &value)
This file is part of alaCarte.
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
TESTABLE const DataMap< CachedString, CachedString > & getTags() const
Returns a map with key-to-tag-mapping for osm-tags.
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const shared_ptr< Selector > next
const shared_ptr< Geodata > geodata
virtual void matchRelation(RelId relID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const