Engine中如何实现ArcMap中的Split Polygons功能?

Engine中如何实现ArcMap中的Split Polygons功能?就是用多条选中线来分割面要素类。
已邀请:

朱新颖

赞同来自:

【解决办法】:
使用IFeatureConstruction.SplitPolygonsWithLines方法。



​ IFeatureLayer polygonLayer = axMapControl1.get_Layer(1) as IFeatureLayer;
            IFeatureClass polygonFeatureClass = polygonLayer.FeatureClass;
            IEnvelope envelope = (polygonFeatureClass as IGeoDataset).Extent;
            IEnumFeature enumLineFeature = axMapControl1.Map.FeatureSelection as IEnumFeature;
            IFeatureConstruction featureCon = new FeatureConstructionClass();
            featureCon.SplitPolygonsWithLines(null, polygonFeatureClass, envelope, enumLineFeature, null, 0.00256);

要回复问题请先登录注册