I have set of polygons whom I would like to check their compactness.
I'm working in Jupyter Notebook and my geometry is GeoPandas.
I would like to try Polsby-Popper test and Schwartzberg test (and other test that are here: https://fisherzachary.github.io/public/r-output.html ) but I can't find any simple way to do it.
I don't find way to create the necessary circles, e.g "circle whose area is equal to the area of the polygon " or "circle whose circumference is equal to the perimeter of the polygon ".
I have found script to do find smallest enclosing circle but it seems like it works with points and I have polygon in GeoPandas (https://www.nayuki.io/res/smallest-enclosing-circle/smallestenclosingcircle.py).
If anyone knows any library/package/ any idea of how I can create circles from given perimeter or area. It's important to say that I have around 70k polygons to check so I also have the memory issue.
My end goal is to get ideas how can I calculate this in Python in Jupyter Notebook.
Edit: I have found this library but struggling with install it/use it (https://jblindsay.github.io/wbt_book/available_tools/gis_analysis_patch_shape_tools.html) (https://github.com/jblindsay/whitebox-tools/blob/master/src/tools/gis_analysis/related_circumscribing_circle.rs)