コード例 #1
0
ファイル: MainForm.cs プロジェクト: AgentWord/SiPing
        //自由画面统计


        //趋势分析···未添加
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            /*趋势分析需求:根据周围地物类型特征开发莫某一地块的外延趋势发展
             * 1、获取该对象:矿区的图层对象
             * 2、获取该对象周围地物类型:简单的(耕地、林地、水系、建设用地、道路等)
             * 进行阻力模型分析(年数据假设,先验数据预测)得到趋势程度(单一因素的考虑)
             *
             * 3、第二个考虑因素:地质环境。(暂时不做考虑)
             * 4、
             */
            m_hookHelper.Hook = this.axMapControl1.Object;
            Tend td = new Tend(m_hookHelper, this.axMapControl1);

            td.StartPosition = FormStartPosition.CenterScreen;
            td.Show();

            //IPageLayout pageLayout = axPageLayoutControl1 as IPageLayout;
            //GISHandler.GISTools.CreatPoint(this.axMapControl1);
            // GISHandler.GISTools.addNorthArrow(axPageLayoutControl1, axPageLayoutControl1.ActiveView.FocusMap);
            // GISHandler.GISTools.AddScalebar(pageLayout, axMapControl1.Map);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: AgentWord/SiPing
        //自由画面统计
        //趋势分析···未添加
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            /*趋势分析需求:根据周围地物类型特征开发莫某一地块的外延趋势发展
             * 1、获取该对象:矿区的图层对象
             * 2、获取该对象周围地物类型:简单的(耕地、林地、水系、建设用地、道路等)
             * 进行阻力模型分析(年数据假设,先验数据预测)得到趋势程度(单一因素的考虑)

             * 3、第二个考虑因素:地质环境。(暂时不做考虑)
             * 4、
             */
            m_hookHelper.Hook = this.axMapControl1.Object;
            Tend td=new Tend(m_hookHelper,this.axMapControl1);

            td.StartPosition = FormStartPosition.CenterScreen;
            td.Show();

            //IPageLayout pageLayout = axPageLayoutControl1 as IPageLayout;
            //GISHandler.GISTools.CreatPoint(this.axMapControl1);
               // GISHandler.GISTools.addNorthArrow(axPageLayoutControl1, axPageLayoutControl1.ActiveView.FocusMap);
               // GISHandler.GISTools.AddScalebar(pageLayout, axMapControl1.Map);
        }