Commit 9fe5d259 authored by Volker Krause's avatar Volker Krause
Browse files

Ignore disused platform elements

parent 7892e10b
...@@ -44,7 +44,7 @@ std::vector<Platform> PlatformFinder::find(const MapData &data) ...@@ -44,7 +44,7 @@ std::vector<Platform> PlatformFinder::find(const MapData &data)
for (auto it = m_data.levelMap().begin(); it != m_data.levelMap().end(); ++it) { for (auto it = m_data.levelMap().begin(); it != m_data.levelMap().end(); ++it) {
for (const auto &e : (*it).second) { for (const auto &e : (*it).second) {
if (!e.hasTags()) { if (!e.hasTags() || e.tagValue(m_tagKeys.disused) == "yes") {
continue; continue;
} }
...@@ -147,6 +147,7 @@ void PlatformFinder::resolveTagKeys() ...@@ -147,6 +147,7 @@ void PlatformFinder::resolveTagKeys()
m_tagKeys.railway = m_data.dataSet().tagKey("railway"); m_tagKeys.railway = m_data.dataSet().tagKey("railway");
m_tagKeys.railway_platform_section = m_data.dataSet().tagKey("railway:platform:section"); m_tagKeys.railway_platform_section = m_data.dataSet().tagKey("railway:platform:section");
m_tagKeys.route = m_data.dataSet().tagKey("route"); m_tagKeys.route = m_data.dataSet().tagKey("route");
m_tagKeys.disused = m_data.dataSet().tagKey("disused");
} }
void PlatformFinder::scanRoute(OSM::Element e, OSM::Element route) void PlatformFinder::scanRoute(OSM::Element e, OSM::Element route)
......
...@@ -49,6 +49,7 @@ private: ...@@ -49,6 +49,7 @@ private:
OSM::TagKey railway; OSM::TagKey railway;
OSM::TagKey railway_platform_section; OSM::TagKey railway_platform_section;
OSM::TagKey route; OSM::TagKey route;
OSM::TagKey disused;
} m_tagKeys; } m_tagKeys;
void resolveTagKeys(); void resolveTagKeys();
/** Tries to merge m_platformAreas into m_platforms. */ /** Tries to merge m_platformAreas into m_platforms. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment