I would like to use the ArcGIS REST elevation service.
Providing a list of locations I would like to receive a list of elevations relative to these locations.
After some struggling with the syntax I was able to create a working (synchronous) request:
https://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute?InputLineFeatures={
"displayFieldName":"",
"geometryType":"esriGeometryPolyline",
"spatialReference":{
"wkid":4326
},
"fields":[
{
"name":"OID",
"type":"esriFieldTypeOID",
"alias":"OID"
},
{
"name":"Shape_Length",
"type":"esriFieldTypeDouble",
"alias":"Shape_Length"
}
],
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
52.50,
13.30
],
[
52.60,
13.40
],
[
52.70,
13.50
],
[
52.80,
13.60
]
]
}
}
],
"exceededTransferLimit":false
}&ProfileIDField=&DEMResolution=&MaximumSampleDistance=&MaximumSampleDistanceUnits=&env:outSR=&env:processSR=&returnZ=true&returnM=true&f=json
But unfortunately the response result is empty
{
"results":[
{
"paramName":"OutputProfile",
"dataType":"GPFeatureRecordSetLayer",
"value":{
}
}
],
"messages":[
]
}
What am I doing wrong?