-
Book Overview & Buying
-
Table Of Contents
Programming ArcGIS 10.1 with Python Cookbook
By :
During the
course of normal GIS operations, it is a fairly common practice to migrate data from one file type to another. For example, many organizations migrate data from the older personal geodatabase formats to the new file geodatabase types or perhaps even enterprise ArcSDE geodatabases. You can automate the process of updating your datasets to a different format with MapDocument.replaceWorkspaces().
MapDocument.replaceWorkspaces() is similar to MapDocument.findAndReplaceWorkspacePaths(), but it also allows you to switch from one workspace type to another. For example, you can switch from a file geodatabase to a personal geodatabase. However, it only works on one workspace at a time. In this recipe, we'll use MapDocument.replaceWorkspaces() to switch our data source from a file geodatabase to a personal geodatabase.
Follow these steps to learn how to fix broken data sources using MapDocument.replaceWorkspaces...
Change the font size
Change margin width
Change background colour