Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KOSMIndoorMap
Commits
9fe5d259
Commit
9fe5d259
authored
Nov 03, 2021
by
Volker Krause
Browse files
Ignore disused platform elements
parent
7892e10b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/map/content/platformfinder.cpp
View file @
9fe5d259
...
...
@@ -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
(
const
auto
&
e
:
(
*
it
).
second
)
{
if
(
!
e
.
hasTags
())
{
if
(
!
e
.
hasTags
()
||
e
.
tagValue
(
m_tagKeys
.
disused
)
==
"yes"
)
{
continue
;
}
...
...
@@ -147,6 +147,7 @@ void PlatformFinder::resolveTagKeys()
m_tagKeys
.
railway
=
m_data
.
dataSet
().
tagKey
(
"railway"
);
m_tagKeys
.
railway_platform_section
=
m_data
.
dataSet
().
tagKey
(
"railway:platform:section"
);
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
)
...
...
src/map/content/platformfinder_p.h
View file @
9fe5d259
...
...
@@ -49,6 +49,7 @@ private:
OSM
::
TagKey
railway
;
OSM
::
TagKey
railway_platform_section
;
OSM
::
TagKey
route
;
OSM
::
TagKey
disused
;
}
m_tagKeys
;
void
resolveTagKeys
();
/** Tries to merge m_platformAreas into m_platforms. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment