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
arcpy.management.ExportRasterCatalogPaths(in_raster_catalog, export_mode, out_table)
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
ExportRasterCatalogPaths example (Python window)
This is a Python sample of the ExportRasterCatalogPaths tool.
import arcpy
arcpy.ExportRasterCatalogPaths_management("c:/data/ExportRC.gdb/bkrnlinks",
"BROKEN", "c:/data/brokenpath.dbf")
ExportRasterCatalogPaths example 2 (stand-alone script)
This is a Python script sample of the ExportRasterCatalogPaths tool.
##====================
##Export Raster Catalog Paths
##Usage: ExportRasterCatalogPaths_management in_raster_catalog BROKEN | ALL out_table
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")
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes