Export Raster Catalog Paths (Data Management)

License Level:BasicStandardAdvanced

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

Syntax

ExportRasterCatalogPaths_management (in_raster_catalog, export_mode, out_table)
ParameterExplanationData 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.

  • BROKENThis option will export only the broken paths to the table.
  • ALLThis option will export all the paths to the table.
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
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()

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013