示例#1
0
        /// <summary>
        /// Delegate that's called whenever the index finds a polygon ring.
        /// </summary>
        /// <param name="item">The item to process</param>
        /// <returns>True (always), indicating that the query should continue.</returns>
        private bool CheckPolygon(ISpatialObject item)
        {
            Debug.Assert(item is Ring);
            Ring ring = (Ring)item;

            // Check the ring & restrict to requested types.
            CheckType types = RingCheck.CheckRing(ring);

            types &= m_Options;

            if (types != CheckType.Null)
            {
                RingCheck check = new RingCheck(ring, types);
                m_Result.Add(check);
            }

            return(OnCheck());
        }
示例#2
0
        /// <summary>
        /// Delegate that's called whenever the index finds a polygon ring.
        /// </summary>
        /// <param name="item">The item to process</param>
        /// <returns>True (always), indicating that the query should continue.</returns>
        private bool CheckPolygon(ISpatialObject item)
        {
            Debug.Assert(item is Ring);
            Ring ring = (Ring)item;

            // Check the ring & restrict to requested types.
            CheckType types = RingCheck.CheckRing(ring);
            types &= m_Options;

            if (types!=CheckType.Null)
            {
                RingCheck check = new RingCheck(ring, types);
                m_Result.Add(check);
            }

            return OnCheck();
        }