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

> Return the outer boundary of each polygon geometry.

Return the outer boundary of each polygon geometry.

Returns a `GeoSeries` of LineStrings representing the exterior ring
of each polygon. For non-polygon geometries, returns `None`.

<Note>
  Sedona's `ST_ExteriorRing` returns a `LINESTRING` rather than a `LINEARRING`.  The coordinates are identical to those of the exterior ring but the geometry type differs from geopandas, which returns a `LINEARRING`.
</Note>

## Signature

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

## Returns

<ResponseField name="return" type="GeoSeries" />

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import Polygon
>>> s = GeoSeries(
...     [Polygon([(0, 0), (1, 0), (1, 1), (0, 1)])]
... )
>>> s.exterior
0    LINESTRING (0 0, 1 0, 1 1, 0 1, 0 0)
dtype: geometry
```


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