IFeatureClass dljxFC = Env.Instance.KMap.GetFeatureClassByName(Env.Instance.DefaultValue.DLJX_TableName);
if (list != null)
{
//List<IGeometry> dljxList = new List<IGeometry>();
foreach (IFeature item in list)
{
List<IGeometry> dljxList = CommonAPI.GenerateDLJX(item, dljxFC);
if (dljxList != null)
{
foreach (IGeometry line in dljxList)
{
IFeatureBuffer buffer = dljxFC.CreateFeatureBuffer();
buffer.Shape = line;
IFeatureCursor cursor = dljxFC.Insert(true);
object oid = cursor.InsertFeature(buffer);
cursor.Flush();
Marshal.ReleaseComObject(cursor);
}
}
}
}
list 为图斑列表
dljxFC 可以是要素 IFeatureClass