Select to view content in your preferred language

browing FGDB - help needed

3055
3
03-17-2011 08:01 PM
sujaygarapati
Deactivated User
Hi,
We have an issue regarding browsing a FGDB to view its contents. We are trying to open a FGDB using Folder dialog box. But we are unable to view the standalone tables inside the database.

to put is simply, if you use "ADD DATA" button in ArcGIS you can go inside a FGDB and view different data objects (Feature classes, Feature Datasets, table etc.). We want a similar method to via a folder dialog box.
0 Kudos
3 Replies
LanceShipman
Esri Regular Contributor
Hi,
We have an issue regarding browsing a FGDB to view its contents. We are trying to open a FGDB using Folder dialog box. But we are unable to view the standalone tables inside the database.

to put is simply, if you use "ADD DATA" button in ArcGIS you can go inside a FGDB and view different data objects (Feature classes, Feature Datasets, table etc.). We want a similar method to via a folder dialog box.


Toe accomplish this you should be using the Geodatabase::GetChildDatasets member.
geodatabase.GetChildDatasets(L"\\", L"Table", childList) will return all tables at the root.
geodatabase.GetChildDatasets(L"\\", L"Feature Class", childList) will return all stand alone feature classes.
geodatabase.GetChildDatasets(L"\\", L"Feature Dataset", childList) will return all feature datasets.
geodatabase.GetChildDatasets(L"\\USA", L"Feature Class", childList) will return all feature classes withing a feature dataset (USA in this example).
0 Kudos
sujaygarapati
Deactivated User
dear lance,
thanks for the reply, however i would like to tell you a little more about the application we are currently working on. We are building an Engine application using Arc Engine 9.3

can the solution you gave work in this situation?

would be very thankful for you insights in this matter..
0 Kudos
LanceShipman
Esri Regular Contributor
The File Geodatabase API only works with 10.0 or later File Geodatabases.Since you are using ArcEngine you should use ArcObjects. Take a look at IWorkspace.DatasetNames.
0 Kudos