This document is archived and information here might be outdated.  Recommended version.


IGeometryServer.FindUnitsByWKID Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer Interface > IGeometryServer.FindUnitsByWKID Method
ArcGIS Developer Help

IGeometryServer.FindUnitsByWKID Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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: esriSRUnit2TypeesriSRUnitType.

The Unit returned is often used in other Geometry service methods such as Buffer. 

See Also

IGeometryServer Interface