ArcObjects Library Reference (Geometry)  

IConstructGeodetic.ConstructGeodeticLineFromDistance Method

constructs a geodetic line with the specified length and azimuth. The 'by length' and 'by deviation' densification options are supported.

[Visual Basic .NET]
Public Sub ConstructGeodeticLineFromDistance ( _
    ByVal geodeticLineType As esriGeodeticType, _
    ByVal FromPoint As IPoint, _
    ByVal LinearUnit As ILinearUnit, _
    ByVal Length As Double, _
    ByVal Azimuth As Double, _
    ByVal densifyMethod As esriCurveDensifyMethod, _
    ByVal densifyParameter As Double _
)
[C#]
public void ConstructGeodeticLineFromDistance (
    esriGeodeticType geodeticLineType,
    IPoint FromPoint,
    ILinearUnit LinearUnit,
    double Length,
    double Azimuth,
    esriCurveDensifyMethod densifyMethod,
    double densifyParameter
);
[C++]
HRESULT ConstructGeodeticLineFromDistance(
  esriGeodeticType geodeticLineType,
  IPoint* FromPoint,
  ILinearUnit* LinearUnit,
  double Length,
  double Azimuth,
  esriCurveDensifyMethod densifyMethod,
  double densifyParameter
);
[C++]

Parameters

geodeticLineType

  geodeticLineType is a parameter of type esriGeodeticType

FromPoint

  FromPoint is a parameter of type IPoint

LinearUnit

  LinearUnit is a parameter of type ILinearUnit

Length   Length is a parameter of type double Azimuth   Azimuth is a parameter of type double densifyMethod

  densifyMethod is a parameter of type esriCurveDensifyMethod

densifyParameter   densifyParameter is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Constructs a geodetic line with the specified length and azimuth (clockwise angle from north). The esriCurveDensifyByLength and esriCurveDensifyByDeviation densification methods can be specified. Output length is always less than one hemisphere. 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.

See Also

IConstructGeodetic Interface