AnsweredAssumed Answered

ImageServiceMeasure Parameter syntax

Question asked by uiJLynn on Feb 29, 2016
Latest reply on May 4, 2016 by bgodfrey


I've been trying to measure the total area of a given raster from a clipped geometry (specifically a selected county), and I've been thinking that ImageServiceMeasureTask is what I need to use.


My problem is I have no idea how to setup the ImageServiceMeasureParameters object to work with the image service I'm using. And I can not find any examples anywhere for either the task or the parameter so any help would be greatly appreciated. Here's the relevant javascript and the URL to the image service I'm using.


var imageMeasureTask = new ImageServiceMeasureTask(rasterURL);

imageServiceMeasureParams = new ImageServiceMeasureParameters();

imageServiceMeasureParams.fromGeometry = evt.graphic.geometry;

imageMeasureTask.execute(imageServiceMeasureParams, success, failure);