Add an option to prevent tiny polygon reduction

This commit is contained in:
Eric Fischer
2016-11-21 11:26:37 -08:00
parent dc9e68b128
commit e9aa8c1b7d
6 changed files with 4040 additions and 3 deletions
+3 -1
View File
@@ -1513,7 +1513,9 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s
bool reduced = false;
if (t == VT_POLYGON) {
geom = reduce_tiny_poly(geom, z, line_detail, &reduced, &accum_area);
if (!prevent[P_TINY_POLYGON_REDUCTION]) {
geom = reduce_tiny_poly(geom, z, line_detail, &reduced, &accum_area);
}
has_polygons = true;
}