ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMMosaicRule Class / MosaicOperatorType Property
Example

In This Topic
    MosaicOperatorType Property
    In This Topic
    Gets or sets the mosaic operator type.
    Syntax
    public RasterMosaicOperatorType MosaicOperatorType {get; set;}
    Public Property MosaicOperatorType As RasterMosaicOperatorType
    Example
    Update the resolve overlap - mosaic operator on a mosaic layer
    await QueuedTask.Run(() =>
    {
      // Get the image sub-layer from the mosaic layer.
      ImageServiceLayer mosaicImageSublayer = mosaicLayer.GetImageLayer() as ImageServiceLayer;
      // Get the mosaic rule.
      CIMMosaicRule mosaicRule = mosaicImageSublayer.GetMosaicRule();
      // Set the Mosaic Operator to Mean.
      mosaicRule.MosaicOperatorType = RasterMosaicOperatorType.Mean;
      // Update the mosaic with the changed mosaic rule.
      mosaicImageSublayer.SetMosaicRule(mosaicRule);
    });
    Update the resolve overlap - mosaic operator on an image service layer
    await QueuedTask.Run(() =>
    {
      // Get the mosaic rule of the image service.
      CIMMosaicRule mosaicingRule = isLayer.GetMosaicRule();
      // Set the Mosaic Operator to Mean.
      mosaicingRule.MosaicOperatorType = RasterMosaicOperatorType.Mean;
      // Update the image service with the changed mosaic rule.
      isLayer.SetMosaicRule(mosaicingRule);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also