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


IGeographicCoordinateSystem.PrimeMeridian Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeographicCoordinateSystem Interface > IGeographicCoordinateSystem.PrimeMeridian Property
ArcGIS Developer Help

IGeographicCoordinateSystem.PrimeMeridian Property

The prime meridian of this geographic coordinate system.

[Visual Basic .NET]
Public ReadOnly Property PrimeMeridian As IPrimeMeridian
[C#]
public IPrimeMeridian PrimeMeridian {get;}
[C++]
HRESULT get_PrimeMeridian(
  IPrimeMeridian** prime
);
[C++]
Parameters
prime [out, retval]

prime is a parameter of type IPrimeMeridian**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]

    private void PrintPrimeMeridianFromGCS()
    {
        // use activator class with SpatialReferenceEnvironment singleton
        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
        System.Object obj = Activator.CreateInstance(factoryType);
        ISpatialReferenceFactory spatialReferenceFactory = obj as ISpatialReferenceFactory;

        IGeographicCoordinateSystem geographicCoordinateSystem = spatialReferenceFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);
        IPrimeMeridian primeMeridian = geographicCoordinateSystem.PrimeMeridian;

        System.Windows.Forms.MessageBox.Show(primeMeridian.Name);
    }

See Also

IGeographicCoordinateSystem Interface