mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Top level comparison is by geometry duplication, once we know it
This commit is contained in:
@@ -246,6 +246,12 @@ int indexcmp(const void *v1, const void *v2) {
|
||||
const struct index *i1 = (const struct index *) v1;
|
||||
const struct index *i2 = (const struct index *) v2;
|
||||
|
||||
if (i1->dup < i2->dup) {
|
||||
return -1;
|
||||
} else if (i1->dup > i2->dup) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (i1->ix < i2->ix) {
|
||||
return -1;
|
||||
} else if (i1->ix > i2->ix) {
|
||||
|
||||
Reference in New Issue
Block a user