Select to view content in your preferred language

elevation profile using QT/QML

979
3
Jump to solution
03-10-2022 03:21 AM
TASL_Virendra
New Contributor II

Hi

I want to create elevation profile using QT/QML SDK , as available in java or arcgis pro. Can any one suggest how I can do that. 

Even suggestion how to plot a graph would be nice.

Thanks

Virendra 

0 Kudos
3 Solutions

Accepted Solutions
AndrewBladon
Esri Contributor

Hi @TASL_Virendra, we are looking into the best solution to achieve this and will get back to you soon.

View solution in original post

AndrewBladon
Esri Contributor
 
You can calculate the elevation at a single point using the Surface::locationToElevation method. An example of this method being used can be found in the Get Elevation At Point sample. The Surface::locationToElevation method can be called repeatedly for all locations along a line to calculate an elevation profile.
 
A suggested workflow to create an elevation profile would be as follows:
  • Draw/create a profile line in the scene view.
  • Densify the line to add additional points along the profile (see GeometryEngine::Densify).
  • For each point along the line, query the elevation using the Surface::locationToElevation method.
  • Once all elevation queries have completed, display the collection of heights using a 3rd party graphing library (e.g. QCharts).
Let us know if you have any further questions.

View solution in original post

0 Kudos
TASL_Virendra
New Contributor II

Hi Andrew,

Thanks for such details work flow, we are able to draw a elevation profile as required.

Thanks

Virendra

View solution in original post

0 Kudos
3 Replies
AndrewBladon
Esri Contributor

Hi @TASL_Virendra, we are looking into the best solution to achieve this and will get back to you soon.

AndrewBladon
Esri Contributor
 
You can calculate the elevation at a single point using the Surface::locationToElevation method. An example of this method being used can be found in the Get Elevation At Point sample. The Surface::locationToElevation method can be called repeatedly for all locations along a line to calculate an elevation profile.
 
A suggested workflow to create an elevation profile would be as follows:
  • Draw/create a profile line in the scene view.
  • Densify the line to add additional points along the profile (see GeometryEngine::Densify).
  • For each point along the line, query the elevation using the Surface::locationToElevation method.
  • Once all elevation queries have completed, display the collection of heights using a 3rd party graphing library (e.g. QCharts).
Let us know if you have any further questions.
0 Kudos
TASL_Virendra
New Contributor II

Hi Andrew,

Thanks for such details work flow, we are able to draw a elevation profile as required.

Thanks

Virendra

0 Kudos