ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Editing Namespace / GroundToGridCorrection Class / ComputeCombinedScaleFactor Method
The map used to calculate the combined scale factor.
The x coordinate of the first point.
The y coordinate of the first point.
The x coordinate of the second point.
The y coordinate of the second point.
The z coordinate.
Version

ComputeCombinedScaleFactor Method
Compute the combined scale factor using two points and using a z elevation at the mid-point between them.
Syntax
public static Task<double> ComputeCombinedScaleFactor( 
   Map map,
   double x1,
   double y1,
   double x2,
   double y2,
   double z
)

Parameters

map
The map used to calculate the combined scale factor.
x1
The x coordinate of the first point.
y1
The y coordinate of the first point.
x2
The x coordinate of the second point.
y2
The y coordinate of the second point.
z
The z coordinate.

Return Value

A Task returning the calculated combined scale factor.
Exceptions
ExceptionDescription
map is null.
Remarks
This extension method for the ArcGIS.Desktop.Mapping.Map class requires a map in a projected coordinate system, and assumes the x,y coordinates are in the map's ArcGIS.Core.Geometry.SpatialReference.Unit and the z coordinate is in the map's ArcGIS.Core.Geometry.SpatialReference.ZUnit. If the map has no ZUnit then the same unit for x,y is used for the z coordinate.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also