Summary
Creates a new mosaic dataset from an existing raster catalog, a selection set from a raster catalog, or a mosaic dataset.
Usage
A referenced mosaic dataset can be created in a geodatabase or a folder. When the mosaic dataset is created in a folder, it will not include a boundary.
Overviews cannot be created for a referenced mosaic dataset.
If the input is an RPF raster catalog created using Military Analyst, the Scale Field should be specified.
A referenced mosaic dataset is one option for serving a raster catalog as an image service; however, you can also create a fully capable mosaic dataset from a raster catalog using the Create Mosaic Dataset tool followed by the Add Rasters To Mosaic Dataset tool.
You may use this tool to create a mosaic dataset from another mosaic dataset when you want to create a mosaic dataset with a different output. For example, you may create one mosaic dataset with elevation data and create another that will be used to produce a derived product, such as slope or hillshade.
Syntax
CreateReferencedMosaicDataset_management (in_dataset, out_mosaic_dataset, {coordinate_system}, {number_of_bands}, {pixel_type}, {where_clause}, {in_template_dataset}, {extent}, {select_using_features}, {lod_field}, {minPS_field}, {maxPS_field}, {pixelSize}, {build_boundary})
Parameter | Explanation | Data Type |
in_dataset | The input raster catalog or mosaic dataset. | Mosaic Layer; Mosaic Dataset; Raster Catalog Layer |
out_mosaic_dataset | The referenced mosaic dataset that you want to create. | Mosaic Dataset |
coordinate_system (Optional) | The projection for the output mosaic dataset. | Spatial Reference |
number_of_bands (Optional) | The number of bands that the referenced mosaic dataset will have. | Long |
pixel_type (Optional) | The bit depth, or radiometric resolution, of the mosaic dataset. If not defined, it will be taken from the first raster dataset.
| String |
where_clause (Optional) | An SQL expression to select raster datasets that will be included in the output mosaic dataset. | SQL Expression |
in_template_dataset (Optional) | Selects raster datasets based on the extent of another image or feature class. Raster datasets that lay along the defined extent will be included in the mosaic dataset. To manually input the minimum and maximum coordinates for the extent, use the Extent parameter. | Feature Layer; Raster Layer |
extent (Optional) | The minimum and maximum coordinates for the extent. | Envelope |
select_using_features (Optional) | Limit the extent to the shape or envelope when a feature class is specified in the in_template_dataset parameter.
| Boolean |
lod_field (Optional) | A field in the raster catalog table defining the map scales at which the mosaic should be displayed; otherwise, a wire frame will be displayed. | Field |
minPS_field (Optional) | Specify a field from the footprint attribute table that defines the minimum cell size for displaying the mosaic dataset; otherwise, only a footprint will be displayed. | Field |
maxPS_field (Optional) | Specify a field from the footprint attribute table that defines the maximum cell size for displaying the mosaic dataset; otherwise, only a footprint will be displayed. | Field |
pixelSize (Optional) | Set a maximum cell size to display the mosaic, instead of specifying a field. If you zoom out beyond this cell size, only the footprint will be displayed. | Double |
build_boundary (Optional) | Rebuild the boundary. If the selection covers a smaller area than the source mosaic dataset, this is recommended. This is only available if the mosaic dataset is created within a geodatabase.
| Boolean |
Code sample
CreateReferencedMosaicDataset example 1 (Python window)
This is a Python sample for the CreateReferencedMosaicDataset tool.
import arcpy
arcpy.CreateReferencedMosaicDataset_management(
"C:/workspace/RefMD.gdb/md", "ref_md.amd", "GCS_WGS_1984.prj",
"1", "#", "#", "ref_md.shp", "#", "SELECT_USING_FEATURES", "#",
"#", "#", "#", "NO_BOUNDARY")
CreateReferencedMosaicDataset example 2 (stand-alone script)
This is a Python script sample for the CreateReferencedMosaicDataset tool.
# Create Referenced Mosaic Dataset from existing Mosaic Dataset
# Use shape file to clip the source mosaic dataset
import arcpy
arcpy.env.workspace = "C:/Workspace"
arcpy.CreateReferencedMosaicDataset_management(
"RefMD.gdb/md", "ref_md.amd", "GCS_WGS_1984.prj", "1", "#", "#",
"ref_md.shp", "#", "SELECT_USING_FEATURES", "#", "#", "#", "#",
"NO_BOUNDARY")
Environments
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes