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;
}