geopandas.GeoSeries.minimum_bounding_circle#
- GeoSeries.minimum_bounding_circle()[source]#
Returns a
GeoSeries
of geometries representing the minimum bounding circle that encloses each geometry.See also
GeoSeries.convex_hull
convex hull geometry
Examples
>>> from shapely.geometry import Polygon, LineString, Point >>> s = geopandas.GeoSeries( ... [ ... Polygon([(0, 0), (1, 1), (0, 1), (0, 0)]), ... LineString([(0, 0), (1, 1), (1, 0)]), ... Point(0, 0), ... ] ... ) >>> s 0 POLYGON ((0.00000 0.00000, 1.00000 1.00000, 0.... 1 LINESTRING (0.00000 0.00000, 1.00000 1.00000, ... 2 POINT (0.00000 0.00000) dtype: geometry
>>> s.minimum_bounding_circle() 0 POLYGON ((1.20711 0.50000, 1.19352 0.36205, 1.... 1 POLYGON ((1.20711 0.50000, 1.19352 0.36205, 1.... 2 POINT (0.00000 0.00000) dtype: geometry