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

            // Return if the line is non-topological
            if (!line.IsTopological)
            {
                return(true);
            }

            Topology t = line.Topology;

            if (t != null)
            {
                foreach (IDivider d in t)
                {
                    CheckType types = (m_Options & DividerCheck.Check(d));
                    if (types != CheckType.Null)
                    {
                        DividerCheck check = new DividerCheck(d, types);
                        m_Result.Add(check);
                    }
                }
            }

            return(OnCheck());
        }
        /// <summary>
        /// Delegate that's called whenever the index finds a line.
        /// </summary>
        /// <param name="item">The item to process</param>
        /// <returns>True (always), indicating that the query should continue.</returns>
        private bool CheckLine(ISpatialObject item)
        {
            Debug.Assert(item is LineFeature);
            LineFeature line = (LineFeature)item;

            // Return if the line is non-topological
            if (!line.IsTopological)
                return true;

            Topology t = line.Topology;
            if (t!=null)
            {
                foreach (IDivider d in t)
                {
                    CheckType types = (m_Options & DividerCheck.Check(d));
                    if (types != CheckType.Null)
                    {
                        DividerCheck check = new DividerCheck(d, types);
                        m_Result.Add(check);
                    }
                }
            }

            return OnCheck();
        }