FGDB API SPRef :GCS_JGD_2000 False X :-400 False Y :-90 XY Units :1000000000 Resolution:1E-09 Tolerance :1E-08 ArcGIS Desktop SPRef :GCS_JGD_2000 False X :-400 False Y :-400 XY Units :1111948722.22222 Resolution:8.99322046075566E-10 Tolerance :8.98315284119521E-09
#3 ArcGIS Desktop has access to functionality not present in the API so the default values will be different.
I use Final release of FGDBAPI.The Geodatabase::CreateTable can't create featureclass using the XML that exported from GetDefinition. The error code is -2147467259 and the description is "General function failure".The XML that exported from GetDefinition does not contain WKT and WKID tags under SpatialReference tag. There isn't way to get a spatial reference information from FGDB except using ArcGIS.When a featureclass is created using XML with the minimum spatial reference definition, a spatial reference does not equal to the default values of ArcGIS Desktop.
if ((hr = geodatabase.CreateTable(featureClassDef,L"", streetsTable)) != S_OK) { wcout << "An error occurred while creating the table." << endl; ErrorInfo::GetErrorDescription(hr, errorText); wcout << errorText << "(" << hr << ")." << endl; // Report any extended errors (XML). ErrorInfo::GetErrorRecordCount(recordCount); for (int i = 0;i <= (recordCount - 1); i++) { ErrorInfo::GetErrorRecord(i,hr,errorText); wcout << errorText << endl; } ErrorInfo::ClearErrors(); return -1;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.