将坐标系统保存为一个文件.prj

            try
            {
                System.Windows.Forms.SaveFileDialog m_SaveFileDialog = new System.Windows.Forms.SaveFileDialog();
                m_SaveFileDialog.Filter = "坐标系统文件(*.Prj)|*.Prj";
                if (System.Windows.Forms.DialogResult.OK == m_SaveFileDialog.ShowDialog())
                {
                    string sFilepath = m_SaveFileDialog.FileName;
                    if (m_pSpaRefFac == null)
                    {
                        m_pSpaRefFac = new SpatialReferenceEnvironmentClass();
                    }
                    m_pSpaRefFac.ExportESRISpatialReferenceToPRJFile(sFilepath, m_pSpatialRef);
                }
            }
            catch(Exception ex)
            {
                Log4net.Models.LogService.WriteExceptionLog(ex, "");
            }

private ISpatialReference m_pSpatialRef;

你可能感兴趣的:(AE开发)