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","."]
docstr: Convert geometry into a numpy array of Shapely geometries.
  
  Parameters
  ----------
  geometry
      An array-like of Shapely geometries, a GeoPandas GeoSeries/GeometryArray,
      shapely.geometry or list of shapely geometries.
  
  Returns
  -------
  np.ndarray
      A numpy array of Shapely geometries.
docstr_tok: ["Convert","geometry","into","a","numpy","array","of","Shapely","geometries",".","Parameters","--","--","--","--","--","geometry","An","array-like","of","Shapely","geometries",",","a","GeoPandas","GeoSeries\/GeometryArray",",","shapely.geometry","or","list","of","shapely","geometries",".","Returns","--","--","--","-","np.ndarray","A","numpy","array","of","Shapely","geometries","."]
code: def _as_geometry_array(geometry):
      """Convert geometry into a numpy array of Shapely geometries.
  
      Parameters
      ----------
      geometry
          An array-like of Shapely geometries, a GeoPandas GeoSeries/GeometryArray,
          shapely.geometry or list of shapely geometries.
  
      Returns
      -------
      np.ndarray
          A numpy array of Shapely geometries.
      """
      if isinstance(geometry, np.ndarray):
          return array.from_shapely(geometry)._data
      elif isinstance(geometry, geoseries.GeoSeries):
          return geometry.values._data
      elif isinstance(geometry, array.GeometryArray):
          return geometry._data
      elif isinstance(geometry, BaseGeometry):
          return geometry
      elif geometry is None:
          return None
      else:
          return np.asarray(geometry)
  
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 4 for calling the SpatialIndex obj's underlying member method code with example usage: obj._as_geometry_array(geometry) and returns: array, geometry, geometry, geometry, None, np