mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 17:05:41 +02:00
Add an option to drop a fraction of polygons by zoom.
Only warn once about polygon cleaning failures.
This commit is contained in:
@@ -793,7 +793,9 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, int z, unsi
|
||||
continue;
|
||||
}
|
||||
|
||||
if (gamma >= 0 && (t == VT_POINT || (additional[A_LINE_DROP] && t == VT_LINE))) {
|
||||
if (gamma >= 0 && (t == VT_POINT ||
|
||||
(additional[A_LINE_DROP] && t == VT_LINE) ||
|
||||
(additional[A_POLYGON_DROP] && t == VT_POLYGON))) {
|
||||
seq++;
|
||||
if (seq >= 0) {
|
||||
seq -= interval;
|
||||
|
||||
Reference in New Issue
Block a user