shapelib/core.py
def tight_envelope(geom):
    """
    return the geometry which builds an envelope around `geom`
    """
    if hasattr(geom, 'geoms'):
        g0 = max((sub.envelope.area, sub) for sub in geom.geoms)[1]
        g00 = asPolygon(g0.exterior)
    elif isinstance(geom, Polygon):
        g00 = asPolygon(geom.exterior)
    return g00

    return the geometry which builds an envelope around `geom`
    
return the geometry which builds an envelope around `geom`
return the geometry which builds an envelope around ` geom `
def tight_envelope(geom):
    if hasattr(geom, 'geoms'):
        g0 = max((sub.envelope.area, sub) for sub in geom.geoms)[1]
        g00 = asPolygon(g0.exterior)
    elif isinstance(geom, Polygon):
        g00 = asPolygon(geom.exterior)
    return g00
def tight_envelope ( geom ) : if hasattr ( geom , 'geoms' ) : g0 = max ( ( sub . envelope . area , sub ) for sub in geom . geoms ) [ 1 ] g00 = asPolygon ( g0 . exterior ) elif isinstance ( geom , Polygon ) : g00 = asPolygon ( geom . exterior ) return g00
return the geometry which builds an envelope around `geom`
return the geometry which builds an envelope around ` geom `
"""
    return the geometry which builds an envelope around `geom`
    """
geom