mosaicRule

The image service uses a mosaic rule to mosaick multiple rasters on the fly. The mosaic rule parameter is used by many image service operations, for example, export image and identify operations.

Referenced by: Image Service Layer (ArcGISImageServiceLayer)

Properties

Property Details
ascending Indicate whether to use ascending or descending order.
fids A list that defines a subset of rasters used in the mosaic, be aware that the rasters may not be visible at all scales.
itemRenderingRule The rendering rule applies on items before mosaicking.
lockRasterIds Lock a few rasters in the image service. Used together with esriMosaicLockRaster.
mosaicMethod A string value that determines how the selected rasters are ordered.
Valid values: esriMosaicAttribute, esriMosaicCenter, esriMosaicLockRaster, esriMosaicNadir, esriMosaicNone, esriMosaicNorthwest, esriMosaicSeamline, esriMosaicViewpoint
mosaicOperation Use the mosaic operation to resolve overlap pixel values: from first or last raster, use the min, max or mean of the pixel values, or blend them.
Valid values: MT_BLEND, MT_FIRST, MT_LAST, MT_MAX, MT_MEAN, MT_MIN, MT_SUM
multidimensionalDefinition An array of objects representing a slice from multidimensional data.
sortField The field name used together with esriMosaicAttribute method.
sortValue The base sort value used together with esriMosaicAttribute method and sortField parameter.
viewpoint Use a view point along with esriMosaicViewpoint.
where Deprecated. Use layerDefinition.definitionExpression instead.

Additional information

Mosaic rule in ArcGIS REST API

mosaic rule None Example

{
  "mosaicMethod": "esriMosaicNone",
  "ascending": true,
  "fids": [
    1,
    2,
    3
  ],
  "mosaicOperation": "MT_FIRST"
}

mosaic rule ByAttribute Example

{
  "mosaicMethod": "esriMosaicAttribute",
  "sortField": "acquisitionDate",
  "sortValue": "2010/12/31"
}

mosaic rule Viewpoint Example

{
  "mosaicMethod": "esriMosaicViewpoint",
  "viewpoint": {
    "x": 100,
    "y": 90,
    "spatialReference": {
      "wkid": 4326
    }
  },
  "where": "ImageType='Landsat7'"
}

mosaic rule LockRaster Example

{
  "mosaicMethod": "esriMosaicLockRaster",
  "lockRasterIds": [
    1,
    2,
    3
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.