POST
|
So is it not even possible to find out if a feature class is an Annotation using the API?
... View more
11-17-2015
07:47 PM
|
0
|
0
|
15
|
POST
|
Hi, I have been using the file geodatabse api for quite some time to read and display feature classes. I recently got a dataset that contains annotations. The limitations section at File Geodatabase API details | ArcGIS Blog mentions that "the API will support reading the schema and data of complex geodatabase types, but will not honor geodatabase behavior on inserts, deletes or updates to the following dataset types: Annotation and Dimension feature classes, Relationship Classes..." But the problem that I'm facing is, when I'm reading a file geodatabase that has an annotation feature class, it is showing the feature class geometry type as geometryPolygon and my display is showing the feature class also as an area type by using the text bounds as the actual data!! Here is the snippet that I have in my code to get the geometry type - if ((hr = m_fileGeoDatabase->OpenTable(tableName, ptrTable)) == S_OK) { FieldInfo* fInfo = new FieldInfo; ptrTable.GetFieldInformation(*fInfo); fInfo->GetFieldCount(fieldCnt); for (int j = 0; j < fieldCnt; j++) { fInfo->GetFieldType(j, fType); if (fType == fieldTypeGeometry) { fDef.GetGeometryDef(geomDef); geomDef.GetGeometryType(geomType); } } } Now, Is there a way in the API using which I can identify whether a feature class is an annotation. if so, can I just display (no edits, inserts or deletes) the text using the API. Bharat Kumar Kale
... View more
11-16-2015
02:50 AM
|
0
|
2
|
4053
|
POST
|
Thank you Lance for looking into the issue. Your suggestion has fixed my issue. My understanding about the CLSID here is that it can be any GUID value as long as it's unique. Now I got it right and it's a constant value based on the type whether it's a table or a feature class. Also, I was confused mainly because the same table.xml which is not working with APIV1.4, is working perfectly fine (with the CLSID value as { 52353152-891A-11D0-BEC6-00805F7C4268 }) with APIV1.3.
... View more
09-30-2015
10:00 PM
|
0
|
0
|
96
|
POST
|
Hi, I have and xml definition for a data table. Till API1.3, everything used to work fine but, when I upgraded my API to V1.4, CreateTable is failing for the same XML (Attached schema.xml). I compared with the table.xml that is delivered in the XML samples along with the API and made modifications so that table.xml looks exactly same as schema.xml (attached both the files and they are absolutely same). when I give table.xml everything works fine but when schema.xml xml is used CreateTable is failing with the error "General Function Failure" (hr= -2147467259)!! Can you any one help if I'm missing anything here. Thank you for your time. Regards, Bharat
... View more
09-21-2015
04:56 AM
|
0
|
3
|
3603
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|