ArcObjects Library Reference  (Geometry)    

IGeometryServer.FindUnitsByWKID Method

Defines a unit object based upon its well known identified (WKID). 'authority' is typically either 'EPSG' or 'ESRI'.

[Visual Basic 6.0]
Function FindUnitsByWKID(
    ByVal authority As String, _
    ByVal WKID As Long _
) As IUnit
[Visual Basic .NET]
Public Function FindUnitsByWKID ( _
    ByVal authority As String, _
    ByVal WKID As Integer _
) As IUnit
[C#]
public IUnit FindUnitsByWKID (
    string authority,
    int WKID
);
[Java]
public IUnit findUnitsByWKID (
    String authority,
    int WKID
)
throws
    IOException,
    AutomationException
[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

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.

See Also

IGeometryServer Interface