libpysal.cg.
PointLocator
(points)[source]¶An abstract representation of a point indexing data structure.
Methods
|
Returns the nearest point indexed to a query point. |
|
Returns the indexed points located inside a rectangular query region. |
|
Returns the indexed points located inside a polygon |
|
Returns the indexed points located within some distance of an origin point. |
|
Returns the indexed points located inside a rectangular query region. |
__init__
(self, points)[source]¶Returns a point locator object.
__init__(Point list) -> PointLocator
Examples
>>> points = [Point((0, 0)), Point((1, 6)), Point((5.4, 1.4))]
>>> pl = PointLocator(points)
Methods
|
Returns a point locator object. |
|
Returns the nearest point indexed to a query point. |
|
Returns the indexed points located inside a rectangular query region. |
|
Returns the indexed points located inside a polygon |
|
Returns the indexed points located within some distance of an origin point. |
|
Returns the indexed points located inside a rectangular query region. |