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 | |
---|---|---|
Abbreviation | The abbreviated name of this spatial reference component. | |
Alias | The alias of this spatial reference component. | |
ConversionFactor | The conversion factor of the unit to the base. | |
FactoryCode | The factory code (WKID) of the spatial reference. | |
Name | The name of this spatial reference component. | |
RadiansPerUnit | The radians per angular unit. | |
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. |