Split Mosaic Dataset Items (Data Management)
Summary
Splits mosaic dataset items that were merged together using Merge Mosaic Dataset Items. Selections and queries can be used to choose the mosaic dataset items to split apart.
Usage
If the selection or query does not contain any merged items, the tool will return an error message.
-
When the tool is run, it will remove the merged items from the mosaic dataset table then add all the originally merged items as new rows.
Syntax
SplitMosaicDatasetItems_management (in_mosaic_dataset, {where_clause})
Parameter | Explanation | Data Type |
in_mosaic_dataset |
Input mosaic dataset. | Image Service; Mosaic Layer; String |
where_clause (Optional) |
You can use SQL to define which mosaic dataset items will be split. If the query does not contain any previously merged items, the tool will return an error. | SQL Expression |
Code Sample
SplitMosaicDatasetItems example 1 (Python window)
This is a Python sample for the SplitMosaicDatasetItems tool.
import arcpy
arcpy.MergeMosaicDatasetItems_management("c:/data/merge_md_items.gdb/md",
"", "Year", "2000")
SplitMosaicDatasetItems example 2 (stand-alone Python script)
This is a Python script sample for the SplitMosaicDatasetItems 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
Related Topics
Licensing Information
ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015