public ThinRelation ToThin() { return(new ThinRelation { Id = Id, Ways = Ways.Select(w => w.Id).ToArray(), Tags = Tags.Count == 0 ? null : Tags }); }
public ThinGeometry ToThin() { return(new ThinGeometry { Nodes = Nodes.Select(n => n.ToThin()).ToArray(), Ways = Ways.Select(w => w.ToThin()).ToArray(), Relations = Relations.Select(r => r.ToThin()).ToArray() }); }
private string WaysToString() { return(string.Join(";", Ways.Select(way => "{" + way.Count + ":= " + ListToString(way) + "}") )); }