com.esri.core.geometry
Class Proximity2DResult

java.lang.Object
  extended by com.esri.core.geometry.Proximity2DResult

public class Proximity2DResult
extends Object

The result of the OperatorProximity2D.


Method Summary
 Point getCoordinate()
          Returns the closest coordinate for OperatorProximity2D.getNearestCoordinate or the vertex coordinates for the GeometryEngine.getNearestVertex and OperatorProximity2D.getNearestVertices.
 double getDistance()
          Returns the distance to the closest vertex or coordinate.
 int getVertexIndex()
          Returns the vertex index.
 boolean isEmpty()
          Returns True if the Proximity2DResult is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public boolean isEmpty()
Returns True if the Proximity2DResult is empty. Happens only when the Geometry passed to the Proximity operator is empty. When the result is empty, the GetCoordinate


getCoordinate

public Point getCoordinate()
Returns the closest coordinate for OperatorProximity2D.getNearestCoordinate or the vertex coordinates for the GeometryEngine.getNearestVertex and OperatorProximity2D.getNearestVertices.


getVertexIndex

public int getVertexIndex()
Returns the vertex index. For OperatorProximity2D.getNearestCoordinate the behavior is as follows: When the input is a Polygon or an Envelope and the bTestPolygonInterior is true, the value is zero. When the input is a Polygon or an Envelope and the bTestPolygonInterior is false, the value is the start vertex index of a segment with the closest coordinate. When the input is a Polyline, the value is the start vertex index of a segment with the closest coordinate. When the input is a Point, the value is 0. When the input is a MultiPoint, the value is the closest vertex.


getDistance

public double getDistance()
Returns the distance to the closest vertex or coordinate.



Copyright © 2010. All Rights Reserved.