mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +00:00
Merge pull request #647 from mapbox/attribute-compare
Bug fix: mismatched features could be coalesced if from a prefilter
This commit is contained in:
commit
e18748e29b
@ -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
12
tile.cpp
12
tile.cpp
@ -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,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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user