polartoolkit.polygon_to_region# polygon_to_region(polygon, hemisphere=None, epsg=None)[source]# convert the output of ptk.draw_region to bounding region in the supplied projected units. Parameters: polyon (list) β list of polygon vertices hemisphere (str | None) β set projection based on βnorthβ or βsouthβ hemispheres, by default None epsg (str | None) β set projection from EPSG code string (β3031β), by default None polygon (list[float]) Returns: region in format in format [xmin, xmax, ymin, ymax] Return type: tuple[float, float, float, float]