I'm trying to use the Elevationsync request to retrieve elevations but no matter what I submit the response error is 400, unable to process request. I've tried every variation on the syntax but obviously I still haven't got it correct. I would appreciate an example of what exactly will work. The documentation shows the following as a valid request
http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute?f=json...<line_feature>&ProfileIDField=OID&DEMResolution=FINEST&MaximumSampleDistance=13&MaximumSampleDistanceUnits=Meters&returnZ=true&returnM=true
The <line_feature> is documented as having the following syntax:
{
"geometryType":"geometryType",
"spatialReference":<spatialReference>,
"fields":<fields>,
"features":<features>,
}
Substituting a point for <line_feature> I've tried the following with no luck. I've also tried substituting fields with an empty array as I don't believe attributes are required (ie "fields":[]) but doesn't work either.
http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute?f=json...{"geometryType":"esriGeometryPoint”,”spatialReference":{"wkid":4326},"fields":[{"name":"x","alias":"x","type":"esriFieldTypeDouble"},{"name":"y","alias":"y","type":"esriFieldTypeDouble"}],"features”:{“geometry":{"x":-122,"y":-49}}}&ProfileIDField=OID&DEMResolution=FINEST&MaximumSampleDistance=13&MaximumSampleDistanceUnits=Meters&returnZ=true&returnM=true
Any help would be greatly appreciated.
I'm also looking for the answer to this question. How do we perform a simple url request to get an elevation profile synchronously without using json/javascript to make the request? Thanks!