A workspace path is the system path to the workspace.A workspace can be a folder that contains items like shapefiles, CAD files, or rasters, or it can be an ArcInfo Workstation coverage, personal geodatabase, file geodatabase, connection to SDE, and so on. Several definitions are provided to summarize the terms being used in this document: The purpose of this document is to discuss all the methods and suggest best practices for many common scenarios. The capabilities of these methods overlap therefore, there are multiple ways of updating a layer or table's workspace or dataset. replaceWorkspaces or replaceDataSource allows you to change the workspace path, workspace type, and / or change the dataset name.It is ideal for scenarios where drive letters change, switch to UNC paths, update SDE connection file information, and so on. It can't be used if the workspace type or dataset name has changed. findAndReplaceWorkspacePath or findAndReplaceWorkspacePaths allows you to substitute an entire or partial string for a layer or table's workspace path.The method names change slightly depending upon the class and the parameters available. There are essentially two different types of methods that work on MapDocument, Layer, and TableView classes. Brief discussions are available with each method's help topic, but this document is intended to summarize and compare them all. You have control of updating data sources for individual layers, or you can update all layers at once that have a common workspace. Methods are available with the arcpy.mapping scripting environment that make it possible to automate these changes without even having to open a map document. The idea of making these changes manually in every affected map document can be overwhelming. There are numerous reasons why data sources need to be repaired or redirected to different locations. Methods for updating and fixing data sources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |