sid_from_point#

sid_from_point(point, level)#

Takes a shapely Point, Polygon, or Multipolygon and returns the according SID

Parameters
point: shapely.geometry.Point

Shapely point

level: int

STARE level to use for lookup

Returns
sid

spatial index value

Examples

>>> import starepandas
>>> import shapely
>>> point = shapely.geometry.Point(10.5, 20)
>>> starepandas.sid_from_point(point, level=20)
4598246232954051060