|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkEdge
Provides access to members that specify the properties of this network edge element.
The INetworkEdge interface is used to access the properties of the network edge element, such as its direction of travel and azimuth values.
Method Summary | |
---|---|
int |
getDirection()
Direction in which this network edge element is oriented relative to the direction of its source object. |
double |
getFromAzimuth()
Direction of travel at the from-end of the network edge element. |
double |
getPositionAlongObject(double positionAlongElement)
Position along the source object at which the specified position along the network edge element lies. |
double |
getToAzimuth()
Direction of travel at the to-end of the network edge element. |
int |
getTurnCount()
Number of network turn elements in which this network edge element participates. |
int |
getTurnParticipationType()
Participation of this network edge element within a network turn element. |
void |
queryEdgeInOtherDirection(INetworkEdge edge)
Queries the network edge element corresponding to the reverse traversal of this network edge element. |
void |
queryJunctions(INetworkJunction fromJunction,
INetworkJunction toJunction)
Queries the network junction elements adjacent to this network edge element. |
void |
queryPositions(double[] fromPosition,
double[] toPosition)
Queries the positions along the source object at which the from-end and to-end of the network edge element lies. |
void |
queryTurn(int index,
INetworkTurn turn)
Queries the index'th network turn element in which this network edge element participates. |
Methods inherited from interface com.esri.arcgis.geodatabase.INetworkElement |
---|
getAttributeValue, getAttributeValueByName, getEID, getElementType, getOID, getSourceID |
Method Detail |
---|
int getDirection() throws IOException, AutomationException
The Direction property returns the direction of travel along this edge element relative to the digitized direction of the source feature. The direction of travel is either esriNEDAlongDigitized, meaning the direction of travel along the edge element is the same as the feature's direction of digitization, or esriNEDAgainstDigitized, meaning the direction of travel along the edge element is the opposite of the feature's direction of digitization.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryPositions(double[] fromPosition, double[] toPosition) throws IOException, AutomationException
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.
fromPosition
- The fromPosition (out: use single element array)toPosition
- The toPosition (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getFromAzimuth() throws IOException, AutomationException
The FromAzimuth property indicates the direction of travel at the starting end of the edge element. For edge elements generated by an EdgeFeatureSource, the FromAzimuth and ToAzimuth values are measured clockwise in degrees relative to the positive Y-axis direction of the spatial reference of the network dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getToAzimuth() throws IOException, AutomationException
The ToAzimuth property indicates the direction of travel at the terminating end of the edge element. For edge elements generated by an EdgeFeatureSource, the FromAzimuth and ToAzimuth values are measured clockwise in degrees relative to the positive Y-axis direction of the spatial reference of the network dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTurnParticipationType() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getPositionAlongObject(double positionAlongElement) throws IOException, AutomationException
positionAlongElement
- The positionAlongElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTurnCount() throws IOException, AutomationException
The TurnCount property returns the number of turn elements that traverse this edge.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryTurn(int index, INetworkTurn turn) throws IOException, AutomationException
The QueryTurn method retrieves the turn element that traverses this edge at the specified index. The index values range from 0 to (TurnCount - 1).
The QueryTurn method requires an instantiated NetworkTurn object to be passed in as a parameter. You can create an empty NetworkTurn object by using the INetworkQuery::CreateNetworkElement method.
index
- The index (in)turn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryEdgeInOtherDirection(INetworkEdge edge) throws IOException, AutomationException
The QueryEdgeInOtherDirection method retrieves the edge element in the opposite direction of travel as this edge.
This method requires an instantiated NetworkEdge object to be passed in as a parameter. You can create an empty NetworkEdge object by using the INetworkQuery::CreateNetworkElement method.
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryJunctions(INetworkJunction fromJunction, INetworkJunction toJunction) throws IOException, AutomationException
The QueryJunctions method retrieves the junction elements at the ends of this edge element.
This method requires two instantiated NetworkJunction objects to be passed in as a parameter. You can create an empty NetworkJunction object by using the INetworkQuery::CreateNetworkElement method.
fromJunction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)toJunction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |