From 6a1895547d153296b672ee1cb00d30a3656fb42a Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 14 Oct 2015 15:50:40 -0700 Subject: [PATCH] Reduce minimum polygon size for less blocky appearance --- README.md | 2 +- geometry.cc | 2 +- man/tippecanoe.1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c5da962..2eaf46c 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ For line features, it drops any features that are too small to draw at all. This still leaves the lower zooms too dark (and too dense for the 500K tile limit, in some places), so I need to figure out an equitable way to throw features away. -Any polygons that are smaller than a minimum area (currently 9 square subpixels) will +Any polygons that are smaller than a minimum area (currently 4 square subpixels) will have their probability diffused, so that some of them will be drawn as a square of this minimum size and others will not be drawn at all, preserving the total area that all of them should have had together. diff --git a/geometry.cc b/geometry.cc index ed27fe4..e01dac3 100644 --- a/geometry.cc +++ b/geometry.cc @@ -420,7 +420,7 @@ drawvec clip_poly(drawvec &geom, int z, int detail, int buffer) { drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double *accum_area) { drawvec out; - long long pixel = (1 << (32 - detail - z)) * 3; + long long pixel = (1 << (32 - detail - z)) * 2; *reduced = true; diff --git a/man/tippecanoe.1 b/man/tippecanoe.1 index 0fc4a73..30d0d4d 100644 --- a/man/tippecanoe.1 +++ b/man/tippecanoe.1 @@ -204,7 +204,7 @@ For line features, it drops any features that are too small to draw at all. This still leaves the lower zooms too dark (and too dense for the 500K tile limit, in some places), so I need to figure out an equitable way to throw features away. .PP -Any polygons that are smaller than a minimum area (currently 9 square subpixels) will +Any polygons that are smaller than a minimum area (currently 4 square subpixels) will have their probability diffused, so that some of them will be drawn as a square of this minimum size and others will not be drawn at all, preserving the total area that all of them should have had together.