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

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

            // Check the label & restrict to requested types.
            CheckType types = TextCheck.CheckLabel(label);

            types &= m_Options;

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

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

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

            // Check the label & restrict to requested types.
            CheckType types = TextCheck.CheckLabel(label);
            types &= m_Options;

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

            return OnCheck();
        }