| 84 | } |
| 85 | |
| 86 | bool IsGoodOutlineForLevel(int level, Points const & poly) |
| 87 | { |
| 88 | // Areas and closed lines have the same first and last points. |
| 89 | // Hence the minimum number of outline points is 4. |
| 90 | if (poly.size() < 4) |
| 91 | return false; |
| 92 | |
| 93 | m2::RectD r; |
| 94 | feature::CalcRect(poly, r); |
| 95 | |
| 96 | return IsGoodForLevel(level, r); |
| 97 | } |
| 98 | } // namespace scales |
no test coverage detected