Mosaic Dataset To Mobile Mosaic Dataset (Data Management)

Summary

Converts a mosaic dataset into a mobile mosaic dataset compatible with ArcGIS Runtime SDK. A mobile mosaic dataset resides in a mobile geodatabase.

Usage

  • When converting to a mobile mosaic dataset, you have the option to apply raster functions that are associated with the mosaic dataset by checking Convert Rasters (convert_rasters='ALWAYS' in Python). Leaving Convert Rasters unchecked will only convert the source data.

Syntax

arcpy.management.MosaicDatasetToMobileMosaicDataset(in_mosaic_dataset, out_mobile_gdb, mosaic_dataset_name, {where_clause}, {selection_feature}, {out_data_folder}, {convert_rasters}, {out_name_prefix}, {format}, {compression_method}, {compression_quality})
ParameterExplanationData Type
in_mosaic_dataset

The mosaic dataset to be converted to a mobile mosaic dataset.

Mosaic Dataset; Mosaic Layer
out_mobile_gdb

The geodatabase where the converted mosaic dataset will be created.

File
mosaic_dataset_name

The name of the mobile mosaic dataset to be created.

String
where_clause
(Optional)

An SQL expression to select specific items to add to the mobile mosaic dataset.

SQL Expression
selection_feature
(Optional)

The mosaic dataset items to be included in the output based on the extent of another image or feature class. Items that lay along the defined extent will be included in the mosaic dataset. They will not be clipped.

  • MAXOF—The maximum extent of all inputs will be used.
  • MINOF—The minimum area common to all inputs will be used.
  • DISPLAY—The extent is equal to the visible display.
  • Layer name—The extent of the specified layer will be used.
  • Extent object—The extent of the specified object will be used.
  • Space delimited string of coordinates—The extent of the specified string will be used. Coordinates are expressed in the order of x-min, y-min, x-max, y-max.
Extent
out_data_folder
(Optional)

If specified, the tool will create a copy of the source data in this folder. If convert_rasters='ALWAYS', any raster functions associated with the mosaic dataset are processed before creating the copy.

Folder
convert_rasters
(Optional)

Applies the raster functions associated with the input mosaic dataset before creating the mobile mosaic dataset. If you have raster functions that are not supported by ArcGIS Runtime SDK, the tool will return the appropriate error message.

  • AS_REQUIREDDo not convert raster items with functions that are not supported by ArcGIS Runtime SDK. This is the default.
  • ALWAYSApply the raster function chain and save the output as converted raster items.
Boolean
out_name_prefix
(Optional)

Appends a prefix to each item, which is copied or converted into the output data folder.

String
format
(Optional)

The format for the rasters written to the output data folder.

  • TIFFTIFF format
  • PNGPNG format
  • JPEGJPEG format
  • JP2JPEG2000 format
String
compression_method
(Optional)

The method of compression for transmitting the mosaicked image from the computer to the display (or from the server to the client).

  • NONENo compression will be used.
  • JPEGCompresses up to 8:1 and is suitable for backdrops.
  • LZWCompresses approximately 2:1. Suitable for analysis.
  • RLELossless compression. Suitable for categorical datasets.
String
compression_quality
(Optional)

A value from 0 to 100. A higher number means better image quality but less compression. This value only applies when JPEG or JP2 is specified as the compression method.

Long

Derived Output

NameExplanationData Type
out_mosaic_dataset

The updated mosaic dataset.

Mosaic Dataset

Code sample

MosaicDatasetToMobileMosaicDataset example (Python window)

This is a Python sample for the MosaicDatasetToMobileMosaicDataset tool.

import arcpy

arcpy.MosaicDatasetToMobileMosaicDataset_management( 
	“c:/someproject/md/fgdb.gdb/somemd”,
	“c:/someproject/runtime/somesql.geodatabase”, 
	“somemd”, “ProductName == ‘Landsat8’”, 
	“c:/someproject/aoi/somefc.shp”,
	“c:/someproject/runtime/data”, 
	“ALWAYS”, “TIFF”, “JPEG”, “75”)

Environments

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes