Grieck

Geometry field name?

Discussion created by Grieck on Jun 12, 2013
Hello,

Is the field that stores the "esriFieldTypeGeometry" required to be named "SHAPE"? What are the implications of changing it to something else? I know I can do it, see image.

From what I've tested it seems that the IFEATURE.SHAPE won't have the attributes of the shape unless I specifically cast it.
I'm still able to create objects with a geometry field with a name other than "SHAPE".

  IFeature myFeat = obj as IFeature;
  myFeat.Shape = myFeat.get_Value(myFeat.Fields.FindField("MY_SHAPE_FIELD_NAME")) as IPolygon;


What are the other potential issues with not defining the GEOMETRY field name as "SHAPE"?

Greg

Attachments

Outcomes