Select to view content in your preferred language

Dataset/Feature class hierarchy different between ArcGIS and FGDB

2632
1
08-11-2011 07:51 AM
eykim
by
Emerging Contributor
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.
0 Kudos
1 Reply
LanceShipman
Esri Regular Contributor
As noted in the documentation and in the readme files, Rasters (Raster Dataset, Raster Catalog, Mosaic Datasets and Raster Attributes) are not supported with the initial release of the File Geodatabase API. This did not change in the 1.1 release. It may change in a future release.

If you want a list of mosaic datasets the call is:
geodatabase.GetChildDatasets(L"\\", L"Mosaic Dataset", childList)


The code you used returns a list of all child datasets. This includes the mosaic datasets and all of the hidden feature classes that are associated with them. These hidden feature classes can be opened and read, but the contents are not documented. We block inserts and updates to these files to avoid unintended corruption.

geodatabase.GetChildDatasets(L""\\",L"", childList)
0 Kudos