MCPcopy Create free account
hub / github.com/comaps/comaps / IsTransformToState

Method IsTransformToState

generator/osm2type.cpp:1013–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011 }
1012
1013 bool IsTransformToState(m2::PointD const & pt) const
1014 {
1015 auto const countryId = m_infoGetter->GetRegionCountryId(pt);
1016 if (!countryId.empty())
1017 {
1018 auto const country = storage::GetTopmostParentFor(*m_countryTree, countryId);
1019 return base::IsExist(m_provinceToState, country);
1020 }
1021
1022 LOG(LWARNING, ("CountryId not found for (lat, lon):", mercator::ToLatLon(pt)));
1023 return false;
1024 }
1025 };
1026
1027 static CountriesLoader s_countriesChecker;

Callers 1

PreprocessElementFunction · 0.80

Calls 5

GetTopmostParentForFunction · 0.85
IsExistFunction · 0.85
GetRegionCountryIdMethod · 0.80
ToLatLonFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected