Merge Mosaic Dataset Items (Data Management)

License Level:BasicStandardAdvanced

Summary

Merges together multiple mosaic dataset items.

Usage

Syntax

MergeMosaicDatasetItems_management (in_mosaic_dataset, {where_clause}, {block_field}, {max_rows_per_merged_items})
ParameterExplanationData Type
in_mosaic_dataset

The path and name of the mosaic dataset.

Image Service; Mosaic Layer; String
where_clause
(Optional)

You can use SQL to define which mosaic dataset items will be merged.

SQL Expression
block_field
(Optional)

If a block name field does not already exist within the metadata, you can choose a field within the mosaic dataset attribute table to use as a block field. Fields that have the same value in their Block Field will be merged into the same row. Only date, numeric, and string fields can be specified as Block Fields.

You can specify both a where_clause and a block_field, in which case only the rows that match the query and whose block field values match will be merged.

Field
max_rows_per_merged_items
(Optional)

Specify the maximum number of rows that can be merged into a single item within the mosaic dataset. The default is 1,000 rows.

If the maximum is exceeded, the tool will insert additional merged items for the selection or query.

Long

Code Sample

MergeMosaicDatasetItems example 1 (Python window)

This is a Python sample for the MergeMosaicDatasetItems tool.

import arcpy
arcpy.MergeMosaicDatasetItems_management("c:/data/merge_md_items.gdb/md",
                                         "", "Year", "2000")
MergeMosaicDatasetItems example 2 (stand-alone script)

This is a Python script sample for the MergeMosaicDatasetItems tool.

#Merge items with items that are newer than year 1999

import arcpy
    
arcpy.MergeMosaicDatasetItems_management(
    "c:/data/merge_md_items.gdb/md", "Year>1999", "", "1000")

Environments

This tool does not use any geoprocessing environments

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015