forked from organicmaps/organicmaps
[search] Sanity check + test city boundary serialization compatibility
This commit is contained in:
parent
65237bf06f
commit
e717ba01e6
1 changed files with 4 additions and 2 deletions
|
@ -676,9 +676,11 @@ void Geocoder::FillLocalitiesTable(BaseContext const & ctx)
|
|||
if (m_citiesBoundaries.Get(ft.GetID(), boundaries))
|
||||
{
|
||||
city.m_rect = boundaries.GetLimitRect();
|
||||
haveBoundary = true;
|
||||
if (city.m_rect.IsValid())
|
||||
haveBoundary = true;
|
||||
}
|
||||
else
|
||||
|
||||
if (!haveBoundary)
|
||||
{
|
||||
auto const center = feature::GetCenter(ft);
|
||||
auto const population = ftypes::GetPopulation(ft);
|
||||
|
|
Loading…
Add table
Reference in a new issue