ArcObjects Library Reference (GeoDatabase)  

INetworkEdge.QueryPositions Method

Queries the positions along the source object at which the from-end and to-end of the network edge element lies.

[Visual Basic .NET]
Public Sub QueryPositions ( _
    ByRef fromPosition As Double, _
    ByRef toPosition As Double _
)
[C#]
public void QueryPositions (
    ref double fromPosition,
    ref double toPosition
);
[C++]
HRESULT QueryPositions(
  double* fromPosition,
  double* toPosition
);
[C++]

Parameters

fromPosition [out]   fromPosition is a parameter of type double toPosition [out]   toPosition is a parameter of type double

Product Availability

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

Remarks

The QueryPositions method queries the positional values along the source feature from which this edge element was created.  The position values range from 0.0 to 1.0, where 0.0 is at the from-end of the feature and 1.0 is at the to-end of the feature.

If the Direction property is esriNEDAlongDigitized, then the fromPosition value will be less than or equal to the toPositionValue.  If the Direction property is esriNEDAgainstDigitized, then the fromPosition value will be greater than or equal to the toPositionValue.

See Also

INetworkEdge Interface

.NET Samples

ArcGIS Network Analyst extension barrier location editor (Code Files: EditorForm)