X Ray for ArcCatalog
In my quest to implement the Local Government Information Model, I have struggled with the X Ray for AcrCatalog add-in. The add-in takes an xml document defining the schema of a geodatabase and applies it to an empty file geodatabase. It does a bunch of other stuff, but that is the only thing I wanted to use it for.
For some reason, I got as far as downloading and installing the add-in, but then got stuck because I was using the help document for X Ray under the X Ray Help menu to set the spatial reference:
I got hung up on the needed step of changing the spatial reference before applying the xml schema to my geodatabase. If I would have followed the steps here I would have not struggled at all. I also found this video by Heather Eisan from Esri very helpful:
I followed those steps again and again with no change. The steps I should have followed are:
- Select the Local Government xml file in the contents window of ArcCatalog.
- Open the xml document in X Ray by clicking on the folder with an x on it- , or use the Open XML Workspace choice in the X Ray menu on the X Ray window.
- Select a feature dataset or feature class with the desired spatial reference in the contents window in ArcCatalog.
- Select the Use Spatial Reference choice in the Options menu on the X Ray window.
- Click the save button or the Save choice from the X Ray menu on the X Ray window.
- Select the empty file geodatabase you want to apply the schema to in the contents window of ArcCatalog.
- Click the Import XML Workspace to selected GDB button, or the Import to Geodatabse choice in the X-Ray menu.
You can actually skip X Ray altogether by editing the xml document in Notepad++ or some other xml editor. You can search for the <WKT> tags and replace the text between them with text from another xml document you create by right clicking on a feature dataset or feature class and choosing Export - XML Workspace Document, making sure you select the schema only option.
After successfully importing the schema into your LGIM geodatabase, you can then use another set of custom tools written in python called Gizinta, (written by the same developer that wrote X-Ray) that also uses xml files to port your existing data into your LGIM geodatabase. But that is for a future post.