class_docstr: A simple wrapper around Shapely's STRTree.
  
  
  Parameters
  ----------
  geometry : np.array of Shapely geometries
      Geometries from which to build the spatial index.
class_docstr_tok: ["A","simple","wrapper","around","Shapely","'s","STRTree",".","Parameters","--","--","--","--","--","geometry",":","np.array","of","Shapely","geometries","Geometries","from","which","to","build","the","spatial","index","."]
code: def __init__(self, geometry):
      # set empty geometries to None to avoid segfault on GEOS <= 3.6
      # see:
      # https://github.com/pygeos/pygeos/issues/146
      # https://github.com/pygeos/pygeos/issues/147
      non_empty = geometry.copy()
      non_empty[shapely.is_empty(non_empty)] = None
      # set empty geometries to None to maintain indexing
      self._tree = shapely.STRtree(non_empty)
      # store geometries, including empty geometries for user access
      self.geometries = geometry.copy()
  
file_path: geopandas/geopandas/sindex.py
imports: import warnings
  import numpy
  import shapely
  from shapely.geometry.base import BaseGeometry
  from .None import array, geoseries
  from .None import _compat
label_desc: Use image node_id 1 to create a new SpatialIndex object  with example: obj = SpatialIndex(geometry)