Fix problem where --detect-shared-borders could simplify polygons away

This commit is contained in:
Eric Fischer
2017-11-17 15:35:19 -08:00
parent ab86846d4b
commit ecbfad2576
4 changed files with 22 additions and 17 deletions
+5
View File
@@ -1,3 +1,8 @@
## 1.27.0
* Add tippecanoe-json-tool for sorting and joining GeoJSON files
* Fix problem where --detect-shared-borders could simplify polygons away
## 1.26.7 ## 1.26.7
* Add an option to quiet the progress indicator but not warnings * Add an option to quiet the progress indicator but not warnings
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -862,7 +862,7 @@ bool find_common_edges(std::vector<partial> &partials, int z, int line_detail, d
} }
} }
if (!(prevent[P_SIMPLIFY] || (z == maxzoom && prevent[P_SIMPLIFY_LOW]) || (z < maxzoom && additional[A_GRID_LOW_ZOOMS]))) { if (!(prevent[P_SIMPLIFY] || (z == maxzoom && prevent[P_SIMPLIFY_LOW]) || (z < maxzoom && additional[A_GRID_LOW_ZOOMS]))) {
simplified_arcs[ai->second] = simplify_lines(dv, z, line_detail, !(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, 3); simplified_arcs[ai->second] = simplify_lines(dv, z, line_detail, !(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, 4);
} else { } else {
simplified_arcs[ai->second] = dv; simplified_arcs[ai->second] = dv;
} }
+1 -1
View File
@@ -1,6 +1,6 @@
#ifndef VERSION_HPP #ifndef VERSION_HPP
#define VERSION_HPP #define VERSION_HPP
#define VERSION "tippecanoe v1.26.7\n" #define VERSION "tippecanoe v1.27.0\n"
#endif #endif