Export Mosaic Dataset Paths (Data Management)
Summary
Creates a table listing the paths to the mosaic dataset items. The table can display 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 input mosaic dataset. | Mosaic Layer |
out_table |
The output table. This table can be created as a geodatabase table or a DBF file. The output table will have a field that lists the Source OID. This is the OID of the row in the original raster catalog table. | Table |
where_clause (Optional) |
Using SQL, you can define a query or use the Query Builder to build a query. | SQL Expression |
export_mode (Optional) |
Choose what paths to output to the table. You can choose to output all the file paths or just the ones that are broken.
| String |
types_of_paths [type_of_paths,...] (Optional) | Choose which types of paths to export.
| 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)