POST
|
I have a few questions regarding attached fgdb file. From the attached fgdb file, ArcGIS destkop displays two mosaic datasets. And the feature classes and raster catalogs look as if they are the children of the mosaic datasets. However, File Geodatabase API doesn't give us the same hierarchy as we see on the ArcGIS. The feature classes and raster catalogs that should belong to the mosaic dataset are root elements independent of the mosaic datasets.
std::vector<std::wstring> oAllChidren;
psInfo->moGeodatabase.GetChildDatasets(L"\\", L"", oAllChidren);
This code returns: - oAllChidren [14]("\AMD_PAN_0625_nominal_DEM_CAT","\AMD_PAN_0625_nominal_DEM_ART","\AMD_PAN_0625_nominal_DEM_LOG","\AMD_PAN_0625_nominal_DEM_BND","\PAN_0625_nominal_DEM","\AMD_PAN_0625_nominal_DEM_CSL","\AMD_PAN_0625_nominal_DEM_OVR","\AMD_PAN_0625_L7GCPs_DEM_CAT","\AMD_PAN_0625_L7GCPs_DEM_ART","\AMD_PAN_0625_L7GCPs_DEM_LOG","\AMD_PAN_0625_L7GCPs_DEM_BND","\PAN_0625_L7GCPs_DEM","\AMD_PAN_0625_,"\AMD_P) std::vector<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >,std::allocator<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > > > 2. Raster Catalog: I'm assuming it is very similar to feature class in the sense that it has polygons and attribute tables. The latest API 1.1 still doesn't allow us to query raster catalog table. I get this "Function not implemented" error.
... View more
08-11-2011
07:51 AM
|
0
|
1
|
2473
|
POST
|
On EDN portal I downloaded something called ArcGIS_Desktop10_Tutorial_121093.iso and in there was a folder called BuildingAGeodatabase. I assume you have access to the portal. I have another question for you. One of the feature class in that dataset is of Annotation feature class. Will the geometry type of annotation feature class always be polygons? Can they be multipoints? Layer name: Distribution mains diameters Data Type: File Geodatabase Feature Class Location: C:\output\bugzilla\847\Montgomery_ref.gdb Feature Dataset: Water Feature Class: DistDiam Feature Type: Annotation Geometry Type: Polygon
... View more
06-17-2011
08:37 AM
|
0
|
0
|
433
|
POST
|
Sorry. I attached a wrong file. With this attachment, I saw: 1. Landbase feature dataset 2. Water feature dataset 3. Centroids feature class. In ArcMap, you will see dataset # 1 and # 2 have the same projections and #3 has something else (WGS 84). I can't seem to find the spatial reference from the xml definition of #3. And yes, I've updated file gdb library to final release 1. I'm looking forward to seeing more features in the next releases. Thank you for help...
... View more
06-15-2011
05:57 AM
|
0
|
0
|
433
|
POST
|
Hi there, I have this dataset, whose feature class (centroids) has a UTM projection, but the projection is not included in the xml definition itself. In this case, how do I go about extracting projection from the feature class? Is there such thing as default? Attached is the dataset I've been looking at.. Thanks.
... View more
06-13-2011
08:33 AM
|
0
|
5
|
3061
|
POST
|
The amphibians db I got is from a remote site. http://www.iucnredlist.org/spatial-data/2010.4/GISData/All_AMPHIBIANS_Oct2010.gdb.zip So, I've tried to get an error description xml but the error count I got was 0 and and the xml returns empty string. Funny thing is I can open the file in ArcMap. Thank you for looking into this.
if ((hr = OpenGeodatabase(L"C:/All_AMPHIBIANS_Oct2010.gdb", geodatabase2)) != S_OK)
{
std::wstring oErrDesc, oErrXML;
FileGDBAPI::ErrorInfo::GetErrorDescription (hr, oErrDesc);
wcout << "An error occurred while opening the geodatabase." << endl;
wcout << oErrDesc << endl;
// Report any extended errors (XML).
int nErrRecordCnt;
FileGDBAPI::ErrorInfo::GetErrorRecordCount(nErrRecordCnt);
for (int i = 0;i <= (nErrRecordCnt - 1); i++)
{
FileGDBAPI::ErrorInfo::GetErrorRecord(i,hr,oErrXML);
wcout << oErrDesc << endl;
}
return hr;
}
... View more
06-02-2011
10:11 AM
|
0
|
0
|
311
|
POST
|
Hello, I'm just wondering if you have any idea when API 4- Final release will be released? I believe the latest blog entry said mid-may.. The other question is: I got a file geodatabase amphibian and tried to open it using file geodatabase api, but got "General function failure" message. Since we don't have access to source code, more specific error message than "General function failure" will be appreciated. Do you mind taking a look at my file geodatabase (it is way to big to post on this forum.) Thanks.
... View more
05-30-2011
11:13 AM
|
0
|
3
|
3149
|
POST
|
Hi there, Is there a way to reset a projection of a feature class in file geodatabase after the feature class is created?
Table oTable;
int wkid;
oTable.SetSpatialReferenceInfo(wkid)
I've gone through API and can't seem to find any classes/functions for that.
... View more
05-04-2011
08:52 AM
|
0
|
2
|
1391
|
POST
|
Found out what my problem is: my xml was not correct. A correct example would be: std::string oFieldXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" "<esri:Field xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:esri=\"http://www.esri.com/schemas/ArcGIS/10.1\" xsi:type=\"esri:Field\">" "<Name>night</Name>" "<Type>esriFieldTypeString</Type>" "<IsNullable>true</IsNullable>" "<Length>256</Length>" "<Precision>0</Precision>" "<Scale>0</Scale>" "<AliasName>day</AliasName>" "<ModelName>night</ModelName>" "<DefaultValue xsi:type=\"xs:string\">noon</DefaultValue>" "</esri:Field>";
... View more
04-28-2011
06:03 AM
|
0
|
0
|
1078
|
POST
|
I'm having a similar issue. I've modified FeatureDatasets.cpp file in the sample solution to add a field. And this returns the same error number ( -2147467259) and description "General function error." Can you tell me why I'm getting this error? Thank you.
std::wstring oErrDesc;
std::string oFieldXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<esri:Field xmlns:xsi=\"http://www.w3.org/2001/XMLSchema\" xmlns:esri=\"http://www.esri.com/schemas/ArcGIS/10.1\" xsi:type=\"esri:Field\">"
"<Name>StopType2</Name>"
"<Type>esriFieldTypeSmallInteger</Type>"
"<IsNullable>true</IsNullable>"
"<Required>false</Required>"
"<Editable>true</Editable>"
"<Length>2</Length>"
"<Precision>0</Precision>"
"<Scale>0</Scale>"
"<AliasName>StopType2</AliasName>"
"<ModelName>StopType2</ModelName>"
"</esri:Field>";
if ((hr = table.AddField(oFieldXML))!= S_OK)
{
FileGDBAPI::ErrorInfo::GetErrorDescription(hr, oErrDesc);
}
... View more
04-18-2011
10:09 AM
|
0
|
0
|
1078
|
POST
|
Hi All, I've noticed that we have raster field type, just wondering if you will provide API for raster as well such as rows.GetRaster, just like rows.GetDate or rows.GetString.. Thanks for your help. sandhufan..
... View more
04-14-2011
11:08 AM
|
0
|
11
|
5825
|
POST
|
Hello, I've modified the sample source code Querying.cpp to open another database in the sample (TestData.gdb). I get the following error saying, "General function failure (-2147467259)". Can anyone tell me what I'm doing wrong here? Thanks for your help. Here is my source code.
fgdbError hr;
wstring errorText;
Geodatabase geodatabase;
if ((hr = OpenGeodatabase(L"../data/TestData.gdb", geodatabase)) != S_OK)
{
wcout << "An error occurred while opening the geodatabase." << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return -1;
}
... View more
04-01-2011
01:18 PM
|
0
|
1
|
3364
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|