Export Raster Catalog Paths (Data Management)
Summary
Creates a table listing the paths to the raster datasets contained in an unmanaged raster catalog or a mosaic dataset. 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_raster_catalog |
The input unmanaged raster catalog or mosaic dataset. | Raster Catalog Layer; Mosaic Dataset; Group Layer; Composite Layer |
export_mode |
Choose what paths to output to the table. You can choose to output all the file paths, or just the ones that are broken. Choose the repair mode you would like to use.
| String |
out_table |
The output table. This table can be created as a DBF file or within a geodatabase. 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 |
Code Sample
This is a Python sample of the ExportRasterCatalogPaths tool.
import arcpy
arcpy.ExportRasterCatalogPaths_management("c:/data/ExportRC.gdb/bkrnlinks",
"BROKEN", "c:/data/brokenpath.dbf")
This is a Python script sample of the ExportRasterCatalogPaths tool.
##====================
##Export Raster Catalog Paths
##Usage: ExportRasterCatalogPaths_management in_raster_catalog BROKEN | ALL out_table
try:
import arcpy
arcpy.env.workspace = r"C:\PrjWorkspace"
##Export broken path in FGDB Unmanaged Raster Catalog to dbf table
arcpy.ExportRasterCatalogPaths_management("ExportRC.gdb\\Unmanaged", "BROKEN", "brokenpath.dbf")
except:
print "Export Raster Catalog Items example failed."
print arcpy.GetMessages()