Image Service Based on Mosaic Dataset Combine two raster via local rasterfunction

294
0
12-19-2018 08:13 AM
GeorgeRaber
New Contributor II

If I have an image service based on a mosaic dataset, is there a way to do raster operations on any two overlapping datasets via the rest api with the rasterFunction interface.  For example using the following taken from the help, can raster1, raster2 etc be items in mosaic dataset in the image service.  If so, how do I reference these datasets?

{  "rasterFunction" : "Local",  "rasterFunctionArguments" : {    "Operation" : <operation> //int see reference below.    "Rasters":[<raster1>,<raster2>,<raster3>] //array of rasters. If a scalar is needed for the operation                                              //the scalar can be in double or string    "ExtentType" : <ExtentType>,//int, optional, default 0. 0 = esriExtentFirstOf,                               //1=esriExtentIntersectionOf, 2=esriExtentUnionOf, 3=esriExtentLastOf     "CellsizeType" : <CellsizeType>,//int, optional, default 0. 0 = esriCellsizeFirstOf,                               //1=esriCellsizeMinOf, 2=esriCellsizeMaxOf,3=esriCellsizeMeanOf,                              //4=esriCellsizeLastOf    },  "outputPixelType" : "<outputPixelType>",//optional  "variableName" : "Rasters"//optional}
0 Kudos
0 Replies