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
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})
Parameter | Explanation | Data 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. | 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.
| 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.
| 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).
| 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
Name | Explanation | Data Type |
out_mosaic_dataset | The updated mosaic dataset. | Mosaic Dataset |
Code sample
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