|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INALocation
Provides access to properties of an NALocation.
INALocation is the main interface of the NALocation object. It provides properties to get and set the SourceID, the SourceOID, the SourcePosition, and the Side. It also provides the IsLocated property, which determines if the NALocation is actually located by interrogating the other four properties listed above.
Method Summary | |
---|---|
int |
getSide()
The side of the feature. |
int |
getSourceID()
The ID of the network source. |
int |
getSourceOID()
The OID of the feature. |
double |
getSourcePosition()
The position along the feature. |
boolean |
isLocated()
Indicates if the location has been found on the network. |
void |
setSide(int side)
The side of the feature. |
void |
setSourceID(int sourceID)
The ID of the network source. |
void |
setSourceOID(int sourceOID)
The OID of the feature. |
void |
setSourcePosition(double position)
The position along the feature. |
Method Detail |
---|
void setSourceID(int sourceID) throws IOException, AutomationException
The SourceID property specifies the SourceID of the feature class in the NetworkDataset that the NALocation is referencing. The SourceID of the feature class can be retrieved from the ID property on the INetworkSource interface.
sourceID
- The sourceID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSourceID() throws IOException, AutomationException
The SourceID property specifies the SourceID of the feature class in the NetworkDataset that the NALocation is referencing. The SourceID of the feature class can be retrieved from the ID property on the INetworkSource interface.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSourceOID(int sourceOID) throws IOException, AutomationException
The SourceOID property specifies the ObjectID of the feature in the NetworkDataset that the NALocation is referencing. The SourceOID is used in conjunction with the SourceID to uniquely specify a Feature in the NetworkDataset.
sourceOID
- The sourceOID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSourceOID() throws IOException, AutomationException
The SourceOID property specifies the ObjectID of the feature in the NetworkDataset that the NALocation is referencing. The SourceOID is used in conjunction with the SourceID to uniquely specify a Feature in the NetworkDataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSourcePosition(double position) throws IOException, AutomationException
The SourcePosition property specifies the position along the feature specified by the SourceID and SourceOID. Valid values are in the range of 0 to 1. A value of 0.25 would translate to 1/4 of the way along the source feature in the digitized direction.
position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getSourcePosition() throws IOException, AutomationException
The SourcePosition property specifies the position along the feature specified by the SourceID and SourceOID. Valid values are in the range of 0 to 1. A value of 0.25 would translate to 1/4 of the way along the source feature in the digitized direction.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSide(int side) throws IOException, AutomationException
The Side property specifies the position of the NALocation in relation to the feature specified by the SourceID and SourceOID. Valid values are dictated by the enumeration esriNAEdgeSideType which has values esriNAEdgeSideRight (1) and esriNAEdgeSideLeft (2). The side is always in relation to the digitized direction of the feature.
side
- A com.esri.arcgis.networkanalyst.esriNAEdgeSideType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSide() throws IOException, AutomationException
The Side property specifies the position of the NALocation in relation to the feature specified by the SourceID and SourceOID. Valid values are dictated by the enumeration esriNAEdgeSideType, which has values esriNAEdgeSideRight (1) and esriNAEdgeSideLeft (2). The side is always in relation to the digitized direction of the feature.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLocated() throws IOException, AutomationException
This property returns True if the SourceID, SourceOID, SourcePosition, and Side properties all have valid values that should correspond to a position along a feature in a NetworkDataset.
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 |