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


IGeographicCoordinateSystem.CoordinateUnit Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IGeographicCoordinateSystem.CoordinateUnit Property

The angular unit of this geographic coordinate system.

[Visual Basic .NET]
Public ReadOnly Property CoordinateUnit As IAngularUnit
[C#]
public IAngularUnit CoordinateUnit {get;}
[C++]
HRESULT get_CoordinateUnit(
  IAngularUnit** CoordinateUnit
);
[C++]

Parameters CoordinateUnit [out, retval]
CoordinateUnit is a parameter of type IAngularUnit

Product Availability

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

    private void PrintCoordinateUnit()
    {
        // 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);
        IAngularUnit coordinateUnit=geographicCoordinateSystem.CoordinateUnit;
        System.Windows.Forms.MessageBox.Show(coordinateUnit.Name);
    }

See Also

IGeographicCoordinateSystem Interface