ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / HVDatumTransformation Class / Create Method / Create(Int32,Boolean) Method
The well-known ID of the hv datum transformation to be created.
(Optional) Default is true. If false, the created transformation is inverted.
Example

In This Topic
    Create(Int32,Boolean) Method
    In This Topic
    Creates a new HVDatumTransformation instance from a well-known ID.
    Syntax
    Public Overloads Shared Function Create( _
       ByVal wkid As Integer, _
       Optional ByVal transformForward As Boolean _
    ) As HVDatumTransformation

    Parameters

    wkid
    The well-known ID of the hv datum transformation to be created.
    transformForward
    (Optional) Default is true. If false, the created transformation is inverted.
    Exceptions
    ExceptionDescription
    The wkid is invalid.
    Example
    Create HV Datum Transformation
    // Create from wkid
    HVDatumTransformation hv110018 = HVDatumTransformation.Create(110018);
    int wkid = hv110018.Wkid;
    bool isForward = hv110018.IsForward;    // isForward = true
    string name = hv110018.Name;            // Name = WGS_1984_To_WGS_1984_EGM2008_1x1_Height
    
    // Create from wkt
    string wkt = hv110018.Wkt;
    HVDatumTransformation hv110018FromWkt = HVDatumTransformation.Create(wkt);
    
    // Get the inverse
    HVDatumTransformation hv110018Inverse = 
       hv110018.GetInverse() as HVDatumTransformation;
    // hv110018Inverse.IsForward = false
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also