ArcEngine打开shape文件
时间:2015-12-23 12:18:29
收藏:0
阅读:181
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "打开shape文件";
ofd.Filter = "shapefile (*.shp)|*.shp";
if (DialogResult.OK==ofd.ShowDialog())
{
//获取shape文件目录
string pPath = Path.GetDirectoryName(ofd.FileName);
//获取shape文件名
string fileName = Path.GetFileName(ofd.FileName);
//添加到axmapcontrol中
axMapControl1.AddShapeFile(pPath,fileName);
}
原文:http://www.cnblogs.com/Imgiser/p/5069093.html
评论(0)