Ejemplo n.º 1
0
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)...);
    }
}
Ejemplo n.º 2
0
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)...);
    }
}