I am having a .gdb file(World.gdb). I want to display or i want to see the content of this gdb file in winForms programmatically(C#). How can i do it? I dont want to view via ArcCatalog.
Please help soon.
Regards, Arun
|
I am having a .gdb file(World.gdb). I want to display or i want to see the content of this gdb file in winForms programmatically(C#). How can i do it? I dont want to view via ArcCatalog. Please help soon. Regards, Arun |
|||||||
|
|
Since file geodatabase is a proprietary format, you need to use Esri tools or other software (for example, FME) that has embedded this format. Meantime, you are welcome to try the File GDB API Esri has released some time ago. |
|||
|
|
|
I find it handy to put INames in a Dictionary. Opening only open the featureclass when it is needed. Getting a list of INames is much less costly than getting a list of references to featureclasses (or tables).
Also, Esri recommends using Activator to instantiate the workspacefactory.
|
|||
|
|
|
You can get feature class names from the .gdb file using IWorkspace interface, if you want to get get all feature class names. Then check if your desire feature class is present here or not. Code is not tested EDIT
|
|||||||||
|