Skip to content

Conversation

@maksimandrianov
Copy link
Contributor

No description provided.

@maksimandrianov maksimandrianov force-pushed the popularity_improvements branch 22 times, most recently from 70721a0 to e376fca Compare September 8, 2020 06:40
@maksimandrianov
Copy link
Contributor Author

JTALL

@maksimandrianov
Copy link
Contributor Author

JTRGIT

@maksimandrianov maksimandrianov changed the title [dnm][generator] Actualized and improved popularity generation. [generator] Actualized and improved popularity generation. Sep 11, 2020
return it != std::cend(types) ? *it : ftype::GetEmptyValue();
}

bool mainTypeIsBuildingPart(FeatureParams::Types const & types)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

название с большой буквы?

auto const & candidate = candidateNode->GetData();
if (buildingPartChecker(place.GetTypes()) &&
!(buildingChecker(candidate.GetTypes()) || buildingPartChecker(candidate.GetTypes())))
if (mainTypeIsBuildingPart(place.GetTypes()) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а есть вообще примеры когда building_part оказывался чем-то полезным?

из плохого -- мы начали выделять https://www.openstreetmap.org/relation/1834831 в отдельный объект
а примеры хорошего какие?


auto hierarchyPlace = HierarchyPlace(fb);
if (!hierarchyPlace.IsPoint() &&
base::AlmostEqualAbs(hierarchyPlace.GetArea(), 0.0, std::numeric_limits<double>::epsilon()))
Copy link
Contributor

@tatiana-yan tatiana-yan Sep 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это какой-то популярный вид мусорных объектов?

Copy link
Contributor

@tatiana-yan tatiana-yan Sep 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Линейные объекты у нас могут быть HierarchyPlace? Вроде мы хотим сохранять условный арбат + никто не мешает повесить tourism=attraction на линейный.
Мы их тут случайно не выкинем?

В FilterComplexPopularity::IsAccepted вижу что линейные выкидываются, не для популярити тоже всегда будем выкидывать? Если да, то почему?


bool FilterComplexPopularity::IsAccepted(feature::FeatureBuilder const & fb) const
{
if (!fb.IsArea() && !fb.IsPoint())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а почему? бывают линейные объекты для которых мы хотим считать popularity, например
https://www.openstreetmap.org/way/385648322

такие объекты могут находиться внутри каких-то площадных

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants