-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[generator] Actualized and improved popularity generation. #13649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-102
Are you sure you want to change the base?
[generator] Actualized and improved popularity generation. #13649
Conversation
70721a0 to
e376fca
Compare
e376fca to
374cb8c
Compare
|
JTALL |
|
JTRGIT |
| return it != std::cend(types) ? *it : ftype::GetEmptyValue(); | ||
| } | ||
|
|
||
| bool mainTypeIsBuildingPart(FeatureParams::Types const & types) |
There was a problem hiding this comment.
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()) && |
There was a problem hiding this comment.
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())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это какой-то популярный вид мусорных объектов?
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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
такие объекты могут находиться внутри каких-то площадных
No description provided.