Provides access to members that control the properties of a spheroid.
Members
Name | Description | |
---|---|---|
Define | Defines the properties of a spheroid. | |
DefineEx | Defines the properties of a spheroid. |
ISpheroidEdit.Define Method
Defines the properties of a spheroid.
Public Sub Define ( _
[ByRef Name As Object], _
[ByRef Alias As Object], _
[ByRef Abbreviation As Object], _
[ByRef Remarks As Object], _
[ByRef majorAxis As Object], _
[ByRef Flattening As Object] _
)
public void Define (
ref object Name,
ref object Alias,
ref object Abbreviation,
ref object Remarks,
ref object majorAxis,
ref object Flattening
);
Description
The majorAxis parameter represents the semimajor axis. For example, the semimajor axis of the WGS 1984 spheroid is 6378137.0 meters. The flattening value is a small number, such as 0.003352811 (WGS 1984). Often the inverse flattening value is used instead, 298.257223563, and that is what is reported in a well-known text (WKT) version of spheroid. The Define method expects the true flattening value.
public ISpheroid DefineSpheroid()
{ ISpheroid spheroid = new SpheroidClass();
//cast interface to ISpheroidEdit
ISpheroidEdit spheroidEdit = spheroid as ISpheroidEdit;
//Define the properties of the spheroid
object name = "GRS_1980";
object alias = "GRS_1980";
object abbreviation = "GRS80";
object remarks = "Thespheroid is GRS_1980";
object majorAxis = 6378137; ;
object flattening = 1 / 298.257222101;
spheroidEdit.Define(ref name,
ref alias,
ref abbreviation,
ref remarks,
ref majorAxis,
ref flattening
);
return spheroidEdit as ISpheroid;
}
ISpheroidEdit.DefineEx Method
Defines the properties of a spheroid.
Public Sub DefineEx ( _
ByVal Name As String, _
ByVal Alias As String, _
ByVal Abbreviation As String, _
ByVal Remarks As String, _
ByRef majorAxis As Double, _
ByRef Flattening As Double _
)
public void DefineEx (
string Name,
string Alias,
string Abbreviation,
string Remarks,
ref double majorAxis,
ref double Flattening
);
Description
The majorAxis parameter represents the semimajor axis. For example, the semimajor axis of the WGS 1984 spheroid is 6378137.0 meters. The flattening value is a small number, such as 0.003352811 (WGS 1984). Often the inverse flattening value is used instead, 298.257223563, and that is what is reported in a well-known text (WKT) version of spheroid. The Define method expects the true flattening value.
Classes that implement ISpheroidEdit
Classes | Description |
---|---|
Spheroid | Creates a spheroid. |