Ejemplo n.º 1
0
        private static bool AreTheSameGeometry(GeometryList geometry1, PointDouble[] polygon2)
        {
            if (geometry1.PolygonCount != 1)
            {
                return(false);
            }
            if (geometry1.TotalPointCount != polygon2.Length)
            {
                return(false);
            }
            RectDouble num = polygon2.Bounds();

            if (geometry1.Bounds != num)
            {
                return(false);
            }
            IList <PointDouble[]> polygonList = geometry1.GetPolygonList();

            if (polygonList.Count != 1)
            {
                throw new InternalErrorException();
            }
            PointDouble[] numArray = polygonList[0];
            for (int i = 0; i < numArray.Length; i++)
            {
                if (numArray[i] != polygon2[i])
                {
                    return(false);
                }
            }
            return(true);
        }