Merge pull request #647 from mapbox/attribute-compare

Bug fix: mismatched features could be coalesced if from a prefilter
This commit is contained in:
Eric Fischer
2018-10-10 15:12:38 -07:00
committed by GitHub
4 changed files with 1102 additions and 59 deletions
+5
View File
@@ -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
* Create the output tile directory even if there are no valid features
File diff suppressed because one or more lines are too long
+6 -6
View File
@@ -142,21 +142,21 @@ int coalcmp(const void *v1, const void *v2) {
}
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;
} else if (c1->full_keys[i] > c1->full_keys[i]) {
} else if (c1->full_keys[i] > c2->full_keys[i]) {
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;
} 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;
}
if (c1->full_values[i].s < c1->full_values[i].s) {
if (c1->full_values[i].s < c2->full_values[i].s) {
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;
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "v1.31.7"
#define VERSION "v1.32.0"
#endif