Class OperatorProximity2DLocal


class OperatorProximity2DLocal extends OperatorProximity2D
  • 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 class OperatorProximity2D
      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 class OperatorProximity2D
      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

      public Proximity2DResult getNearestVertex(Geometry geom, Point inputPoint)
      Description copied from class: OperatorProximity2D
      Returns the nearest vertex of the Geometry to the given input point.
      Specified by:
      getNearestVertex in class OperatorProximity2D
    • 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 class OperatorProximity2D
      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

      Proximity2DResult pointGetNearestVertex(Point geom, Point2D input_point)
    • multiVertexGetNearestVertex

      Proximity2DResult multiVertexGetNearestVertex(MultiVertexGeometry geom, Point2D inputPoint)
    • pointGetNearestVertices

      Proximity2DResult[] pointGetNearestVertices(Point geom, Point2D inputPoint, double searchRadius, int maxVertexCountToReturn)
    • multiVertexGetNearestVertices

      Proximity2DResult[] multiVertexGetNearestVertices(MultiVertexGeometry geom, Point2D inputPoint, double searchRadius, int maxVertexCountToReturn)