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


INetworkEdge.QueryPositions Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkEdge Interface > INetworkEdge.QueryPositions Method
ArcGIS Developer Help

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(
  System.Double* fromPosition,
  System.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