ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Make Mosaic Layer

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates a mosaic layer from an mosaic dataset or layer file. The layer that is created by the tool is temporary and will not persist after the session ends unless the layer is saved as a layer file or the map is saved.

This tool can be used to make a layer so you can work with a specified subset of bands within a mosaic dataset.

Usage

  • To make your layer permanent, right-click the layer in the table of contents and click Save As Layer File, or use the Save To Layer File tool.

Syntax

MakeMosaicLayer_management (in_mosaic_dataset, out_mosaic_layer, {where_clause}, {template}, {band_index}, {mosaic_method}, {order_field}, {order_base_value}, {lock_rasterid}, {sort_order}, {mosaic_operator}, {cell_size}, {procesing_template})
ParameterExplanationData Type
in_mosaic_dataset

The path and name of the input mosaic dataset.

Mosaic Layer
out_mosaic_layer

The name of the output mosaic layer.

Mosaic Layer
where_clause
(Optional)

A query statement using the fields and values of the mosaic dataset.

SQL Expression
template
(Optional)

Using the min x, min y, max x, or max y, you can specify the extents of the output mosaic layer.

Extent
band_index
[ID,...]
(Optional)

Choose which bands to export for the layer. If no bands are specified, then all the bands will be used in the output.

Value Table
mosaic_method
(Optional)

Choose the mosaic method. The mosaic method defines how the layer is created from different rasters within the mosaic dataset.

  • CLOSEST_TO_CENTER —Sorts rasters based on an order where rasters that have their center closest to the view center are placed on top.
  • NORTH_WEST —Sorts rasters based on an order where rasters that have their center closest to the northwest are placed on top.
  • LOCK_RASTER —Enables a user to lock the display of single or multiple rasters, based on an ID or name. When you choose this option, you need to specify the Lock Raster ID.
  • BY_ATTRIBUTE —Sorts rasters based on an attribute field and its difference from the base value. When this option is chosen, the order field and order base value parameters also need to be set.
  • CLOSEST_TO_NADIR —Sorts rasters based on an order where rasters that have their nadir position closest to the view center are placed on top. The nadir point can be different from the center point, especially in oblique imagery.
  • CLOSEST_TO_VIEWPOINT —Sorts rasters based on an order where the nadir position is closest to the user-defined viewpoint location and are placed on top.
  • SEAMLINE —Cuts the rasters using the predefined seamline shape for each raster using optional feathering along the seams. The ordering is predefined during seamline generation. The LAST mosaic operator is not valid with this mosaic method.
String
order_field
(Optional)

Choose the order field. When the mosaic method is BY_ATTRIBUTE, the default field to use when ordering rasters needs to be set. The list of fields is defined as those in the service table that are of type metadata.

String
order_base_value
(Optional)

The order base value. The images are sorted based on the difference between this value and the attribute value in the specified field.

String
lock_rasterid
(Optional)

The Raster ID or raster name to which the service should be locked and that only the specified rasters are displayed. If left undefined, it will be similar to system default. Multiple IDs can be defined as a semicolon-delimited list.

String
sort_order
(Optional)

Choose whether the sort order is ascending or descending.

  • ASCENDING —The sort order will be ascending. This is the default.
  • DESCENDING —The sort order will be descending.
String
mosaic_operator
(Optional)

Choose which mosaic operator to use. When two or more rasters all have the same sort priority, this parameter is used to further refine the sort order.

  • FIRST —The first raster in the list will be on top. This is the default.
  • LAST —The last raster in the list will be on top.
  • MIN —The raster with the lowest value will be on top.
  • MAX —The raster with the lowest value will be on top.
  • MEAN —The average pixel value will be on top.
  • BLEND —The output cell value will be a blend of values; this blend value relies on an algorithm that is weight based and dependent on the distance from the pixel to the edge within the overlapping area.
String
cell_size
(Optional)

The cell size for the output mosaic layer.

Double
procesing_template
(Optional)

Raster function processing template that can be applied on the output mosaic layer.

String

Code sample

MakeMosaicLayer example 1 (Python window)

This is a Python sample for MakeMosaicLayer.

arcpy.MakeMosaicLayer_management(
        "fgdb.gdb/mdsrc", "mdlayer2", "", "clipmd.shp", "3;2;1", 
		"BY_ATTRIBUTE", "Tag", "Dataset", "", "DESCENDING", "LAST", "10", 
		processing_template="NDVI")
MakeMosaicLayer example 2 (Python window)

This is a Python script sample for MakeMosaicLayer.

arcpy.MakeMosaicLayer_management(
        "fgdb.gdb/mdsrc", "mdlayer2", "", "clipmd.shp", "3;2;1", 
		"BY_ATTRIBUTE", "Tag", "Dataset", "", "DESCENDING", "LAST", "10", 
		processing_template="Custom_func")

Environments

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal