[generator] Allowed processing objects with empty name.

This commit is contained in:
Maksim Andrianov 2019-10-23 12:29:25 +03:00 committed by mpimenov
parent f1c7d6349a
commit 4d0ebe8b6a

View file

@ -185,7 +185,7 @@ std::vector<feature::FeatureBuilder> HierarchyBuilder::ReadFeatures(
ForEachFromDatRawFormat<serialization_policy::MaxAccuracy>(
dataFilename, [&](FeatureBuilder const & fb, uint64_t /* currPos */) {
if (m_getMainType(fb.GetTypes()) != ftype::GetEmptyValue() &&
!m_getName(fb.GetMultilangName()).empty() && !fb.GetOsmIds().empty() &&
!fb.GetOsmIds().empty() &&
(fb.IsPoint() || fb.IsArea()))
{
fbs.emplace_back(fb);