> ## 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.cx

> Select geometries that intersect a coordinate bounding box.

Select geometries that intersect a coordinate bounding box.

The indexer accepts an x slice followed by a y slice. Slice bounds are
inclusive, may be open-ended, and may be written in either order.
Non-`None` slice steps are ignored with a warning, matching
GeoPandas.

## Signature

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

## Returns

<ResponseField name="return" type="_CoordinateIndexer">
  Coordinate indexer returning the same distributed type as this
  object.
</ResponseField>

<Note>
  Selection is evaluated with native Spark and Sedona expressions. Open
  bounds are derived with a one-row distributed bounds aggregation; no
  geometry rows are collected to the driver.
</Note>

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import Point
>>> s = GeoSeries([Point(0, 0), Point(1, 1), Point(2, 2)])
>>> s.cx[0.5:2, 0.5:1.5]
1    POINT (1 1)
dtype: geometry
```

Open-ended slices are supported:

```python theme={"system"}
>>> s.cx[1:, :]
1    POINT (1 1)
2    POINT (2 2)
dtype: geometry
```


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