I create two point and put them to QDebug/qCritical.
But i get unexpected results:
const Viewpoint &vp = mapGeoView->currentViewpoint(ViewpointType::CenterAndScale);
const Point &mapCenter = static_cast<Point>(vp.targetGeometry());
Point myLocation = mapCenter;
Point skyLocation = Esri::ArcGISRuntime::Point(mapCenter.x(), mapCenter.y(), 99999, sr);
qCritical() << " myLocation =" << myLocation << " z=" << myLocation.z();
qCritical() << " skyLocation=" << skyLocation << " z=" << skyLocation.z();
Output:
myLocation= 8.89179 53.0743 5.64578e-316 3.95253e-322 z= 0
myLocation = 8.89179 53.0743 5.64578e-316 3.95253e-322 z= 0
skyLocation= 8.89179 53.0743 5.74185e-316 3.95253e-322 z= 99999
The 1st and 2nd are clear.
The 3rd should be the z-value, right? But why 5.64578e-31?
The 4th is most likely the m-value (3.95253e-322) right?
Thx