libpysal.cg.
PolygonLocator
(polygons)[source]¶An abstract representation of a polygon indexing data structure.
Methods
|
Returns polygons that contain point |
|
Returns polygons that are inside query_rectangle |
|
Returns the nearest polygon indexed to a query point based on various rules. |
|
Returns list of polygons that overlap query_rectangle |
|
Returns the indexed polygons located within some distance of an origin point based on various rules. |
|
Returns the indexed polygons located inside a rectangular query region. |
__init__
(self, polygons)[source]¶Returns a polygon locator object.
__init__(Polygon list) -> PolygonLocator
Examples
>>> p1 = Polygon([Point((0, 1)), Point((4, 5)), Point((5, 1))])
>>> p2 = Polygon([Point((3, 9)), Point((6, 7)), Point((1, 1))])
>>> pl = PolygonLocator([p1, p2])
>>> isinstance(pl, PolygonLocator)
True
Methods
|
Returns a polygon locator object. |
|
Returns polygons that contain point |
|
Returns polygons that are inside query_rectangle |
|
Returns the nearest polygon indexed to a query point based on various rules. |
|
Returns list of polygons that overlap query_rectangle |
|
Returns the indexed polygons located within some distance of an origin point based on various rules. |
|
Returns the indexed polygons located inside a rectangular query region. |