Пример #1
0
            private void MergeTags(TagCollection other)
            {
                if (other == null)
                {
                    return;
                }
                if (Tags == null)
                {
                    Tags = new TagCollection(other.Count);
                }

                Tags.Merge(other);
            }
Пример #2
0
        private TagCollection ReadTags(KeyValueStore keyValueStore, BinaryReader reader)
        {
            var count = reader.ReadUInt16();
            var tags  = new TagCollection(count);

            for (int i = 0; i < count; i++)
            {
                var offset = reader.ReadUInt32();
                var tag    = keyValueStore.Get(offset);
                tags.Add(tag.Key, tag.Value);
            }
            return(tags.AsReadOnly());
        }
Пример #3
0
 public CoordinateSequence(long id, Way way)
 {
     _nodes = new List <GeoCoordinate>(way.Coordinates);
     _id    = id;
     Tags   = way.Tags;
 }