zoukankan      html  css  js  c++  java
  • 缩放到被选择的部分: ICommand Cmd = new ControlsZoomToSelectedCommandClass();

     AddItem("esriControls.ControlsZoomToSelectedCommand"); //ICommand Cmd = new ControlsZoomToSelectedCommandClass(); 

    缩放到被选择的部分: ICommand Cmd = new ControlsZoomToSelectedCommandClass();

     IGeometry pGeometry = null;
                string m = ArcGISPub.ArcGISToolPub.getMatch();
                if (FBFExtent) //按发包方范围
                {
                    string ZJQYDM = 承包方编码.Substring(0, 14);
    
                    IFeatureSelection pFeatureSelection = ArcGISPub.ArcGISClassPub.getFeatureSelect(ZJQYFeatureLayer, "ZJQYDM like '" + m + ZJQYDM + m + "'");
                    pGeometry = ArcGISPub.ArcGISClassPub.GetFeatureLayerSelectGeometry(ZJQYFeatureLayer);
                    ArcGISPub.ArcGISToolPub.RunCommand("esriControls.ControlsZoomToSelectedCommand", m_application);//ControlsZoomToSelectedCommand  esriControls.ControlsZoomToSelectedCommand,{06DD3F57-CF78-41BA-83F4-D13A8679914F}
    
                    pFeatureSelection.Clear();
    
    
    
                }
                else
                {
    
                    IFeatureSelection pFeatureSelection = ArcGISPub.ArcGISClassPub.getFeatureSelect(DKFeatureLayer, "承包方编码 like '" + m + 承包方编码 + m + "'");
                    int num = pFeatureSelection.SelectionSet.Count;
                    if (num > 0)
                    {
                        pGeometry = ArcGISPub.ArcGISClassPub.GetFeatureLayerSelectGeometry(DKFeatureLayer);
                        ArcGISPub.ArcGISToolPub.RunCommand("esriControls.ControlsZoomToSelectedCommand", m_application);//ControlsZoomToSelectedCommand  esriControls.ControlsZoomToSelectedCommand,{06DD3F57-CF78-41BA-83F4-D13A8679914F}
                        m_hookHelper.ActiveView.Refresh();
                        pFeatureSelection.Clear();
                    }
    
                }
    
                IEnvelope pEnvelope = pGeometry.Envelope;
                return pGeometry.Envelope;
    
    
            }
    

      

  • 相关阅读:
    执行start-dfs.sh后,datenode没有启动的解决办法
    hadoop 在centos中的搭建
    MySQL 5.7的安装及主从复制(主从同步)
    CentOS7 配置免密码登陆
    关于使用maven打包如何聚合资源文件
    idea常用快捷键
    lombok的使用
    oracle 导出,导入表
    vue项目.eslintrc格式化
    vue-cli3项目关闭烦人的代码检测
  • 原文地址:https://www.cnblogs.com/gisoracle/p/8295451.html
Copyright © 2011-2022 走看看