forked from organicmaps/organicmaps
Process empty geometry in coastlines generation (FeatureBuilder1).
This commit is contained in:
parent
bd75e193c0
commit
c2b77c36cf
2 changed files with 7 additions and 5 deletions
|
@ -206,5 +206,6 @@ bool CoastlineFeaturesGenerator::GetFeature(size_t i, FeatureBuilder1 & fb)
|
|||
fb.AddType(m_coastType);
|
||||
fb.SetCoastCell(i);
|
||||
|
||||
return true;
|
||||
// should present any geometry
|
||||
return (fb.GetPointsCount() >= 3);
|
||||
}
|
||||
|
|
|
@ -309,10 +309,11 @@ public:
|
|||
for (size_t i = 0; i < count; ++i)
|
||||
{
|
||||
FeatureBuilder1 fb;
|
||||
m_coasts->GetFeature(i, fb);
|
||||
|
||||
(*m_coastsHolder)(fb);
|
||||
m_countries(fb);
|
||||
if (m_coasts->GetFeature(i, fb))
|
||||
{
|
||||
(*m_coastsHolder)(fb);
|
||||
m_countries(fb);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue