ArcGIS Pro 2.7 API Reference Guide
ComputeCombinedScaleFactor Method

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.
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
)
Public Shared Function ComputeCombinedScaleFactor( _
   ByVal map As Map, _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal z As Double _
) As Task(Of Double)

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 10, Windows 8.1

See Also

Reference

GroundToGridCorrection Class
GroundToGridCorrection Members