This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeographicCoordinateSystem Interface > IGeographicCoordinateSystem.PrimeMeridian Property (ArcObjects .NET 10.5 SDK) |
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
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);
}