Summary
Splits mosaic dataset items that were merged together using Merge Mosaic Dataset Items.
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 removes the merged items from the mosaic dataset table then adds all the originally merged items as new rows.
Syntax
SplitMosaicDatasetItems_management (in_mosaic_dataset, {where_clause})
Parameter | Explanation | Data Type |
in_mosaic_dataset | The mosaic dataset containing the items to split. | Image Service; Mosaic Layer; String |
where_clause (Optional) | An SQL expression to select items to split. If the query does not contain any previously merged items, the tool will return an error. | SQL Expression |
Derived Output
Name | Explanation | Data Type |
out_mosaic_dataset |
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.
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes