void TileParser::addBucketFeatures(Bucket &bucket, const VectorTileLayer &layer, const BucketDescription &bucket_desc, Args &&... args) { FilteredVectorTileLayer filtered_layer(layer, bucket_desc); for (const pbf &feature_pbf : filtered_layer) { if (obsolete()) return; bucket->addFeature({feature_pbf, layer}, std::forward<Args>(args)...); } }
void TileParser::addBucketFeatures(Bucket& bucket, const VectorTileLayer& layer, const FilterExpression &filter, Args&& ...args) { FilteredVectorTileLayer filtered_layer(layer, filter); for (const pbf &feature_pbf : filtered_layer) { if (obsolete()) { return; } bucket->addFeature({feature_pbf, layer}, std::forward<Args>(args)...); } }