ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeographicTransformation Class / GetInverse Method
Example

In This Topic
    GetInverse Method (GeographicTransformation)
    In This Topic
    Creates an inverted instance of this transformation. The inverted instance has its IsForward property inverted and input and output spatial references are switched.
    Syntax
    Public Overrides NotOverridable Function GetInverse() As DatumTransformation
    public override DatumTransformation GetInverse()

    Return Value

    A GeographicTransformation that is inverted.
    Example
    Create Geographic Transformation
    {
      // create from wkid
      GeographicTransformation gt1478 =
        ArcGIS.Core.Geometry.GeographicTransformation.Create(1478);
      string name = gt1478.Name;
      string wkt = gt1478.Wkt;
      int wkid = gt1478.Wkid;
    
      // create from wkt
      GeographicTransformation another_gt1478 =
           ArcGIS.Core.Geometry.GeographicTransformation.Create(wkt);
    
      // inverse
      GeographicTransformation inverse_gt148 =
                     another_gt1478.GetInverse() as GeographicTransformation;
      bool isForward = inverse_gt148.IsForward;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also