ConstructGeodeticLineFromDistance Method (GeometryEngine)
Constructs a geodetic line with the specified length and azimuth.
Parameters
- curveType
- The type of geodetic curve to be created.
- fromPoint
- The from point.
- length
- The length of the geodetic line to be created.
- azimuth
- The azimuth (in radians) of the geodetic line to be created. Measured clockwise from the north.
- linearUnit
- The linear unit of the length. Also the linear unit of the densifyParameter if the is DensifyByLength. If this is null, the units are assumed to be meters.
- densifyMode
- The densification mode.
- densifyParameter
- The densification parameter.
Return Value
Returns the created geodetic line.
Construct a geodetic line with specified distance and azimuth
var sr = SpatialReferenceBuilder.CreateSpatialReference(4326);
var mapPoint = MapPointBuilderEx.CreateMapPoint(15, 60, sr);
// calculate
var polylineGeodetic = GeometryEngine.Instance.ConstructGeodeticLineFromDistance(GeodeticCurveType.Loxodrome, mapPoint, 5000000, 45, null, CurveDensifyMethod.ByLength, 300000);
Target Platforms: Windows 11, Windows 10, Windows 8.1
ArcGIS Pro version: 2.9 or higher.