This document is archived and information here might be outdated. Recommended version. |
Defines a unit object based upon its well known identified (WKID). 'authority' is typically either 'EPSG' or 'Esri'.
[Visual Basic .NET] Public Function FindUnitsByWKID ( _ ByVal authority As String, _ ByVal wkid As Integer _ ) As IUnit
[C#] public IUnit FindUnitsByWKID ( string authority, int wkid );
[C++]
HRESULT FindUnitsByWKID(
BSTR authority,
long wkid
);
[C++] Parameters authority
authority is a parameter of type BSTR wkid
wkid is a parameter of type long
Finds a predefined linear or angular unit of measure based on its OGP/EPSG well known identifier (WKID, also referred to as �factory code�). AuthorityName is optional. If specified, it is usually either "EPSG" or "ESRI", but can also be an arbitrary string. As with spatial references, only the WKID value is used to locate the predefined unit. The WKIDs for predefined linear and angular units are listed here: esriSRUnit2Type, esriSRUnitType.
The Unit returned is often used in other Geometry service methods such as Buffer.