Repair Mosaic Dataset Paths (Data Management)

License Level:BasicStandardAdvanced

Summary

Repairs broken file paths within a mosaic dataset.

Usage

Syntax

RepairMosaicDatasetPaths_management (in_mosaic_dataset, paths_list, {where_clause})
ParameterExplanationData Type
in_mosaic_dataset

The mosaic dataset to be repaired.

Mosaic Layer
paths_list
[Original Path {New Path},...]

A list paths to remap, including the current path stored in the mosaic dataset and the path to which it will be changed.

Value Table
where_clause
(Optional)

Using SQL, you can define a query or use the Query Builder to build a query.

SQL Expression

Code Sample

RepairMosaicDatasetPaths example 1 (Python window)

This is a Python sample for RepairMosaicDatasetPaths.

import arcpy
arcpy.RepairMosaicDatasetPaths_management(
     "C:/Workspace/repairmd.gdb/md", 
     "\\\\server1\\md\\fgdb.gdb\\md c:\\storage\\md\\mdgdb.gdb\\md", 
     "#")
RepairMosaicDatasetPaths example 2 (stand-alone script)

This is a Python script sample for RepairMosaicDatasetPaths.

#Repair mosaic dataset paths

import arcpy
arcpy.env.workspace = "C:/Workspace"

mdname = "repairmd.gdb/md"
paths = "e:/temp/data c:/storage/mddata/e;d:/temp/data c:/storage/mddata/d"
query = "#"

arcpy.RepairMosaicDatasetPaths_management(mdname, paths, query)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013