ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.CIM Namespace / RasterMosaicMethod Enumeration
Example Example

In This Topic
    RasterMosaicMethod Enumeration
    In This Topic
    Raster mosaic methods.
    Syntax
    Members
    MemberDescription
    Attribute Attribute.
    Center Center.
    LockRaster Lock raster.
    Nadir Nadir.
    None None.
    Northwest Northwest.
    Seamline Seamline.
    Viewpoint Viewpoint.
    Example
    Update the sort order - mosaic method 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 mosaicingRule = mosaicImageSubLayer.GetMosaicRule();
      // Set the Mosaic Method to Center.
      mosaicingRule.MosaicMethod = RasterMosaicMethod.Center;
      // Update the mosaic with the changed mosaic rule.
      mosaicImageSubLayer.SetMosaicRule(mosaicingRule);
    });
    Update the sort order - mosaic method on an image service layer
    await QueuedTask.Run(() =>
    {
      // Get the mosaic rule of the image service.
      CIMMosaicRule mosaicRule = isLayer.GetMosaicRule();
      // Set the Mosaic Method to Center.
      mosaicRule.MosaicMethod = RasterMosaicMethod.Center;
      // Update the image service with the changed mosaic rule.
      isLayer.SetMosaicRule(mosaicRule);
    });
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.CIM.RasterMosaicMethod

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also