|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPointToEID
Provides access to members that find the nearest network element to a given point.
Use the methods on IPointToEID to find the nearest network element to a given point in the map.
Method Summary | |
---|---|
void |
getNearestEdge(IPoint inputPoint,
int[] nearestEdgeEID,
IPoint[] location,
double[] percent)
Returns the edge EID nearest to the input point, the physical point location that corresponds to the EID, and the percentage along that EID. |
void |
getNearestJunction(IPoint inputPoint,
int[] nearestJunctionEID,
IPoint[] location)
Returns the junction EID nearest to the input point, and the physical point location that corresponds to the EID. |
void |
setGeometricNetworkByRef(IGeometricNetwork rhs1)
Source geometric network from which the result EID will come. |
void |
setSnapTolerance(double rhs1)
Maximum distance from the input point to an acceptable EID. |
void |
setSourceMapByRef(IMap rhs1)
Source map in which to search for the nearest EID. |
Method Detail |
---|
void setSnapTolerance(double rhs1) throws IOException, AutomationException
The snap tolerance is in map units of the source map.
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setGeometricNetworkByRef(IGeometricNetwork rhs1) throws IOException, AutomationException
The result element ID will be from this geometric network.
rhs1
- A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSourceMapByRef(IMap rhs1) throws IOException, AutomationException
The result element ID will correspond to a feature in one of the layers in this map.
rhs1
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getNearestEdge(IPoint inputPoint, int[] nearestEdgeEID, IPoint[] location, double[] percent) throws IOException, AutomationException
GetNearestEdge returns the element ID of the nearest edge feature.
The location parameter returns the point along the nearest edge feature that is nearest the input point.
The percent parameter returns the percentage along the nearest edge feature that corresponds to the point found in the location parameter.
inputPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)nearestEdgeEID
- The nearestEdgeEID (out: use single element array)location
- A reference to a com.esri.arcgis.geometry.IPoint (out: use single element array)percent
- The percent (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getNearestJunction(IPoint inputPoint, int[] nearestJunctionEID, IPoint[] location) throws IOException, AutomationException
GetNearestJunction returns the element ID of the nearest junction feature.
The location parameter returns the geometry of the nearest junction feature that is nearest the input point.
inputPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)nearestJunctionEID
- The nearestJunctionEID (out: use single element array)location
- A reference to a com.esri.arcgis.geometry.IPoint (out: use single element array)
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 |