Esempio n. 1
0
        public virtual void CopyToClone(OsmObjectBase clone)
        {
            clone.objectId  = objectId;
            clone.timestamp = timestamp;
            if (user != null)
            {
                clone.user = (OsmUser)user.Clone();
            }
            else
            {
                clone.user = null;
            }
            clone.visible = visible;
            clone.action  = action;

            foreach (string key in tags.Keys)
            {
                string cloneKey   = (string)key.Clone();
                OsmTag cloneValue = (OsmTag)tags[key].Clone();
                clone.tags[cloneKey] = cloneValue;
            }
        }
Esempio n. 2
0
 public void SetTag(string tagKey, string tagValue)
 {
     tags[tagKey] = new OsmTag(tagKey, tagValue);
 }