GetConvergenceAngle Method
Gets the grid convergence for this spatial reference at the given point.
Parameters
- coordinate
- The point
Return Value
The grid convergence in radians. Returns 0 if the spatial reference is a geographic coordinate system.
Returns NaN if the point is outside the projection's horizon or on error.
Determine grid convergence for a SpatialReference at a given point
Coordinate2D coordinate = new Coordinate2D(10, 30);
double angle = SpatialReferences.WGS84.GetConvergenceAngle(coordinate);
// angle = 0
SpatialReference srUTM30N = SpatialReferenceBuilder.CreateSpatialReference(32630);
coordinate.X = 500000;
coordinate.Y = 550000;
angle = srUTM30N.GetConvergenceAngle(coordinate);
// angle = 0
MapPoint pointWGS84 = MapPointBuilderEx.CreateMapPoint(10, 50, SpatialReferences.WGS84);
MapPoint pointUTM30N = GeometryEngine.Instance.Project(
pointWGS84, srUTM30N) as MapPoint;
coordinate = (Coordinate2D)pointUTM30N;
// get convergence angle and convert to degrees
angle = srUTM30N.GetConvergenceAngle(coordinate) * 180 / Math.PI;
// angle = 10.03
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.