[GIS] Calculating minimum bounding circle in QGIS or Python

pythonqgis

I'm attempting to calculate the radii required to cover a set of polygons in a shapefile; for example, given any number of neighborhood polygon boundaries, I'd like to calculate the smallest circle radius required to cover each.

Is there a way to calculate a minimum bounding circle in QGIS, given a polygon? Otherwise, is there a way to do so in python?

Edit: I'm using QGIS 2.18 on MacOS.

Best Answer

QGIS 3.0 (or 2.99) can calculate this directly, using either the "Minimum enclosing circles" (for a circle for each individual feature) or the "Minimum Bounding Geometry" algorithm with "geometry type" as "minimum enclosing circle" (for the entire layer at once)