/// <summary>
        /// 进行拓扑分析
        /// </summary>
        private void submit(object sender, RoutedEventArgs e)
        {
            this.topRlt.Content = "";
            if (_firstFeature == null)
            {
                MessageBox.Show(" 进行拓扑分析的要素还未选取完成!");//进行拓扑分析的第一个要素还未选取完成!
                return;
            }
            if (_secondFeature == null)
            {
                MessageBox.Show("进行拓扑分析的要素还未选取完成!");
                //进行拓扑分析的第一个要素还未选取完成!
                return;
            }
            CRegionRelationAnalyse obj = new CRegionRelationAnalyse();

            obj.Reg0 = this._firstFeature.RegGeom[0];
            obj.Reg1 = this._secondFeature.RegGeom[0];
            string s = this.buffer.Text;

            obj.NearDis = Convert.ToDouble(s);
            if (obj.NearDis.ToString() == "")
            {
                MessageBox.Show("输入正确的半径!");
                return;
            }
            this._spatial = new SpacialAnalyse(this.IMSCatalog.ActiveMapDoc);
            this._spatial.RegionRelationAnalyse(obj, new UploadStringCompletedEventHandler(onSubmit));
        }
        private void onTopSpanalyse()
        {
            //闪烁第一个要素
            this._firstPoly.Flicker();
            //闪烁第二个要素
            this._secondPoly.Flicker();
            //设置拓扑分析类的参数
            CRegionRelationAnalyse obj = new CRegionRelationAnalyse();

            obj.Reg0    = this._firstFeature.RegGeom[0];
            obj.Reg1    = this._secondFeature.RegGeom[0];
            obj.NearDis = 0.002;
            //空间分析类
            this._spatial = new SpacialAnalyse(this.iMSCatalog1.ActiveMapDoc);
            //拓扑分析
            this._spatial.RegionRelationAnalyse(obj, onSubmit);
        }