摘要:
IPointCollection转线IPolyline: 1 IPolyline pl = new PolylineClass(); 2 3 IPointCollection ptc = pl as IPointCollection; 4 5 object missing = Type.Missing; 6 7 for (int i = 0; i < num1; i++) 8 { 9 IPoint pt = autoStation.GetFeature(i).Shape as IPoint;//提取点10 ptc.AddPoint(pt, mi... 阅读全文
摘要:
当AE二次开发与其他平台一起使用的时候,有时候会不方便加LicenseControl控件,需要用代码初始化许可:在构造函数中初始化许可: 1 public Form1() 2 { 3 4 InitializeComponent(); 5 ESRI.ArcGIS.esriSystem.IAoInitialize AoIni = new AoInitializeClass(); 6 bool Successful;//返回是否初始化成功 7 esriLicenseProductCode production ... 阅读全文
摘要:
打开shapefile工作空间:1 ESRI.ArcGIS.Geodatabase.IWorkspaceFactory wsf = new ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactory();2 3 IWorkspace ws = wsf.OpenFromFile(Application.StartupPath, 0);4 5 IFeatureClass f1 = (ws as IFeatureWorkspace).OpenFeatureClass("floodarea1");打开mdb工作空间:1 IWorksp 阅读全文