Elevation Profile

744
6
06-22-2020 09:50 PM
RahulSapkota
New Contributor

Is elevation profile feature available on 4.12 or 4.15 ?

0 Kudos
6 Replies
Noah-Sager
Esri Regular Contributor

What sort of elevation profile feature are you asking for? These samples encompass the elevation-focused samples we have: Elevations Samples | ArcGIS API for JavaScript 4.15 

0 Kudos
RahulSapkota
New Contributor

Hiking trails 

I wanted to have this type of elevation profile data. as we select the trail the left panel opens up and the chart is generated.

if this feature is not available any other api which takes request of latitude and longitude  and return the data of elevation profile data.

0 Kudos
KenBuja
MVP Honored Contributor
RahulSapkota
New Contributor

thanks for response , let me try it and get back.

0 Kudos
RahulSapkota
New Contributor

Hi Ken,

Is there any method or engine in arcgis which provides co-ordinates to lat long conversion or,

generate polyline with paths array as shown below.

{
"hasZ": true,
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
},
"paths": [
[
[
-11449671.806310652,
5472867.5448955465,
901.8050191612002
],
[
-11191494.529025545,
5229050.775396283,
883.9843240519092
],
[
-11476634.219017386,
5167190.201268736,
1273.7545271309903
],
[
-11780248.67119628,
5387914.133268331,
1583.7379729805868
],
[
-11450257.893759662,
5467190.162428008,
908.682608176291
]
]
]
}

0 Kudos
JohnGrayson
Esri Regular Contributor

Even if there currently isn't an elevation profile widget, there are many resources and techniques that can help you create one. Sometimes the geometries already contain Z values and then it's just a matter of sending those elevation values to your favorite charting library. Other times we can use the Elevation Sampler api class to extract elevation values from the current display or elevation layer, and then chart those values. In some cases you might want to use elevation values derived from an elevation service, and to help you do that you can use some of the Esri Elevation Analysis services.

Here's an old demo which uses the Sketch tools to define the geometry and then uses the ElevationSampler class to get elevations used in the current display view:

Demo: Elevation Profiles & Interesting Places

GitHub: Create Elevation Profiles

We hope this helps.

0 Kudos