コード例 #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)...);
    }
}
コード例 #2
0
ファイル: tile_parser.cpp プロジェクト: hanchao/llmr
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)...);
    }
}