|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.networkanalysis.PointToEID
public class PointToEID
A container for finding the nearest network element ID to a given point.
Constructor Summary | |
---|---|
PointToEID()
Constructs a PointToEID using ArcGIS Engine. |
|
PointToEID(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. PointToEID thePointToEID = (PointToEID) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
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. |
int |
hashCode()
the hashcode for this object |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public PointToEID() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic PointToEID(Object obj) throws IOException
PointToEID thePointToEID = (PointToEID) obj;
obj
to PointToEID
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setSnapTolerance(double rhs1) throws IOException, AutomationException
The snap tolerance is in map units of the source map.
setSnapTolerance
in interface IPointToEID
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGeometricNetworkByRef(IGeometricNetwork rhs1) throws IOException, AutomationException
The result element ID will be from this geometric network.
setGeometricNetworkByRef
in interface IPointToEID
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.public void setSourceMapByRef(IMap rhs1) throws IOException, AutomationException
The result element ID will correspond to a feature in one of the layers in this map.
setSourceMapByRef
in interface IPointToEID
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.public 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.
getNearestEdge
in interface IPointToEID
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.public 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.
getNearestJunction
in interface IPointToEID
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 |