Select to view content in your preferred language

How to get Geometry type(Point,Line,MultiPoint) from a table in File gdb data.

1618
1
04-11-2013 08:41 PM
kishoremudapaka
New Contributor
I need C++ piece of code to get the Geometry type(for e.g. esriGeometryPoint) from the filed(for e.g. 'Shape' having 'esriFieldTypeGeometry' as type).

FieldInfo fInfo;
FieldType fType;
GeometryDef  geomDef;
GeometryType geomType;
int fieldCount;
wstring   fName;
tableNameOrg.GetFieldInformation(fInfo);
fInfo.GetFieldCount(fieldCount);
for(int i=0; i<fieldCount; i++)
{
fInfo.GetFieldName(i,fName);
fInfo.GetFieldType(i,fType); 
}

I get 'Shape' field with type "FiledTypeGeometry", I want to know inner details of this "FieldTypeGeometry".

Can you please help.

Regards,
Santhosh
0 Kudos
1 Reply
VinceAngelo
Esri Esteemed Contributor
Please ask File Geodatabase API questions in the appropriate forum.  You should
always include information about the version of software you're using, and the
platform (OS and application bit size) and language on which your using it, in
each initial post.  All code should be posted in CODE blocks ("#" in the editor UI)
for indentation and readability.

The documentation details the geometry layout (shapefile structure) and later
API releases include helper functions to manipulate geometry contents.  There
are also code samples to review.

- V
0 Kudos