Exemple #1
0
 /// <summary>
 /// Pulls the changes from the source to this target.
 /// </summary>
 public void Pull()
 {
     _source.Initialize();
     this.Initialize();
     while (_source.MoveNext())
     {
         CompleteOsmGeo sourceObject = _source.Current();
         if (sourceObject is CompleteNode)
         {
             this.AddNode(sourceObject as CompleteNode);
         }
         else if (sourceObject is CompleteWay)
         {
             if (sourceObject.Id == 198214128)
             {
                 System.Diagnostics.Debug.WriteLine("");
             }
             this.AddWay(sourceObject as CompleteWay);
         }
         else if (sourceObject is CompleteRelation)
         {
             this.AddRelation(sourceObject as CompleteRelation);
         }
     }
     this.Flush();
     this.Close();
 }
 /// <summary>
 /// Pulls the changes from the source to this target.
 /// </summary>
 public void Pull()
 {
     _source.Initialize();
     this.Initialize();
     while (_source.MoveNext())
     {
         object sourceObject = _source.Current();
         if (sourceObject is CompleteNode)
         {
             this.AddNode(sourceObject as CompleteNode);
         }
         else if (sourceObject is CompleteWay)
         {
             this.AddWay(sourceObject as CompleteWay);
         }
         else if (sourceObject is CompleteRelation)
         {
             this.AddRelation(sourceObject as CompleteRelation);
         }
     }
     this.Flush();
     this.Close();
 }