> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoSeries.has_sindex

> Check the existence of the spatial index without generating it.

Check the existence of the spatial index without generating it.

Use the `.sindex` attribute on a GeoDataFrame or GeoSeries
to generate a spatial index if it does not yet exist,
which may take considerable time based on the underlying index
implementation.

Note that the underlying spatial index may not be fully
initialized until the first use.

Currently, sindex is not retained when calling this method from a GeoDataFrame.
You can workaround this by first extracting the active geometry column as a GeoSeries,
and calling this method.

## Signature

```python theme={"system"}
GeoSeries.has_sindex
```

## Returns

<ResponseField name="return" type="bool">
  `True` if the spatial index has been generated or
  `False` if not.
</ResponseField>

## Examples

```python theme={"system"}
>>> from shapely.geometry import Point
>>> s = GeoSeries([Point(x, x) for x in range(5)])
>>> s.has_sindex
False
>>> index = s.sindex
>>> s.has_sindex
True
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.