code: def compactness_frompts(geoseries):
      
      measure = (
          4 * 3.1415 * (
              (geoseries.unary_union).convex_hull.area)
          ) / (
              (geoseries.unary_union).convex_hull.length
          )
      return measure
docs: Inverse of 4 * pi * Area / perimeter^2