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

Method GetLimitRect

libs/indexer/feature.cpp:736–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736m2::RectD FeatureType::GetLimitRect(int scale)
737{
738 ParseGeometryAndTriangles(scale);
739
740 if (m_triangles.empty() && m_points.empty() && (GetGeomType() != GeomType::Point))
741 {
742 ASSERT(false, (m_id));
743
744 // This function is called during indexing, when we need
745 // to check visibility according to feature sizes.
746 // So, if no geometry for this scale, assume that rect has zero dimensions.
747 m_limitRect = m2::RectD(0, 0, 0, 0);
748 }
749
750 return m_limitRect;
751}
752
753m2::RectD const & FeatureType::GetLimitRectChecked() const
754{

Callers 4

ForEachFeatureAtPointFunction · 0.45
GetBoundingBoxAreaFunction · 0.45
GetCenterFunction · 0.45
GetIntersectionFunction · 0.45

Calls 2

ASSERTFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected