mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Attach coalesced-as-needed leftovers to the last feature, not the first
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* Add tippecanoe-json-tool for sorting and joining GeoJSON files
|
* Add tippecanoe-json-tool for sorting and joining GeoJSON files
|
||||||
* Fix problem where --detect-shared-borders could simplify polygons away
|
* Fix problem where --detect-shared-borders could simplify polygons away
|
||||||
|
* Attach --coalesce-smallest-as-needed leftovers to the last feature, not the first
|
||||||
|
|
||||||
## 1.26.7
|
## 1.26.7
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1632,7 +1632,7 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s
|
|||||||
|
|
||||||
// Attach any pieces that were waiting to be coalesced onto some features that did make it.
|
// Attach any pieces that were waiting to be coalesced onto some features that did make it.
|
||||||
for (ssize_t i = coalesced_geometry.size() - 1; i >= 0; i--) {
|
for (ssize_t i = coalesced_geometry.size() - 1; i >= 0; i--) {
|
||||||
for (size_t j = 0; j < partials.size(); j++) {
|
for (ssize_t j = partials.size() - 1; j >= 0; j--) {
|
||||||
if (partials[j].layer == coalesced_geometry[i].layer && partials[j].t == coalesced_geometry[i].t) {
|
if (partials[j].layer == coalesced_geometry[i].layer && partials[j].t == coalesced_geometry[i].t) {
|
||||||
for (size_t k = 0; k < coalesced_geometry[i].geometry.size(); k++) {
|
for (size_t k = 0; k < coalesced_geometry[i].geometry.size(); k++) {
|
||||||
partials[j].geoms[0].push_back(coalesced_geometry[i].geometry[k]);
|
partials[j].geoms[0].push_back(coalesced_geometry[i].geometry[k]);
|
||||||
|
|||||||
Reference in New Issue
Block a user