ArcGIS Runtime SDK for iOS

Raster function (service)


Raster functions are operations performed on a raster to apply on-the-fly processing. This sample demonstrates how to create an image service raster and apply a Hillshade raster function to it.

How it works

  1. Create AGSImageServiceRaster using a URL and load it.
  2. Create AGSRasterFunction using a JSON string.
  3. Get raster function's arguments with rasterFunction.arguments.
  4. Set image service raster in the raster function arguments with name using setRaster(_ raster: AGSRaster, withName name: String).
  5. Create AGSRaster using AGSRasterFunction.
  6. Create AGSRasterLayer using AGSRaster.
  7. Add AGSRasterLayer to AGSMap.operationalLayers array.

In this topic
  1. Description