WRAPPER_API bool get_InvFlatDefinitive() const
The get_InvFlatDefinitive method indicates if the InverseFlattening property should be used to define the Ellipsoid. If this method returns true, then the SemiMajor and InverseFlattening properties define the Ellipsoid. If InvFlatDefinitive is false, then the SemiMajor and SemiMinor properties define the Ellipsoid.
void Ellipsoid_getInvFlatDefinitive()
{
GEOCALCPBW_NAMESPACE::Ellipsoid ell;
GEOCALCPBW_NAMESPACE::LinearValue semiMaj;
semiMaj.set_InMeters(6378137);
ell.set_SemiMajor(semiMaj);
if(ell.get_InvFlatDefinitive())
{
ell.set_InverseFlattening(298.257223563);
}
else
{
GEOCALCPBW_NAMESPACE::LinearValue semiMin;
semiMin.set_InMeters(6356752.31424518);
ell.set_SemiMinor(semiMin);
}
GEOCALCPBW_NAMESPACE::AngularValue lat;
lat.set_InDegrees(45.66);
GEOCALCPBW_NAMESPACE::LinearValue radius;
if(! ell.ComputeRadiusAtLatitude(lat, radius))
{
AfxMessageBox("ComputeRadiusAtLatitude failed");
}
}