use feature_type to distinguish between geometry type and bucket type

This commit is contained in:
Konstantin Käfer
2014-03-12 14:31:37 +01:00
parent 29e4ecb977
commit ceb75b7b26
2 changed files with 18 additions and 2 deletions

View File

@@ -316,7 +316,7 @@ void FilteredVectorTileLayer::iterator::operator++() {
default: type = BucketType::None; break;
}
if (type != filter.bucket_desc.type) {
if (type != filter.bucket_desc.feature_type) {
break; // feature_pbf loop early
}
} else {
@@ -324,7 +324,7 @@ void FilteredVectorTileLayer::iterator::operator++() {
}
}
if (!skip && type == filter.bucket_desc.type) {
if (!skip && type == filter.bucket_desc.feature_type) {
valid = true;
return; // data loop
} else {