Export Mosaic Dataset Paths (Data Management)

License Level:BasicStandardAdvanced

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

Syntax

ExportMosaicDatasetPaths_management (in_mosaic_dataset, out_table, {where_clause}, {export_mode}, {types_of_paths})
ParameterExplanationData 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.

  • ALLThis option will export all the paths to the table. This is the default.
  • BROKENThis option will export only the broken paths to the table.
String
types_of_paths
[type_of_paths,...]
(Optional)

Choose which types of paths to export.

  • RASTERThe paths to the source raster dataset will be exported.
  • ITEM_CACHEThe paths to the raster item cache will be exported.
String

Code Sample

ExportMosaicDatasetPaths example 1 (Python window)

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")
ExportMosaicDatasetPaths example 2 (stand-alone script)

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)

Environments

Related Topics

Licensing Information

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