ArcObjects Library Reference (DefenseSolutions)  

ICoordinateTool.GetDatumEllipsoid Method

Gives back the Ellipsoid used by the given datum.

[Visual Basic .NET]
Public Function GetDatumEllipsoid ( _
    ByVal vDatum As Object _
) As String
[C#]
public string GetDatumEllipsoid (
    object vDatum
);
[C++]
HRESULT GetDatumEllipsoid(
  VARIANT vDatum,
  BSTR* Ellipsoid
);
[C++]

Parameters

vDatum [in]   vDatum is a parameter of type VARIANT Ellipsoid [out, retval]   Ellipsoid is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine and ArcGIS Desktop.

Description

The value passed into the vDatum parameter can either be a string representing the name of the datum, or a long representing the index of the datum in the coordinate tool's datum list. Both the datum names and the indices can be determined by using the ICoordinateTool::GetDatumList method.

Remarks

The following VB code snippet returns the ellipsoid that is used by the European 1979 datum.

Dim pCoordTool As ICoordinateTool
Dim sEllipsoid As String
Set pCoordTool = New CoordinateTool
sEllipsoid = pCoordTool.GetDatumEllipsoid("European 1979 (EUS)")
Debug.Print sEllipsoid

See Also

ICoordinateTool Interface

.NET Snippets

Create Datum List Textfile