Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/workers
Class: ImageServiceMeasureTask

require(["esri/tasks/ImageServiceMeasureTask"], function(ImageServiceMeasureTask) { /* code goes here */ });

Description

(Added at v3.14)

Performs a measure operation on an Image Service.

The image service must support mensuration. Mensuration is a method of applying geometric rules to find the lengths of lines, areas of surfaces, or volumes using information obtained from lines and angles. It can also include measuring the height and absolute location of a feature.

Any Image service with georeferenced raster dataset can provide distance, area, point and centroid locations. Height measurements can be obtained when a sensor model exists. Sun angle information is required to make measurements using the shadows.

Samples

Search for samples that use this class.

Constructors

NameSummary
new ImageServiceMeasureTask(url)Creates a new instance of ImageServiceMeasureTask.

Methods

NameReturn typeSummary
execute(params, callback?, errback?)DeferredSends a request to an image service to perform the designated measure operation.

Events

[ On Style Events | Connect Style Event ]
All On Style event listeners receive a single event object. Additionally, the event object also contains a 'target' property whose value is the object which fired the event.

Events

NameEvent ObjectSummary
completeFires when measure completes.
Constructor Details

new ImageServiceMeasureTask(url)

Creates a new instance of ImageServiceMeasureTask
Parameters:
<String> url Required URL to the ArcGIS Server REST resource that represents an image service.
Sample:
require([
  "esri/tasks/ImageServiceMeasureTask", ... 
], function(ImageServiceMeasureTask, ... ) {
  var imageMeasureTask = new ImageServiceMeasureTask( url );
  ...
});
Method Details

execute(params, callback?, errback?)

Sends a request to an image service to perform the designated measure operation.
Return type: Deferred
Parameters:
<ImageServiceMeasureParameters> params Required Parameters to pass to the server to execute the task.
<Function> callback Optional The function to call when the method has completed. The arguments in the function are the same as the onComplete event.
<Function> errback Optional An error object is returned if an error occurs on the Server during task execution.
Event Details
[ On Style Events | Connect Style Event ]

complete

Fires when measure completes.