Example #1
0
 public void Init()
 {
     if (aggregate == null)
     {
         aggregate = new GeographyCollectionAggregate();
     }
     aggregate.Init();
 }
Example #2
0
 public void Read(BinaryReader r)
 {
     if (aggregate == null)
     {
         aggregate = new GeographyCollectionAggregate();
     }
     aggregate.Read(r);
 }
Example #3
0
        public void Merge(GeographyCollectionAggregate group)
        {
            if (group.IsInitialState())
            {
                return;
            }

            SqlGeography g = group.ConstructedGeography();

            if (g.IsNull)
            {
                m_srid    = -1;
                m_builder = null;
                m_sink    = null;
                m_error   = true;
            }
            else
            {
                Reset(g.STSrid.Value);
                g.Populate(new StripCollection(m_builder));
            }
        }