From 6fb963c435eeaf1bdc56fd12dca348d79c18cd04 Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 20 Oct 2011 23:26:14 +0300 Subject: [PATCH] [Experimental] Use level+1 criterion for small polygons cheking when scale level = 3. --- generator/feature_sorter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generator/feature_sorter.cpp b/generator/feature_sorter.cpp index 79df4111c9..069427d196 100644 --- a/generator/feature_sorter.cpp +++ b/generator/feature_sorter.cpp @@ -463,8 +463,9 @@ namespace feature SimplifyPoints(*iH, simplified.back(), level, isCoast, rect); - // Do not skip small coastline polygons for the first scale level. - if ((isCoast && i == 0) || IsGoodArea(simplified.back(), level)) + // Increment level check for coastline polygons for the first scale level. + // This is used for better coastlines quality. + if (IsGoodArea(simplified.back(), (isCoast && i == 0) ? level + 1 : level)) { // At this point we don't need last point equal to first. simplified.back().pop_back();