添加引用ESRI.ArcGIS.DataManagementTools

1.获取要定义和要转换的投影

1 IWorkspaceFactory wsf = new ShapefileWorkspaceFactoryClass();
2 IWorkspace ws = wsf.OpenFromFile(strProjPath,0);
3 IFeatureClass fc = (ws as IFeatureWorkspace).OpenFeatureClass("路中心线");            
4 ProSpaRef = (fc as IGeoDataset).SpatialReference;
5 IFeatureClass fc1 = (ws as IFeatureWorkspace).OpenFeatureClass("路中心线_Project");
6 GeoSpaRef = (fc1 as IGeoDataset).SpatialReference;
View Code

相关文章:

  • 2021-10-19
  • 2021-07-04
  • 2022-02-07
  • 2021-12-13
  • 2022-01-06
  • 2021-11-30
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-11-28
  • 2022-12-23
  • 2021-12-27
  • 2021-06-13
相关资源
相似解决方案