arcengine 保存地图-mxd文件

 保存地图-mxd文件

            if (m_MapControl.CheckMxFile(m_strMxdFileName))
            {
                IMapDocument pMapDocument = new MapDocumentClass();
                pMapDocument.Open(m_strMxdFileName, string.Empty);

                if (pMapDocument.get_IsReadOnly(m_strMxdFileName))
                {
                    MessageBox.Show("Map document is read only!");
                    pMapDocument.Close();
                    return;
                }

                pMapDocument.ReplaceContents(m_MapControl.Map as IMxdContents);
                pMapDocument.Save(pMapDocument.UsesRelativePaths, false);
                pMapDocument.Close();
            }

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/myh0305/archive/2008/01/03/2012402.aspx

你可能感兴趣的:(arcengine 保存地图-mxd文件)