forked from organicmaps/organicmaps
[generator] Fixed some values of places in Germany.
This commit is contained in:
parent
faadc0828b
commit
5db4dc8878
1 changed files with 12 additions and 0 deletions
|
@ -581,6 +581,18 @@ void PreprocessElement(OsmElement * p)
|
|||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
// We replace a value of 'place' with a value of 'de: place' because most people regard
|
||||
// places names as 'de: place' defines it.
|
||||
// TODO(@m.andrianov): A better solution for the future is writing this rule in replaced_tags.txt
|
||||
// file. But syntax for this isn't supported by relace tags mechanism.
|
||||
auto const dePlace = p->GetTag("de:place");
|
||||
if (!dePlace.empty())
|
||||
{
|
||||
p->UpdateTag("place", [&](auto & value) {
|
||||
value = dePlace;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void PostprocessElement(OsmElement * p, FeatureBuilderParams & params)
|
||||
|
|
Loading…
Add table
Reference in a new issue