IAngularUnit Interface

Provides access to members that control the properties of angular unit.

Description

Represents the angular unit of measure for a geographic coordinate system. The angular unit conversion factor is always defined as radians per unit.

Members

Name Description
Read-only property Abbreviation The abbreviated name of this spatial reference component.
Read-only property Alias The alias of this spatial reference component.
Read-only property ConversionFactor The conversion factor of the unit to the base.
Read-only property FactoryCode The factory code (WKID) of the spatial reference.
Read-only property Name The name of this spatial reference component.
Read-only property RadiansPerUnit The radians per angular unit.
Read-only property Remarks The comment string of this spatial reference component.

IAngularUnit.RadiansPerUnit Property

The radians per angular unit.

Public ReadOnly Property RadiansPerUnit As Double
public double RadiansPerUnit {get;}
public void angularUnitRadiansExample()

    {

        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");

        System.Object obj = Activator.CreateInstance(factoryType);

        ISpatialReferenceFactory3 spatialReferenceFactory = obj as ISpatialReferenceFactory3;

        IUnit unit = spatialReferenceFactory.CreateUnit((int)esriSRUnitType.esriSRUnit_ArcSecond);

        IAngularUnit angularUnit = unit as IAngularUnit;

        //Get the RadiansPerUnit value

        System.Windows.Forms.MessageBox.Show(Convert.ToString(angularUnit.RadiansPerUnit));

    }

Inherited Interfaces

Interfaces Description
IUnit Provides access to members that identify a linear or angular unit of measure within a spatial reference system.
ISpatialReferenceInfo Provides access to members that control the properties common to all components of a spatial reference system.

Classes that implement IAngularUnit

Classes Description
AngularUnit Creates a angular unit of measure.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.