| 734 | } |
| 735 | |
| 736 | m2::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 | |
| 753 | m2::RectD const & FeatureType::GetLimitRectChecked() const |
| 754 | { |
no test coverage detected