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.

Is there any method in Python, ArcObjects, or the File GDB API for determining the release version (9.3, 10.0, etc.) of a file geodatabase? There is a need to find all of our shared 10.0 version file geodatabases and convert them back to 9.3 since not everyone as at 10.0 yet.

I know that you can create 9.3 version file geodatabases in 10.0 so that part should be easy enough.

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

You can use the IGeodatabaseRelease2 interface on a workspace to determine the version. It has the properties MajorVerison and MinorVersion. The MajorVersion is offset from the ArcGIs version by 7:

        Dim pGDBRelease As ESRI.ArcGIS.Geodatabase.IGeodatabaseRelease2 = pWorkspace
        System.Windows.Forms.MessageBox.Show(pGDBRelease.MajorVersion + 7 & "." & pGDBRelease.MinorVersion)
share|improve this answer
    
This worked great, thanks. –  blah238 Jun 17 '11 at 16:16
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.