NoviceProgrammer

LocationChanged without altitude

Discussion created by NoviceProgrammer on Aug 12, 2018
Latest reply on Aug 20, 2018 by LDanzinger-esristaff

I have written a small app with qt and arcgis 100.3. When the gps information changes the slot LocationChanged is called. I thought that I would get the altitude from Location.position.z. But I always get 0 for the altitude.

 

What do I have to do to get the actual altitude?

 

 

void FlightMap::locationChanged(Esri::ArcGISRuntime::Location location)
{

 

Point pos=location.position();
x=pos.x();
y=pos.y();
z=pos.z();

 

}

Outcomes