ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Repair Mosaic Dataset Paths

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Resets paths to source imagery if you have moved or copied a mosaic dataset.

Usage

  • You need to know the file path location in order to change it. You can use the Export Mosaic Dataset Paths tool to retrieve the original path names.

  • You can type an asterisk (*) as the original path if you wish to change all your paths.

  • Database fragmentation and frequent data manipulation can dramatically increase the size of your mosaic dataset. If your database size is inflated due to constant transactions, run the Compact tool.

Syntax

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

The mosaic dataset with the broken paths.

Mosaic Layer
paths_list
[[original_path, {new_path}],...]

A list of the paths to remap. Include the current path stored in the mosaic dataset and the path to which it will be changed. You can enter an asterisk (*) as the original path if you wish to change all your paths.

Value Table
where_clause
(Optional)

An SQL expression to limit the repairs to selected rasters within the mosaic dataset.

SQL Expression

Derived Output

NameExplanationData Type
out_mosaic_dataset

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.

Licensing information

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data
  • Moving or copying a mosaic dataset
  • Repairing paths in a mosaic dataset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal