Export Mosaic Dataset Paths (Data Management)
Summary
Creates a table of the file path for each item in a mosaic dataset. You can specify whether the table contains all the file paths or just the ones that are broken.
Usage
-
The output of this tool is a table, either in a geodatabase or a .dbf file.
Syntax
Parameter | Explanation | Data Type |
in_mosaic_dataset |
The mosaic dataset containing the file paths to export. | Mosaic Layer |
out_table |
The table to create. The table can be a geodatabase table or a .dbf file. The SourceOID field in the output table is derived from the OID of the row in the original mosaic dataset table. | Table |
where_clause (Optional) |
An SQL expression to select specific rasters for export. | SQL Expression |
export_mode (Optional) |
Populate the table with either all of the paths, or only the broken paths.
| String |
types_of_paths [type_of_path,...] (Optional) | Choose to export file paths from only the source raster, only the cache, or both.
| String |
Code Sample
This is a Python sample for the ExportMosaicDatasetPaths tool.
import arcpy
arcpy.ExportMosaicDatasetPaths_management(
"C:/Workspace/exportmd.gdb/md", "C:/workspace/brokenpaths.dbf",
"#", "BROKEN", "RASTER")
This is a Python script sample for the ExportMosaicDatasetPaths tool.
#Export broken raster path in FGDB Mosaic Dataset to dbf table
import arcpy
arcpy.env.workspace = "C:/Workspace"
mdname = "exportmd.gdb/md"
outtable = "C:/workspace/brokenpaths.dbf"
query = "#"
mode = "BROKEN"
pathtype = "RASTER"
arcpy.ExportMosaicDatasetPaths_management(mdname, outtable, query,
mode, pathtype)