Export Mosaic Dataset Items (Data Management)

License Level:BasicStandardAdvanced

Summary

Creates a copy of your processed images within a mosaic dataset to a specified folder and raster file format.

Usage

Syntax

ExportMosaicDatasetItems_management (in_mosaic_dataset, out_folder, {where_clause}, {out_base_name}, {format}, {nodata_value}, {clip_type}, {template_dataset}, {cell_size})
ParameterExplanationData Type
in_mosaic_dataset

The input mosaic dataset.

Mosaic Layer
out_folder

The output folder where the output rasters will be saved.

Folder
where_clause
(Optional)

Define an SQL query if you want to export a subset of the mosaic dataset items. For more information on SQL syntax see the help topic SQL reference for query expressions used in ArcGIS.

If no query is specified, all mosaic dataset items will be exported.

SQL Expression
out_base_name
(Optional)

The prefix for each exported file name. The ObjectID number is then appended to complete the file name.

If no base name is set, the text in the Name field of the mosaic dataset item will be used.

String
format
(Optional)

The file format for the exported raster datasets.

  • TIFFTagged Image File Format. This is the default.
  • BMPMicrosoft Bitmap.
  • ENVIENVI DAT.
  • Esri BILEsri Band Interleaved by Line.
  • Esri BIPEsri Band Interleaved by Pixel.
  • Esri BSQEsri Band Sequential.
  • GIFGraphic Interchange Format.
  • GRIDEsri Grid.
  • IMAGINE IMAGEERDAS IMAGINE.
  • JP2JPEG 2000.
  • JPEGJoint Photographic Experts Group.
  • PNGPortable Network Graphics.
String
nodata_value
(Optional)

The NoData value for the output data.

If you choose to clip your output data, it is recommended that you specify a NoData value.

String
clip_type
(Optional)

The method to use to clip your output images.

  • NONENo clipping will occur. This is the default.
  • EXTENTSpecify an extent as your clipping boundary. All your output images will inherit this extent.
  • FEATURE_CLASSSpecify a feature class geometry to clip your data. All your output images will inherit this extent.
String
template_dataset
(Optional)

An extent or a dataset used to define the clipping boundary.

Extent
cell_size
(Optional)

The x and y cell size dimensions for the output data. The default cell size is the same as the input.

Point

Code Sample

ExportMosaicDatasetItems example 1 (Python window)

This is a Python sample for ExportMosaicDatasetItems.

import arcpy
arcpy.ExportMosaicDatasetItems_management(
     "c:/workspace/exportmditems.gdb/export_all_items", 
     "c:/workspace/export_all_items_out", 
     "allitems", "", "TIFF", "", "NONE", "", "")
ExportMosaicDatasetItems example 2 (stand-alone script)

This is a Python script sample for ExportMosaicDatasetItems.

#Export Mosaic Dataset items
                                                                       
import arcpy
arcpy.env.workspace = "c:/workspace"
    
#export mosaic dataset items using feature class as clipping extent
imdname = "exportmditem.gdb/exportmd" 
outfolder = "c:/workspace/outfolder"
basename = "Landsat8"
query = "OBJECTID = 1"
out_format = "TIFF"
nodata_value = "#"
cliptype = "FEATURE_CLASS"
clip_featureclass = "c:/workspace/featureclassdb.gdb/clip_FC"
cell_size = "#"

arcpy.ExportMosaicDatasetItems_management(imdname, outfolder, basename, 
     query, out_format, nodata_value, cliptype, clip_featureclass, cell_size)

Environments

Licensing Information

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