Пример #1
0
        private void btnImport_Click(object sender, EventArgs e)
        {
            FrmFeatureClassImport frmFeatureClass = new FrmFeatureClassImport();

            frmFeatureClass.Text = "选择参考数据";
            if (frmFeatureClass.ShowDialog() == DialogResult.OK)
            {
                ESRI.ArcGIS.Geodatabase.IFeatureClass fcRefer = frmFeatureClass.FeatureClass;
                if (fcRefer != null)
                {
                    this.SpatialReference = (fcRefer as ESRI.ArcGIS.Geodatabase.IGeoDataset).SpatialReference;
                }
            }
        }
Пример #2
0
 private void btnImport_Click(object sender, EventArgs e)
 {
     FrmFeatureClassImport frmFeatureClass = new FrmFeatureClassImport();
     frmFeatureClass.Text = "选择参考数据";
     if (frmFeatureClass.ShowDialog() == DialogResult.OK)
     {
         ESRI.ArcGIS.Geodatabase.IFeatureClass fcRefer = frmFeatureClass.FeatureClass;
         if (fcRefer != null)
         {
             this.SpatialReference = (fcRefer as ESRI.ArcGIS.Geodatabase.IGeoDataset).SpatialReference;
         }
     }
 }