This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer Interface > IGeometryServer.FindUnitsByWKID Method (ArcObjects .NET 10.5 SDK) |
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,
IUnit** ppU
);
[C++]
Parameters authority authority is a parameter of type BSTR WKID WKID is a parameter of type long ppU [out, retval]
ppU is a parameter of type IUnit
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.