mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Bug fix: mismatched features could be coalesced if from a prefilter
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
## 1.32.0
|
||||||
|
|
||||||
|
* Fix a bug that allowed coalescing of features with mismatched attributes
|
||||||
|
if they had been passed through a shell prefilter
|
||||||
|
|
||||||
## 1.31.7
|
## 1.31.7
|
||||||
|
|
||||||
* Create the output tile directory even if there are no valid features
|
* Create the output tile directory even if there are no valid features
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -142,21 +142,21 @@ int coalcmp(const void *v1, const void *v2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < c1->full_keys.size(); i++) {
|
for (size_t i = 0; i < c1->full_keys.size(); i++) {
|
||||||
if (c1->full_keys[i] < c1->full_keys[i]) {
|
if (c1->full_keys[i] < c2->full_keys[i]) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (c1->full_keys[i] > c1->full_keys[i]) {
|
} else if (c1->full_keys[i] > c2->full_keys[i]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c1->full_values[i].type < c1->full_values[i].type) {
|
if (c1->full_values[i].type < c2->full_values[i].type) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (c1->full_values[i].type > c1->full_values[i].type) {
|
} else if (c1->full_values[i].type > c2->full_values[i].type) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c1->full_values[i].s < c1->full_values[i].s) {
|
if (c1->full_values[i].s < c2->full_values[i].s) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (c1->full_values[i].s > c1->full_values[i].s) {
|
} else if (c1->full_values[i].s > c2->full_values[i].s) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#ifndef VERSION_HPP
|
#ifndef VERSION_HPP
|
||||||
#define VERSION_HPP
|
#define VERSION_HPP
|
||||||
|
|
||||||
#define VERSION "v1.31.7"
|
#define VERSION "v1.32.0"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user