Polygon

poly_to_valid

def poly_to_valid(poly):

“”” Adjust polygon to be valid if not.

“””

get_poly_area

def get_poly_area(poly):

“”” Calcualte the number of pixels the polygon covered.

“””

get_poly_bounds

def get_poly_bounds(poly):

“”” Find the bounds of the Polygon.

“””

get_poly_hw

def get_poly_hw(poly):

“”” Find height and width of the polygon.

“””