arcengine属性表关联
来自:http://hi.baidu.com/xduoo/blog/item/f480daddeb3ad7255882dd57.html
public IFeatureClass FeatureJionTableFon(IFeatureLayer mFeatureLayer, ITable mTable, string mFeatureField, string mTableField)
{
inputFeatureClass = mFeatureLayer.FeatureClass;
FeatureTable = inputFeatureClass as ITable;
relationshipClass = memoryRelClassFactory.Open("", FeatureTable as IObjectClass, mFeatureField, mTable as IObjectClass, mTableField, "forward", "backward", esriRelCardinality.esriRelCardinalityOneToOne);
DisplayRelationshipClass = mFeatureLayer as IDisplayRelationshipClass;
DisplayRelationshipClass.DisplayRelationshipClass(relationshipClass, ESRI.ArcGIS.Geodatabase.esriJoinType.esriLeftInnerJoin);
displayTable = DisplayRelationshipClass as IDisplayTable;
outputFeatureClass = displayTable.DisplayTable as IFeatureClass;
return outputFeatureClass;
}
posted on 2012-03-26 14:24 gisoracle 阅读(1383) 评论(0) 编辑 收藏 举报