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);
}

相关文章:

  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案