Example #1
0
 public override void CopyTo(com.epl.geometry.Geometry dst)
 {
     if (dst.GetType() != GetType())
     {
         throw new System.ArgumentException();
     }
     com.epl.geometry.Envelope envDst = (com.epl.geometry.Envelope)dst;
     dst._touch();
     envDst.m_description = m_description;
     envDst.m_envelope.SetCoords(m_envelope);
     envDst.m_attributes = null;
     if (m_attributes != null)
     {
         envDst._ensureAttributes();
         System.Array.Copy(m_attributes, 0, envDst.m_attributes, 0, (m_description.GetTotalComponentCount() - 2) * 2);
     }
 }