Select to view content in your preferred language

Identify on result map service...

720
1
08-27-2010 08:02 PM
GeorgeRaber
Emerging Contributor
Is there a REST request that can be made to a result map service that is created from a geoprocessing task?  If so how would the url be formed, or is there an example written up?
0 Kudos
1 Reply
nicogis
MVP Alum
you can ask a export map:

http://yourserver/yourinstance ags/rest/services/yourservice/GPServer/yourtool/jobs/youridjob/results/yourParameter?f=json&... (parameter exportmap)

if you use in js

gp.getResultImageLayer(jobInfo.jobId, parameterName,imageParams, function(gpLayer){
  gpLayer.setOpacity(0.5);
  map.addLayer(gpLayer);
});

when you zoom map you see a call like these that I write up for layer gpLayer.

or

getResultData(jobId, parameterName, callback?, errback?)  (if you ask a featureset to job for a parameter)

you can see call from fiddler for rest
0 Kudos