s2.s2closest_point_query

Undocumented in source.

Members

Aliases

S2ClosestPointQueryTarget
alias S2ClosestPointQueryTarget = S2MinDistanceTarget

S2ClosestPointQueryTarget represents the geometry to which the distance is measured. There are subtypes for measuring the distance to a point, an edge, an S2Cell, or an S2ShapeIndex (an arbitrary collection of geometry).

Classes

S2ClosestPointQuery
class S2ClosestPointQuery(Data)

Given a set of points stored in an S2PointIndex, S2ClosestPointQuery provides methods that find the closest point(s) to a given query point or query edge. Example usage:

S2ClosestPointQueryCellTarget
class S2ClosestPointQueryCellTarget

Target subtype that computes the closest distance to an S2Cell (including the interior of the cell).

S2ClosestPointQueryEdgeTarget
class S2ClosestPointQueryEdgeTarget

Target subtype that computes the closest distance to an edge.

S2ClosestPointQueryOptions
class S2ClosestPointQueryOptions

Options that control the set of points returned. Note that by default *all* points are returned, so you will always want to set either the max_points() option or the max_distance() option (or both).

S2ClosestPointQueryPointTarget
class S2ClosestPointQueryPointTarget

Target subtype that computes the closest distance to a point.

S2ClosestPointQueryShapeIndexTarget
class S2ClosestPointQueryShapeIndexTarget

Target subtype that computes the closest distance to an S2ShapeIndex (an arbitrary collection of points, polylines, and/or polygons).

Meta