Interface IUnitConverter
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to members used for converting units.
[Guid("1F3FBCA9-6611-4567-88E4-E0FA8B6FB26D")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IUnitConverter
Methods
ConvertUnits(double, esriUnits, esriUnits)
Convert Esri units.
double ConvertUnits(double dValue, esriUnits inUnits, esriUnits outUnits)
Parameters
Returns
Remarks
If the input unit is meters and the output unit is decimal degrees, IUnitConverter converts the distance in meters along the equator to the equivalent number of decimal degrees. For example, if the distance in meters is half the circumference of the earth at the equator, IUnitConverter will return 180 decimal degrees.
EsriUnitsAsString(esriUnits, esriCaseAppearance, bool)
Convert Esri unit enumerations to strings.
string EsriUnitsAsString(esriUnits units, esriCaseAppearance appearance, bool bPlural)
Parameters
unitsesriUnitsappearanceesriCaseAppearancebPluralbool