11
votes
Accepted
Measuring compactness in Python
You don't need to create circles. The formula is derived from the ratio you mentioned.
Use the following script. You can apply the other formulas easily.
import geopandas as gpd
from math import pi, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
compactness × 4python × 2
qgis × 1
arcgis-desktop × 1
arcmap × 1
geometry × 1
geopandas × 1
watershed × 1
length × 1
circle × 1
jupyter-notebook × 1
arcgis-10.8 × 1
redistricting × 1