Make duplicate trimming less bad: only trim features indexed >1 time

This commit is contained in:
Eric Fischer
2014-11-06 11:27:10 -08:00
parent 7f6a5dc005
commit ea292def47
3 changed files with 49 additions and 33 deletions
+5 -3
View File
@@ -371,10 +371,12 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
continue;
}
if (dup.count(i->fpos) != 0) {
continue;
if (i->candup) {
if (dup.count(i->fpos) != 0) {
continue;
}
dup.insert(std::pair<long long, int>(i->fpos, 1));
}
dup.insert(std::pair<long long, int>(i->fpos, 1));
int t = i->type;
if (t == VT_POINT) {