grid_indexing.RTree.from_shapely#

classmethod RTree.from_shapely(geoms)#

construct a RTree from a array of shapely geometries

Parameters:

geoms (array-like) – The array of shapely geometries. Can be 1D or 2D, but must be something geoarrow.rust.core.from_shapely() can handle.

Returns:

rtree (RTree) – The RTree instance.