/// <summary> /// Pulls the next object and returns true if there was one. /// </summary> public bool PullNext() { if (_source.MoveNext()) { var sourceObject = _source.Current(); if (sourceObject is Node) { this.AddNode(sourceObject as Node); } else if (sourceObject is Way) { this.AddWay(sourceObject as Way); } else if (sourceObject is Relation) { this.AddRelation(sourceObject as Relation); } return(true); } return(false); }
/// <summary> /// Moves to the next object. /// </summary> /// <returns></returns> public bool MoveNext() { return(_source.MoveNext(_ignoreNodes, _ignoreWays, _ignoreRelations)); }