Constructs a geodetic line connecting the specified points. The 'by length' and 'by deviation' densification options are supported.
[Visual Basic .NET] Public Sub ConstructGeodeticLineFromPoints ( _ ByVal geodeticLineType As esriGeodeticType, _ ByVal FromPoint As IPoint, _ ByVal ToPoint As IPoint, _ ByVal LinearUnit As ILinearUnit, _ ByVal densifyMethod As esriCurveDensifyMethod, _ ByVal densifyParameter As Double _ )
[C#] public void ConstructGeodeticLineFromPoints ( esriGeodeticType geodeticLineType, IPoint FromPoint, IPoint ToPoint, ILinearUnit LinearUnit, esriCurveDensifyMethod densifyMethod, double densifyParameter );
[C++]
HRESULT ConstructGeodeticLineFromPoints(
esriGeodeticType geodeticLineType,
IPoint* FromPoint,
IPoint* ToPoint,
ILinearUnit* LinearUnit,
esriCurveDensifyMethod densifyMethod,
double densifyParameter
);
[C++]Parameters
geodeticLineTypegeodeticLineType is a parameter of type esriGeodeticType
FromPointFromPoint is a parameter of type IPoint
ToPointToPoint is a parameter of type IPoint
LinearUnitLinearUnit is a parameter of type ILinearUnit
densifyMethoddensifyMethod is a parameter of type esriCurveDensifyMethod
densifyParameter densifyParameter is a parameter of type double
Product Availability
Description
Constructs a geodetic line connecting the specified points. The esriCurveDensifyByLength and esriCurveDensifyByDeviation densification methods can be specified. If the from point has a spatial reference (PCS or GCS) associated with it, then that spatial reference will be assigned to the polycurve being constructed. Otherwise, if the polycurve already has a spatial reference, that one will be used. See the above section on common behavior for additional information on this method. This method is not implemented for polygons (E_NOTIMPL is returned).
Errors Returned
Returns E_NOTIMPL if used with polygons.
Remarks
Length of output line will always be less than one hemisphere.