|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INATraversalResultEdit
Provides access to the editable properties of a traversal result.
The INATraversalResultEdit interface provides methods to update the NATraversalResult object.
| Method Summary | |
|---|---|
int |
createEdge(int sourceID,
int sourceOID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
Make a new edge in the result. |
int |
createJunction(int sourceID,
int sourceOID,
IPoint point)
Make a new junction in the result. |
int |
createSimpleTurn(int sourceID,
int sourceOID,
int fromEdgeID,
int toEdgeID)
Make a new two edge turn in the result. |
void |
inferGeometry(String sourceName,
IEnvelope envelope,
ITrackCancel trackCancel)
Constructs the geometry for the result. |
void |
startEditing()
Starts editing the result.. |
void |
stopEditing()
Stops editing the result. |
void |
writeEdgeBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
Make a new edge in the result from the feature buffer. |
void |
writeJunctionBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
IPoint point)
Make a new junction in the result from the feature buffer. |
void |
writeSimpleTurnBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
int fromEdgeID,
int toEdgeID)
Make a new two part turn in the result from the feature buffer. |
| Method Detail |
|---|
void startEditing()
throws IOException,
AutomationException
The method StartEditing puts the traversal result in a state to quickly add NATraversalResultElements to the underlying feature classes.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void stopEditing()
throws IOException,
AutomationException
The method StopEditing should be called when the solver is done adding NATraversalResultElements to the traversal result's underlying feature classes.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void inferGeometry(String sourceName,
IEnvelope envelope,
ITrackCancel trackCancel)
throws IOException,
AutomationException
The InferGeometry method takes a source name (or an empty string which equates to all sources) as input and computes the geometry for each NATraversalResultElement based on its corresponding features in the NetworkDataset and NAContext.
sourceName - The sourceName (in)envelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int createJunction(int sourceID,
int sourceOID,
IPoint point)
throws IOException,
AutomationException
CreateJunction creates a junction in the traversal results junction feature class.
It is unnecessary to pass in a geometry. If passed in, it will be used. Otherwise, it is possible to call InferGeometry later to infer all of the geometries.
sourceID - The sourceID (in)sourceOID - The sourceOID (in)point - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int createEdge(int sourceID,
int sourceOID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
throws IOException,
AutomationException
CreateEdge creates an edge in the traversal results edge feature class.
It is unnecessary to pass in a geometry. If passed in, it will be used. Otherwise, it is possible to call InferGeometry later to infer all of the geometries.
sourceID - The sourceID (in)sourceOID - The sourceOID (in)fromPosition - The fromPosition (in)toPosition - The toPosition (in)fromJunctionID - The fromJunctionID (in)toJunctionID - The toJunctionID (in)polyline - A reference to a com.esri.arcgis.geometry.IPolyline (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int createSimpleTurn(int sourceID,
int sourceOID,
int fromEdgeID,
int toEdgeID)
throws IOException,
AutomationException
CreateSimpleTurn creates a turn between two edges in the traversal results turn feature class.
sourceID - The sourceID (in)sourceOID - The sourceOID (in)fromEdgeID - The fromEdgeID (in)toEdgeID - The toEdgeID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeJunctionBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
IPoint point)
throws IOException,
AutomationException
WriteJunctionBuffer populates the input FeatureBuffer with the other input parameters. This FeatureBuffer can then be passed to an insert cursor on the traversal result feature class.
featureBuffer - A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID - The sourceID (in)sourceOID - The sourceOID (in)point - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeEdgeBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
throws IOException,
AutomationException
WriteEdgeBuffer populates the input FeatureBuffer with the other input parameters. This FeatureBuffer can then be passed to an insert cursor on the traversal result feature class.
featureBuffer - A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID - The sourceID (in)sourceOID - The sourceOID (in)fromPosition - The fromPosition (in)toPosition - The toPosition (in)fromJunctionID - The fromJunctionID (in)toJunctionID - The toJunctionID (in)polyline - A reference to a com.esri.arcgis.geometry.IPolyline (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeSimpleTurnBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
int fromEdgeID,
int toEdgeID)
throws IOException,
AutomationException
WriteSimpleTurnBuffer populates the input FeatureBuffer with the other input parameters. This FeatureBuffer can then be passed to an insert cursor on the traversal result feature class.
featureBuffer - A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID - The sourceID (in)sourceOID - The sourceOID (in)fromEdgeID - The fromEdgeID (in)toEdgeID - The toEdgeID (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 | ||||||||