public abstract class OperatorProximity2D extends Operator
Operator.Type
Constructor and Description |
---|
OperatorProximity2D() |
Modifier and Type | Method and Description |
---|---|
abstract Proximity2DResult |
getNearestCoordinate(Geometry geom,
Point inputPoint,
boolean bTestPolygonInterior)
Returns the nearest coordinate on the Geometry to the given input point.
|
abstract Proximity2DResult |
getNearestCoordinate(Geometry geom,
Point inputPoint,
boolean bTestPolygonInterior,
boolean bCalculateLeftRightSide)
Returns the nearest coordinate on the Geometry to the given input point.
|
abstract Proximity2DResult |
getNearestVertex(Geometry geom,
Point inputPoint)
Returns the nearest vertex of the Geometry to the given input point.
|
abstract Proximity2DResult[] |
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.
|
Operator.Type |
getType() |
static OperatorProximity2D |
local() |
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
public Operator.Type getType()
public abstract Proximity2DResult getNearestCoordinate(Geometry geom, Point inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide)
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.public abstract Proximity2DResult getNearestCoordinate(Geometry geom, Point inputPoint, boolean bTestPolygonInterior)
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.public abstract Proximity2DResult getNearestVertex(Geometry geom, Point inputPoint)
public abstract Proximity2DResult[] getNearestVertices(Geometry geom, Point inputPoint, double searchRadius, int maxVertexCountToReturn)
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.public static OperatorProximity2D local()
Copyright © 2018. All rights reserved.