System.Boolean
Get/Set
The InvFlatDefinitive property indicates which of the Ellipsoid properties should be used to define the Ellipsoid. If InvFlatDefinitive is true, then the SemiMajor and InverseFlattening properties define the Ellipsoid. If InvFlatDefinitive is false, then the SemiMajor and SemiMinor properties define the Ellipsoid.
In order to define a sphere, one must first set this property to false. It is not valid to define a sphere using the SemiMajor and InverseFlattening properties. One must use the SemiMajor and SemiMinor properties to define a sphere.
Private Sub GeoCalcNET_Ellipsoid_InvFlatDefinitive(ByVal ell As GeoCalcNET.Ellipsoid, ByVal data As GeoCalcNET.DataSourceComponent)
If ell.InvFlatDefinitive Then
Dim semiMaj As New GeoCalcNET.LinearValue
semiMaj.Units = data.GetLinearUnit("BMG", "METERS")
semiMaj.InUnits = 6378137.0
ell.SemiMajor = semiMaj
ell.InverseFlattening = 298.257223563
Else
Dim semiMaj As New GeoCalcNET.LinearValue
semiMaj.Units = data.GetLinearUnit("BMG", "METERS")
semiMaj.InUnits = 6378137.0
ell.SemiMajor = semiMaj
Dim semiMin As New GeoCalcNET.LinearValue
semiMin.Units = data.GetLinearUnit("BMG", "METERS")
semiMin.InUnits = 6356752.31424518
ell.SemiMinor = semiMin
End If
End Sub
private void GeoCalcNET_Ellipsoid_InvFlatDefinitive(GeoCalcNET.Ellipsoid ell)
{
if(ell.InvFlatDefinitive)
{
ell.InverseFlattening = 298.257223563;
}
else
{
double d = ell.InverseFlattening;
}
}