ArcObjects Library Reference (GeoDatabase)  

IForwardStar.QueryAtTurns Method

Returns the turns through which the adjacent edges found with FindAdjacent passes into the user-defined array.

[Visual Basic .NET]
Public Sub QueryAtTurns ( _
    ByVal Count As Integer, _
    ByRef adjacentTurnEIDs As Integer, _
    ByRef adjacentTurnsWeightValue As Object _
)
[C#]
public void QueryAtTurns (
    int Count,
    ref int adjacentTurnEIDs,
    ref object adjacentTurnsWeightValue
);
[C++]
HRESULT QueryAtTurns(
  long Count,
  long* adjacentTurnEIDs,
  VARIANT* adjacentTurnsWeightValue
);
[C++]

Parameters

Count [in]   Count is a parameter of type long adjacentTurnEIDs [out]   adjacentTurnEIDs is a parameter of type long adjacentTurnsWeightValue [out]   adjacentTurnsWeightValue is a parameter of type VARIANT

Product Availability

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

Description

QueryAtTurns returns an array of adjacent turns and their weights. The array has adjacentEdgesCount entries, where adjacentEdgesCount is the value returned by IForwardStar::FindAdjacent.

See also the QueryAtTurn request.

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.

adjacentTurnEIDs
and adjacentTurnsWeightValue are arrays that are dimensioned to at least adjacentEdgesCount , as returned by IForwardStar::FindAdjacent . Note that the MaxDegree property of INetwork will tell you the maximum number of edges for any junction, and you can use this to allocate memory for these arrays. Count is equal to adjacentEdgesCount from IForwardStar::FindAdjacent.
NOTE: Since turns in networks are not implemented, this method is not implemented.
[C#]

This method is not callable from C#.  Please use IForwardStarGEN::QueryAtTurns.

[Visual Basic .NET]

This method is not callable from VB.NET.  Please use IForwardStarGEN::QueryAtTurns.

See Also

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