admin 管理员组

文章数量: 1184232

private void btnOpen_Click(object sender, EventArgs e)
{
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "Shape file(*.shp)|*.shp|DWG file(*.dwg)|*.dwg";
dlg.Title = "打开源数据文档";

//定义存放打开IFeatureClass的字符串数组
string FilePath;
if (dlg.ShowDialog() == DialogResult.OK)
{
FilePath = dlg.FileName;
this.textEdit1.Text = FilePath;

//得到打开文件的坐标系
//string strSpatialReferenct = this.getSpatialReference(FilePath);
//this.textEdit3.Text = strSpatialReferenct;

//得到保存文件的路径及文件名,并设置写入输出路径中
string savePath = this.getSavePath(FilePath);
this.textEdit2.Text = savePath;
}
}

本文标签: 格式的文 编程 显示