/// <summary> /// Gets all osm objects with the given types and the given id's. /// </summary> public static IList <OsmGeo> Get(this ISnapshotDb db, IList <OsmGeoType> type, IList <long> id) { if (type == null) { throw new ArgumentNullException("type"); } if (id == null) { throw new ArgumentNullException("id"); } if (id.Count != type.Count) { throw new ArgumentException("Type and id lists need to have the same size."); } var result = new List <OsmGeo>(); for (int i = 0; i < id.Count; i++) { result.Add(db.Get(type[i], id[i])); } return(result); }
/// <summary> /// Gets all data in the form of a complete stream. /// </summary> public static OsmCompleteStreamSource GetComplete(this ISnapshotDb db) { return(new Streams.Complete.OsmCompleteEnumerableStreamSource( db.Get().Select(x => x.CreateComplete(db)))); }