fielddefs

4462
2
06-08-2015 08:03 AM
GlennFernandez
New Contributor

is there any example of how to list the fielddefs

Tags (1)
2 Replies
WesMiller
Regular Contributor III

Not sure what your asking, but maybe this ArcGIS Help 10.1 will help.

0 Kudos
VinceAngelo
Esri Esteemed Contributor

Assuming you mean the FieldDef C++ object defined in the FGDBAPI include/Util.h, you would use the EnumRows::GetFields, Table::GetFields, or Row::GetFields request, and from there, iterate the array, accessing each FieldDef with it's getter methods:

  fgdbError GetName(std::wstring& name) const;
  fgdbError GetAlias(std::wstring& alias) const;
  fgdbError GetType(FieldType& type) const;
  fgdbError GetLength(int& length) const;
  fgdbError GetIsNullable(bool& isNullable) const;
  fgdbError GetGeometryDef(GeometryDef& geometryDef) const;

- V

0 Kudos