This document is archived and information here might be outdated.  Recommended version.


IForwardStar.QueryAtTurn Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IForwardStar.QueryAtTurn Method

Returns the turn through which the index'th adjacent edge found with FindAdjacent passes, and the weight value of the turn.

[Visual Basic .NET]
Public Sub QueryAtTurn ( _
    ByVal Index As Integer, _
    ByRef adjacentTurnEID As Integer, _
    ByRef adjacentTurnWeightValue As Object _
)
[C#]
public void QueryAtTurn (
    int Index,
    ref int adjacentTurnEID,
    ref object adjacentTurnWeightValue
);
[C++]
HRESULT QueryAtTurn(
  long Index,
  System.Int32* adjacentTurnEID,
  Variant* adjacentTurnWeightValue
);
[C++]

Parameters Index [in]
Index is a parameter of type long adjacentTurnEID [out]
adjacentTurnEID is a parameter of type long* adjacentTurnWeightValue [out]
adjacentTurnWeightValue is a parameter of type VARIANT*

Product Availability

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

Description

QueryAtTurn returns the nth turn element and weight as you traverse from the fromEdgeID specified in IForwardStar::FindAdjacent to the nth adjacent edge.

Remarks

A turn represents a movement between two adjacent edges, the from-edge and the to-edge. If you are querying turns, you must specify the fromEdgeEID in the IForwardStar::FindAdjancent request. This is from-edge of the turn.

Index is a number between 0 and n-1, where n is the number of adjacent edges returned by FindAdjacent. adjacentTurnWeightValue is the value of the weight specified in the turnWeight parameter of INetwork::CreateForwardStar.
NOTE: Since turns in networks are not implemented, this method is not implemented.

See Also

IForwardStar Interface | IForwardStar.QueryAdjacentEdge Method | IForwardStar.QueryAdjacentJunctions Method | IForwardStar.QueryAtTurns Method | IForwardStar.QueryAtTurn Method | IForwardStar.FindAdjacent Method | IForwardStar.QueryAdjacentEdges Method | IForwardStar.Network Property | IForwardStar.QueryAdjacentJunction Method | INetwork.CreateForwardStar Method