stevel

Looking for a sample showing the new Spatial Analysis Service tasks

Discussion created by stevel on Nov 14, 2013
Latest reply on Jul 25, 2014 by dcoley
1) I'm looking for a sample showing how to use the new Spatial Analysis Service tasks, eg summarizeWithin.

Unlike other tasks these are not listed on the page at  https://developers.arcgis.com/en/javascript/jsapi and the help page doesn't list methods (eg summarizeWithin.execute).

Do we need to call this task manually using esri.request using the URL http://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer/SummarizeWithin/submitJob?

(There is an example using the summarize nearby widget, but I'd prefer to use the task directly)

2) Does the spatial analysis service only work on ArcGIS.com layers? The documentation says:

The Spatial Analysis service contains a number of tasks that allow you to perform common spatial analyses on your hosted data


but also:

These tools allow end-users to easily perform analysis against layers hosted in Online as well as other layers they have access to.


Thanks,
Steve

Outcomes