ArcGIS Engine如何将几何对象的绘制(点,线,面)并保存在指定图层里,急求代码
发布网友
发布时间:2023-01-06 18:03
我来回答
共1个回答
热心网友
时间:2023-10-18 22:41
// 点图层pPointFeaCls,点pPoint,工作空间 pWrksppace
(pWrksppace as IWorkspaceEdit).StartEditing(true);
(pWrksppace as IWorkspaceEdit).StartEditOperation();
IFeatureClass pPointFeaCls=(pPointLayer as IFeatureLayer).FeatureClass;
IFeature pNewFea=pPointFeaCls.CreateFeature();
pNewFea.Shape=pPoint;
pNewFea.Store();
(pWrksppace as IWorkspaceEdit).StopEditOperation();
StopEditOperation.StopEditing(true);