This document is archived and information here might be outdated.  Recommended version.


IProjectedCoordinateSystem.CentralMeridian Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IProjectedCoordinateSystem.CentralMeridian Property

The central meridian (Lambda0) of a projected coordinate system.

[Visual Basic .NET]
Public Function get_CentralMeridian ( _
    ByVal inDegrees As Boolean _
) As Double
[Visual Basic .NET]
Public Sub set_CentralMeridian ( _
    ByVal inDegrees As Boolean, _
    ByVal CentralMeridian As Double _
)
[C#]
public double get_CentralMeridian (
    bool inDegrees
);
[C#]
public void set_CentralMeridian (
    bool inDegrees,
    double CentralMeridian
);
[C++]
HRESULT get_CentralMeridian(
  VARIANT_BOOL inDegrees,
  double* CentralMeridian
);
[C++]
HRESULT put_CentralMeridian(
  VARIANT_BOOL inDegrees,
  double CentralMeridian
);
[C++]

Parameters inDegrees [in] inDegrees is a parameter of type VARIANT_BOOL CentralMeridian [out, retval] CentralMeridian is a parameter of type double inDegrees [in] inDegrees is a parameter of type VARIANT_BOOL CentralMeridian CentralMeridian is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]
private void ManipulateCentralMeridian(IProjectedCoordinateSystem projectedCoordinateSystem)
{
  double centralMeridianDEG=projectedCoordinateSystem.get_CentralMeridian(true);
  System.Windows.Forms.MessageBox.Show(centralMeridianDEG.ToString());
  projectedCoordinateSystem.set_CentralMeridian(true, 0);
}
[Visual Basic .NET]

    'Example for IProjectedCoordinateSystem.CentralMeridian Property Get
    Public Sub ManipulateCentralMeridian(ByRef pProjCoordSys As ESRI.ArcGIS.Geometry.IProjectedCoordinateSystem4)

        'Get the CentralMeridian of the Projected Coordinate System
        Debug.Print(pProjCoordSys.CentralMeridian(True))
        'Set the CentralMeridian for the Projected Coordinate System
        pProjCoordSys.CentralMeridian(True)=0
    End Sub

See Also

IProjectedCoordinateSystem Interface