r.suchanesri-de-esridist

Calling the SummarizeElevation task of AGO World Elevation Service fails

Discussion created by r.suchanesri-de-esridist Employee on Dec 16, 2013
Latest reply on Dec 19, 2013 by khibma-esristaff
I am trying to call the SummarizeElevation task of the AGO World Elevation Service using the REST API with pure HTTP calls.

In the first step I get a token with my AGO account (https://www.arcgis.com/sharing/generateToken). Then I make a HTTP call to this URL:

http://elevation.arcgis.com/arcgis/rest/services/Tools/Elevation/GPServer/SummarizeElevation/submitJob?InputFeatures={"geometryType":"esriGeometryPoint","spatialReference":{"wkid":4326},"features":[{"geometry":{"x":9.4,"y":50.3}}]}&f=json&token=HxFbZ4vykUBrsLhQghhKsYEcspjJEuqs5aJ3EOBpMoOxlehswHyMlI29ZpEN06j1Yk6xhKD1pfOc6Bqn-eYe484vxBoE469ZUuRhPPlXx6DfWNZkUsnM0YeLt1U5z7Yh


I get back a job id, but when I then get the job status, I get a status failed and no result is created.
Is there something wrong with the URL or the input values? Or what ist going wrong?

Also in the submitJob test page: http://elevation.arcgis.com/arcgis/rest/services/Tools/Elevation/GPServer/SummarizeElevation/submitJob I can't get it working.

On the other hand the ViewShed task of the same service works with the same input values in the URL without any problem.

Outcomes