geopandas.GeoSeries.exterior#

property GeoSeries.exterior[source]#

Returns a GeoSeries of LinearRings representing the outer boundary of each polygon in the GeoSeries.

Applies to GeoSeries containing only Polygons. Returns None` for other geometry types.

See also

GeoSeries.boundary

complete set-theoretic boundary

GeoSeries.interiors

list of inner rings of each polygon

Examples

>>> from shapely.geometry import Polygon, Point
>>> s = geopandas.GeoSeries(
...     [
...         Polygon([(0, 0), (1, 1), (0, 1)]),
...         Polygon([(1, 0), (2, 1), (0, 0)]),
...         Point(0, 1)
...     ]
... )
>>> s
0    POLYGON ((0 0, 1 1, 0 1, 0 0))
1    POLYGON ((1 0, 2 1, 0 0, 1 0))
2                       POINT (0 1)
dtype: geometry
>>> s.exterior
0    LINEARRING (0 0, 1 1, 0 1, 0 0)
1    LINEARRING (1 0, 2 1, 0 0, 1 0)
2                               None
dtype: geometry