This document is archived and information here might be outdated. Recommended version. |
COGO field name.
[Visual Basic .NET] Public Function get_CogoFieldName ( _ ByVal eCogoField As esriCFCogoAttributeField _ ) As String
[Visual Basic .NET] Public Sub set_CogoFieldName ( _ ByVal eCogoField As esriCFCogoAttributeField, _ ByVal pCogoFieldName As String _ )
[C#] public string get_CogoFieldName ( esriCFCogoAttributeField eCogoField );
[C#] public void set_CogoFieldName ( esriCFCogoAttributeField eCogoField, string pCogoFieldName );
COGO field names used for extracting COGO attribute information.
The CogoFieldName property allows the individual cogo field names to be read and set. By default, the following names are set up:
Node field names
esriCFCogoNodeHASH, "#"
esriCFCogoNodeID, "-ID"
esriCFCogoNodeARC, "ARC#"
Arc field names
esriCFCogoArcHASH, "#"
esriCFCogoArcID, "-ID"
esriCFCogoArcFNODE, "FNODE#"
esriCFCogoArcTNODE, "TNODE#"
esriCFCogoArcLPOLY, "LPOLY#"
esriCFCogoArcRPOLY, "RPOLY#"
esriCFCogoArcLENGTH, "LENGTH"
esriCFCogoArcANGLE, "ANGLE"
esriCFCogoArcDISTANCE, "DISTANCE"
esriCFCogoArcRADIUS, "RADIUS"
esriCFCogoArcDELTA, "DELTA"
esriCFCogoArcTANGENT, "TANGENT"
esriCFCogoArcARCLENGTH, "ARCLENGTH"
esriCFCogoArcSIDE, "SIDE"
esriCFCogoArcFEATURE, "FEATURE"
Polygon field names
esriCFCogoPolygonHASH, "#"
esriCFCogoPolygonID, "-ID"
esriCFCogoPolygonAREA, "AREA"
esriCFCogoPolygonPERIMETER, "PERIMETER"
esriCFCogoPolygonPIN, "PIN"
esriCFCogoPolygonFEATURE, "FEATURE"
In each of the above three sections, the HASH & ID gets the coverage / feature class name added before the indicated symbol (# or - ID).
This only occurs if the property is not set (ie, the default name is used). Thus if the datasource name is Landuse, the properties Landuse# and Landuse- ID are used. The coverage / feature class name used depends on the datasource type. For coverages the feature dataset name is used.
For feature classes, the name before node, arc, polygon is used. For example, if the exported cogo name is Landuse2polygon, then Landuse2 is used.
The use of suffex names is required for non-coverage names, because a feature dataset in the GDB can contain many different exported cogo coverages.
All of the above fields must exist for the import process to succeed.
The above field names are subject to translation. If the name can't be found in the source feature class, then the first character of '#' or '-' is translated to an underscore '_' to see if that name exists.
HRESULT get_CogoFieldName(
esriCFCogoAttributeField eCogoField
BSTR* CogoFieldName,
);
HRESULT put_CogoFieldName(
esriCFCogoAttributeField eCogoField
BSTR CogoFieldName,
);