ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing Namespace / GroundToGridCorrection Class / GetConstantScaleFactor Method
A ArcGIS.Core.CIM.CIMGroundToGridCorrection obtained from GetGroundToGridCorrection
Example

In This Topic
    GetConstantScaleFactor Method
    In This Topic
    Gets the constant scale factor to be used in ground to grid calculations.
    Syntax
    public static double GetConstantScaleFactor( 
       CIMGroundToGridCorrection c
    )
    Public Shared Function GetConstantScaleFactor( _
       ByVal c As CIMGroundToGridCorrection _
    ) As Double

    Parameters

    c
    A ArcGIS.Core.CIM.CIMGroundToGridCorrection obtained from GetGroundToGridCorrection

    Return Value

    The ConstantScaleFactor if UsingConstantScaleFactor is true, otherwise DefaultConstantScaleFactor if false.
    Remarks
    This extension method for the ArcGIS.Core.CIM.CIMGroundToGridCorrection class is identical to: c.UsingScaleFactor() ? c.ConstantScaleFactor : DefaultConstantScaleFactor This method can be used whether or not UsingConstantScaleFactor is true and returns the default if false.
    Example
    G2G Settings
    CIMGroundToGridCorrection correction = null;
    bool isCorecting = correction.IsCorrecting();   // equivalent to correction != null && correction.Enabled;
    bool UsingOffset = correction.UsingDirectionOffset();   // equivalent to correction.IsCorrecting() && correction.UseDirection;
    double dOffset = correction.GetDirectionOffset(); // equivalent to correction.UsingDirectionOffset() ? correction.Direction : DefaultDirectionOffset;
    bool usingDistanceFactor = correction.UsingDistanceFactor();  // equivalent to correction.IsCorrecting() && correction.UseScale;
    bool usingElevation = correction.UsingElevationMode(); // equivalent to correction.UsingDistanceFactor() && c.ScaleType == GroundToGridScaleType.ComputeUsingElevation;
    bool usingSFactor = correction.UsingConstantScaleFactor();  //; equivalent to correction.UsingDistanceFactor() && correction.ScaleType == GroundToGridScaleType.ConstantFactor;
    double dSFactor = correction.GetConstantScaleFactor(); // equivalent to correctionc.UsingDistanceFactor() ? correction.ConstantScaleFactor : DefaultConstantScaleFactor;
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also