Package com.esri.core.geometry
Class OperatorProximity2DLocal
java.lang.Object
com.esri.core.geometry.Operator
com.esri.core.geometry.OperatorProximity2D
com.esri.core.geometry.OperatorProximity2DLocal
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.esri.core.geometry.OperatorProximity2D
OperatorProximity2D.ProxResultInfo
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNearestCoordinate
(Geometry geom, Point inputPoint, boolean bTestPolygonInterior) Returns the nearest coordinate on the Geometry to the given input point.getNearestCoordinate
(Geometry geom, Point inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) Returns the nearest coordinate on the Geometry to the given input point.getNearestVertex
(Geometry geom, Point inputPoint) Returns the nearest vertex of the Geometry to the given input point.getNearestVertices
(Geometry geom, Point inputPoint, double searchRadius, int maxVertexCountToReturn) Returns vertices of the Geometry that are closer to the given point than the given radius.(package private) Proximity2DResult
multiPathGetNearestCoordinate
(MultiPath geom, Point2D inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) (package private) Proximity2DResult
multiVertexGetNearestVertex
(MultiVertexGeometry geom, Point2D inputPoint) (package private) Proximity2DResult[]
multiVertexGetNearestVertices
(MultiVertexGeometry geom, Point2D inputPoint, double searchRadius, int maxVertexCountToReturn) (package private) Proximity2DResult
pointGetNearestVertex
(Point geom, Point2D input_point) (package private) Proximity2DResult[]
pointGetNearestVertices
(Point geom, Point2D inputPoint, double searchRadius, int maxVertexCountToReturn) Methods inherited from class com.esri.core.geometry.OperatorProximity2D
getType, local
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
Constructor Details
-
OperatorProximity2DLocal
OperatorProximity2DLocal()
-
-
Method Details
-
getNearestCoordinate
public Proximity2DResult getNearestCoordinate(Geometry geom, Point inputPoint, boolean bTestPolygonInterior) Description copied from class:OperatorProximity2D
Returns the nearest coordinate on the Geometry to the given input point.- Specified by:
getNearestCoordinate
in classOperatorProximity2D
- Parameters:
geom
- The input Geometry.inputPoint
- The query point.bTestPolygonInterior
- When true and geom is a polygon, the function will test if the input_point is inside of the polygon. Points that are inside of the polygon have zero distance to the polygon. When false, the function will not check if the point is inside of the polygon, but only determine proximity to the boundary. \return Returns the result of proximity calculation. See Proximity_2D_result.
-
getNearestCoordinate
public Proximity2DResult getNearestCoordinate(Geometry geom, Point inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) Description copied from class:OperatorProximity2D
Returns the nearest coordinate on the Geometry to the given input point.- Specified by:
getNearestCoordinate
in classOperatorProximity2D
- Parameters:
geom
- The input Geometry.inputPoint
- The query point.bTestPolygonInterior
- When true and geom is a polygon, the function will test if the input_point is inside of the polygon. Points that are inside of the polygon have zero distance to the polygon. When false, the function will not check if the point is inside of the polygon, but only determine proximity to the boundary.bCalculateLeftRightSide
- The function will calculate left/right side of polylines or polygons when the parameter is True. \return Returns the result of proximity calculation. See Proximity_2D_result.
-
getNearestVertex
Description copied from class:OperatorProximity2D
Returns the nearest vertex of the Geometry to the given input point.- Specified by:
getNearestVertex
in classOperatorProximity2D
-
getNearestVertices
public Proximity2DResult[] getNearestVertices(Geometry geom, Point inputPoint, double searchRadius, int maxVertexCountToReturn) Description copied from class:OperatorProximity2D
Returns vertices of the Geometry that are closer to the given point than the given radius.- Specified by:
getNearestVertices
in classOperatorProximity2D
- Parameters:
geom
- The input Geometry.inputPoint
- The query point.searchRadius
- The maximum distance to the query point of the vertices.maxVertexCountToReturn
- The maximum vertex count to return. The function returns no more than this number of vertices.- Returns:
- The array of vertices that are in the given search radius to the point. The array is sorted by distance to the queryPoint with the closest point first. When there are more than the maxVertexCountToReturn vertices to return, it returns the closest vertices. The array will be empty when geom is empty.
-
multiPathGetNearestCoordinate
Proximity2DResult multiPathGetNearestCoordinate(MultiPath geom, Point2D inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) -
pointGetNearestVertex
-
multiVertexGetNearestVertex
-
pointGetNearestVertices
Proximity2DResult[] pointGetNearestVertices(Point geom, Point2D inputPoint, double searchRadius, int maxVertexCountToReturn) -
multiVertexGetNearestVertices
Proximity2DResult[] multiVertexGetNearestVertices(MultiVertexGeometry geom, Point2D inputPoint, double searchRadius, int maxVertexCountToReturn)
-