Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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:

ROOTFOLDER
--DTED1
----file1.img
----file1.rrd
--DTED2
--info
----arc.dir
----arc0000.dat
----arc0000.nit
----arc0001.dat
----<many other files>
--RASTER_DATA
----GEOTIFF
------file2.aux
------file2.rrd
------file2.tfw
------file2.tiff

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

share|improve this question
    
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
add comment

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
    
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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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