I have at my disposal a folder with data provided to me by a person that knows nothing about GIS. I have the impression that its file structure was generated by some esri desktop product. I have only ArcEngine license, so no desktop product for me to check the data. The folder structure goes like this:

----<many other files>

Is this a form of geodatabase? What programm understands this folder structure? How to use it? Should convert this programmatically to some form of other geodatabase (file or personal) and how?

Thanx in advance

  • After some searching I have come to believe that this is an ArcInfo or ArcView workspace. So I will have to iterate each contained dataset and copy it to a gdb geodatabase or something. Is that the case? – Exile79 Oct 12 '11 at 11:27
  • 1
    Arccatalog sure would make it easier to assess this data. – Kirk Kuykendall Oct 12 '11 at 12:51

To see what sorts of datasets are stored in a particular folder, you can use the IWorkspaceFactory interface. Make a list of concrete workspacefactory classes (rasterworkspacefactory, arcinfoworkspacefactory etc.) using the activator, as outlined here.

For each workspacefactory in the list, see if IWorkspaceFactory.IsWorkspace is true for the folder. If so, call IWorkspaceFactory.OpenFromFile to return an IWorkspace. You may then iterate through the top level datasets using IWorkspace.DatasetNames, and the subsets using IDataset.Subsets. For performance it is faster to loop through IDatasetNames. This would allow you to build a treeview where each node in the tree represents an IDatasetName, and do lazy loading to open the dataset when user expands the node, via IName.Open.

  • Could the Gx catalog related classes be used for this instead? Are they available in ArcEngine? Doing so would free the programmer from the need to create all possible workspace factories. – Petr Krebs Oct 12 '11 at 16:02
  • Engine is not listed in the "supported with" section shown here, but it would certainly be worth trying with arcengine to see if the documentation just omitted it by mistake. – Kirk Kuykendall Oct 12 '11 at 16:07
  • You're right, that's settled then. – Petr Krebs Oct 12 '11 at 16:13

The tfw is a world file, and is the geo reference data for the tiff, for arcview.

rrd is an ERDAS Imagine file and the img file is associated with it.

Under DTED2 is arcview data stuff.

Hope that helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.