Mosaic Dataset To Mobile Mosaic Dataset (Data Management)

Summary

Converts a mosaic dataset into a mobile mosaic dataset that's compatible with ArcGIS Maps SDKs for Native Apps. 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. Leaving Convert Rasters unchecked will only convert the source data.

Parameters

LabelExplanationData Type
Mosaic Dataset

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

Mosaic Dataset; Mosaic Layer
Mobile Geodatabase

The geodatabase where the converted mosaic dataset will be created.

File
Mosaic Dataset Name

The name of the mobile mosaic dataset that will be created.

String
Query Definition
(Optional)

An SQL expression that will be used to select specific items to add to the mobile mosaic dataset.

SQL Expression
Selection Feature
(Optional)

The mosaic dataset items that will 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.

  • Current Display Extent Map View—The extent will be based on the active map or scene.
  • Draw Extent Square and Finish—The extent will be based on a rectangle drawn on the map or scene.
  • Extent of a Layer Layer—The extent will be based on an active map layer. Choose an available layer or use the Extent of data in all layers option. Each map layer has the following options:

    • All Features Select All—The extent of all features.
    • Selected Features Area from Selected Features—The extent of the selected features.
    • Visible Features Extent Indicator—The extent of visible features.

  • Browse Browse—The extent will be based on a dataset.
  • Clipboard Paste—The extent can be copied to and from the clipboard.
    • Copy Extent Copy—Copies the extent and coordinate system to the clipboard.
    • Paste Extent Paste—Pastes the extent and coordinate system from the clipboard. If the clipboard does not include a coordinate system, the extent will use the map’s coordinate system.
  • Reset Extent Reset—The extent will be reset to the default value.

When coordinates are manually provided, the coordinates must be numeric values and in the active map's coordinate system. The map may use different display units than the provided coordinates. Use a negative value sign for south and west coordinates.

Extent
Output Data Folder
(Optional)

The folder where a copy of the source data will be created. If the Convert Rasters parameter is checked, any raster functions associated with the mosaic dataset will be processed before creating the copy.

Folder
Convert Rasters
(Optional)

Specifies whether the raster functions associated with the input mosaic dataset will be converted before creating the mobile mosaic dataset. If there are raster functions that are not supported by Native Maps SDKs, an error message will be returned.

  • Unchecked—Raster items with functions that are not supported by Native Maps SDKs will not be converted. This is the default.
  • Checked—The raster function chain will be applied and the output will be saved as converted raster items.
Boolean
Output Base Name
(Optional)

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

String
Output Format
(Optional)

Specifies the format that will be used for the rasters written to the output data folder.

  • TIFFThe TIFF format will be used.
  • PNGThe PNG format will be used.
  • JPEGThe JPEG format will be used.
  • JPEG2000The JPEG2000 format will be used.
String
Compression Method
(Optional)

Specifies the compression method that will be used for transmitting the mosaicked image from the computer to the display (or from the server to the client).

  • NoneNo compression will be used.
  • JPEGCompression up to 8:1 will be used, which is suitable for backdrops.
  • LZ77Compression of approximately 2:1 will be used, which is suitable for analysis.
  • RLELossless compression will be used, which is suitable for categorical datasets.
String
Compression Quality
(Optional)

The compression quality level, which is a value from 0 to 100. A higher number means better image quality but less compression. This parameter only applies when the Output Format parameter value is specified as JPEG or JP2000.

Long

Derived Output

LabelExplanationData Type
Output Mosaic Dataset

The updated mosaic dataset.

Mosaic Dataset

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})
NameExplanationData Type
in_mosaic_dataset

The mosaic dataset that will 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 that will be created.

String
where_clause
(Optional)

An SQL expression that will be used to select specific items to add to the mobile mosaic dataset.

SQL Expression
selection_feature
(Optional)

The mosaic dataset items that will 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)

The folder where a copy of the source data will be created. If the convert_rasters parameter is set to ALWAYS, any raster functions associated with the mosaic dataset will be processed before creating the copy.

Folder
convert_rasters
(Optional)

Specifies whether the raster functions associated with the input mosaic dataset will be converted before creating the mobile mosaic dataset. If you have raster functions that are not supported by Native Maps SDKs, the tool will return the appropriate error message.

  • AS_REQUIREDRaster items with functions that are not supported by Native Maps SDKs will not be converted. This is the default.
  • ALWAYSThe raster function chain will be applied and the output will be saved 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)

Specifies the format that will be used for the rasters written to the output data folder.

  • TIFFThe TIFF format will be used.
  • PNGThe PNG format will be used.
  • JPEGThe JPEG format will be used.
  • JP2The JPEG2000 format will be used.
String
compression_method
(Optional)

Specifies the compression method that will be used for transmitting the mosaicked image from the computer to the display (or from the server to the client).

  • NONENo compression will be used.
  • JPEGCompression up to 8:1 will be used, which is suitable for backdrops.
  • LZWCompression of approximately 2:1 will be used, which is suitable for analysis.
  • RLELossless compression will be used, which is suitable for categorical datasets.
String
compression_quality
(Optional)

The compression quality level, which is a value from 0 to 100. A higher number means better image quality but less compression. This parameter only applies when the format parameter is specified as JPEG or JP2.

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 function.

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