use std::sync::{ Arc, RwLock, }; use osm::*; fn main() { let tile_id = TileId::new(8, 142, 93); let data = include_bytes!("../data/8_142_93.pbf"); let feature_collection = Arc::new(RwLock::new(FeatureCollection::new(500))); let mut tiles = vec![]; for _ in 0..60 { let tile = Tile::from_mbvt(&tile_id, &data.to_vec(), feature_collection.clone(), vec![]); tiles.push(tile); } loop { // dbg!(tile.stats().size); } }