Repair Raster Catalog Paths (Data Management) |
|
Release 9.3
Last modified March 8, 2012 |
Print all topics in : "Tools" |
NOTE: This topic was updated for 9.3.1.
Repairs broken raster catalog paths or deletes broken links within an unmanaged raster catalog
Usage tips
Use this tool to fix any broken or changed links within an unmanaged raster catalog. It can also be used to delete any broken links that are no longer needed.
This tool can only be used for unmanaged raster catalogs.
You need to know the file path of the original raster catalog item location in order to change it. The Export Raster Catalog Paths geoprocessing tool can help you retrieve the original path names.
You can type an asterisk (*) as the original path if you wish to change all your paths.
Command line syntax
An overview of the Command Line window
RepairRasterCatalogPaths_management <in_raster_catalog> <FIX | REMOVE> <original_path> <new_path>
Parameter | Explanation | Data Type |
<in_raster_catalog> |
The unmanaged raster catalog to be repaired. |
Raster catalog |
<FIX | REMOVE> |
Choose the repair mode you would like to use.
|
String |
<original_path> |
Type the original raster catalog path that needs to be repaired. This is a required parameter if the FIX option was chosen. If you want to change all your paths to the new path, you are able to use the asterisk (*) as the original path. |
String |
<new_path> |
Type the new path to use. This is a required parameter if the FIX option was chosen. |
String |
RepairRasterCatalogPaths \\temp\fgdb.gdb\airphoto FIX * \\temp\source
Scripting syntax
About getting started with writing geoprocessing scripts
RepairRasterCatalogPaths_management (in_raster_catalog, repair_mode, original_path, new_path)
Parameter | Explanation | Data Type |
in_raster_catalog (Required) |
The unmanaged raster catalog to be repaired. |
Raster catalog |
repair_mode (Required) |
Choose the repair mode you would like to use.
|
String |
original_path (Required) |
Type the original raster catalog path that needs to be repaired. This is a required parameter if the FIX option was chosen. If you want to change all your paths to the new path, you are able to use the asterisk (*) as the original path. |
String |
new_path (Required) |
Type the new path to use. This is a required parameter if the FIX option was chosen. |
String |
# Create the geoprocessing object import arcgisscripting gp = arcgisscripting.create() gp.repairRasterCatalogPaths_management(r"\\temp\fgdb.gdb\airphoto", "FIX" , "*", r"\\temp\source")